Crystal-less bluetooth chip communication method and device based on frequency offset detection

CN121643814BActive Publication Date: 2026-10-30ZHUHAI JIELI TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411250174.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2026-10-30
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

然而内部振荡器的频率与标准频率之间存在偏差,由此导致蓝牙芯片无法与其它蓝牙设备建立通信连接

Benefits of technology

依据本发明实施例公开的一种基于频偏检测实现的无晶振蓝牙芯片通信方法、装置,在查询扫描状态下搜索主机设备在查询状态下在预设的若干个频点发送的ID包;在接收到目标频点对应的ID包时,按与目标频点指向的方向设置预设的频偏值,其中,目标频点为若干个频点的最高频点或最低频点;而后,在预设的频偏值的频点上搜索接收目标频点对应的ID包;当在预设的频偏值的频点上接收到目标频点对应的ID包时,确定频偏方向为目标频点指向的方向,并在目标频点指向的方向上轮询各个频点,以在指向的方向上的各个频点上搜索接收ID包;将指向的方向上能够接收到ID包的各个频点作为目标频偏值范围,以在目标频偏值范围内轮询修正频偏值,以与主机设备建立通信连接。可见,本技术方案不是直接轮询所有可能的频偏值来与主机设备建立通信连接,而是先通过查询扫描状态接收ID包,基于此来确定频偏方向,并在该方向上轮询各个频点,由此可以对频偏范围进行缩小,然后在缩小后的频偏范围内尝试与主机设备建立连接,从而能够最大程度上减少建立通信连接所需消耗的时间。并且,由于是将能够接收到ID包的各个频点作为目标频偏值范围,在此基础上修正频偏值,因此能够确保无晶振蓝牙芯片的顺利建立通信。综上,本发明实施例能够在无晶振情况下,快速缩小频偏检测范围,降低建立通信连接所需时间,提高用户体验。实现了确保无晶振蓝牙芯片的顺利建立通信以及提升通信建立速率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121643814B_ABST
    Figure CN121643814B_ABST
Patent Text Reader

Abstract

The application discloses a crystal oscillator-free Bluetooth chip communication method and device based on frequency offset detection, wherein the method comprises the following steps: searching for an ID package sent by a host device in an inquiry state in an inquiry scanning state; setting a preset frequency offset value in a direction pointed to by a target frequency point when the ID package corresponding to the target frequency point is received, wherein the target frequency point is the highest frequency point or the lowest frequency point of a plurality of frequency points; searching for the ID package corresponding to the target frequency point on the frequency point of the preset frequency offset value; polling each frequency point in the direction pointed to by the target frequency point when the ID package corresponding to the target frequency point is received on the frequency point of the preset frequency offset value; taking each frequency point on which the ID package can be received in the direction pointed to as a target frequency offset value range, polling a correction frequency offset value in the target frequency offset value range, and establishing a communication connection with the host device. The method ensures the smooth establishment of the communication of the crystal oscillator-free Bluetooth chip and improves the communication establishment rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Bluetooth communication technology, and specifically to a method and apparatus for communication using a crystal-free Bluetooth chip based on frequency offset detection. Background Technology

[0002] Crystal oscillators are commonly used in the communications field because they provide accurate reference frequencies. Traditional Bluetooth chips typically incorporate crystal oscillators to ensure accurate frequency alignment between communicating parties. However, crystal oscillators increase chip size, which complicates circuit and PCB design for applications requiring miniaturized chips. Furthermore, crystal oscillators are relatively expensive.

[0003] To address this, crystal-free solutions have gradually emerged. In crystal-free Bluetooth chip solutions, the chip typically uses an internal oscillator to generate the clock signal instead of a crystal. However, the frequency of the internal oscillator deviates from the standard frequency, causing the Bluetooth chip to be unable to establish communication connections with other Bluetooth devices. Furthermore, the frequency deviation range of the internal oscillator is usually quite wide (e.g., -12MHz to +12MHz), and in current environments, frequency deviation often requires numerous trials, consuming a considerable amount of time and resulting in a poor product experience.

[0004] Therefore, ensuring the successful establishment of communication with crystal-free Bluetooth chips and improving the communication establishment rate have become urgent technical problems to be solved. Summary of the Invention

[0005] Based on the above situation, the main objective of this invention is to provide a method and apparatus for communication of crystal-free Bluetooth chips based on frequency offset detection, so as to ensure the smooth establishment of communication by crystal-free Bluetooth chips and improve the communication establishment rate.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: In a first aspect, embodiments of the present invention disclose a crystal-free Bluetooth chip communication method based on frequency offset detection, comprising: Step S100: In the query scan state, search for the ID packets sent by the host device in the query state, wherein the host device sends ID packets on a number of preset frequency points; Step S200: When the ID packet corresponding to the target frequency point is received, a preset frequency offset value is set in the direction pointed to by the target frequency point, wherein the target frequency point is the highest or lowest frequency point of several frequency points. Step S300: Search for and receive the ID packet corresponding to the target frequency point at the frequency point with the preset frequency offset value; Step S400: When an ID packet corresponding to the target frequency point is received at a frequency point with a preset frequency offset value, the frequency offset direction is determined to be the direction pointed to by the target frequency point. Step S500: Poll each frequency point in the direction pointed to by the target frequency point to search for the received ID packet on each frequency point in the direction pointed to. Step S600: The frequency points that can receive ID packets in the pointing direction are taken as the target frequency offset value range, and the frequency offset value is polled and corrected within the target frequency offset value range to establish a communication connection with the host device.

[0007] Optionally, in step S200, the target frequency point includes: a first target frequency point, which is the lowest frequency point among several frequency points, and a second target frequency point, which is the highest frequency point among several frequency points; or, the first target frequency point is the highest frequency point among several frequency points, and the second target frequency point is the lowest frequency point among several frequency points. The direction the target frequency points to is the direction from the first target frequency to the second target frequency.

[0008] Optionally, step S200 includes: when the first target frequency point is received, setting a preset frequency offset value on the first target frequency point in the direction of the second target frequency point to obtain the first frequency offset frequency point; Step S300 includes: Step S310: Search for and receive the ID packet corresponding to the first target frequency point within a first preset time period at the first frequency offset point; Step S320: When the ID packet corresponding to the first target frequency point is received within the first preset time period, step S400 is executed; in step S400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point.

[0009] Optionally, step S300 further includes: Step S330: If no ID packet corresponding to the first target frequency point is received within the first preset time period, the second frequency offset frequency point is obtained by setting a preset frequency offset value again in the direction pointing to the second target frequency point on the first frequency offset frequency point. Step S340: Search for and receive the ID packet corresponding to the first target frequency point within a first preset time period at the second frequency offset point; Step S350: When the ID packet corresponding to the first target frequency point is received within the first preset time period, step S400 is executed; in step S400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point. Step S360: If no ID packet corresponding to the first target frequency point is received within the first preset time period, the frequency offset direction is determined to be the direction from the second target frequency point to the first target frequency point, and the direction from the second target frequency point to the first target frequency point is taken as the direction from which the target frequency point points. The above process is repeated for each frequency point to determine the target frequency offset value range.

[0010] Optionally, step S500 includes: Step S510: Starting from the first target frequency point, set the frequency offset value in the direction of the second target frequency point according to the preset step size to obtain the i-th polling frequency point as the current polling object, where i≥1; Step S520: Search for the received ID packet at the i-th polling frequency point; Step S530: When an ID packet is received at the i-th polling frequency point, the frequency offset value is set at the i-th polling frequency point in the direction of the second target frequency point according to the preset step size to obtain the (i+1)-th polling frequency point, and steps S520 and S530 are executed cyclically as the new current polling object. Step S540: When no ID packet is received at the i-th polling frequency point, the (i-1)-th polling frequency point is taken as the boundary of the target frequency offset range. Step S600 includes: taking each frequency point between the first target frequency point and the (i-1)th polling frequency point as the target frequency offset range.

[0011] Optionally, in step S500, the number of polling frequency points is less than 1 / 10 of a number of frequency points.

[0012] Secondly, embodiments of the present invention disclose a crystal-free Bluetooth chip communication device based on frequency offset detection, comprising: The query scanning module is used to search for ID packets sent by the host device in the query state during the query scanning state, wherein the host device sends ID packets on several preset frequency points; The frequency offset setting module is used to set a preset frequency offset value in the direction pointed to by the target frequency point when the ID packet corresponding to the target frequency point is received. The target frequency point is the highest or lowest frequency point among several frequency points. The frequency offset point search module is used to search for the ID packet corresponding to the target frequency point at the frequency point with the preset frequency offset value; The frequency offset direction determination module is used to determine the frequency offset direction as the direction pointed to by the target frequency point when an ID packet corresponding to the target frequency point is received at a frequency point with a preset frequency offset value. The polling module is used to poll each frequency point in the direction pointed to by the target frequency point in order to search for the received ID packet on each frequency point in the direction pointed to. The frequency offset range determination module is used to take each frequency point that can receive ID packets in the pointed direction as the target frequency offset value range, and to poll and correct the frequency offset value within the target frequency offset value range in order to establish a communication connection with the host device.

[0013] Optionally, in the frequency offset setting module, the target frequency point includes: a first target frequency point, which is the lowest frequency point among several frequency points, and a second target frequency point, which is the highest frequency point among several frequency points; or, the first target frequency point is the highest frequency point among several frequency points, and the second target frequency point is the lowest frequency point among several frequency points. The direction the target frequency points to is the direction from the first target frequency to the second target frequency.

[0014] Optionally, the frequency offset setting module is specifically used to set a preset frequency offset value on the first target frequency point in the direction of the second target frequency point when the first target frequency point is received to obtain the first frequency offset frequency point; The frequency offset point search module is specifically used for: Search and receive the ID packet corresponding to the first target frequency point within a first preset time period at the first frequency offset point; When an ID packet corresponding to the first target frequency point is received within the first preset time period, the frequency offset direction determination module is executed; in the frequency offset direction determination module, the frequency offset direction is the direction from the first target frequency point to the second target frequency point.

[0015] Optionally, the frequency offset point search module is also used for: If no ID packet corresponding to the first target frequency point is received within the first preset time period, the second frequency offset frequency point is obtained by setting the preset frequency offset value again in the direction pointing to the second target frequency point on the first frequency offset frequency point. Search and receive the ID packet corresponding to the first target frequency point within a first preset time period at the second frequency offset point; When an ID packet corresponding to the first target frequency point is received within the first preset time period, the frequency offset direction determination module is executed; in the frequency offset direction determination module, the frequency offset direction is the direction from the first target frequency point to the second target frequency point; If no ID packet corresponding to the first target frequency point is received within the first preset time period, the frequency offset direction is determined to be the direction from the second target frequency point to the first target frequency point, and the direction from the second target frequency point to the first target frequency point is taken as the direction from which the target frequency point points. The above process is repeated for each frequency point to determine the target frequency offset value range.

[0016] Optionally, the polling module is specifically used for: Starting from the first target frequency point, the frequency offset value is set in the direction of the second target frequency point according to the preset step size to obtain the i-th polling frequency point as the current polling object, where i≥1; Search for and receive ID packets at the i-th polling frequency point; When an ID packet is received at the i-th polling frequency point, the frequency offset value is set at the i-th polling frequency point in the direction of the second target frequency point according to the preset step size to obtain the (i+1)-th polling frequency point, and is used as the new current polling object. The module is specifically used to take each frequency point between the first target frequency point and the (i-1)-th polling frequency point as the target frequency offset value range.

[0017] Optionally, in the polling module, the number of polling frequency points is less than 1 / 10 of a number of frequency points.

[0018] Thirdly, embodiments of the present invention disclose a computer device, comprising: The method disclosed in the first aspect above is used for crystal oscillator-less Bluetooth chip communication, or the apparatus disclosed in the second aspect above is used.

[0019] Fourthly, embodiments of the present invention disclose a computer-readable storage medium having a computer program stored thereon. The computer program stored in the storage medium is used by a processor to execute the method disclosed in the first aspect above. Fifthly, embodiments of the present invention disclose a Bluetooth communication chip having an integrated circuit, the integrated circuit being designed to implement the method disclosed in the first aspect above.

[0020] Beneficial effects: According to an embodiment of the present invention, a method and apparatus for communication of a crystal-free Bluetooth chip based on frequency offset detection is disclosed. In a query scanning state, the method searches for ID packets sent by a host device at a preset number of frequency points during the query state. When an ID packet corresponding to a target frequency point is received, a preset frequency offset value is set according to the direction pointed to by the target frequency point, wherein the target frequency point is the highest or lowest frequency point among the preset frequency points. Then, the method searches for and receives ID packets corresponding to the target frequency point at the frequency points of the preset frequency offset value. When an ID packet corresponding to the target frequency point is received at the frequency points of the preset frequency offset value, the frequency offset direction is determined to be the direction pointed to by the target frequency point, and each frequency point in the direction pointed to by the target frequency point is polled to search for and receive ID packets at each frequency point in the direction pointed to by the target frequency point. Each frequency point in the direction in which ID packets can be received is taken as the target frequency offset value range, and the frequency offset value is corrected by polling within the target frequency offset value range to establish a communication connection with the host device. As can be seen, this technical solution does not directly poll all possible frequency offset values ​​to establish a communication connection with the host device. Instead, it first receives ID packets by querying the scan status, determines the frequency offset direction based on this, and polls various frequency points in that direction. This narrows down the frequency offset range. Then, it attempts to establish a connection with the host device within the narrowed frequency offset range, thereby minimizing the time required to establish a communication connection. Furthermore, since the target frequency offset range is defined as the frequency points that can receive ID packets, and the frequency offset value is corrected based on this range, it ensures successful communication establishment for crystal-free Bluetooth chips. In summary, this invention can quickly narrow the frequency offset detection range, reduce the time required to establish a communication connection, and improve the user experience in the absence of a crystal oscillator. It ensures successful communication establishment for crystal-free Bluetooth chips and improves the communication establishment rate.

[0021] Other beneficial effects of the present invention will be explained in detail through the introduction of specific technical features and technical solutions in specific embodiments. Those skilled in the art should be able to understand the beneficial technical effects brought about by these technical features and technical solutions through the introduction of these technical features and technical solutions. Attached Figure Description

[0022] The embodiments of the present invention will now be described with reference to the accompanying drawings. In the drawings: Figure 1 This is a flowchart of a crystal-free Bluetooth chip communication method based on frequency offset detection disclosed in this embodiment; Figure 2 This is an example schematic diagram of searching for and receiving ID packets sent by a host device at various frequency points, as disclosed in this embodiment. Figure 3 This is an example schematic diagram of searching for and receiving ID packets sent by a host device at various frequency points, as disclosed in this embodiment. Figure 4 This is a schematic diagram of a crystal-free Bluetooth chip communication device based on frequency offset detection disclosed in this embodiment. Detailed Implementation

[0023] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the following detailed description of the present invention, some specific details are described in detail, but well-known methods, processes, procedures, and elements are not described in detail in order to avoid obscuring the essence of the present invention.

[0024] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.

[0025] Unless the context explicitly requires it, the words "comprising," "including," and similar terms throughout the specification and claims should be interpreted as encompassing rather than being exclusive or exhaustive; that is, meaning "including but not limited to."

[0026] In the description of this invention, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means two or more.

[0027] To ensure successful communication establishment and improve the communication establishment rate of crystal-free Bluetooth chips, this embodiment discloses a communication method for crystal-free Bluetooth chips based on frequency offset detection. Please refer to [link / reference]. Figure 1 , Figure 1 This embodiment discloses a flowchart of a crystal-free Bluetooth chip communication method based on frequency offset detection. The crystal-free Bluetooth chip communication method includes steps S100, S200, S300, S400, S500, and S600, wherein: Step S100: Search for ID packets sent by the host device in the query scan state. In this embodiment, the host device sends ID packets on several preset frequency points. Specifically, the host device sends ID packets according to the standard Bluetooth protocol in the query state (inquiry state), typically using 32 frequency points: 0, 2, 4, 6, 8, 10, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77. During this period, the crystal-free Bluetooth chip, in the query scan state (inquiry_scan receiving state), can search for ID packets sent by the over-the-air host device in the inquiry state.

[0028] Step S200: Upon receiving the ID packet corresponding to the target frequency point, a preset frequency offset value is set according to the direction pointed to by the target frequency point. In this embodiment, the target frequency point refers to the highest or lowest frequency point among several frequency points. For example, when the several frequency points are the aforementioned 32 frequency points, the highest frequency point is 77, and the lowest frequency point is 0. In specific implementation, since the target frequency point is the highest or lowest frequency point among several frequency points, the direction pointed to by the target frequency point can be determined. Specifically, when the target frequency point is the highest frequency point, its pointing direction is towards a low frequency point (i.e., negative offset); conversely, when the target frequency point is the lowest frequency point, its pointing direction is towards a high frequency point (i.e., positive offset). In specific implementation, a new frequency point is obtained by superimposing the preset frequency offset value on the target frequency point, and the ID packet is searched and received on the new frequency point. Specifically, the preset frequency offset value can be set to, for example, 1MHz, and the superposition can be positive superposition (target frequency point is the lowest frequency point) or negative superposition (target frequency point is the highest frequency point).

[0029] In a specific embodiment, in step S200, the target frequency point includes: a first target frequency point, wherein: in one embodiment, the first target frequency point is the lowest frequency point among several frequency points, and the second target frequency point is the highest frequency point among several frequency points; or, in another embodiment, the first target frequency point is the highest frequency point among several frequency points, and the second target frequency point is the lowest frequency point among several frequency points. In this embodiment, the direction pointed to by the target frequency point is the direction from the first target frequency point to the second target frequency point. Specifically, among the above 32 frequency points, when the first target frequency point is the lowest frequency point 0, the second target frequency point is the highest frequency point 77, and at this time, the direction pointed to by the target frequency point is positively biased; when the first target frequency point is the highest frequency point 77, the second target frequency point is the lowest frequency point 0, and at this time, the direction pointed to by the target frequency point is negatively biased. In the specific implementation process, the highest frequency point can be selected as the first target frequency point, or the lowest frequency point can be selected as the first target frequency point, that is, the positive bias direction can be determined first, or the negative bias direction can be determined first.

[0030] In this embodiment, the target frequency is set to the highest or lowest frequency, which is the boundary of the frequency range. Therefore, it is easy to determine the frequency offset direction based on this, so that the frequency offset direction can be clearly determined in the subsequent polling process.

[0031] Step S300: Search for and receive the ID packet corresponding to the target frequency point at the frequency point with the preset frequency offset value. Specifically, the target frequency point can be the lowest frequency point or the highest frequency point. Details are as follows: In one embodiment, when the target frequency is the lowest frequency, please refer to... Figure 2 , Figure 2 This is an example schematic diagram of searching and receiving ID packets sent by a host device at various frequency points, as disclosed in this embodiment. The first row represents the standard frequency point Fs of the host device, the second row represents the frequency Fc of the crystal-free Bluetooth chip, and the third row represents the frequency after setting a frequency offset value for the crystal-free Bluetooth chip. Figure 2 In the diagram, the black numbers “0”, “2”, “4”, “6”, “75”, and “77” are the frequency points used by the host device, which belong to the aforementioned 32 frequency points; the gray numbers “1”, “3”, “5”, “7”, and “76” are the frequency points not used in this instance, which do not belong to the aforementioned 32 frequency points. Figure 2 In the illustrated example, the frequency of the crystal-free Bluetooth chip is offset by 3MHz relative to the standard frequency of the host device. That is, the frequency of the crystal-free Bluetooth chip is Fc = Fs + 3MHz. When the crystal-free Bluetooth chip receives the ID packet sent by the host device at frequency 0, since frequency 0 is the lowest frequency (i.e., the target frequency), a preset frequency offset value, such as -1MHz, is set in the direction pointing towards the target frequency. Please refer to [reference needed]. Figure 2 After the crystal-free Bluetooth chip is frequency offset by -1MHz (positive offset by 1MHz), its frequency is as shown in the third row. It searches for and receives the ID packet corresponding to the target frequency at the frequency point after the offset (i.e., frequency point 0 after the offset). Under this frequency offset, the crystal-free Bluetooth chip still receives the ID packet sent by the host device (e.g., ...). Figure 2 (As indicated by the dashed arrow).

[0032] It should be noted that, Figure 2 In the illustrated example, the host device sends the ID packet at frequency 2, while the crystal-free Bluetooth chip receives the ID packet at frequency 0. This is because the frequency offset value of the crystal-free Bluetooth chip is not corrected, so the sending frequency and receiving frequency do not correspond. In actual implementation, the packet can also be received at frequencies near the sending frequency.

[0033] In another embodiment, when the target frequency is the highest frequency, please refer to... Figure 3 , Figure 3This is an example schematic diagram of searching and receiving ID packets sent by a host device at various frequency points, as disclosed in this embodiment. The first row represents the standard frequency point Fs of the host device, the second row represents the frequency Fc of the crystal-free Bluetooth chip, and the third row represents the frequency after setting a frequency offset value for the crystal-free Bluetooth chip. Figure 2 In the diagram, the black numbers “0”, “2”, “4”, “6”, “75”, and “77” are the frequency points used by the host device, which belong to the aforementioned 32 frequency points; the gray numbers “1”, “3”, “5”, “7”, and “76” are the frequency points not used in this instance, which do not belong to the aforementioned 32 frequency points. Figure 3 In the illustrated example, the frequency of the crystal-free Bluetooth chip is offset by 2MHz relative to the host device's standard frequency. That is, the frequency of the crystal-free Bluetooth chip is Fc = Fs - 2MHz. When the crystal-free Bluetooth chip receives the ID packet sent by the host device at frequency 77, since frequency 77 is the highest frequency point, i.e., the target frequency point, a preset frequency offset value, such as 2MHz, is set in the direction pointing towards the target frequency point. Please refer to [reference needed]. Figure 3 After the crystal-free Bluetooth chip is frequency offset by 2MHz (negative offset 2MHz), its frequency is as shown in the third row. It searches for and receives the ID packet corresponding to the target frequency at the frequency point after the frequency offset (i.e., frequency point 77 after the frequency offset). Under this frequency offset, the crystal-free Bluetooth chip still receives the ID packet sent by the host device (e.g., ...). Figure 3 (As indicated by the dashed arrow).

[0034] It should be noted that, Figure 3 In the illustrated example, the host device sends the ID packet at frequency 77, and the Bluetooth chip without a crystal oscillator can still receive the ID packet even when its frequency is not aligned with the standard frequency 77. This is because, in actual implementation, the packet can also be received at frequencies near the sending frequency.

[0035] Step S400: When an ID packet corresponding to the target frequency point is received at a frequency point with a preset frequency offset value, the frequency offset direction is determined to be the direction pointed to by the target frequency point. In this embodiment, since the frequency point is offset according to the direction pointed to by the target frequency point after the corresponding ID packet is received at the target frequency point, and the corresponding ID packet can still be received at the frequency point with the preset frequency offset value, it can be indicated that the frequency offset direction of the crystal oscillator-less Bluetooth chip is the direction pointed to by the target frequency point.

[0036] In step S500, each frequency point is polled in the direction pointed to by the target frequency point to search for received ID packets on each frequency point in that direction. After determining that the frequency offset direction is the direction pointed to by the target frequency point, each frequency point can be polled in the direction pointed to by the target frequency point to determine the frequency offset range. Specifically, frequency offset is sequentially obtained in the direction pointed to by the target frequency point to obtain each frequency point after frequency offset, and received ID packets are searched on these frequency points to determine whether ID packets can be received on these frequency points. As an example, after receiving the corresponding ID packet in step S400, the frequency point can be further offset by, for example, -1MHz (positive offset of 1MHz), that is, a total frequency offset of -2MHz to obtain a new frequency point after frequency offset, and then the received ID packet is searched on the new frequency point after frequency offset.

[0037] Step S600 involves using the frequency points capable of receiving ID packets in the direction pointed to as the target frequency offset range, and then polling and correcting the frequency offset value within this range to establish a communication connection with the host device. Specifically, after polling and searching the frequency points in the direction pointed to by the target frequency point, it can be determined whether each frequency point can receive ID packets. In this embodiment, the frequency points capable of receiving ID packets are used as the target frequency offset range. Then, the frequency offset value of the crystal-free Bluetooth chip is corrected based on this range, so that the corrected frequency of the crystal-free Bluetooth chip corresponds to the standard frequency of the host device, thereby enabling the establishment of a communication connection and frequency hopping communication according to the frequency hopping table of the host device.

[0038] In an optional embodiment, step S200 includes: upon receiving a first target frequency point, setting a preset frequency offset value on the first target frequency point towards the second target frequency point to obtain a first frequency offset frequency point; step S300 includes: step S310, searching for and receiving the ID packet corresponding to the first target frequency point within a first preset time period t1 at the first frequency offset frequency point; step S320, when the ID packet corresponding to the first target frequency point is received within the first preset time period t1, then step S400 is executed; in step S400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point. Specifically: In one embodiment, when the first target frequency is the lowest frequency 0, a preset frequency offset value is set to, for example, -1MHz to obtain the first frequency offset frequency. Figure 2 As shown, at the first frequency offset point, the frequency range is shifted by -1MHz. When receiving an ID packet in the air at this first frequency offset point, if the ID packet is received, the frequency of the crystal-free Bluetooth chip is positively offset, allowing for subsequent determination of the target frequency offset value range in the positive offset direction. In practice, if no ID packet is received, the crystal-free Bluetooth chip may be negatively offset, thus requiring negative offset direction detection. This means setting the first target frequency point to the highest frequency point 77 to confirm the frequency offset direction.

[0039] In another embodiment, when the first target frequency is the highest frequency point 77, the preset frequency offset value is set to, for example, 2MHz, to obtain the first frequency offset frequency point, such as... Figure 3 As shown, at the first frequency offset point, the frequency range is shifted by 2MHz. When receiving an ID packet in the air at this first frequency offset point, if the ID packet is received, the frequency of the crystal oscillator Bluetooth chip is negatively offset, allowing for subsequent determination of the target frequency offset value range in the negative offset direction. In practical implementation, if no ID packet is received, the crystal oscillator Bluetooth chip may be positively offset, thus requiring positive offset direction detection. This means setting the first target frequency point to the lowest frequency point (0) to confirm the frequency offset direction.

[0040] In an optional embodiment, step S300 further includes: step S330, when no ID packet corresponding to the first target frequency point is received within the first preset time period t1, a preset frequency offset value is set again at the first frequency offset frequency point in the direction pointing to the second target frequency point to obtain the second frequency offset frequency point; step S340, at the second frequency offset frequency point, the ID packet corresponding to the first target frequency point is searched and received within the first preset time period t1; step S350, when the ID packet corresponding to the first target frequency point is received within the first preset time period t1, step S400 is executed; in step S400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point; step S360, when no ID packet corresponding to the first target frequency point is received within the first preset time period t1, the frequency offset direction is determined to be the direction from the second target frequency point to the first target frequency point, and the direction from the second target frequency point to the first target frequency point is taken as the direction from which the target frequency point points, and the target frequency offset value range is determined by polling each frequency point in turn.

[0041] Specifically, in the process of obtaining the second frequency offset point by setting a preset frequency offset value again in the direction pointing to the second target frequency point at the first frequency offset point, the preset frequency offset value can be the same as or different from the previous frequency offset value. In order to simplify the calculation and improve the calculation efficiency, in the preferred embodiment, the preset frequency offset value can be the same each time, for example, "1MHz" (the specific positive or negative direction is determined according to whether it is the highest frequency point or the lowest frequency point at the first target frequency point). In the specific implementation process, when an ID packet corresponding to the first target frequency point is received within the first preset time period t1, it indicates that the currently set frequency offset value matches the actual frequency offset direction. Therefore, the specific target frequency offset value range can be determined according to the direction from the first target frequency point to the second target frequency point, without needing to poll the direction from the second target frequency point to the first target frequency point, thereby reducing the number of polled frequency points and improving the communication connection establishment rate. Conversely, when no ID packet corresponding to the first target frequency point is received within the first preset time period t1, it indicates that the currently set frequency offset value is opposite to the actual frequency offset direction. Therefore, the specific target frequency offset value range can be determined according to the direction from the second target frequency point to the first target frequency point, without needing to poll the direction from the first target frequency point to the second target frequency point, thereby reducing the number of polled frequency points and improving the communication connection establishment rate.

[0042] To determine the target frequency offset range, in an optional embodiment, step S500 includes: step S510, starting from the first target frequency point, setting a frequency offset value in the direction of the second target frequency point by a preset step size to obtain the i-th polling frequency point as the current polling object, where i≥1; step S520, searching for and receiving ID packets at the i-th polling frequency point; step S530, when an ID packet is received at the i-th polling frequency point, setting a frequency offset value in the direction of the second target frequency point by a preset step size at the i-th polling frequency point to obtain the (i+1)-th polling frequency point, and using it as the new current polling object to repeatedly execute steps S520 and S530; step S540, when no ID packet is received at the i-th polling frequency point, using the (i-1)-th polling frequency point as the boundary of the target frequency offset range; step S600 includes: using each frequency point between the first target frequency point and the (i-1)-th polling frequency point as the target frequency offset range. Specifically, as follows: After determining that the frequency offset direction is from the first target frequency point to the second target frequency point, the frequency points can be polled in turn by setting the frequency offset values ​​sequentially. In this embodiment, the preset step size can be, for example, 1MHz. Of course, the first target frequency point can be the highest frequency point or the lowest frequency point. Specifically: In one embodiment, when the first target frequency is the lowest frequency, values ​​are sequentially taken within the range of -1MHz to -12MHz to poll each frequency point to see if it can receive ID packets. In specific implementation, each frequency point can be polled by incrementing; that is, when the i-th polling frequency point receives an ID packet, i is incremented by 1 to search for the (i+1)-th polling frequency point. The frequency difference between the i-th and (i+1)-th polling frequency points is a preset step size (e.g., 1MHz). During the incrementing polling process, if a polling frequency point can receive an ID packet in the air within a preset duration t2, the frequency offset value corresponding to this polling frequency point is saved to the variable edge_freq (that is, the boundary of the target frequency offset value range), and the variable edge_freq and -12MHz are used as the two boundaries of the target frequency offset value range, thereby determining the target frequency offset value range as edge_freq to -12MHz.

[0043] In another embodiment, when the first target frequency is the highest frequency, values ​​are sequentially taken within the range of 1MHz to 12MHz to poll each frequency point to see if it can receive the ID packet. In specific implementation, the frequency points can be polled by incrementing. That is, when the i-th polling frequency point receives the ID packet, i is incremented by 1 to search for the (i+1)-th polling frequency point. The frequency difference between the i-th and (i+1)-th polling frequency points is a preset step size (e.g., 1MHz). During the incrementing polling process, if a polling frequency point can receive the ID packet in the air within a preset time t2, the frequency offset value corresponding to this polling frequency point is saved to the variable edge_freq (that is, the boundary of the target frequency offset value range), and the variable edge_freq and 12MHz are used as the two boundaries of the target frequency offset value range, thereby determining the target frequency offset value range as edge_freq to 12MHz.

[0044] To further improve the efficiency of establishing communication links, in an optional embodiment, in step S500, the number of polling frequency points is less than 1 / 10 of the total number of frequency points. That is, it is not necessary to attempt to establish connections on all 32 frequency points; only the few frequency points closest to the first target frequency point (e.g., 3-4) need to be tried, and then the local frequency offset can be corrected based on these few frequency points. This reduces the time required for frequency offset correction and improves the efficiency of the communication link.

[0045] This embodiment also discloses a crystal-free Bluetooth chip communication device based on frequency offset detection. Please refer to [link / reference]. Figure 4 , Figure 4This is a schematic diagram of a crystal-free Bluetooth chip communication device based on frequency offset detection disclosed in this embodiment. The device includes: a query scanning module 100, a frequency offset setting module 200, a frequency offset point search module 300, a frequency offset direction determination module 400, a polling module 500, and a frequency offset range determination module 600, wherein: The query scanning module 100 is used to search for ID packets sent by the host device in the query state during the query scanning state, wherein the host device sends ID packets at several preset frequency points; The frequency offset setting module 200 is used to set a preset frequency offset value in the direction pointed to by the target frequency point when receiving the ID packet corresponding to the target frequency point. The target frequency point is the highest or lowest frequency point among several frequency points. The frequency offset search module 300 is used to search for the ID packet corresponding to the target frequency point at the frequency point with the preset frequency offset value; The frequency offset direction determination module 400 is used to determine the frequency offset direction as the direction pointed to by the target frequency point when an ID packet corresponding to the target frequency point is received at a frequency point with a preset frequency offset value. The polling module 500 is used to poll each frequency point in the direction pointed to by the target frequency point in order to search for received ID packets on each frequency point in the direction pointed to. The frequency offset range determination module 600 is used to take each frequency point that can receive ID packets in the direction it is pointing as the target frequency offset value range, so as to poll and correct the frequency offset value within the target frequency offset value range, so as to establish a communication connection with the host device.

[0046] In an optional embodiment, in the frequency offset setting module 200, the target frequency point includes: a first target frequency point, which is the lowest frequency point among several frequency points, and a second target frequency point, which is the highest frequency point among several frequency points; or, the first target frequency point is the highest frequency point among several frequency points, and the second target frequency point is the lowest frequency point among several frequency points. The direction the target frequency points to is the direction from the first target frequency to the second target frequency.

[0047] In an optional embodiment, the frequency offset setting module 200 is specifically used to set a preset frequency offset value on the first target frequency point toward the direction of the second target frequency point when the first target frequency point is received to obtain the first frequency offset frequency point; The frequency offset point search module 300 is specifically used for: Search and receive the ID packet corresponding to the first target frequency point within a first preset duration t1 at the first frequency offset point; When the ID packet corresponding to the first target frequency point is received within the first preset time period t1, the frequency offset direction determination module 400 is executed; in the frequency offset direction determination module 400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point.

[0048] In an optional embodiment, the frequency offset point search module 300 is further configured to: If no ID packet corresponding to the first target frequency point is received within the first preset time period t1, the second frequency offset frequency point is obtained by setting the preset frequency offset value again in the direction pointing to the second target frequency point on the first frequency offset frequency point. Search and receive the ID packet corresponding to the first target frequency point within a first preset duration t1 at the second frequency offset point; When the ID packet corresponding to the first target frequency point is received within the first preset time period t1, the frequency offset direction determination module 400 is executed; in the frequency offset direction determination module 400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point; If no ID packet corresponding to the first target frequency point is received within the first preset time period t1, the frequency offset direction is determined to be the direction from the second target frequency point to the first target frequency point, and the direction from the second target frequency point to the first target frequency point is taken as the direction from which the target frequency point points. The above process is repeated for each frequency point to determine the target frequency offset value range.

[0049] In an optional embodiment, the polling module 500 is specifically used for: Starting from the first target frequency point, the frequency offset value is set in the direction of the second target frequency point according to the preset step size to obtain the i-th polling frequency point as the current polling object, where i≥1; Search for and receive ID packets at the i-th polling frequency point; When an ID packet is received at the i-th polling frequency point, the frequency offset value is set at the i-th polling frequency point in the direction of the second target frequency point by a preset step size to obtain the (i+1)-th polling frequency point, which is then used as the new current polling object to cyclically search for and receive ID packets at the i-th polling frequency point. If no ID packet is received at the i-th polling frequency point, then the (i-1)-th polling frequency point is taken as the boundary of the target frequency offset range. The frequency offset range determination module 600 is specifically used to take each frequency point between the first target frequency point and the (i-1)th polling frequency point as the target frequency offset value range.

[0050] In an optional embodiment, in the polling module 500, the number of polling frequency points is less than 1 / 10 of a number of frequency points.

[0051] This embodiment also discloses a computer device, including: The method disclosed in the above embodiments is used for crystal-free Bluetooth chip communication, or the apparatus disclosed in the above embodiments is used.

[0052] This embodiment also discloses a Bluetooth communication chip having an integrated circuit, which is designed to implement the methods disclosed in the above embodiments.

[0053] According to an embodiment of the present invention, a method and apparatus for communication of a crystal-free Bluetooth chip based on frequency offset detection is disclosed. In a query scanning state, the method searches for ID packets sent by a host device at a preset number of frequency points during the query state. When an ID packet corresponding to a target frequency point is received, a preset frequency offset value is set according to the direction pointed to by the target frequency point, wherein the target frequency point is the highest or lowest frequency point among the preset frequency points. Then, the method searches for and receives ID packets corresponding to the target frequency point at the frequency points of the preset frequency offset value. When an ID packet corresponding to the target frequency point is received at the frequency points of the preset frequency offset value, the frequency offset direction is determined to be the direction pointed to by the target frequency point, and each frequency point in the direction pointed to by the target frequency point is polled to search for and receive ID packets at each frequency point in the direction pointed to by the target frequency point. Each frequency point in the direction in which ID packets can be received is taken as the target frequency offset value range, and the frequency offset value is corrected by polling within the target frequency offset value range to establish a communication connection with the host device. As can be seen, this technical solution does not directly poll all possible frequency offset values ​​to establish a communication connection with the host device. Instead, it first receives ID packets by querying the scan status, determines the frequency offset direction based on this, and polls various frequency points in that direction. This narrows down the frequency offset range. Then, it attempts to establish a connection with the host device within the narrowed frequency offset range, thereby minimizing the time required to establish a communication connection. Furthermore, since the target frequency offset range is defined as the frequency points that can receive ID packets, and the frequency offset value is corrected based on this range, it ensures successful communication establishment for crystal-free Bluetooth chips. In summary, this invention can quickly narrow the frequency offset detection range, reduce the time required to establish a communication connection, and improve the user experience in the absence of a crystal oscillator. It ensures successful communication establishment for crystal-free Bluetooth chips and improves the communication establishment rate.

[0054] In the specific implementation process, the crystal-free Bluetooth chip is set to the inquiry_scan state. The direction of the frequency offset is determined by adjusting the frequency offset value and detecting whether data can be received at the 0 or 77 frequency points. Based on the detection results of positive or negative offset, the frequency offset value is successively set to -1 MHz to -12 MHz or 1 MHz to 12 MHz, and reception tests are performed. The frequency offset range is further narrowed based on the final results.

[0055] The solution disclosed in this embodiment can find the frequency deviation compensation value (frequency offset value) of the chip in the absence of a crystal oscillator, and compensate the clock to the standard frequency to achieve normal communication. However, the frequency offset range of the internal oscillator is usually quite wide (e.g., -12MHz to +12MHz). Compared with the method of polling each frequency point to detect the actual frequency offset value, this embodiment uses the detection of positive and negative offset directions, which can quickly narrow the frequency offset detection range, reduce the time required to establish a communication connection, and improve the user experience.

[0056] In addition, the present invention provides a computer-readable storage medium, such as a chip, an optical disc, etc., on which an executable program is stored, which, when executed, implements the method described in any of the above-mentioned embodiments.

[0057] It should be noted that the computer-readable storage medium described in the embodiments of this disclosure is not limited to the embodiments given above. For example, it can also be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In the embodiments of this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0058] It will be understood by those skilled in the art that the above-described preferred solutions can be freely combined and superimposed without conflict. The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings; for example, two consecutively indicated blocks may actually be executed substantially in parallel, or sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. The numbering of each step in this document is for ease of explanation and reference only and is not intended to limit the order of execution. The specific execution order is determined by the technology itself, and those skilled in the art can determine various permissible and reasonable orders based on the technology itself.

[0059] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in this invention is merely for the purpose of convenience and brevity in description, and is by no means intended to restrict the order of these method steps. Those skilled in the art will understand that the order of the relevant method steps should be determined by the technology itself and should not be unduly restricted by the existence of step numbers. Those skilled in the art can determine various permissible and reasonable orderings of steps based on the technology itself.

[0060] Those skilled in the art will understand that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.

[0061] It should be understood that the above embodiments are merely exemplary and not restrictive. Various obvious or equivalent modifications or substitutions that can be made by those skilled in the art regarding the above details without departing from the basic principles of the present invention will be included within the scope of the claims of the present invention.

Claims

1. A crystal-free Bluetooth chip communication method based on frequency offset detection, characterized in that, include: Step S100: In the query scan state, search for the ID packet sent by the host device in the query state, wherein the host device sends the ID packet at a preset number of frequency points; Step S200: Upon receiving the ID packet corresponding to the target frequency point, a preset frequency offset value is set according to the direction pointed to by the target frequency point. The target frequency point is either the highest or lowest frequency point among the plurality of frequency points. The target frequency point includes: a first target frequency point, which is the lowest frequency point among the plurality of frequency points, and a second target frequency point, which is the highest frequency point among the plurality of frequency points; or, the first target frequency point is the highest frequency point among the plurality of frequency points, and the second target frequency point is the lowest frequency point among the plurality of frequency points, with the direction pointed to by the target frequency point being the direction from the first target frequency point to the second target frequency point; upon receiving the first target frequency point, a preset frequency offset value is set on the first target frequency point in the direction towards the second target frequency point to obtain a first frequency offset frequency point. Step S300, searching for and receiving the ID packet corresponding to the target frequency point at the frequency point of the preset frequency offset value, including: Step S310: Search and receive the ID packet corresponding to the first target frequency point within a first preset time period (t1) at the first frequency offset point; Step S320: When the ID packet corresponding to the first target frequency point is received within the first preset time period (t1), then step S400 is executed; in step S400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point; Step S400: When an ID packet corresponding to the target frequency point is received at the frequency point of the preset frequency offset value, the frequency offset direction is determined to be the direction pointed to by the target frequency point; Step S500: Poll each frequency point in the direction pointed to by the target frequency point to search for and receive the ID packet on each frequency point in the direction pointed to. Step S600: Take each frequency point that can receive the ID packet in the pointed direction as the target frequency offset value range, and poll and correct the frequency offset value within the target frequency offset value range to establish a communication connection with the host device.

2. The crystal-free Bluetooth chip communication method based on frequency offset detection as described in claim 1, characterized in that, Step S300 further includes: Step S330: When no ID packet corresponding to the first target frequency point is received within the first preset time period (t1), the second frequency offset frequency point is obtained by setting a preset frequency offset value again on the first frequency offset frequency point in the direction pointing to the second target frequency point. Step S340: Search and receive the ID packet corresponding to the first target frequency point within a first preset time period (t1) at the second frequency offset point; Step S350: When the ID packet corresponding to the first target frequency point is received within the first preset time period (t1), then step S400 is executed; in step S400, the frequency offset direction is the direction from the first target frequency point to the second target frequency point; Step S360: When no ID packet corresponding to the first target frequency point is received within the first preset time period (t1), the frequency offset direction is determined to be the direction from the second target frequency point to the first target frequency point, and the direction from the second target frequency point to the first target frequency point is taken as the direction from which the target frequency point points. The target frequency offset value range is determined by polling each frequency point in turn.

3. The method for crystal-free Bluetooth chip communication based on frequency offset detection as described in any one of claims 1-2, characterized in that, Step S500 includes: Step S510: Starting from the first target frequency point, set the frequency offset value in the direction of the second target frequency point according to the preset step size to obtain the i-th polling frequency point as the current polling object, where i≥1; Step S520: Search and receive the ID packet at the i-th polling frequency point; Step S530: When the ID packet is received at the i-th polling frequency point, the frequency offset value is set at the i-th polling frequency point in the direction of the second target frequency point by a preset step size to obtain the (i+1)-th polling frequency point, and the i-th polling frequency point is used as the new current polling object to cyclically execute steps S520 and S530. Step S540: When no ID packet is received at the i-th polling frequency point, the (i-1)-th polling frequency point is taken as the boundary of the target frequency offset range. Step S600 includes: taking each frequency point between the first target frequency point and the (i-1)th polling frequency point as the target frequency offset range.

4. The crystal-free Bluetooth chip communication method based on frequency offset detection as described in claim 3, characterized in that, In step S500, the number of polling frequency points is less than 1 / 10 of the plurality of frequency points.

5. A crystal-free Bluetooth chip communication device based on frequency offset detection, characterized in that, include: The query scanning module (100) is used to search for ID packets sent by the host device in the query state during the query scanning state, wherein the host device sends the ID packets at a preset number of frequency points; A frequency offset setting module (200) is used to set a preset frequency offset value in the direction pointed to by the target frequency point when receiving an ID packet corresponding to the target frequency point. The target frequency point is either the highest or lowest frequency point among a plurality of frequency points. The target frequency point includes: a first target frequency point, which is the lowest frequency point among the plurality of frequency points, and a second target frequency point, which is the highest frequency point among the plurality of frequency points; or, the first target frequency point is the highest frequency point among the plurality of frequency points, and the second target frequency point is the lowest frequency point among the plurality of frequency points; the direction pointed to by the target frequency point is the direction from the first target frequency point to the second target frequency point; specifically, the frequency offset setting module (200) is used to set a preset frequency offset value on the first target frequency point towards the second target frequency point to obtain a first frequency offset frequency point when receiving the first target frequency point. The frequency offset point search module (300) is used to search for and receive the ID packet corresponding to the target frequency point at the frequency point of the preset frequency offset value. The frequency offset point search module (300) is specifically used for: Search and receive the ID packet corresponding to the first target frequency point within a first preset time period (t1) at the first frequency offset point; When an ID packet corresponding to the first target frequency point is received within the first preset time period (t1), the frequency offset direction determination module (400) is executed; in the frequency offset direction determination module (400), the frequency offset direction is the direction from the first target frequency point to the second target frequency point; The frequency offset direction determination module (400) is used to determine the frequency offset direction as the direction pointed to by the target frequency point when an ID packet corresponding to the target frequency point is received at the frequency point of the preset frequency offset value. A polling module (500) is used to poll each frequency point in the direction pointed to by the target frequency point in order to search for and receive the ID packet on each frequency point in the direction pointed to. The frequency offset range determination module (600) is used to take each frequency point that can receive the ID packet in the direction to be pointed as the target frequency offset value range, and to poll and correct the frequency offset value within the target frequency offset value range in order to establish a communication connection with the host device.

6. The crystal-free Bluetooth chip communication device based on frequency offset detection as described in claim 5, characterized in that, The frequency offset point search module (300) is also used for: If no ID packet corresponding to the first target frequency point is received within the first preset time period (t1), then the second frequency offset frequency point is obtained by setting a preset frequency offset value again on the first frequency offset frequency point in the direction pointing to the second target frequency point. Search and receive the ID packet corresponding to the first target frequency point within a first preset time period (t1) at the second frequency offset point; When an ID packet corresponding to the first target frequency point is received within the first preset time period (t1), the frequency offset direction determination module (400) is executed; in the frequency offset direction determination module (400), the frequency offset direction is the direction from the first target frequency point to the second target frequency point; If no ID packet corresponding to the first target frequency point is received within the first preset time period (t1), the frequency offset direction is determined to be the direction from the second target frequency point to the first target frequency point, and the direction from the second target frequency point to the first target frequency point is taken as the direction from which the target frequency point points. The target frequency offset value range is determined by polling each frequency point in turn.

7. The crystal-free Bluetooth chip communication device based on frequency offset detection as described in any one of claims 5-6, characterized in that, The polling module (500) is specifically used for: Starting from the first target frequency point, the frequency offset value is set in the direction of the second target frequency point according to a preset step size to obtain the i-th polling frequency point as the current polling object, where i≥1; Search for and receive the ID packet at the i-th polling frequency point; When the ID packet is received at the i-th polling frequency point, a frequency offset value is set at the i-th polling frequency point in the direction of the second target frequency point by a preset step size to obtain the (i+1)-th polling frequency point, which is then used as the new current polling object to cyclically search for and receive the ID packet at the i-th polling frequency point. If the ID packet is not received at the i-th polling frequency point, then the (i-1)-th polling frequency point is taken as the boundary of the target frequency offset range. The frequency offset range determination module (600) is specifically used to take each frequency point between the first target frequency point and the (i-1)th polling frequency point as the target frequency offset value range.

8. The crystal-free Bluetooth chip communication device based on frequency offset detection as described in claim 7, characterized in that, In the polling module (500), the number of polling frequency points is less than 1 / 10 of the plurality of frequency points.

9. A computer device, characterized in that, include: The method described in any one of claims 1-4 is used for crystal-free Bluetooth chip communication, or the apparatus described in any one of claims 5-8 is used.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program stored in the storage medium is used to be executed by a processor to implement the method as described in any one of claims 1-4.

11. A Bluetooth communication chip having an integrated circuit thereon, characterized in that, The integrated circuit is designed to implement the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Phase-locked loop parameter adjustment method, Bluetooth module, Bluetooth slave device and Bluetooth system

    CN107454555A

  • Frequency offset detection method and system, storage medium and electronic equipment

    CN114363133A