Crystal oscillator-free bluetooth chip pairing method, device and communication system

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

Patent Information

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

AI Technical Summary

Benefits of technology

[0066]依据本发明实施例公开的一种无晶振蓝牙芯片配对方法、装置和通信系统,在无晶振的情况下,先在寻呼扫描状态和查询扫描状态之间切换轮询预设的频偏值,搜索主机设备在查询状态下发送的ID包,在接收到ID包时,表明轮询的频偏值能够与主机设备的频点对应上,于是,向主机设备发送本机的从机设备信息包,并接收主机设备响应于从机设备信息包发送的主机设备信息包,从而能够彼此交换地址信息、编号和设备名称,从而为建立蓝牙配对连接做了准备;在此基础上,切换至寻呼状态,并依据主机设备信息包中加载的所述主机设备的地址信息向所述主机设备发送连接请求,以与主机设备建立蓝牙连接,实现本机与主机设备的蓝牙配对。可见,本发明实施例中,无需外部晶振仍可建立蓝牙配对通信连接,而去除外部晶振后,不仅能够降低低功耗设备的功耗,并且,降低了产品的开发难度、开发成本和周期,使设备更加小型化。综上,针对低功耗设备,确保无晶振蓝牙芯片与其他设备配对建立连接。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121645190B_ABST
    Figure CN121645190B_ABST
Patent Text Reader

Abstract

The application discloses a crystal oscillator-free Bluetooth chip pairing method, device and communication system, wherein the method comprises the following steps: switching a preset frequency offset value in a paging scanning state and a query scanning state to search for an ID package sent by a host device in a query state; when the ID package is received, sending a slave device information package of the local device to the host device; receiving a host device information package sent by the host device in response to the slave device information package, so that the host device and the local device can establish a Bluetooth connection; and sending a connection request to the host device according to address information of the host device loaded in the host device information package in the paging state, so as to establish a Bluetooth connection with the host device, thereby realizing Bluetooth pairing between the local device and the host device. The crystal oscillator-free Bluetooth chip can be paired with other devices to establish a connection for low-power-consumption devices. The power consumption of the low-power-consumption devices is reduced, and the development difficulty, development cost and cycle of products are reduced, so that the devices are more miniaturized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Bluetooth pairing and communication technology, and specifically to a method, apparatus and communication system for pairing Bluetooth chips without a crystal oscillator. Background Technology

[0002] Before two Bluetooth devices can communicate, they need to go through several steps, including device discovery, connection establishment, and parameter negotiation—a process known as Bluetooth device pairing. The successful completion of these steps depends on the Bluetooth devices operating within the Bluetooth communication frequency band. If a Bluetooth device's clock has a frequency deviation (frequency offset), it may be unable to establish a connection with other Bluetooth devices.

[0003] Therefore, in order to provide an accurate reference frequency, the traditional solution uses an external quartz crystal oscillator (crystal oscillator) to provide the clock to the Bluetooth chip. Thanks to the stable oscillation period of the quartz crystal itself, the Bluetooth chip can be guaranteed to work in the target frequency band.

[0004] However, crystal oscillators are one of the most common pain points in radio frequency (RF) layouts, often being the root cause of problems such as noise, crosstalk, or crystal frequency tuning issues. During product development, multiple PCB iterations and redesigns are frequently required to address these problems, increasing development costs and timelines. In practical applications, crystal oscillators often suffer from the following drawbacks: they are prone to noise, crosstalk, or insufficient crystal frequency tuning; they lead to an increase in the number of components and higher costs; quartz crystals increase PCB area, making them unsuitable for miniaturized devices (such as wearable devices and TWS earphones); and crystal oscillators consume power during operation, making them unsuitable for low-power devices.

[0005] Therefore, for low-power devices, ensuring that crystal-free Bluetooth chips pair and establish connections with other devices has become an urgent technical problem to be solved. Summary of the Invention

[0006] Based on the above situation, the main objective of this invention is to provide a crystal-free Bluetooth chip pairing method, apparatus, and communication system to ensure that the crystal-free Bluetooth chip can pair and establish a connection with other devices for low-power devices.

[0007] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0008] In a first aspect, embodiments of the present invention disclose a pairing method for a crystal-free Bluetooth chip, comprising:

[0009] Step S100: Switch between paging scan state and query scan state by polling a preset frequency offset value to search for ID packets sent by the host device in query state, wherein the host device sends ID packets on a preset number of frequency points.

[0010] Step S200: When the ID packet is received, the slave device information packet of the host device is sent to the host device. The slave device information packet is loaded with the address information, number and device name of the host device.

[0011] Step S300: Receive a host device information packet sent by the host device in response to the slave device information packet, so that the host device and the local device can establish a Bluetooth connection. The host device information packet carries the address information, number, and device name of the host device.

[0012] Step S400: Switch to paging mode;

[0013] In step S500, while in paging mode, a connection request is sent to the host device based on the address information of the host device loaded in the host device information packet, so as to establish a Bluetooth connection with the host device and realize Bluetooth pairing between the local device and the host device.

[0014] Optionally, in step S100, the paging scan state and the query scan state are maintained for a preset duration. When no ID packet is received within the preset duration in one state, the state is switched to the other state.

[0015] Step S200 includes: when an ID packet is received in the paging scan state, sending a slave device information packet to enable the master device to discover the local machine.

[0016] Optionally, in step S300, a host device information packet is received in the query scan state;

[0017] Step S300 includes:

[0018] Step S310: Parse the frequency hopping sequence information in the host device information packet so that the local machine and the host device can perform frequency hopping according to the frequency hopping sequence;

[0019] Step S320: Record the current frequency offset value, or the current frequency offset value and the current ambient temperature.

[0020] Secondly, embodiments of the present invention disclose a pairing method for a crystal-free Bluetooth chip, applied to a master earphone. The master earphone and the slave earphone form an earphone pair, and the earphone pair and an external host device form a three-terminal communication system. The pairing method includes:

[0021] The method disclosed in the first aspect above is used to pair with an external host device via Bluetooth.

[0022] Optionally, the method may also include:

[0023] Step S10: Switch between query scan state and query state to poll a preset frequency offset value without entering paging scan state, so as to establish Bluetooth communication with the slave earpiece. The master earpiece and the slave earpiece know each other's address information in advance.

[0024] Step S20: Pair with an external host device via Bluetooth and obtain a first frequency offset value. The first frequency offset value is the frequency offset value of the main earphone relative to the host device.

[0025] Step S30: Send the first frequency offset value to the slave earphone so that the slave earphone can correct its own frequency offset value according to the first frequency offset value.

[0026] Optionally, before step S10, the method further includes: exchanging address information between the main earphone and the secondary earphone via the charging case, so that the main earphone and the secondary earphone can recognize each other.

[0027] Optionally, it also includes:

[0028] Step S40: Operate as the host in query mode to perform frequency offset correction with the slave headset;

[0029] Step S50: Send a connection request to the slave earphone using the natural frequency before correction by the master earphone chip. The connection request includes the address information of the slave earphone and the initial connection parameters.

[0030] Step S60: Wait for the slave earphone to establish a connection with the master earphone using a polling frequency offset method, wherein the slave earphone switches between a query scan state and a query state.

[0031] Step S70: After establishing a connection with the slave earphone, a second frequency offset value is obtained. The second frequency offset value is the frequency offset value of the slave earphone relative to the master earphone before correction. It is used to correct the frequency offset value of the slave earphone relative to the master device together with the first frequency offset value.

[0032] Thirdly, embodiments of the present invention disclose a crystal-free Bluetooth chip pairing device, comprising:

[0033] The first frequency offset polling module is used to switch between paging scan state and query scan state to poll a preset frequency offset value in order to search for ID packets sent by the host device in query state, wherein the host device sends ID packets on a preset number of frequency points.

[0034] The information packet sending module is used to send a slave device information packet to the host device when an ID packet is received. The slave device information packet is loaded with the address information, number and device name of the host device.

[0035] The packet receiving module is used to receive the host device information packet sent by the host device in response to the slave device information packet, so that the host device and the local device can establish a Bluetooth connection. The host device information packet carries the address information, number and device name of the host device.

[0036] The status switching module is used to switch to the paging status;

[0037] The first request sending module is used to send a connection request to the host device in paging state based on the address information of the host device loaded in the host device information packet, so as to establish a Bluetooth connection with the host device and realize Bluetooth pairing between the local device and the host device.

[0038] Optionally, in the frequency offset polling module, the paging scan state and the query scan state are each maintained for a preset duration. When no ID packet is received within the preset duration in one state, the system switches to the other state.

[0039] The packet sending module includes: when an ID packet is received in paging scan state, sending a slave device information packet to enable the master device to discover the host device.

[0040] Optionally, in the packet receiving module, the host device packet is received during the query scan state;

[0041] The packet receiving module is specifically used to parse the frequency hopping sequence information in the host device's packet so that the local device and the host device can perform frequency hopping according to the frequency hopping sequence; it is also used to record the current frequency offset value, or the current frequency offset value and the current ambient temperature.

[0042] Fourthly, embodiments of the present invention disclose a crystal-free Bluetooth chip pairing device, applied to a master earphone, wherein the master earphone and the slave earphone constitute an earphone pair, and the earphone pair and an external host device constitute a three-terminal communication system. The pairing device includes:

[0043] The device disclosed in the third aspect above is used to perform Bluetooth pairing with an external host device.

[0044] Optionally, the device further includes:

[0045] The second frequency offset polling module is used to switch between polling a preset frequency offset value between the query scan state and the query state without entering the paging scan state, so as to establish Bluetooth communication with the slave earpiece. The master earpiece and the slave earpiece know each other's address information in advance.

[0046] The first frequency offset value acquisition module is used to pair with an external host device via Bluetooth and obtain the first frequency offset value, which is the frequency offset value of the main earphone relative to the host device.

[0047] The first frequency offset value sending module is used to send the first frequency offset value to the slave earphone so that the slave earphone can correct its own frequency offset value according to the first frequency offset value.

[0048] Optionally, it also includes: an address exchange module for exchanging address information with the slave earphone via the charging case, so that the master earphone and the slave earphone can recognize each other.

[0049] Optionally, it also includes:

[0050] The query module is used to operate as the host in query mode to perform frequency offset correction with the slave headphones;

[0051] The second request sending module is used to send a connection request to the slave earphone using the natural frequency before correction by the master earphone chip. The connection request includes the address information of the slave earphone and the initial connection parameters.

[0052] The connection waiting module is used to wait for the slave earphone to establish a connection with the master earphone using a polling frequency offset method, wherein the slave earphone switches between a query scanning state and a query state;

[0053] The second frequency offset value acquisition module is used to obtain the second frequency offset value after establishing a connection with the slave earphone. The second frequency offset value is the frequency offset value of the slave earphone relative to the master earphone before correction, and is used to correct the frequency offset value of the slave earphone relative to the master device together with the first frequency offset value.

[0054] Fifthly, embodiments of the present invention disclose a computer device, comprising:

[0055] Pairing of crystal-free Bluetooth chips is performed using the methods described in the first or second aspect above, or using a device that includes the methods described in the third or fourth aspect above.

[0056] In a sixth aspect, 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 being executed by a processor to implement the methods of the first or second aspect described above.

[0057] In a seventh aspect, embodiments of the present invention disclose a Bluetooth communication chip having an integrated circuit, the integrated circuit being designed to implement the methods of the first or second aspect described above.

[0058] Eighthly, embodiments of the present invention disclose a crystal-free Bluetooth chip pairing communication system, comprising:

[0059] Host equipment;

[0060] The slave device uses the method described in the first or second aspect above to perform pairing with a crystal oscillator-less Bluetooth chip, or includes the apparatus described in the third or fourth aspect above.

[0061] Ninthly, embodiments of the present invention disclose a crystal-free Bluetooth chip pairing communication system, comprising:

[0062] Host equipment;

[0063] From headphones;

[0064] The main earphone and the slave earphone form an earphone pair. The earphone pair and the external host device form a three-terminal communication system. The main earphone uses the method described in the second aspect above for pairing with a crystal oscillator-less Bluetooth chip, or includes the device described in the fourth aspect above.

[0065] Beneficial effects:

[0066] According to an embodiment of the present invention, a method, apparatus, and communication system for pairing Bluetooth chips without a crystal oscillator are disclosed. In the absence of a crystal oscillator, the system first polls a preset frequency offset value between a paging scan state and a query scan state to search for an ID packet sent by the host device in the query state. Upon receiving an ID packet, it indicates that the polled frequency offset value corresponds to the frequency point of the host device. Therefore, the system sends a slave device information packet to the host device and receives a host device information packet sent by the host device in response to the slave device information packet. This allows for the exchange of address information, device number, and device name, thus preparing for establishing a Bluetooth pairing connection. Based on this, the system switches to a paging state and sends a connection request to the host device according to the address information of the host device loaded in the host device information packet to establish a Bluetooth connection, achieving Bluetooth pairing between the local device and the host device. It is evident that in this embodiment of the present invention, a Bluetooth pairing communication connection can be established without an external crystal oscillator. Removing the external crystal oscillator not only reduces the power consumption of low-power devices but also reduces the development difficulty, development cost, and cycle time of the product, making the device more miniaturized. In summary, for low-power devices, ensure that the crystal-free Bluetooth chip pairs with other devices to establish a connection.

[0067] 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

[0068] The embodiments of the present invention will now be described with reference to the accompanying drawings. In the drawings:

[0069] Figure 1 This is a flowchart of a crystal-free Bluetooth chip pairing method disclosed in this embodiment;

[0070] Figure 2 This is a flowchart of a pairing method for a crystal-free Bluetooth chip used in a main earphone, as disclosed in this embodiment.

[0071] Figure 3 This is a schematic diagram of a crystal-free Bluetooth chip pairing device disclosed in this embodiment;

[0072] Figure 4 This is a schematic diagram of a pairing device for a crystal-free Bluetooth chip in a main earphone, as disclosed in this embodiment. Detailed Implementation

[0073] 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.

[0074] 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.

[0075] 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."

[0076] 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.

[0077] In this embodiment, "no crystal oscillator" means that no crystal oscillator is configured for the Bluetooth chip; instead, an internal oscillator is used to generate the clock. Generally, there is a deviation between the frequency of the internal oscillator and the standard frequency, which prevents the Bluetooth chip from establishing a communication connection with other Bluetooth devices.

[0078] To ensure that crystal-free Bluetooth chips can pair and establish connections with other devices, this embodiment discloses a pairing method for crystal-free Bluetooth chips. Please refer to [link / reference]. Figure 1 , Figure 1 This is a flowchart illustrating a crystal-free Bluetooth chip pairing method disclosed in this embodiment. For pairing between a host device and a slave device, this crystal-free Bluetooth chip pairing method is applied to the slave device. Please refer to... Figure 1 The pairing method for Bluetooth chips without crystal oscillators includes steps S100, S200, S300, S400, and S500, wherein:

[0079] Step S100 involves switching between paging scan state and query scan state, polling a preset frequency offset value to search for ID packets sent by the host device in query state. In this embodiment, the host device sends ID packets on several preset frequency points. Specifically, the host device sends ID packets in query state according to the standard Bluetooth protocol, 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, when the slave device is in the paging scan state (inquiry_scan receiving state), it can search for the ID packet sent by the host device in the inquiry state, thereby allowing the host to discover the slave device and obtain each other's addresses. When the slave device is working in the query scan state (page scan state), it can exchange information such as frequency points and frequency hopping sequences with the host device to establish a pairing connection. In this embodiment, since the slave device does not have a crystal oscillator, but directly uses an internal oscillator to generate the clock, there is a deviation from the standard frequency. Therefore, in this embodiment, several frequency offset values ​​are preset in the slave device. During the switching between the paging scan state and the query scan state, these frequency offset values ​​can be polled so that at a certain frequency offset value, the frequency of the slave device plus that frequency offset value can correspond to the frequency of the host device, thereby establishing a Bluetooth pairing connection.

[0080] Step S200: Upon receiving the ID packet, the slave device information packet is sent to the host device. In this embodiment, the slave device information packet can be an FHS or EIR packet, which carries the slave device's address information, serial number, and device name. The host device can parse the slave device information packet to obtain the slave device's address, name, and other information, preparing for connection establishment. In a specific embodiment, when the slave device receives the ID packet, it indicates that the current frequency offset value corresponds to the host device's frequency point; therefore, a connection can be established with the host device under this frequency offset value.

[0081] Step S300: The host device receives a host device information packet sent in response to the slave device information packet, enabling the host device and the local device to establish a Bluetooth connection. Specifically, after receiving the slave device information packet, the host device can discover the slave device through its address information, serial number, etc., and then sends its own host device information packet to the slave device. In this embodiment, the host device information packet carries the host device's address information, serial number, and device name. The slave device can obtain the host device's address, name, and other information by parsing the host device information packet, preparing for connection establishment.

[0082] Step S400: Switch to paging state. Specifically, after the master device and slave device obtain each other's address information, number, and device name, the slave device can switch to paging state (Page state) and request to establish a connection.

[0083] In step S500, while in paging mode, the slave device sends a connection request to the host device based on the host device's address information loaded in the host device information packet to establish a Bluetooth connection with the host device. Specifically, in paging mode (Page mode), the slave device pages the host device, and after the host device receives the connection request, Bluetooth pairing between the slave device and the host device can be achieved.

[0084] In an optional embodiment, in step S100, the paging scan state (Inquiry Scan state) and the query scan state (Page Scan state) are each maintained for a preset duration. When no ID packet is received within the preset duration in one state, the system switches to the other state. Step S200 includes: when an ID packet is received in the paging scan state (Inquiry Scan state), a slave device information packet is sent to enable the master device to discover the host device. Specifically, as follows:

[0085] In the inquiry scan state, an initial frequency offset value is first set, and then the system searches for ID packets sent by the host device in the inquiry state under this initial frequency offset value. If no ID packet is received within a preset time period t1, the system switches to the next frequency offset value and continues searching for ID packets sent by the host device in the inquiry state. If an ID packet is received within the preset time period t1, the system sends a slave device information packet to the host device. In this embodiment, multiple frequency offset values ​​are preset within the range of -12MHz to 12MHz, allowing the slave device to switch between different frequency offset values ​​in the inquiry scan state.

[0086] In Page Scan mode, the initial frequency offset value is first set, and then the system searches for ID packets sent by the host device in Page Scan mode under this initial frequency offset value, waiting for the host device's connection request. If no ID packet is received within a preset time t2, the system switches to the next frequency offset value and continues searching for ID packets sent by the host device in Page Scan mode. If an ID packet is received within the preset time t2, the system sends the slave device's device number to the host device and receives the host device information packet sent by the host device. The system parses the host device information packet to obtain the host device's address, name, frequency point, frequency hopping sequence, and other information, thereby enabling the system to establish a Bluetooth pairing connection with the host device.

[0087] In a specific embodiment, in step S300, a host device information packet is received in the query scan state (Page Scan state); step S300 includes: step S310, parsing the frequency hopping sequence information in the host device information packet so that the local device and the host device perform frequency hopping according to the frequency hopping sequence; step S320, recording the current frequency offset value, or the current frequency offset value and the current ambient temperature. Specifically as follows:

[0088] Upon receiving a host device information packet from the host device, the slave device can record the current frequency offset value or the current frequency offset value combined with the current ambient temperature. This record facilitates subsequent connection establishment. Specifically, upon startup, before executing step S100, the slave device can check for previously connected host device address records. If no record exists, it proceeds to step S100; otherwise, it directly proceeds to step S400 to switch to paging mode and request connection establishment. This saves on frequency offset polling operations, improves connection efficiency, and reduces power consumption associated with polling.

[0089] In this embodiment, by saving the current frequency offset value and temperature after each connection is established, the slave device will check for recorded frequency offset and temperature values ​​upon the next startup. If a record exists, and the difference between the recorded temperature value and the current ambient temperature is less than a preset threshold, the current frequency offset value is used to establish the connection. If no frequency offset or temperature value is recorded, or the difference between the recorded temperature value and the current temperature value is greater than the preset threshold, a connection is established using a frequency offset value polling method. This avoids the slave device repeatedly polling for the frequency offset value after each startup.

[0090] It should be noted that since Bluetooth chips do not have crystal oscillators, their internal oscillator frequency is affected by ambient temperature. When the ambient temperature changes significantly, the frequency offset will change, so it may be necessary to re-evaluate / correct the frequency offset.

[0091] In practical applications, there are often multiple slave devices. For example, Bluetooth headsets typically consist of a master headset and a slave headset, forming a headset pair for use. However, different headsets use different Bluetooth chips, resulting in frequency offsets between them. To correct these frequency offsets between headset pairs and between the headset pair and the host device, this embodiment also discloses a crystal-free Bluetooth chip pairing method applied to a master headset. The master headset and slave headset form a headset pair, and the headset pair and an external host device form a three-terminal communication system. This pairing method includes: performing Bluetooth pairing with the external host device using the method disclosed in the above embodiment.

[0092] Please refer to Figure 2 , Figure 2This is a flowchart of a pairing method for a crystal-free Bluetooth chip applied to a main earphone, as disclosed in this embodiment. The pairing method further includes steps S10, S20, and S30, wherein:

[0093] Step S10 involves switching between the query scan state and the query state, polling a preset frequency offset value without entering the paging scan state, to establish Bluetooth communication with the slave earpiece. Specifically, the master and slave earpieces are usually from the same manufacturer, so they can learn each other's address information through methods such as proprietary protocols or wired connections. In this embodiment, since the master and slave earpieces know each other's address information in advance, the master earpiece does not need to enter the paging scan state (Inquiry Scan state) to learn the slave earpiece's address information. Instead, it directly switches between the query scan state (Page Scan state) and the query state (Page state) to establish Bluetooth communication with the slave earpiece by polling the frequency offset value.

[0094] To achieve prior knowledge of each other's address information, reduce waiting time, and lower power consumption in the InquiryScan state, in an optional embodiment, before step S10, the method further includes exchanging address information between the master and slave earphones via the charging case, enabling them to recognize each other. Specifically, the master and slave earphones are equipped with the same charging case. When the master and slave earphones are in the same charging case, they can interact with each other via the communication contacts of the charging case, thereby exchanging their address information. In this embodiment, by reusing the communication contacts of the charging case, prior knowledge of each other's address information is achieved, reducing waiting time and lowering power consumption in the InquiryScan state.

[0095] Step S20: Bluetooth pairing with an external host device is performed, and a first frequency offset value f1 is obtained. In this embodiment, the first frequency offset value f1 is the frequency offset value of the master earphone relative to the host device. Specifically, the master earphone, acting as a slave device, performs Bluetooth pairing with the external host device, thereby obtaining the frequency offset value of the master earphone relative to the host device, i.e., the first frequency offset value f1. In specific implementation, the method disclosed in the above embodiment can be referred to for Bluetooth pairing.

[0096] Step S30: The first frequency offset value f1 is sent to the slave earphone so that the slave earphone can correct its own frequency offset value according to the first frequency offset value f1. Specifically, since the slave earphone also has a frequency offset relative to the host device, after the master earphone sends the first frequency offset value f1 to the slave earphone, the slave earphone can correct its own frequency offset value according to the first frequency offset value f1, thereby corresponding with the frequency point of the host device and achieving the purpose of monitoring the host device.

[0097] To more accurately correct the frequency offset of the headphones, in an optional embodiment, the pairing method for the crystal-free Bluetooth chip further includes steps S40, S50, S60, and S70. In this embodiment, the order of steps S40, S50, S60, and S70 relative to steps S20 and S30 is not limited.

[0098] Step S40: The master earpiece operates in query mode as the host to perform frequency offset correction with the slave earpiece. Specifically, the master earpiece operates in query mode (Page mode) as the host. In this state, the frequency of the master earpiece is regarded as the standard frequency. The slave earpiece interacts with the master earpiece as a slave to perform frequency offset correction relative to the master earpiece's frequency. For specific correction methods, please refer to the method disclosed in the above embodiments.

[0099] Step S50: Send a connection request to the slave earphone using the natural frequency before correction by the master earphone chip. Specifically, the master earphone operates in query state (Page state, host mode state), does not set a frequency offset value, and directly sends a connection request to the slave earphone using the natural frequency before correction. The connection request includes the slave earphone's address information and initial connection parameters.

[0100] Step S60: Wait for the slave earpiece to establish a connection with the master earpiece using a polling frequency offset method. During the connection establishment process between the master and slave earpieces, the slave earpiece switches between a query scan state (Page Scan state) and a query state (Page state). The slave earpiece attempts to establish a connection with the host device (i.e., the master earpiece) using a polling frequency offset method. For details, please refer to the method for establishing a connection between the slave device and the host device using polling frequency offset disclosed in the above embodiments, which will not be repeated here.

[0101] Step S70: After establishing a connection with the slave earphone, a second frequency offset value f2 is obtained. In this embodiment, the second frequency offset value f2 is the frequency offset value of the slave earphone relative to the master earphone before correction, used to correct the frequency offset value of the slave earphone relative to the master device together with the first frequency offset value f1. Specifically, the master earphone has a frequency offset value relative to the external master device, namely the first frequency offset value f1, while the slave earphone has a frequency offset value relative to the master earphone before correction, namely the second frequency offset value f2. Therefore, the frequency offset value of the slave earphone relative to the master device is the superposition of the first frequency offset value f1 and the second frequency offset value f2. Thus, the frequency offset value of the slave earphone relative to the master device can be determined to be f1+f2. After the slave earphone corrects its own frequency according to the frequency offset value f1+f2, it can correspond to the frequency of the master device, thereby enabling it to listen to the audio data sent by the master device. It should be noted that when superimposing the first frequency offset value f1 and the second frequency offset value f2, attention should be paid to the direction of frequency offset. For example, if both the first frequency offset value f1 and the second frequency offset value f2 are positive (or negative), then the frequency offset value of the headphones relative to the host device is the sum of the absolute values ​​of the first frequency offset value f1 and the second frequency offset value f2, and the direction of frequency offset is positive (or negative). As another example, if one of the first frequency offset values ​​f1 and the other of the second frequency offset value f2 is positive and the other is negative, then the frequency offset value of the headphones relative to the host device is the subtraction of the absolute values ​​of the first frequency offset value f1 and the second frequency offset value f2, and the direction of frequency offset is the direction corresponding to the frequency offset value with the larger absolute value.

[0102] This embodiment also discloses a crystal-free Bluetooth chip pairing device; please refer to [reference needed]. Figure 3 , Figure 3 This is a schematic diagram of a crystal-free Bluetooth chip pairing device disclosed in this embodiment. The crystal-free Bluetooth chip pairing device includes: a first frequency offset polling module 100, an information packet sending module 200, an information packet receiving module 300, a state switching module 400, and a first request sending module 500, wherein:

[0103] The first frequency offset polling module 100 is used to switch between paging scan state and query scan state to poll a preset frequency offset value in order to search for ID packets sent by the host device in query state, wherein the host device sends ID packets on a preset number of frequency points.

[0104] The information packet sending module 200 is used to send a slave device information packet to the host device when an ID packet is received. The slave device information packet is loaded with the address information, number and device name of the host device.

[0105] The packet receiving module 300 is used to receive the host device information packet sent by the host device in response to the slave device information packet, so that the host device and the local device can establish a Bluetooth connection. The host device information packet carries the address information, number and device name of the host device.

[0106] The status switching module 400 is used to switch to the paging status;

[0107] The first request sending module 500 is used to send a connection request to the host device in paging state based on the address information of the host device loaded in the host device information packet, so as to establish a Bluetooth connection with the host device and realize Bluetooth pairing between the local device and the host device.

[0108] In an optional embodiment, in the frequency offset polling module 100, the paging scan state and the query scan state are maintained for a preset duration. When no ID packet is received within the preset duration in one state, the system switches to the other state.

[0109] The information packet sending module 200 includes: when an ID packet is received in the paging scan state, sending a slave device information packet to enable the master device to discover the local machine.

[0110] In an optional embodiment, the information packet receiving module 300 receives the host device information packet during the query scan state;

[0111] The packet receiving module 300 is specifically used to parse the frequency hopping sequence information in the host device's packet so that the local device and the host device can perform frequency hopping according to the frequency hopping sequence; it is also used to record the current frequency offset value, or the current frequency offset value and the current ambient temperature.

[0112] This embodiment also discloses a crystal-free Bluetooth chip pairing device, applied to a master earphone. The master earphone and the slave earphone form an earphone pair, and the earphone pair and an external host device form a three-terminal communication system. The pairing device includes:

[0113] The device disclosed in the above embodiments is used to pair with an external host device via Bluetooth.

[0114] Please refer to Figure 4 , Figure 4 This is a schematic diagram of a pairing device for a crystal-free Bluetooth chip in a main earphone, as disclosed in this embodiment. The device further includes: a second frequency offset polling module 10, a first frequency offset value acquisition module 20, and a first frequency offset value transmission module 30, wherein:

[0115] The second frequency offset polling module 10 is used to switch between polling a preset frequency offset value between the query scan state and the query state without entering the paging scan state, so as to establish Bluetooth communication with the slave headset. The master headset and the slave headset know each other's address information in advance.

[0116] The first frequency offset value acquisition module 20 is used to pair with an external host device via Bluetooth and obtain the first frequency offset value f1. The first frequency offset value f1 is the frequency offset value of the main earphone relative to the host device.

[0117] The first frequency offset value sending module 30 is used to send the first frequency offset value f1 to the slave earphone so that the slave earphone can correct its own frequency offset value according to the first frequency offset value f1.

[0118] In an optional embodiment, it further includes an address exchange module for exchanging respective address information with the earphone via the charging case, so that the master earphone and the slave earphone can recognize each other.

[0119] In an optional embodiment, it further includes: a query module 40, a second request sending module 50, a connection waiting module 60, and a second frequency offset value acquisition module 70, wherein:

[0120] The query module 40 is used to operate in query mode as the host to perform frequency offset correction with the earphone;

[0121] The second request sending module 50 is used to send a connection request to the slave earphone using the natural frequency before correction by the master earphone chip. The connection request includes the address information of the slave earphone and the initial connection parameters.

[0122] The connection waiting module 60 is used to wait for the slave earphone to establish a connection with the master earphone using a polling frequency offset method, wherein the slave earphone switches between a query scanning state and a query state;

[0123] The second frequency offset value acquisition module 70 is used to obtain the second frequency offset value f2 after establishing a connection with the slave earphone. The second frequency offset value f2 is the frequency offset value of the slave earphone relative to the master earphone before correction, and is used to correct the frequency offset value of the slave earphone relative to the master device together with the first frequency offset value f1.

[0124] This embodiment also discloses a computer device, including:

[0125] Pairing of crystal-free Bluetooth chips can be performed using the methods disclosed in the above embodiments, or the apparatus disclosed in the above embodiments can be used.

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

[0127] This embodiment also discloses a crystal-free Bluetooth chip pairing communication system, including: a host device and a slave device, wherein the slave device performs crystal-free Bluetooth chip pairing using the method disclosed in the above embodiment, or includes the apparatus disclosed in the above embodiment.

[0128] This embodiment also discloses a crystal-free Bluetooth chip pairing communication system, including: a host device, a slave earphone and a master earphone, the master earphone and the slave earphone constitute an earphone pair, the earphone pair and the external host device constitute a three-terminal communication system, the master earphone uses the method for pairing with the crystal-free Bluetooth chip disclosed in the above embodiment for the master earphone, or includes the device for pairing with the master earphone disclosed in the above embodiment.

[0129] According to an embodiment of the present invention, a method, apparatus, and communication system for pairing Bluetooth chips without a crystal oscillator are disclosed. In the absence of a crystal oscillator, the system first polls a preset frequency offset value between a paging scan state and a query scan state to search for an ID packet sent by the host device in the query state. Upon receiving an ID packet, it indicates that the polled frequency offset value corresponds to the frequency point of the host device. Therefore, the system sends a slave device information packet to the host device and receives a host device information packet sent by the host device in response to the slave device information packet. This allows for the exchange of address information, device number, and device name, thus preparing for establishing a Bluetooth pairing connection. Based on this, the system switches to a paging state and sends a connection request to the host device according to the address information of the host device loaded in the host device information packet to establish a Bluetooth connection, achieving Bluetooth pairing between the local device and the host device. It is evident that in this embodiment of the present invention, a Bluetooth pairing communication connection can be established without an external crystal oscillator. Removing the external crystal oscillator not only reduces the power consumption of low-power devices but also reduces the development difficulty, development cost, and cycle time of the product, making the device more miniaturized. In summary, for low-power devices, ensure that the crystal-free Bluetooth chip pairs with other devices to establish a connection.

[0130] 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.

[0131] 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 that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0132] 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.

[0133] 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.

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

[0135] 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 pairing method, applied to a master earphone, wherein the master earphone and the slave earphone constitute an earphone pair, and the earphone pair and an external host device constitute a three-terminal communication system, characterized in that, The pairing method includes: Step S100: Switch between paging scan state and query scan state by polling a preset frequency offset value to search for ID packets sent by the host device in query state, wherein the host device sends the ID packets on a preset number of frequency points; Step S200: When the ID packet is received, a slave device information packet is sent to the host device. The slave device information packet contains the address information, number, and device name of the host device. Step S300: Receive a host device information packet sent by the host device in response to the slave device information packet, so that the host device and the local device can establish a Bluetooth connection. The host device information packet carries the address information, number, and device name of the host device. Step S400: Switch to paging mode; Step S500: In the paging state, a connection request is sent to the host device based on the address information of the host device loaded in the host device information packet, so as to establish a Bluetooth connection with the host device and realize Bluetooth pairing between the local device and the host device. Also includes: Step S10: Switch between query scan state and query state by polling a preset frequency offset value without entering paging scan state, in order to establish Bluetooth communication with the slave earpiece, wherein the master earpiece and the slave earpiece know each other's address information in advance. Step S20: Perform Bluetooth pairing with an external host device and obtain a first frequency offset value, wherein the first frequency offset value is the frequency offset value of the main earphone relative to the host device; Step S30: Send the first frequency offset value to the slave earphone so that the slave earphone corrects its own frequency offset value according to the first frequency offset value.

2. The pairing method for a crystal-free Bluetooth chip as described in claim 1, characterized in that, In step S100, the paging scan state and the query scan state are each maintained for a preset duration. When no ID packet is received within the preset duration of one state, the state is switched to the other. Step S200 includes: when the ID packet is received in the paging scan state, sending the slave device information packet so that the host device can discover the host device.

3. The pairing method for a crystal-free Bluetooth chip as described in claim 2, characterized in that, In step S300, the host device information packet is received in the query scan state; Step S300 includes: Step S310: Parse the frequency hopping sequence information in the host device information packet so that the local machine and the host device perform frequency hopping according to the frequency hopping sequence; Step S320: Record the current frequency offset value, or the current frequency offset value and the current ambient temperature.

4. The crystal-free Bluetooth chip pairing method as described in claim 1, characterized in that, Before step S10, the method further includes: exchanging address information between the main earphone and the secondary earphone via the charging case, so that the main earphone and the secondary earphone can recognize each other.

5. The crystal-free Bluetooth chip pairing method as described in claim 4, characterized in that, Also includes: Step S40: Operate as the host in query mode to perform frequency offset correction with the slave headset; Step S50: Send a connection request to the slave earphone using the natural frequency before correction by the master earphone chip. The connection request includes the address information of the slave earphone and the initial connection parameters. Step S60: Wait for the slave earphone to establish a connection with the master earphone using a polling frequency offset method, wherein the slave earphone switches between a query scanning state and a query state; Step S70: After establishing a connection with the slave earphone, a second frequency offset value is obtained. The second frequency offset value is the frequency offset value of the slave earphone relative to the master earphone before correction, which is used to correct the frequency offset value of the slave earphone relative to the host device together with the first frequency offset value.

6. A crystal-free Bluetooth chip pairing device, applied to a master earphone, wherein the master earphone and the slave earphone form an earphone pair, and the earphone pair and an external host device form a three-terminal communication system, characterized in that, The pairing device includes: The first frequency offset polling module (100) is used to switch between paging scan state and query scan state to poll a preset frequency offset value in order to search for ID packets sent by the host device in query state, wherein the host device sends the ID packets at a preset number of frequency points. The information packet sending module (200) is used to send a slave device information packet of the local machine to the host device when the ID packet is received. The slave device information packet is loaded with the address information, number and device name of the local machine. The information packet receiving module (300) is used to receive the host device information packet sent by the host device in response to the slave device information packet, so that the host device and the local device can establish a Bluetooth connection. The host device information packet is loaded with the address information, number and device name of the host device. The state switching module (400) is used to switch to the paging state; The first request sending module (500) is used to send a connection request to the host device in the paging state according to the address information of the host device loaded in the host device information packet, so as to establish a Bluetooth connection with the host device and realize Bluetooth pairing between the local device and the host device. The device further includes: The second frequency offset polling module (10) is used to switch between polling a preset frequency offset value between the query scan state and the query state without entering the paging scan state, so as to establish Bluetooth communication with the slave earpiece, wherein the master earpiece and the slave earpiece know each other's address information in advance. The first frequency offset value acquisition module (20) is used to pair with an external host device via Bluetooth and obtain a first frequency offset value, wherein the first frequency offset value is the frequency offset value of the main earphone relative to the host device. The first frequency offset value sending module (30) is used to send the first frequency offset value to the slave earphone so that the slave earphone corrects its own frequency offset value according to the first frequency offset value.

7. The crystal-free Bluetooth chip pairing device as described in claim 6, characterized in that, In the first frequency offset polling module (100), the paging scan state and the query scan state are each maintained for a preset duration. When no ID packet is received within the preset duration of a state, the state is switched to the other state. The information packet sending module (200) includes: when the ID packet is received in the paging scan state, sending the slave device information packet so that the host device can discover the host device.

8. The crystal-free Bluetooth chip pairing device as described in claim 7, characterized in that, In the information packet receiving module (300), the host device information packet is received during the query scan state; The information packet receiving module (300) is specifically used to parse the frequency hopping sequence information in the host device information packet so that the local device and the host device can perform frequency hopping according to the frequency hopping sequence; it is also used to record the current frequency offset value, or the current frequency offset value and the current ambient temperature.

9. The crystal-free Bluetooth chip pairing device as described in claim 6, characterized in that, Also includes: The address exchange module is used to exchange address information with the earbuds via the charging case, so that the master earbud and the slave earbud can recognize each other.

10. The crystal-free Bluetooth chip pairing device as described in claim 6, characterized in that, Also includes: The query module (40) is used to work as the host in the query state to perform frequency offset correction with the earphone; The second request sending module (50) is used to send a connection request to the slave earphone using the natural frequency before correction by the master earphone chip. The connection request includes the address information of the slave earphone and the initial connection parameters. A connection waiting module (60) is used to wait for the slave earphone to establish a connection with the master earphone by polling the frequency offset value, wherein the slave earphone switches between a query scanning state and a query state; The second frequency offset value acquisition module (70) is used to obtain a second frequency offset value after establishing a connection with the slave earphone. The second frequency offset value is the frequency offset value of the slave earphone relative to the master earphone before correction. It is used to correct the frequency offset value of the slave earphone relative to the host device together with the first frequency offset value.

11. A computer device, characterized in that, include: Pairing of a crystal-free Bluetooth chip can be performed using the method described in any one of claims 1-5, or the device described in any one of claims 6-10 can be used.

12. 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-5.

13. 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-5.

14. A crystal-free Bluetooth chip pairing and communication system, characterized in that, include: Host equipment; The slave device performs pairing with a crystal-free Bluetooth chip using the method described in any one of claims 1-5, or includes the apparatus described in any one of claims 6-10.

15. A crystal-free Bluetooth chip pairing and communication system, characterized in that, include: Host equipment; From headphones; The main earphone, together with the slave earphone, forms an earphone pair, and the earphone pair forms a three-terminal communication system with an external host device. The main earphone is paired with a crystal-free Bluetooth chip using the method described in any one of claims 1-5, or includes the device described in any one of claims 6-10.

Citation Information

Patent Citations

  • Wireless communication carrier frequency oscillator correction method and system without crystal oscillator

    CN106789785A

  • Radio communication system

    CN1475064A