Bluetooth wake-up method and device, and storage medium
By adopting the design of multiple cycle wake-up frames in low-power Bluetooth devices, combined with channel estimation and verification processes, the problem of increasing delay in the device discovery is solved, and the effect of low power consumption and rapid connection building is achieved.
Patent Information
- Application Number
- CN202410178099.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-08
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2044-02-08
AI Technical Summary
In low-power Bluetooth devices, sending and scanning BLE broadcast packets with lower duty cycles leads to an increase in device discovery delay, affecting the establishment of a connection and reducing user experience.
The broadcast channel is scanned within a preset time interval, receive and verify wake-up frames, transmit data through Bluetooth connection, and use multiple loop wake-up frame design to reduce duty cycle and wake-up delay, combining channel estimation, trigger sequence and verification part verification process.
It reduces the power consumption of the wake-up end of the BLE, improves the speed of device discovery and connection building, and improves the user experience.
Smart Images

Figure CN120499784A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a Bluetooth wake-up method, device, and storage medium. Background Art
[0002] At present, Bluetooth low energy (BLE) technology is widely used in smart devices such as IoT devices, smart home devices and wearable devices.
[0003] Due to factors such as size and portability, smart devices typically have small battery capacities. When not in use, disconnecting the Bluetooth connection can reduce power consumption and extend battery life. To maintain Bluetooth connectivity, the BLE wakeup and wakeup endpoints can use a duty cycle to send and scan BLE advertising packets. However, for scenarios requiring a strong device connection, such as answering calls, multi-screen collaboration, and Super Connect, a low duty cycle can increase device discovery latency, hindering connection establishment and ultimately reducing the user experience. Summary of the Invention
[0004] The present application provides a Bluetooth wake-up method, device, and storage medium, which solve the delay problem that exists when sending and scanning BLE broadcast packets with a low duty cycle.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] In the first aspect, an embodiment of the present application provides a Bluetooth wake-up method. The method can be applied to a first electronic device. The method may include: the first electronic device scans on the broadcast channel at a preset time interval, the preset time interval is a first preset duration, and the duration of each scan (i.e., the duration of the scanning window) is a second preset duration; the first electronic device verifies the first wake-up frame received within the second preset duration, and transmits business data to the second electronic device through a Bluetooth connection if the first wake-up frame is verified, and the first wake-up frame is one of the m wake-up frames of the first broadcast packet sent by the second electronic device. The first preset duration is less than or equal to the reception duration of (m-1) wake-up frames, and the second preset duration is greater than or equal to the reception duration of one wake-up frame. m is an integer greater than 1.
[0007] In the above solution, since the BLE wake-up end can cycle the wake-up frame multiple times in a BLE advertising packet, the BLE woken end can detect whether the information is being sent on the advertising channel based on the wake-up frame transmission duration design and a low duty cycle. Once the BLE woken end detects that information is being sent on the advertising channel, it verifies the wake-up frame. On the one hand, the low duty cycle design reduces the power consumption of the BLE woken end. On the other hand, since the BLE woken end can receive a complete wake-up frame in a BLE advertising packet, the wake-up latency of this solution is less than the duration of a BLE advertising packet, which improves the speed of device discovery and connection establishment.
[0008] In one possible implementation, the first wake-up frame includes: a channel estimation portion, a trigger sequence, and a data and check portion. The first electronic device verifies the first wake-up frame received within a second preset duration and, if the first wake-up frame passes verification, transmits service data with the second electronic device via a Bluetooth connection. This includes: the first electronic device verifies the channel estimation portion; if the channel estimation portion passes verification, the first electronic device receives the trigger sequence and verifies the trigger sequence; if the trigger sequence passes verification, the first electronic device receives the data and check portion and verifies the data and check portion; if the data and check portion passes verification, the first electronic device transmits service data with the second electronic device via the Bluetooth connection. It should be noted that the data and check portion may be encoded or unencoded data. If the data and check portion are encoded data, then after the first electronic device receives the data and check portion and before the first electronic device verifies the data and check portion, the method may further include: the first electronic device decoding the data and check portion.
[0009] In one possible implementation, the first wake-up frame may include: a channel estimation portion, a trigger sequence, a wake-up frame number, and a check sequence. The wake-up frame number and its check sequence include: a wake-up frame number and a check sequence. Additionally, the first broadcast packet may further include an information frame, comprising data and a check portion. The first electronic device verifies the first wake-up frame received within a second preset duration, and if the first wake-up frame passes verification, transmits service data with the second electronic device via a Bluetooth connection. This may include: the first electronic device verifies the channel estimation portion; if the channel estimation portion passes verification, the first electronic device receives the trigger sequence and verifies the trigger sequence; if the trigger sequence passes verification, the first electronic device receives the wake-up frame number and its check sequence; and if the wake-up frame number and its check sequence pass verification, determines a scan time for the information frame based on the wake-up frame number and its check sequence; at the scan time for the information frame, the first electronic device receives the information frame and verifies the data and check portion of the information frame; if the data and check portion pass verification, the first electronic device transmits service data with the second electronic device via a Bluetooth connection. It should be noted that the wake-up frame number and its check sequence may be encoded or unencoded data. If the wake-up frame number and its check sequence are encoded data, then after the first electronic device receives the wake-up frame number and its check sequence and before the first electronic device verifies the wake-up frame number and its check sequence, the method may further include: the first electronic device decoding the wake-up frame number and its check sequence. Furthermore, the data and check portion may be encoded data or unencoded data. If the data and check portion are encoded data, then after the first electronic device receives the information frame and before the first electronic device verifies the data and check portion of the information frame, the method may further include: the first electronic device decoding the data and check portion of the information frame.
[0010] In the above solution, each wake-up frame in the first broadcast packet can include complete wake-up information. However, this approach increases the average wake-up reception duration (the length of a wake-up frame), resulting in higher average wake-up reception power. Therefore, each wake-up frame in the first broadcast packet can be streamlined to include: a channel estimation portion, a wake-up sequence, a wake-up frame number, and a check sequence. This design shortens the duration of each wake-up frame, reduces the scan time for each wake-up frame, and reduces the duty cycle and average power consumption.
[0011] In one possible implementation, the channel estimation portion may include a preamble. Verifying the channel estimation portion by the first electronic device may include: performing carrier detection on the broadcast channel; if the carrier detection passes, verifying the preamble. Carrier detection may include, but is not limited to, RSSI detection and GFSK detection. The trigger sequence is a digitally modulated cross-correlation sequence used to determine whether it meets preset characteristics.
[0012] In one possible implementation, the preamble includes at least two preambles with the same content. The first electronic device verifies the preamble, including: the first electronic device performs autocorrelation detection on at least two preambles. Exemplarily, if the first broadcast packet is a BLE broadcast packet, and the BLE broadcast packet includes two or more preambles with the same content (for example, 4 preambles), the first electronic device performs autocorrelation detection on the two or more preambles (for example, 4 preambles); or, if the first broadcast packet is an HDT broadcast packet, and the HDT broadcast packet includes two preambles with the same content, the first electronic device performs autocorrelation detection on the two preambles.
[0013] In the above scheme, the difference between HDT advertising packets and BLE advertising packets is that the channel estimation portion of the BLE advertising packet uses GFSK encoding, while the HDT advertising packet uses QPSK encoding. Because HDT advertising packets are convolutionally encoded, which causes the first portion of the original data to affect the encoded output of the latter portion, there are some differences in the data format between HDT advertising packets and BLE advertising packets. In HDT advertising packets, the channel estimation portion includes two identical preambles, for example, both preambles are 01010101. The Bluetooth chip on the BLE wakeup end can QPSK encode each preamble. Since the two preambles have the same content, the BLE wakeup end can still decode the two preambles using a preset algorithm and determine whether the decoded preambles pass verification. If so, it further determines whether the trigger sequence passes verification.
[0014] In a possible implementation, the data and verification part may include at least one of the following: the master's identifier, the slave's identifier, the slave's broadcast channel when establishing a connection, the slave's broadcast time when establishing a connection, and a verification sequence.
[0015] In one possible implementation, the first broadcast packet may be a broadcast packet based on BLE classic Bluetooth broadcast, and the broadcast channel includes a first channel, a second channel, and a third channel. For example, the first channel may be channel 37, the second channel may be channel 38, and the third channel may be channel 39. Accordingly, the first electronic device scans on the broadcast channel at preset time intervals, which may include: within each preset time interval, the first electronic device scans on the first channel, the second channel, and the third channel in sequence, and the scanning order of the first channel, the second channel, and the third channel is random. Before the first electronic device verifies the first wake-up frame received within the second preset time length, the method may further include: based on the first channel passing carrier detection, the first electronic device receives the first wake-up frame on the first channel.
[0016] In this solution, the BLE wake-up terminal can randomly scan the three channels at preset intervals to determine whether the conditions for switching from low-power wake-up channel detection mode to trigger sequence reception mode are met, and receive any BLE advertising packets that may exist. In this way, based on this frequency hopping technology, it can effectively avoid the problem of the BLE wake-up terminal being unable to parse the wake-up frame from the BLE advertising packet due to the long-term occupation of the advertising channel, thereby improving the success rate of device discovery.
[0017] In one possible implementation, the first broadcast packet can be a broadcast packet based on BLE extended broadcast or HDT broadcast, and the broadcast channel is a pre-set broadcast channel. For example, if the first broadcast packet is a broadcast packet based on BLE extended broadcast, a fixed channel (selected from channel 0 to channel 36) can be specified in advance for transmission. In other words, when BLE extended broadcast or HDT broadcast is in progress, the second electronic device does not need to switch broadcast channels.
[0018] In one possible implementation, before the first electronic device scans on the broadcast channel at a preset time interval, the method may further include: if a first condition is met, configuring the first electronic device to a low-power wake-up channel detection mode. The low-power wake-up channel detection mode means that before the first electronic device discovers other devices, it is configured to detect whether there is information being sent on the broadcast channel according to a preset duty cycle, where the preset duty cycle is equal to a second preset duration divided by the sum of the first preset duration and the second preset duration.
[0019] Let x represent the length of a wake-up frame. If the first BLE advertising packet carries m wake-up frames, the wake-up transmission duration can be expressed as m × x, the first preset duration can be expressed as (m-1) × x, and the second preset duration can be expressed as x / q. The first preset duration is the interval between the BLE awakened end's detection on the advertising channel, that is, the interval from the end of the previous scan to the start of the next scan. The second preset duration is the duration of the BLE awakened end's channel scan within each scan cycle. q is greater than 1.
[0020] In the above scheme, in the low-power wake-up channel detection mode, the BLE awakened end only needs to detect whether there is information sent on the broadcast channel without receiving a complete wake-up frame. Therefore, the duration of the channel scan in each preset time interval (i.e., the second preset duration) can be set to be less than the reception duration of a wake-up frame, which is beneficial to reducing the duty cycle of the BLE awakened end and reducing the power consumption of the device on the BLE awakened end.
[0021] In a possible implementation, the first condition may include any one of the following:
[0022] The first electronic device receives an operation by a user to turn on Bluetooth;
[0023] The first electronic device does not exchange service data with other devices based on the BLE connection within a third preset time period;
[0024] The first electronic device receives the user's multi-screen collaborative operation.
[0025] It can be understood that the above-mentioned first condition is only an example. When other conditions are met, the first electronic device can also be configured to be in a low-power wake-up channel detection mode.
[0026] In a second aspect, embodiments of the present application provide a Bluetooth wake-up method. This method can be applied to a second electronic device. The method may include: the second electronic device sending a first broadcast packet on a broadcast channel, the first broadcast packet carrying m wake-up frames, where m is an integer greater than 1; based on the first wake-up frame in the first broadcast packet passing verification by the first electronic device, the second electronic device transmitting service data with the first electronic device via a Bluetooth connection.
[0027] In this solution, the BLE wakeup end loops the wakeup frame multiple times within a BLE advertising packet, allowing the BLE wakeup end to receive the complete wakeup frame within a single BLE advertising packet. This reduces the wakeup latency of this solution to less than the duration of a single BLE advertising packet, speeding up device discovery and connection establishment. Furthermore, decoupling the wakeup latency from the BLE wakeup end's advertising interval also helps reduce the BLE wakeup end's advertising duty cycle and power consumption.
[0028] In one possible implementation, the first wake-up frame may include: a channel estimation portion, a trigger sequence, and a data and check portion. The channel estimation portion includes multiple repeated autocorrelation preamble sequences; the trigger sequence is a cross-correlation sequence modulated by a series of digits; and the data and check portion includes at least one of the following: the master identifier, the slave identifier, the slave's broadcast channel during connection establishment, the slave's broadcast time during connection establishment, and a check sequence. It should be noted that the data and check portion may be either encoded or unencoded data.
[0029] In one possible implementation, the first wake-up frame may include: a channel estimation part, a trigger sequence, a wake-up frame number and a check sequence; the channel estimation part includes multiple repeated autocorrelation preamble code sequences; the trigger sequence is a mutual correlation sequence modulated by a string of digits; the wake-up frame number and its check sequence are used to indicate the number of the first wake-up frame in the first broadcast packet; the first broadcast packet also includes an information frame; the information frame includes a data and check part; the data and check part include at least one of the following: the host identifier, the slave identifier, the slave broadcast channel when establishing a connection, the slave broadcast time when establishing a connection, and a check sequence. It should be noted that the wake-up frame number and its check sequence can be encoded data or unencoded data. In addition, the data and check part can be encoded data or unencoded data.
[0030] In the above solution, each wake-up frame in the first broadcast packet can include complete wake-up information. However, this approach increases the average wake-up reception duration (the length of a wake-up frame), resulting in higher average wake-up reception power. Therefore, each wake-up frame in the first broadcast packet can be streamlined to include: a channel estimation portion, a wake-up sequence, a wake-up frame number, and a checksum sequence. This design shortens the duration of each wake-up frame, reduces the scan time for each wake-up frame, and reduces the duty cycle and average power consumption.
[0031] In one possible implementation, the first advertising packet is a BLE advertising packet or an HDT advertising packet. The difference between the HDT advertising packet and the BLE advertising packet is that the channel estimation portion of the BLE advertising packet adopts GFSK encoding, while the channel estimation portion of the HDT advertising packet adopts QPSK encoding.
[0032] In a possible implementation, the m wake-up frames are specifically carried in a protocol data unit of the first BLE broadcast packet.
[0033] Taking Bluetooth version 4.0 as an example, the length of the broadcast data field in the PDU cannot exceed 31 bytes. If the length of a wake-up frame is n bits, the following condition is met: m×n≤31bytes.
[0034] Taking Bluetooth version 5.0 as an example, the length of the broadcast data field in the extended PDU cannot exceed 254 bytes. If the length of a wake-up frame is n bits, the following condition is met: m×n≤254bytes.
[0035] In one possible implementation, the first advertising packet is an advertising packet based on a BLE Classic Bluetooth broadcast, and the advertising channels include a first channel, a second channel, and a third channel. For example, the first channel may be channel 37, the second channel may be channel 38, and the third channel may be channel 39.
[0036] In one possible implementation, the first broadcast packet is a broadcast packet based on BLE extended broadcast or HDT broadcast, and the broadcast channel is a pre-set broadcast channel. For example, if the first broadcast packet is a broadcast packet based on BLE extended broadcast, a fixed channel (selected from channel 0 to channel 36) can be specified in advance for transmission. In other words, when performing BLE extended broadcast or HDT broadcast, the second electronic device does not need to switch broadcast channels.
[0037] In one possible implementation, before the second electronic device sends the first BLE broadcast packet on the broadcast channel, the method may further include: if a second condition is met, configuring the second electronic device to a low-power wake-up transmission mode. The low-power wake-up transmission mode means that before the second electronic device is discovered by the first electronic device, it is configured to periodically send a BLE broadcast packet carrying m wake-up frames on the broadcast channel.
[0038] In a possible implementation, the second condition may include any one of the following:
[0039] The second electronic device is powered on;
[0040] The second electronic device receives a file sharing operation from the user;
[0041] The second electronic device receives an operation by the user to turn on Bluetooth;
[0042] The second electronic device receives a call answering request or an audio or video call request from another device.
[0043] It can be understood that the above second condition is only an example. When other conditions are met, the second electronic device can be configured to be in a low-power wake-up transmission mode.
[0044] In a third aspect, the present application provides an apparatus comprising units for executing the method described in the first or second aspect above. The apparatus may be configured to execute the method described in the first or second aspect above. For the purpose of brevity, the description of the units in the apparatus is omitted here.
[0045] In a fourth aspect, the present application provides an electronic device, which may be a first electronic device. The first electronic device may be a BLE awakened end device or a host. The first electronic device may include: one or more processors, and a memory. The memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the first electronic device to perform the method provided in the first aspect and any possible implementation thereof.
[0046] In a fifth aspect, the present application provides an electronic device. The electronic device may be a second electronic device. The second electronic device may be a BLE wake-up end device or a slave device. The second electronic device may include: one or more processors, and a memory. The memory is coupled to the one or more processors, and the memory is used to store computer program code, which includes computer instructions. The one or more processors invoke the computer instructions to cause the electronic device to perform the method provided in the second aspect and any possible implementation thereof.
[0047] In a sixth aspect, the present application provides a communication system, which may include a BLE wake-up end device as provided in the fourth aspect, and a BLE awakened end device as provided in the fifth aspect.
[0048] In a seventh aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions. When the computer instructions are run on a first electronic device (i.e., a BLE wake-up end device), the first electronic device is caused to perform the method provided in the first aspect and any possible implementation thereof. When the computer instructions are run on a second electronic device (i.e., a BLE awakened end device), the second electronic device is caused to perform the method provided in the second aspect and any possible implementation thereof.
[0049] In an eighth aspect, the present application provides a computer program product. When the computer program product is executed on a first electronic device, the first electronic device performs the method provided in the first aspect and any possible implementation thereof. When the computer program product is executed on a second electronic device, the second electronic device performs the method provided in the second aspect and any possible implementation thereof.
[0050] In a ninth aspect, the present application provides a chip system. When the chip system is applied to a first electronic device, the chip system includes one or more processors, and the one or more processors are used to call computer instructions to cause the first electronic device to perform the method provided in the first aspect and any possible implementation thereof. When the chip system is applied to a second electronic device, the chip system includes one or more processors, and the one or more processors are used to call computer instructions to cause the second electronic device to perform the method provided in the second aspect and any possible implementation thereof.
[0051] It can be understood that the beneficial effects that can be achieved by the third aspect device, the fourth aspect electronic device, the fifth aspect electronic device, the sixth aspect communication system, the seventh aspect computer-readable storage medium, the eighth aspect computer program product and the ninth aspect chip system provided above can be referred to as the beneficial effects of the first and second aspects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of the structure of the Bluetooth module provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of sending and scanning BLE broadcast packets using a duty cycle method provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of a BLE wake-up end and a BLE wake-up end provided in an embodiment of the present application using a frequency hopping + duty cycle method for Bluetooth wake-up;
[0056] Figure 5 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application;
[0057] Figure 6 A schematic diagram of the hardware structure of a Bluetooth watch provided in an embodiment of the present application;
[0058] Figure 7 A flowchart of a Bluetooth wake-up method provided in an embodiment of the present application;
[0059] Figure 8 A schematic diagram of a Bluetooth wake-up scenario provided in an embodiment of the present application;
[0060] Figure 9 A schematic diagram of another Bluetooth wake-up scenario provided in an embodiment of the present application;
[0061] Figure 10 A schematic diagram of another Bluetooth wake-up scenario provided in an embodiment of the present application;
[0062] Figure 11 A schematic diagram of another Bluetooth wake-up scenario provided in an embodiment of the present application;
[0063] Figure 12 A schematic diagram of writing multiple wake-up frames into the manufacturer-defined data field of classic BLE broadcast and extended BLE broadcast provided in an embodiment of the present application;
[0064] Figure 13 A schematic diagram of the data format of a classic BLE advertising packet provided in an embodiment of the present application;
[0065] Figure 14 Schematic diagram of three cyclic sequences in PDU provided in an embodiment of the present application;
[0066] Figure 15 A schematic diagram of the data format of an extended BLE advertising packet provided in an embodiment of the present application;
[0067] Figure 16 A schematic diagram of transmitting a wake-up frame provided in an embodiment of the present application;
[0068] Figure 17 A schematic diagram of another method for transmitting a wake-up frame according to an embodiment of the present application;
[0069] Figure 18 A schematic diagram comparing two wake-up frame formats provided in an embodiment of the present application;
[0070] Figure 19 A schematic diagram of transmitting a wake-up frame based on HDT provided in an embodiment of the present application;
[0071] Figure 20 A schematic diagram of the data format of an HDT-based broadcast packet provided in an embodiment of the present application;
[0072] Figure 21 A flowchart of a Bluetooth wake-up method supporting frequency hopping provided in an embodiment of the present application;
[0073] Figure 22 A schematic diagram of sending and receiving a wake-up frame in a frequency hopping mode is provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0075] In the description of this application, unless otherwise specified, " / " means or. For example, A / B can mean A or B. In the description of this application, "and / or" is simply a way to describe the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0076] In the specification and claims of this application, the terms "first" and "second" are used to distinguish different objects or to distinguish different processing of the same object, rather than to describe a specific order of objects. For example, the terms "first operation" and "second operation" are used to distinguish different operations, rather than to describe a specific order of operations. In the embodiments of this application, "plurality" refers to two or more.
[0077] References to "some embodiments" and the like described in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in some embodiments" and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0078] To facilitate understanding of the embodiments of the present application, some terms used in the embodiments of the present application are explained below.
[0079] BLE is a short-range wireless communication technology. Currently, BLE is widely used in low-power IoT devices, smart home appliances, and wearables. Compared to Classic Bluetooth, BLE aims to reduce the power consumption of smart devices while maintaining the same communication range. BLE has a total of 40 channels, ranging from 2402 MHz to 2480 MHz. Each channel corresponds to 2 MHz. These 40 channels include three advertising channels (channels 37, 38, and 39) and 37 data channels.
[0080] Typically, the BLE connection process between a master device and a slave device consists of the following stages: broadcasting, scanning, pairing, bonding, connection, and communication. As an example scenario, in the broadcasting stage, the slave device sends a broadcast packet; in the scanning stage (also known as the device discovery stage), the master device obtains the broadcast packet from the slave device; after the master device successfully verifies the broadcast packet, the master device and the slave device can establish a Bluetooth connection and transmit business data through the subsequent stages. As another example scenario, when the smart device is not in use, or during the use of the smart device, the smart device may disconnect the Bluetooth connection due to reasons such as a long wireless distance or strong interference. After the paired devices disconnect the Bluetooth connection, there is no need to re-pair, but re-broadcasting and scanning are still required to re-establish the Bluetooth connection and transmit business data.
[0081] For example, Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application.
[0082] The communication system may include a master device (also called a BLE host or a host scanner) and at least one slave device (also called a BLE slave or a slave broadcaster). The master device and the slave device are smart devices based on BLE connection, and the master device and each slave device can exchange business data independently. The types of the master device and the slave device may be the same or different. For example, the master device may be a mobile phone, a personal computer (PC), a computer and a tablet computer (Pad) with wireless transceiver functions, etc., and the slave device may be a smart screen, a smart TV, a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, etc. For example, Figure 1 As shown, the master device can be a mobile phone, and the slave device can be a notebook, a pad, an intelligent finder (Airtag), a smart watch, a wireless headset, a Bluetooth speaker or a smart washing machine, etc.
[0083] The interconnection and intercommunication between smart devices is based on device discovery and device connection. In the embodiment of the present application, the device that sends the broadcast packet is referred to as the BLE wake-up end, and the device that receives the broadcast packet is referred to as the BLE awakened end. As an example, the slave device is the BLE wake-up end, and the master device is the BLE awakened end. As another example, the master device is the BLE wake-up end, and the slave device is the BLE awakened end. It should be noted that the following embodiments are all described with the slave device being the BLE wake-up end and the master device being the BLE awakened end as an example, which does not limit the present application.
[0084] For example, Figure 2 This is a schematic diagram of the structure of the Bluetooth module provided in an embodiment of the present application.
[0085] like Figure 2 As shown, the BLE wake-up end 200 and the BLE awakened end 100 can each be provided with a Bluetooth module. A Bluetooth module is also called a Bluetooth chip. The Bluetooth chip may include a Bluetooth subsystem and a Bluetooth interface, etc. Among them, the Bluetooth subsystem may include a microprocessor, a Bluetooth baseband, a read-only memory (ROM), a random access memory (RAM), a joint test action group (JTAG), an advanced high performance bus (AHB), and a radio frequency module, etc. The Bluetooth interface may include a universal asynchronous receiver / transmitter (UART) and a pulse code modulation (PCM), etc.
[0086] It should be noted that if Figure 2 The Bluetooth module shown is only an example and does not limit the present application. In actual implementation, the Bluetooth module may include more or fewer functional structures.
[0087] In the embodiment of the present application, according to the hardware architecture classification, the Bluetooth modules of the BLE wake-up end 200 and the BLE awakened end 200 can adopt a master dual-chip standard architecture, a single-chip architecture or a custom dual-chip architecture.
[0088] The standard dual-chip architecture for master control consists of a host and a controller. This architecture is typically used in powerful system-on-chip (SOC) master control solutions, such as mobile phones and smart TVs. The host runs on Linux or Android. Additionally, the controller has its own dedicated SOC master control. Communication between the two takes place via the human-computer interaction (HCI) protocol and standard hardware interfaces (such as USB). The host consists of core protocol layers (L2CAP, SDP, SMP, ATT) and core specifications (GAP, GATT). The controller is responsible for running the physical and logical link layer functions.
[0089] Single-chip architectures are typically used for simple peripheral devices connected to mobile phones, such as Bluetooth headsets, Bluetooth watches, and smart finders. A single chip can implement the entire Bluetooth protocol stack, including the host and controller, which exchange data via an application programming interface (API).
[0090] In a custom dual-chip architecture, most or all of the Bluetooth protocol stack functions run in the Bluetooth SoC, while the Bluetooth application runs in the microcontroller unit (MCU). The communication protocol between the MCU and the Bluetooth SoC is defined by the manufacturer, hence the name custom dual-chip architecture.
[0091] BLE technology can be applied to low-power IoT devices, smart home appliances, and wearables. Due to size and portability, smart devices typically have small battery capacities. During the device discovery phase, if the BLE wakeup end 200 and the BLE victim end 200 are constantly powered on, this increases the power consumption of the smart devices and reduces their battery life. To reduce power consumption and extend battery life, the BLE wakeup end 200 and the BLE victim end 200 can use a duty cycle to send and scan BLE advertising packets.
[0092] For example, Figure 3 A schematic diagram of a BLE wake-up end and a BLE awakened end provided in an embodiment of the present application using a duty cycle to send and scan BLE broadcast packets.
[0093] exist Figure 3 (a) and Figure 3In (b), the BLE wake-up end can send a BLE broadcast packet every second duration, and the transmission duration (i.e., scanning window) of each BLE broadcast packet is the first duration. Take the first duration as 300 microseconds and the second duration as 600 microseconds as an example. The BLE wake-up end can send BLE broadcast packet 1 from time t2 to time t4, and send BLE broadcast packet 2 from time t6 to time t7. Among them, the transmission duration from time t2 to time t4, the transmission duration from time t4 to time t6, and the transmission duration from time t6 to time t7 are all 300 microseconds. The BLE wake-up end can send broadcast packets according to a duty cycle of first duration / second duration = 50%.
[0094] exist Figure 3 (a) and Figure 3 In (b), the BLE awakened end may perform a round of detection every fourth duration to determine whether BLE information is being sent on the broadcast channel. Each channel detection lasts for a third duration (i.e., a scanning window). The third duration is greater than or equal to the sum of the second duration and the first duration. The BLE awakened end may detect whether BLE information is being sent on the broadcast channel based on the duty cycle of the third duration / fourth duration.
[0095] The following describes the correlation between the duty cycle of the BLE wake-up end and the device discovery delay by changing the duty cycle of the BLE wake-up end while keeping the duty cycle of the BLE wake-up end unchanged.
[0096] In Figure 3 Take (a) in which the third duration is 900 microseconds and the fourth duration is 1200 microseconds as an example. The BLE awakened end can detect whether there is BLE information being sent on the broadcast channel at a duty cycle of 75%. The BLE awakened end can perform a round of detection in channel detection period 1 (from time t1 to time t3). Since time t3 is between time t2 and time t4, at the end of this round of detection, the BLE awakened end has not received the complete BLE broadcast packet 1, and the BLE awakened end determines that no device is found and switches to sleep state. Then, the BLE awakened end can perform the next round of detection in channel detection period 2 (from time t5 to time t8). Since time t6 to time t7 is included in channel detection period 2, before the end of this round of detection, the BLE awakened end can receive the complete BLE broadcast packet 2 and discover the BLE awakening end based on the BLE broadcast packet 2, so that the BLE awakening end and the BLE awakened end can try to establish a BLE connection. That is to say, in Figure 3In (a), when the BLE wake-up end sends advertising packets at a 50% duty cycle and the BLE wake-up end detects whether BLE information is being sent on the advertising channel at a 75% duty cycle, the device discovery latency is (t7-t2). That is, the time from the time t2 when the first advertising packet is sent to the time t7 when a complete advertising packet is received is the device discovery latency.
[0097] In Figure 3 Take (b) as an example, the third duration is 900 microseconds and the fourth duration is 900 microseconds. The BLE awakened end can detect whether there is BLE information being sent on the advertising channel at a duty cycle of 50%. The BLE awakened end can perform a round of detection in channel detection period 1 (from time t1 to time t3). Since time t3 is between time t2 and time t4, at the end of this round of detection, the BLE awakened end has not yet received the complete BLE advertising packet 1. The BLE awakened end determines that no device has been found and switches to sleep state. Since time t6 to time t7 is not included in channel detection period 2, the BLE awakened end cannot receive advertising packet 2 from the BLE awakening end, and thus cannot find the BLE awakening end. Then, the BLE awakened end can perform the next round of detection in channel detection period 2 (from time t9 to time t12). Since the time from t10 to t11 is included in the channel detection period 2, the BLE awakened end can receive the complete BLE advertising packet 3 before the end of this round of detection, and find the BLE awakening end based on the BLE advertising packet 3, so that the BLE awakening end and the BLE awakened end can try to establish a BLE connection. Figure 3 In (b), when the BLE awakening end sends advertising packets at a 50% duty cycle and the BLE awakened end detects whether BLE information is being sent on the advertising channel at a 50% duty cycle, the device discovery latency is (t11-t2). That is, the time from when the first advertising packet is sent at t2 to when the complete advertising packet is received at t11 is the device discovery latency. (t11-t2) > (t7-t2).
[0098] According to the description of the above embodiment, the third duration is determined based on the first and second durations. When the fourth duration is changed, the duty cycle of the BLE wake-up end will be changed. When the duty cycle of the BLE wake-up end is higher, the device discovery delay is shorter and the device power consumption is higher; when the duty cycle of the BLE wake-up end is lower, the device discovery delay is longer and the device power consumption is lower. Therefore, there is a strong correlation between the duty cycle of the BLE wake-up end, the duty cycle of the BLE wake-up end, the device discovery delay, and the device power consumption.
[0099] During the device discovery phase, the BLE wakeup and wakeup endpoints can reduce the power consumption of smart devices by reducing the duty cycle of sending and scanning BLE advertising packets. However, for scenarios that urgently require device connection, such as answering calls, multi-screen collaboration, and super connection, a low duty cycle will increase device discovery latency, affecting connection establishment and reducing the user experience of smart devices.
[0100] Referring to the description of the above embodiment, BLE includes three channels: channel 37, channel 38, and channel 39. In order to reduce interference, a frequency hopping + duty cycle method can be used for Bluetooth wake-up.
[0101] For example, Figure 4 A schematic diagram of the BLE wake-up end and the BLE awakened end provided in an embodiment of the present application using a frequency hopping + duty cycle method for Bluetooth wake-up.
[0102] like Figure 4 As shown in the figure, when the BLE wake-up end (such as a Bluetooth headset) wakes up from sleep mode or is disconnected, if it needs to re-establish the connection, the BLE wake-up end will periodically send broadcasts and send BLE broadcast packets in sequence on three broadcast channels. It should be noted that in each round of broadcast, the order of channels on which the BLE wake-up end sends broadcasts is random, and is not necessarily in the order of channel 37, channel 38, and channel 39. The broadcast cycle is a fixed period plus a random time of 0 to 10ms. For example, the fixed period is 1000ms. Taking the random delay of 5ms in the first broadcast cycle as an example, the first broadcast cycle is 1005ms. Taking the random delay of 8ms in the second broadcast cycle as an example, the second broadcast cycle is 1008ms.
[0103] Additionally, when the BLE wake-up end broadcasts, the BLE wake-up end (such as a mobile phone) performs a broadcast scan. The BLE wake-up end scans each broadcast channel in sequence. This scanning behavior is also periodic. That is, the BLE wake-up end scans one of the three broadcast channels for a period of time every scanning cycle. The broadcast scan cycle is a fixed period plus a random time between 0 and 10ms. When the BLE wake-up end captures the BLE wake-up end's broadcast packet through scanning, it immediately sends a connection request to the BLE wake-up end. The BLE wake-up end then attempts to exchange data with the BLE wake-up end. If the BLE wake-up end responds, the connection is successfully established; otherwise, the BLE wake-up end re-executes the scanning process. If the paired BLE device is disconnected, the same process must be repeated to re-establish the connection.
[0104] As can be seen, the above process is highly random (random broadcast period and sending channel, random broadcast scan period and scanning channel). If the scan window and broadcast window do not align, the BLE awakened end will not be able to scan the BLE awakening end, so the BLE connection establishment will easily take a long time (usually 3 to 5 seconds, depending on the configuration of different manufacturers, it may be longer).
[0105] In view of the problems existing in the above-mentioned Bluetooth wake-up scheme, the present application provides an improved Bluetooth wake-up scheme. In this scheme, the BLE wake-up end can broadcast multiple cyclic wake-up frames (wake up frame, WUF) in a BLE broadcast packet, and each wake-up frame includes at least a channel estimation part and a trigger sequence (also called a wake-up sequence). The BLE awakened end can scan at a preset time interval to determine whether the channel estimation part passes the detection. Once the BLE awakened end detects that the channel estimation part passes the verification, it continues to capture the trigger sequence and determines whether the trigger sequence passes the verification. After the trigger sequence passes the verification, the connection is re-established. Since the BLE awakened end can receive a complete wake-up frame in a BLE broadcast packet, the wake-up delay of this scheme is less than the time length of a BLE broadcast packet.
[0106] It should be noted that the duration of a BLE advertising packet is also called the transmission duration or reception duration. It can refer to the time it takes for the BLE wake-up end to send an advertising packet and complete it, or the time it takes for the BLE wake-up end to receive an advertising packet and complete it. For example, the duration of a BLE advertising packet is 300 microseconds or 2 seconds.
[0107] The following combination Figures 5 to 22 The improved Bluetooth wake-up solution provided in this application is illustrated with examples.
[0108] Take the awakened end 100 as a mobile phone as an example, Figure 5 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application.
[0109] like Figure 5As shown, the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0110] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU).
[0111] The controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0112] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0113] The charging management module 140 is configured to receive charging input from a charger.
[0114] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.
[0115] The wireless communication function of the mobile phone 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Among them, antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the mobile phone 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc. applied on the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, modulate the frequency of the signals, amplify the signals, and convert them into electromagnetic waves for radiation via the antenna 2.
[0116] In the embodiment of the present application, the wireless communication module 160 mainly refers to a Bluetooth module. The Bluetooth module may have the following features: Figure 2 The hardware structure shown, for example, includes a Bluetooth module including a Bluetooth subsystem and a Bluetooth interface. The Bluetooth module and the processor 110 can adopt a standard dual-chip master control architecture. When the processor 110 schedules the Bluetooth module, the Bluetooth module is configured to a low-power wake-up channel detection mode and detects whether the channel estimation part passes the test according to a certain duty cycle. If it is detected that the channel estimation part passes the test, the Bluetooth module continues to capture the trigger sequence and determines whether the trigger sequence passes the verification.
[0117] The mobile phone 100 implements the display function through a GPU, a display screen 194 , and an application processor.
[0118] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.
[0119] The mobile phone 100 can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.
[0120] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0121] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the mobile phone 100. The internal memory 121 can include a program storage area and a data storage area.
[0122] The mobile phone 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0123] The keys 190 include a power key, a volume key, etc. The mobile phone 100 can receive key inputs and generate key signal inputs related to user settings and function controls of the mobile phone 100 .
[0124] Motor 191 can generate vibration prompts.
[0125] The indicator 192 may be an indicator light, which may be used to indicate the charging status, the change in the power level, or a message.
[0126] The SIM card interface 195 is used to connect a SIM card.
[0127] It is understandable that Figure 5 The illustrated structure does not constitute a specific limitation on the mobile phone 100. In other embodiments, the mobile phone 100 may include Figure 5 More or fewer components may be shown, some components may be combined, some components may be separated, or different component arrangements may be used. The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0128] Take the wake-up terminal 200 as a Bluetooth watch as an example, Figure 6 A schematic diagram of the hardware structure of a Bluetooth watch provided in an embodiment of the present application.
[0129] like Figure 6As shown, the Bluetooth watch 200 may include a micro control unit 201 , a Bluetooth module 202 , an audio module 203 , a power module 204 , a memory 205 and a display 206 .
[0130] The microcontroller unit 201 is the main control chip of the Bluetooth watch 200, used to execute application code and call related modules to implement the functions of the Bluetooth watch 200, such as pairing, connecting, playing audio, and making / receiving calls between the Bluetooth watch 200 and the mobile phone 100. The microcontroller unit 201 has a low-power mode, which can reduce device power consumption while maintaining high performance. For example, the microcontroller unit 201 can instruct the Bluetooth module 202 to send a broadcast packet containing a cyclic wake-up frame in the low-power wake-up transmission mode, so that the mobile phone 100 can verify the received wake-up frame.
[0131] The Bluetooth module 202 may be Figure 2 The Bluetooth module shown. The Bluetooth watch 200 can be paired and connected with the Bluetooth chip of the mobile phone 100 through the Bluetooth module 202 to achieve wireless communication and business processing between the Bluetooth watch 200 and the mobile phone 100 through the Bluetooth connection. In the embodiment of the present application, the Bluetooth module 202 can be a BLE module. The Bluetooth module 202 can receive the signal to be transmitted from the micro control unit 201, perform frequency modulation, amplify it, and then convert it into electromagnetic waves for radiation via the Bluetooth antenna.
[0132] The audio module 203 can be used to manage audio data and enable the Bluetooth watch 200 to input and output audio signals. For example, the audio module 203 can obtain audio signals from the Bluetooth module 202 to enable functions such as making and receiving calls, playing music, starting / turning off the voice assistant of the mobile phone 100 connected to the Bluetooth headset, and receiving / sending the user's voice data through the Bluetooth headset. The audio module 203 may include a speaker (or earpiece, receiver) component for outputting audio signals, a microphone (or microphone, microphone), a microphone receiving circuit that cooperates with the microphone, etc. The speaker can be used to convert the audio electrical signal into a sound signal and play it. The microphone can be used to convert the sound signal into an audio electrical signal.
[0133] The power module 204 can be used to provide system power for the Bluetooth watch 200 and power the various functional modules of the Bluetooth watch 200. The power module 204 may include a power management unit (PMU) and a battery. The power management unit may receive an external charging input, transform the electrical signal input by the charging circuit and provide it to the battery for charging, and may also transform the electrical signal provided by the battery and provide it to other modules such as the audio module 203 and the Bluetooth module 202. In some embodiments, the power module 204 may also include a wireless charging coil for wirelessly charging the Bluetooth watch 200. In addition, the power management unit may also be used to monitor battery capacity, battery cycle count, battery health status, etc.
[0134] The memory 205 can be used to store program code, such as applications for pairing and connecting the Bluetooth watch 200 with the mobile phone 100 and processing audio services (such as music playback, making / receiving calls) of the mobile phone 100. The memory 205 can also be used to store other information, such as the owner's identity information, connection time, disconnection time, disconnection reason, and other information.
[0135] The display 206 includes a display panel for displaying an interface, such as a call in progress interface.
[0136] In addition, the Bluetooth watch 200 may also include a sensor 207. For example, the sensor 207 may include a distance sensor, an ambient light sensor, a temperature sensor, an accelerometer, a pedometer, a heart rate detection sensor, a barometer, and an altimeter. For example, the Bluetooth watch 200 may use a distance sensor to detect whether there is an object near the Bluetooth watch 200, use an ambient light sensor to sense the ambient light brightness, and use a temperature sensor to collect the temperature. When the microcontroller unit 201 recognizes that there is an object near the Bluetooth watch 200, the ambient light brightness is lower than a preset brightness threshold, and the temperature is within a preset range, it determines that the Bluetooth watch 200 is being worn by the user.
[0137] It is understandable that Figure 6 The illustrated structure does not constitute a specific limitation on the Bluetooth watch 200. It may have more or fewer components, may combine two or more components, or may have different component configurations. For example, the outer surface of the Bluetooth watch may also include buttons, indicator lights (which may indicate battery level, incoming / outgoing calls, pairing mode, etc.), dust screens (which may be used in conjunction with a handset), and other components. The button may be a physical button or a touch button (used in conjunction with a touch sensor), etc., which is used to trigger operations such as power on, power off, pause, play, record, start pairing, and reset.
[0138] It should be noted that the BLE awakened end and BLE wake-up end provided by traditional technology may not have the ability to execute the Bluetooth wake-up solution provided by this application. For example, the Bluetooth module of the BLE awakened end may not support the low-power wake-up channel detection mode, and the Bluetooth module of the BLE wake-up end may not support the low-power wake-up sending mode. In an embodiment of the present application, the Bluetooth module of the BLE awakened end can be a manufacturer's self-developed chip or a customized chip, which supports configuration as a low-power wake-up channel detection mode; the BLE wake-up end can be a product of the same manufacturer (i.e., the manufacturer of the BLE awakened end), or it can be an ecological product developed by a cooperative manufacturer of the manufacturer. For example, the manufacturer of the BLE awakened end provides the manufacturer of the BLE awakened end with software modification permissions. When the BLE awakened end and the BLE wake-up end establish a connection for the first time, the BLE awakened end can modify the software of the microcontroller unit and / or the Bluetooth module of the BLE awakened end so that the BLE wake-up end supports configuration as a low-power wake-up sending mode.
[0139] For example, Figure 7 This is a flow chart of a Bluetooth wake-up method provided in an embodiment of the present application. Figure 7 As shown, the method may include the following S01 to S10.
[0140] S01, the BLE wake-up end is configured as low-power wake-up sending mode.
[0141] Low-power wake-up transmission mode, also known as sleep mode, means that the BLE wake-up end is configured to periodically send BLE advertising packets on the advertising channel before being discovered by the BLE wake-up end. A BLE advertising packet includes multiple cycles of wake-up frames. Each wake-up frame can be used to wake up the BLE wake-up end. In other words, each wake-up frame can be used to be discovered by the BLE wake-up end.
[0142] In some embodiments, the BLE wake-up terminal can be configured to low-power wake-up transmit mode under the following conditions:
[0143] (1) Power on the BLE wake-up terminal.
[0144] like Figure 8 As shown in the figure, when the user opens the charging box of the Bluetooth headset, it means that the user may need to use the Bluetooth headset. The Bluetooth headset can be configured in low-power wake-up transmission mode according to the software settings and send a BLE advertising packet including multiple cycles of wake-up frames on the advertising channel. Accordingly, the mobile phone configured in low-power wake-up channel detection mode can receive the wake-up frame.
[0145] It should be noted that Figure 8The example of a Bluetooth headset entering a low-power wake-up transmission mode by powering on is used for illustration, and does not limit this application. When other possible smart devices are powered on, these smart devices can also be configured to a low-power wake-up transmission mode according to software settings. For example, after the battery is installed in the smart finder, the smart finder is powered on and configured to a low-power wake-up transmission mode, and by sending BLE broadcast packets on the broadcast channel, it is easy for other devices to find the smart finder.
[0146] (2) The BLE wake-up end receives the user's file sharing operation.
[0147] The above file sharing operation can be used to instruct to share the file in the BLE wake-up end to other devices.
[0148] like Figure 9 As shown, when a user is using mobile phone 1, the user may have the need to analyze files such as videos, pictures or documents on mobile phone 1 and share them with other devices. For example, when mobile phone 1 displays a photo in the gallery application, the user can click the "Share to other devices" option. In response to the user's operation, mobile phone 1 is configured to low-power wake-up transmission mode and sends a BLE broadcast packet including multiple cycles of wake-up frames on the broadcast channel. Accordingly, mobile phone 2, which is configured to low-power wake-up channel detection mode, can receive the wake-up frame. After successful verification, mobile phone 1 shares the photo to mobile phone 2 via Bluetooth connection.
[0149] (3) The BLE wake-up end receives incoming call requests and audio and video call requests from other devices.
[0150] like Figure 10 As shown in the figure, at the initial moment, the phone and Bluetooth headset are successfully paired and establish a Bluetooth connection. If the user does not use the Bluetooth headset for an extended period, the headset disconnects from the phone and is configured to low-power wake-up channel detection mode. At this point, the phone receives a call answer request from another device. According to software settings, the phone can be configured to low-power wake-up transmission mode and send a BLE advertising packet containing multiple cycles of wake-up frames on the advertising channel. In response, the Bluetooth headset can receive the wake-up frame. After successful verification, the user can make a call through the Bluetooth headset.
[0151] (4) The BLE wake-up terminal receives the user's operation to turn on Bluetooth.
[0152] like Figure 11As shown in the figure, at the initial moment, the Bluetooth of the mobile phone is turned off. When the user wants to use Bluetooth, the user can pull down to trigger the mobile phone to display the control menu. Then, the user can click the "Bluetooth" option in the control menu. In response to the user's click on the "Bluetooth" option, the mobile phone is configured to low-power wake-up transmission mode and sends a BLE broadcast packet including multiple cycles of wake-up frames on the broadcast channel. Accordingly, the PC configured in low-power wake-up channel detection mode can receive the wake-up frame. After the verification is successful, the mobile phone and PC recommend a collaborative connection.
[0153] Referring to the description of the above embodiment, the BLE wake-up end performs Bluetooth communication with the BLE awakened end via the Bluetooth module. The BLE wake-up end can specifically configure the Bluetooth module of the BLE wake-up end to low-power wake-up transmission mode, so that the Bluetooth module transmits a BLE broadcast packet including multiple cycles of wake-up frames on the broadcast channel.
[0154] S02, the BLE awakened end is configured to low power wake-up channel detection mode.
[0155] Among them, the low-power wake-up channel detection mode, also known as the sleep mode, means that before the BLE awakened end discovers the BLE wake-up end, the BLE awakened end is configured to detect whether there is information sent on the broadcast channel according to a preset duty cycle.
[0156] As an example, the preset duty cycle is equal to the second preset duration divided by the sum of the first preset duration and the second preset duration, where the first preset duration is the scanning interval of the BLE awakened end (i.e., the time interval from the end of the previous scan to the start of the next scan), and the second preset duration is the duration of the scanning window within each scanning interval. For example, the first preset duration is less than or equal to the reception duration of (m-1) wake-up frames, and the second preset duration is greater than or equal to the reception duration of one wake-up frame.
[0157] In some embodiments, the BLE wake-up terminal can be configured to low-power wake-up channel detection mode under the following conditions:
[0158] (1) The BLE awakened end receives the user's operation to turn on Bluetooth.
[0159] like Figure 8 As shown, initially, the phone's Bluetooth is off. When the user wants to use Bluetooth, they can pull down to trigger the phone to display a control menu. Then, the user can click the "Bluetooth" option in the control menu. In response to the user clicking the "Bluetooth" option, the phone is configured to low-power wake-up channel detection mode and detects whether there is any information being sent on the broadcast channel according to a preset duty cycle.
[0160] In combination with the description of (4) in S01 and (1) in S02 of the above embodiment, a mobile phone may be configured in low-power wake-up transmission mode and low-power wake-up channel detection mode at the same time. That is, the mobile phone can broadcast its wake-up frames to other devices and receive wake-up frames from other devices.
[0161] (2) The BLE awakened end does not interact with other devices based on Bluetooth connection for business data within the preset time period.
[0162] like Figure 10 As shown, at the initial moment, the mobile phone and the Bluetooth headset are paired successfully to establish a Bluetooth connection. If the Bluetooth headset detects that it has not exchanged business data with the mobile phone based on the Bluetooth connection within a preset time (such as 10 minutes), or the signal between the Bluetooth headset and the mobile phone is poor, the Bluetooth headset disconnects the Bluetooth connection with the mobile phone and is configured to a low-power wake-up channel detection mode, and detects whether there is any information being sent on the broadcast channel according to a preset duty cycle on the broadcast channel. Once the wake-up frame sent by the mobile phone is detected, the mobile phone re-establishes the connection with the Bluetooth headset and exchanges business data. It can be understood that if the user does not use the Bluetooth headset for a long time, by configuring the Bluetooth headset to a low-power wake-up channel detection mode, the power consumption of the Bluetooth headset can be reduced and the battery life of the Bluetooth headset can be extended.
[0163] (3) The BLE awakened end receives the user's multi-screen collaborative operation.
[0164] Multi-screen collaboration refers to connecting at least two electronic devices. By mirroring the window of one electronic device on another, you can use apps on the other device, drag and drop to transfer files, and edit mobile files more efficiently.
[0165] like Figure 12 As shown, when the user wants to use the multi-screen collaboration function, the user can click the multi-screen collaboration option in the PC control panel. In response to the user's click operation, the PC is configured to a low-power wake-up channel detection mode, and detects whether there is information being sent on the broadcast channel according to a preset duty cycle on the broadcast channel. When the PC detects a BLE broadcast packet from other electronic devices, the PC can verify the BLE broadcast packet. If the BLE broadcast packet is successfully verified, the PC's logo and the logos of other electronic devices (such as mobile phones) are displayed on the PC's display. If the user drags the mobile phone's logo to the area where the PC's logo is located, the PC sends a Bluetooth-based collaboration request to the mobile phone.
[0166] Referring to the description of the above embodiment, the BLE awakened end performs Bluetooth communication with the BLE awakening end through the Bluetooth module. Therefore, the BLE awakened end can specifically configure the Bluetooth module of the BLE awakened end to the low power wake-up channel detection mode.
[0167] S03, the BLE wake-up end starts sending the first BLE advertising packet.
[0168] The first BLE broadcast packet is also called a paging message, and is used to discover Bluetooth devices located near the BLE wake-up end.
[0169] After the BLE wakeup end is configured in low-power wakeup transmission mode, the BLE wakeup end begins to send the first BLE advertising packet. The first BLE advertising packet can carry multiple cycles of wakeup frames. Because the content of each wakeup frame is basically the same, for example, each wakeup frame carries the channel estimation part and the trigger sequence, when the BLE wakeup end receives any wakeup frame and verifies the wakeup frame, the BLE wakeup end can send a connection request or confirmation message to the BLE wakeup end.
[0170] It should be noted that because the first BLE advertising packet carries not only multiple wake-up frames but also various information such as the access address, it can be transmitted continuously on the advertising channel for a period of time. During this period, the BLE wake-up end can transmit multiple wake-up frames in succession, and the BLE wake-up end may receive a wake-up frame from them.
[0171] Since the broadcast data field of the protocol data unit (PDU) in the broadcast packet provides manufacturers with modification permissions, the broadcast data field is also called the manufacturer-defined data field. The BLE wake-up end can carry multiple cycles of wake-up frames in the broadcast data field. In different Bluetooth versions, the length of the broadcast data field in the PDU may vary. When using different Bluetooth versions, the number of wake-up frames carried in the broadcast data field of the PDU may also vary. Figure 12As shown, in the manufacturer - defined data field of the classic BLE broadcast, the wake - up frame can be repeated m1 times, and in the manufacturer - defined data field of the extended BLE broadcast, the wake - up frame can be repeated m2 times, where m1 < m2. Each wake - up frame can include three parts: a channel estimation part, a trigger sequence, and a data and verification part. The channel estimation part can be designed as a signal / sequence that is repeated several times and is incompatible with the preamble part of the existing communication method. The channel estimation part can be used for carrier detection and preamble detection. Carrier detection can include, but is not limited to, received signal strength indicator (RSSI) detection, modulation and demodulation principle gauss frequency shift keying (GFSK) detection, etc.; the trigger sequence is a cross - correlation sequence modulated by a string of numbers and is used to determine whether it conforms to the preset characteristics. The data and verification part can include slave identification, master identification, the broadcast channel of the slave at connection establishment, the broadcast time of the slave at connection establishment, a verification sequence, etc., and these information can also be used for auxiliary verification.
[0172] The following combines Figures 13 to 15 to specifically describe the data format of the BLE broadcast packet.
[0173] Exemplarily, Figure 13 is a schematic diagram of the data format of the classic BLE broadcast packet provided by the embodiments of the present application.
[0174] Taking Bluetooth version 4.0 as an example. As Figure 13 shown, the BLE broadcast packet consists of a preamble, an access address, a PDU, and a cyclic redundancy check (CRC). Among them, the preamble is an 8 - bit alternating sequence, such as 01010101 or 10101010, which is mainly used for the frequency offset synchronization and timing synchronization of the receiver, as well as automatic gain control. The access address, also known as the access address, is a string. The protocol stipulates that the access address of all broadcast channels is 0x8E89BED6. The data of the BLE wake - up end and the BLE woken - up end needs to be whitened and anti - noise processed. In this process, the BLE wake - up end uses the original data exclusive - OR operation with the access address, and the BLE woken - up end restores the data using the exclusive - OR operation. The PDU is mainly used to carry data packets. The CRC, also known as the error - correcting offset code, is mainly used for error detection.
[0175] The PDU may include a data packet header and a valid data packet (payload). The data packet header can be used to explain whether a piece of data is broadcast data or scan response data, whether the broadcast data is a connectable broadcast or an unconnectable broadcast, or a directed broadcast type. In an embodiment of the present application, the type of the PDU may be Adv_IND, where Adv_IND represents an ordinary broadcast packet. The valid data packet may include a broadcast address (AdvA) and broadcast data (AdvData). The broadcast address is the media access control (MAC) address of the slave device (i.e., the BLE wake-up end). The broadcast data field is used to carry multiple loop wake-up frames. In Bluetooth version 4.0, the length of the broadcast data field cannot exceed 31 bytes. If the length of a wake-up frame is n bits and it loops m1 times, the following condition is met: m1×n≤31bytes.
[0176] Figure 14 A schematic diagram of three cyclic sequences in a PDU provided in an embodiment of the present application.
[0177] For example, Figure 14 As shown in (a), the length of a wake-up frame is 62 bits. Since 62 bits × 4 = 31 bytes, the wake-up frame can be circulated at most m1 = 4 times in the advertising data field of the PDU in the first BLE advertising packet.
[0178] For example, Figure 14 As shown in (b), the length of a wake-up frame is 31 bits. Since 31 bits × 8 = 31 bytes, the wake-up frame can be circulated at most m1 = 8 times in the advertising data field of the PDU in the first BLE advertising packet.
[0179] For example, Figure 14 As shown in (c), the length of a wake-up frame is 49 bits. Since 49 bits × 5 < 31 bytes and 49 bits × 6 > 31 bytes, the wake-up frame can be cycled at most m1 = 5 times in the advertising data field of the PDU in the first BLE advertising packet.
[0180] For example, Figure 15 A schematic diagram of the data format of the extended BLE advertising packet provided in an embodiment of the present application.
[0181] Take Bluetooth version 5.0 as an example. Bluetooth version 5.0 divides advertising channels into two categories: one is the primary advertising channel, which operates on channels 37, 38, and 39, that is, the advertising channels used by Bluetooth version 4.0; the other is the secondary advertising channel, which operates on channels 0-36, which is a new advertising channel in Bluetooth version 5.0. Figure 14 Compared to the data format shown in Figure 5, Bluetooth version 5.0 adds an ADV_EXT_IND command to the primary advertising data type. When a scanning device receives the ADV_EXT_IND command and recognizes the data it carries, it can listen for auxiliary packets on the secondary advertising channel. Bluetooth version 5.0 also expands the advertising packet structure.
[0182] like Figure 15 As shown in the figure, in Bluetooth version 5.0, a BLE advertising packet can include a data packet header and a valid data packet. The valid data packet can also include the length of the extended header (extended header length), the advertising packet mode (AdvMode), the extended header (extended header), and the advertising data (AdvData). Among them, the length of the extended header consists of 6 bits and is used to indicate the length of the extended header (extended header). The advertising packet mode consists of 2 bits and is used to indicate the mode of the advertising packet. The length of the extended header (extended header) ranges from 0 to 63 bytes and is specified by the bit value of the extended header length (extended header length). The extended header (extended header) is the core component of the extended packet and can include the broadcast address, target address, broadcast data identifier, broadcast event type, auxiliary packet channel, transmission power, additional broadcast data, etc. The broadcast data, whose length ranges from 0 to 254 bytes, is used to carry multiple wake-up frames.
[0183] In Bluetooth version 5.0, the maximum length of the broadcast data field in an extended PDU cannot exceed 254 bytes. If a wakeup frame is n bits long and it is repeated m2 times, the following condition is met: m2×n≤254 bytes.
[0184] It should be noted that the above embodiments are described using Bluetooth version 4.0 and Bluetooth version 5.0 as examples, which do not limit the present application. In actual implementation, the Bluetooth versions used by the BLE wake-up end and the BLE awakened end may also include, but are not limited to, any of the following: Bluetooth version 5.3, Bluetooth version 5.2, Bluetooth version 5.1, Bluetooth version 4.2, Bluetooth version 4.1, Bluetooth version 3.0, Bluetooth version 2.1, Bluetooth version 2.0, Bluetooth version 1.2, Bluetooth version 1.1 and Bluetooth version 1.0. It is understandable that the BLE wake-up end may also carry multiple cycles of wake-up frames in future higher versions of the BLE broadcast packet, and the number of cycles of the wake-up frame can be determined based on the length of the broadcast data field of the higher version. When the length of the wake-up frame remains unchanged, when the length of the broadcast data field is longer, the number of cycles of the wake-up frame is greater, the duty cycle of the BLE awakened end is lower, and the power consumption of the BLE awakened end is lower.
[0185] In some embodiments, the broadcast channel of the BLE awakening end and the BLE awakened end may be a pre-set channel or a randomly selected channel.
[0186] As a first example, if BLE extended broadcast and HDT broadcast are used, the manufacturer of the BLE wake-up end and the manufacturer of the BLE awakened end can predefine through code that a channel (selected from channel 0 to channel 36) is used as the broadcast channel for transmitting BLE broadcast packets. After the BLE wake-up end is configured to low-power wake-up transmission mode, the BLE wake-up end starts to send the first BLE broadcast packet on the channel. Accordingly, after the BLE awakened end is configured to low-power wake-up channel detection mode, the BLE awakened end can scan on the channel at a time interval of a first preset duration.
[0187] As a second example, the BLE wakeup end and the BLE wakeup end can be devices that have been paired and disconnected. During the last connection, the BLE wakeup end and the BLE wakeup end can negotiate and select the channel with the least signal interference as the broadcast channel for this reconnection based on the signal interference of each broadcast channel. During this reconnection, the BLE wakeup end begins to send the first BLE broadcast packet on this channel, and the BLE wakeup end can scan on this channel at intervals of a first preset duration.
[0188] As a third example, after the BLE wake-up end is configured to the low-power wake-up transmission mode, the BLE wake-up end can randomly select a channel from channel 37, channel 38 and channel 39. Taking channel 39 as an example, the BLE wake-up end starts to send the first BLE broadcast packet on channel 39. After the BLE awakened end is configured to the low-power wake-up channel detection mode, since the BLE awakened end cannot determine which channel the BLE wake-up end uses, the BLE awakened end can scan channels 37, channel 38 and channel 39 at time intervals of a first preset duration. In a first possible implementation method, only one broadcast channel is scanned within a scanning cycle, and three scanning cycles constitute a round, so that channels 37, channel 38 and channel 39 are monitored separately, but the delay of this method is relatively large. In a second possible implementation method, within each scanning cycle, channels 37, channel 38 and channel 39 are monitored for a period of time respectively, but the power consumption of this method is relatively high.
[0189] As a fourth example, after the BLE wake-up end is configured to the low-power wake-up transmission mode, the BLE wake-up end can send a BLE broadcast packet on channel 37, channel 38, and channel 39 respectively, and the content of each BLE broadcast packet is the same. After the BLE awakened end is configured to the low-power wake-up channel detection mode, since the BLE awakened end cannot determine which channel the BLE wake-up end uses, the BLE awakened end can monitor channel 37, channel 38, and channel 39 for a period of time in each scanning cycle. It should be noted that for the implementation of the fourth example, you can refer to the following embodiment for Figure 21 and Figure 22 The detailed description is not given here.
[0190] In step S04, the BLE awakened end scans at a preset time interval (which may be referred to as a first preset duration) to determine whether the received channel estimation portion passes verification, that is, to determine whether the conditions for switching from low-power wake-up channel detection mode to trigger sequence reception mode are met. If the channel estimation test passes, step S05 is executed. If the channel estimation test fails, the low-power wake-up channel detection mode is maintained and step S04 is continued.
[0191] The trigger sequence receiving mode means that after the BLE awakened end discovers the BLE awakening end, the BLE awakened end is configured to receive a wake-up frame from the BLE awakening end.
[0192] After the BLE awakened end is configured as the low-power wake-up channel detection mode, the BLE awakened end can scan on the broadcast channel at a preset time interval (which can be called the first preset duration), and the duration of the channel scan in each scanning cycle is the second preset duration. Among them, the sum of the first preset duration and the second duration is less than or equal to the wake-up transmission duration, and the wake-up transmission duration refers to the reception duration of all wake-up frames in a BLE broadcast packet. The first preset duration is less than or equal to the reception duration of (m-1) wake-up frames, and the second preset duration is greater than or equal to the reception duration of one wake-up frame. The reception duration of a wake-up frame depends on the field length of a wake-up frame (such as n bits). It can be understood that the more information a wake-up frame carries, the longer the field length of a wake-up frame, and the longer the reception duration of a wake-up frame.
[0193] With reference to the description of the above embodiment, each wake-up frame may include three parts: a channel estimation portion, a trigger sequence portion, and a data and check portion. Accordingly, the second preset duration may be divided into three durations: the duration of the channel estimation detection period, the duration of the trigger sequence period, and the duration of the data and check portion period. Each of these three durations is less than the reception duration of a wake-up frame.
[0194] In some embodiments, the channel estimation portion can be designed to repeat the signal several times and be incompatible with the preamble frame portion of existing communication methods. For example, the detection of the channel estimation portion may include carrier detection and / or preamble detection. Carrier detection may include, but is not limited to, RSSI detection and GFSK detection (whether GFSK encoding is used). Preamble detection may refer to the use of an autocorrelation algorithm to detect and perform channel estimation. Repeat detection and preamble detection may be combined into a single function.
[0195] As an example, the BLE awakened end can detect whether the RSSI of the carrier of the broadcast channel is greater than or equal to the preset strength during the channel estimation detection period. If the RSSI of the carrier of the broadcast channel monitored during a certain channel estimation detection period is greater than or equal to the preset strength, it means that information is being transmitted on the broadcast channel, or the broadcast channel may be used by an interference signal. The BLE awakened end can switch from the low-power wake-up channel detection mode to the trigger sequence reception mode to receive the wake-up frame that may be from the BLE wake-up end. If the RSSI of the carrier of the broadcast channel monitored during a certain channel estimation detection period is less than the preset strength, it means that it may be an interference signal or no information is transmitted on the broadcast channel. The low-power wake-up channel detection mode is maintained until the conditions for switching from the low-power wake-up channel detection mode to the trigger sequence reception mode are met.
[0196] As another example, the BLE awakened end can detect whether the RSSI of the carrier of the broadcast channel is greater than or equal to the preset strength during the channel estimation detection period. If the RSSI of the carrier of the broadcast channel detected during a certain channel estimation detection period is greater than or equal to the preset strength, it means that information is being transmitted on the broadcast channel, and the BLE awakened end continues to capture the preamble and performs an autocorrelation check on the captured preamble. If the preamble passes the autocorrelation check, the BLE awakened end switches from the low-power wake-up channel detection mode to the triggered sequence reception mode to receive the wake-up frame from the BLE wake-up end. If the RSSI of the carrier of the broadcast channel detected during a certain channel estimation detection period is less than the preset strength, or no preamble passes the autocorrelation check, it means that it may be an interference signal, and the low-power wake-up channel detection mode is maintained until the conditions for switching from the low-power wake-up channel detection mode to the triggered sequence reception mode are met.
[0197] For example, if the length of a wake-up frame is represented by x, and the first BLE broadcast packet carries m wake-up frames, the wake-up transmission duration can be represented by m×x, the first preset duration can be represented by (m-1)×x, the second preset duration can be represented by p×x, and the duration of the channel estimation detection period can be represented by x / q. The first preset duration refers to the time interval during which the BLE awakened end performs detection on the broadcast channel; the second preset duration refers to the duration during which the BLE awakened end receives a wake-up frame within a scan cycle, i.e., the duration of the scan window. Both q and p are greater than 1.
[0198] Taking x=25, m=8, q=5, and p=1.2 as an example, the wake-up transmission duration is 200 microseconds, the first preset duration is 175 microseconds, the second preset duration is 30 microseconds, and the duration of the channel estimation detection period is 5 microseconds.
[0199] Taking x=20, m=10, q=2, and p=2 as an example, the wake-up transmission duration is 200 microseconds, the first preset duration is 180 microseconds, the second preset duration is 40 microseconds, and the duration of the channel estimation detection period is 10 microseconds.
[0200] In the above scheme, in the low-power wake-up channel detection mode, the BLE awakened end only needs to detect whether there is information sent on the broadcast channel without receiving a complete wake-up frame. Therefore, the duration of the channel scan in each scanning cycle can be set to be less than the reception duration of a wake-up frame, which is conducive to reducing the duty cycle of the BLE awakened end and reducing the power consumption of the device of the BLE awakened end. In addition, the duration of the BLE awakened end scanning on the broadcast channel at a time interval of a first preset duration is set to be less than or equal to the transmission duration of (m-1) wake-up frames, and the duration of receiving the wake-up frame from the BLE awakened end (i.e., the second preset duration) is set to be greater than the reception duration of a wake-up frame, so that the BLE awakened end can receive a complete wake-up frame from the first BLE broadcast packet.
[0201] It should be noted that the above embodiment is described by taking the example that when the BLE wake-up end starts to send the first BLE broadcast packet, the BLE awakened end has been configured as the low-power wake-up channel detection mode, which does not limit the present application. As another example, when the BLE wake-up end starts to send the first BLE broadcast packet, the BLE awakened end may not have been configured as the low-power wake-up channel detection mode. In this case, since no BLE awakened end receives the BLE broadcast packet from the BLE wake-up end, the BLE wake-up end may need to continue to send BLE broadcast packets according to a preset period, such as sending a second BLE broadcast packet at the second moment, sending a third BLE broadcast packet at the third moment, etc., until the BLE awakened end receives the BLE broadcast packet from the BLE wake-up end and returns an ACK message or a connection request message to the BLE wake-up end, then the BLE wake-up end stops sending BLE broadcast packets.
[0202] S05 , the BLE awakened end switches from the low-power wake-up channel detection mode to the trigger sequence receiving mode, and receives the trigger sequence from the first BLE broadcast packet.
[0203] S06, the BLE awakened end determines whether the received trigger sequence passes verification.
[0204] The trigger sequence can be a unique sequence generated by the BLE wake-up end after modulating a series of numbers. The unique sequence is used to determine whether the predetermined characteristics are met. For example, the trigger sequence can be a Barker code, a Walsh code, etc.
[0205] After the BLE awakened end receives the trigger sequence from the first BLE advertising packet, the BLE awakened end may verify the trigger sequence. If the trigger sequence is exactly the same as the preset sequence number, or the similarity between the trigger sequence and the preset sequence number is greater than or equal to a preset value, the BLE awakened end determines that the trigger sequence has passed the verification and executes S07 below. Otherwise, the BLE awakened end returns to execute S04 above.
[0206] S07, the BLE awakened end receives the data and the check part from the first BLE broadcast packet.
[0207] It should be noted that the channel estimation part of S04, the wake-up sequence of S06 and the data and check part of S07 all belong to the first wake-up frame, and the first wake-up frame is any frame of the first BLE broadcast packet.
[0208] S08, the BLE awakened end determines whether the received data and the verification part pass the verification.
[0209] The above data and verification part may include the following data, encoded or unencoded: the identifier of the BLE wake-up end (such as a MAC address or other identifier), the identifier of the BLE awakened end (such as a MAC address or other identifier), the broadcast channel of the slave device during subsequent connection establishment, the broadcast time of the slave device during connection establishment, and the verification sequence, etc.
[0210] For example, Figure 16 A schematic diagram of transmitting a wake-up frame provided in an embodiment of the present application.
[0211] In the BLE low power wake-up mode provided in the embodiment of the present application, the transmission duration of the first BLE broadcast packet sent by the BLE wake-up end is equal to the transmission duration of a traditional BLE broadcast packet. For example, the transmission duration of the first BLE broadcast packet is 300 microseconds. Figure 16 As shown, the broadcast data field of the PDU in the first BLE broadcast packet can carry 8 wake-up frames. Take the total transmission duration of 8 wake-up frames (i.e., the wake-up transmission duration) as 200 microseconds as an example. The transmission duration of each wake-up frame is 25 microseconds. The BLE awakened end can perform a round of detection every first preset duration to determine whether there is any information sent on the broadcast channel. For example, the first preset duration is 175 microseconds. It should be noted that the embodiment of the present application is illustrated by taking the transmission duration of the first BLE broadcast packet as 300 microseconds as an example, which does not limit the present application. In actual implementation, the time length of the BLE broadcast packet can be adjusted.
[0212] In a reconnection scenario, the BLE wakeup end sends a first BLE advertising packet. For example, if the channel estimation portion fails verification during channel estimation detection periods i to i+5, and the RSSI of the broadcast channel detected during channel estimation detection period i+6 is greater than or equal to the preset strength (i.e., passes carrier detection), and the captured preamble passes autocorrelation detection, the BLE wakeup end switches from low-power wakeup channel detection mode to trigger sequence reception mode and receives a trigger sequence from the same wakeup frame. If the trigger sequence verification passes, the BLE wakeup end continues to receive the data and check portion from the same wakeup frame and performs verification on the data and check portion, such as the MAC address of the BLE wakeup end, the MAC address of the BLE wakeup end, the scan time of the slave device during subsequent connection establishment, the scan channel of the slave device during subsequent connection establishment, and the check sequence. The duration of the channel estimation detection period, the duration of the trigger sequence period, and the duration of the data and check portion period are collectively referred to as the second preset duration, which is greater than the reception duration of a wakeup frame. For example, the transmission duration of a wake-up frame is 25 microseconds, and the second preset duration is 30 microseconds. If the three parts of data of a wake-up frame all pass the verification of the data and verification parts, a reconnection is performed.
[0213] For example, Figure 17 A schematic diagram of another transmission wake-up frame provided in an embodiment of the present application.
[0214] and Figure 16 There is a difference, Figure 17 There is signal interference in the channel estimation detection period i+2 to the channel estimation detection period i+4. Figure 17 As shown, in the channel estimation detection period i+2, the BLE awakened end passes the verification of the channel estimation part and the trigger sequence, but fails the verification of the data receiving part, and continues to maintain the low-power wake-up channel detection mode; in the channel estimation detection period i+3, the BLE awakened end fails the verification of the channel estimation part, stops the verification of the trigger sequence and the data receiving part, and continues to maintain the low-power wake-up channel detection mode; in the channel estimation detection period i+4, the BLE awakened end passes the verification of the channel estimation part, but fails the verification of the trigger sequence, stops the verification of the data receiving part, and continues to maintain the low-power wake-up channel detection mode. In the channel estimation detection period i+6, the BLE awakened end passes the verification of the channel estimation part, the trigger sequence, and the data receiving part in sequence, and exits the low-power wake-up channel detection mode.
[0215] Through the above embodiments Figure 16 and Figure 17It can be seen from the description that when the BLE wake-up end sends the first BLE broadcast packet, the BLE awakened end can receive the wake-up frame. Therefore, the wake-up delay of the BLE low-power wake-up mode provided in the embodiment of the present application (for example, 156 microseconds) is less than the transmission time of a BLE broadcast packet (for example, 300 microseconds), thereby improving the device discovery and connection speed, and breaking the strong correlation between the duty cycle of the BLE wake-up end, the duty cycle of the BLE awakened end and the delay of device discovery.
[0216] Compared with the traditional BLE wake-up mode, the BLE low-power wake-up mode provided in the embodiment of the present application has the following advantages:
[0217] From a latency perspective, the BLE awakened end can receive a complete wake-up frame in a BLE advertising packet, so the wake-up latency is less than the duration of a BLE advertising packet. For example, this BLE low-power wake-up mode can shorten the wake-up latency from 1000 microseconds to less than the transmission duration of a BLE advertising packet (for example, 156 microseconds), improving device discovery and connection speed. In addition, the decoupling of the wake-up latency and the advertising interval of the BLE wake-up end also helps to reduce the BLE wake-up end's advertising duty cycle and reduce the power consumption of the BLE wake-up end.
[0218] From a power consumption perspective, because the wakeup frame in a BLE advertising packet repeats m times, the transmission time of a single wakeup frame accounts for 1 / m of the wakeup transmission duration (i.e., the reception duration of all wakeup frames in a BLE advertising packet). Therefore, the first duty cycle of the BLE awakened end is 1 / m. On the other hand, the duration of each channel estimation detection period is set to a very short duration, for example, 1 / q of the transmission duration of a wakeup frame, so the second duty cycle of the BLE awakened end is 1 / q. On average, the total duty cycle of the BLE awakened end is 1 / m × 1 / q. In other words, the average power consumption of the BLE awakened end is 1 / m × 1 / q of the normally on power consumption.
[0219] As an example, advertising packets can be divided into four types: BLE1M physical layer advertising packets, BLE2M link layer advertising packets, BLE500K advertising packets, and BLE125K advertising packets. Due to the short BLE2M cycle, BLE500K advertising packets and BLE125K advertising packets will have uncontrollable waveforms due to encoding and cannot be used as wake-up frames. Therefore, the advertising packets of this application can use BLE1M physical layer advertising packets.
[0220] S09, the BLE awakened end sends an acknowledgment (ACK) message or a connection request to the BLE awakening end.
[0221] As an example, the BLE awakened end may send a confirmation message to the BLE awakening end, where the confirmation message is used to indicate confirmation of scanning the BLE awakening end. As another example, the BLE awakened end may send a connection request to the BLE awakening end, where the connection request is used to request a Bluetooth connection.
[0222] S10: The BLE awakened end and the BLE awakening end are configured as the BLE traditional transceiver mode.
[0223] Among them, the BLE traditional transmission and reception mode refers to the normal transmission and reception of business data, such as audio and video data, call data, files, etc., based on the BLE connection after the BLE wake-up end and the BLE awakened end establish a BLE connection.
[0224] In the Bluetooth wake-up method provided in this application, the BLE awakened end only needs to work for a short period of time (which can be called a duty cycle) in each detection cycle. For example, this duty cycle can be about 1 / 60. In this way, even if an ordinary BLE receiver with low power consumption is used, the average power consumption will be reduced from the general 30mw to 500uw, and the average scanning power consumption will be reduced by one to two orders of magnitude, which can achieve the device always on. The wake-up delay will not exceed the length of a broadcast packet, and the wake-up delay can be achieved in milliseconds. In addition, the sending end does not require hardware changes, and the receiving end only needs to change the reception to the duty cycle mode, which is highly compatible.
[0225] The above embodiment is illustrated by taking the example of including multiple wake-up frames in the BLE broadcast packet, each wake-up frame including three parts: a channel estimation part, a trigger sequence, and a data and check part, and is not limited to this application. The present application also provides a wake-up frame in another format: the BLE broadcast packet includes multiple wake-up frames, each wake-up frame including three parts: a channel estimation part, a trigger sequence, a wake-up frame number and a check sequence. The wake-up frame number and its check sequence represent the number of wake-up frames belonging to the BLE broadcast packet. In addition, the BLE broadcast packet also adds an information frame, which includes data and a check part.
[0226] For example, taking the wake-up transmission duration of the BLE broadcast packet as 200 microseconds, Figure 18 A schematic diagram comparing two wake-up frame formats provided in an embodiment of the present application.
[0227] like Figure 18As shown in (a) of Figure 1, a BLE advertising packet consists of eight wakeup frames, each of which contains complete wakeup information, including a channel estimation section, a trigger sequence, data, and a checksum section. The data and checksum sections include the following encoded or unencoded data: the BLE wakeup end identifier, the BLE wakeup end identifier, the slave's advertising channel for subsequent connection establishment, the slave's advertising time for connection establishment, and a checksum sequence. Each wakeup frame lasts 25 microseconds. This approach increases the average wakeup reception duration (the length of a wakeup frame), resulting in higher average wakeup reception power.
[0228] like Figure 18 As shown in (b) of the figure, the BLE advertising packet includes 16 wakeup frames. The content of each wakeup frame is simplified. Each wakeup frame includes: a channel estimation portion, a wakeup sequence, a wakeup frame number, and a check sequence. The wakeup frame number and check sequence may or may not be encoded. The BLE advertising packet also adds an information frame at the end of the PDU. This information frame includes data and a check sequence. The data and check sequence include the following data, encoded or unencoded: the identifier of the BLE awakening end, the identifier of the BLE awakened end, the advertising channel of the slave device during subsequent connection establishment, the advertising time of the slave device during connection establishment, and a check sequence. As an example, the BLE awakened end can calculate the information frame scan time (e.g., the information frame scan time is after 132 microseconds) based on the wakeup frame number and check sequence (e.g., WUF4 represents the fourth wakeup frame), the duration of each wakeup frame, and the total number of wakeup frames in a BLE advertising packet. It then scans the information frames during the scan time to obtain the data and check sequence. Through the design of the second wake-up frame, the duration of each wake-up frame is shortened to 11 microseconds, which can reduce the scanning time of each wake-up frame, reduce the duty cycle and average power consumption.
[0229] The above embodiments are illustrated by applying the Bluetooth wake-up method provided by this application to BLE, which is not limited to this application. The Bluetooth wake-up method provided by this application can also be applied to the next generation of Bluetooth technology: higher data throughput (HDT) Bluetooth.
[0230] like Figure 19As shown, the design of the HDT broadcast packet is similar to that of the BLE broadcast packet. A manufacturer-defined data portion is added to the link layer data of the HDT broadcast packet. As an example, the manufacturer-defined data portion includes multiple wake-up frames, each of which includes a channel estimation portion, a trigger sequence, and data and a check portion. As another example, the manufacturer-defined data portion includes multiple wake-up frames and an information frame, each of which includes a channel estimation portion, a wake-up sequence, a wake-up frame number, and its check sequence, and the information frame includes data and a check portion. The description of the above embodiment can be referred to and will not be repeated here.
[0231] The difference between HDT advertising packets and BLE advertising packets is that the channel estimation portion of BLE advertising packets uses GFSK encoding, while the channel estimation portion of HDT advertising packets uses quadrature phase shift keying (QPSK) encoding. Because HDT advertising packets are convolutionally encoded, the convolutional code causes the first portion of the original data to affect the encoded output of the latter portion. Therefore, there are some differences in the data format of HDT advertising packets and BLE advertising packets.
[0232] For example, Figure 20 A schematic diagram of the data format of an HDT-based broadcast packet provided in an embodiment of the present application.
[0233] like Figure 20 As shown, the BLE wakeup end can insert a sequence of zeros (five consecutive zeros) between the channel estimation portion and the trigger sequence, between the trigger sequence, data, and checksum portions, and between wakeup frames to reset the encoder. This resets the encoder to its initial state (all zeros), ensuring that preceding data does not affect subsequent data and that preceding wakeup frames do not affect subsequent wakeup frames. The design principles of the wakeup frame in HDT broadcast packets are the same as those in BLE broadcast packets and are not further explained here.
[0234] It should be noted that the channel estimation portion of the HDT broadcast packet includes two identical preambles, for example, both 01010101. The Bluetooth chip on the BLE wakeup end can perform QPSK encoding on each of the two preambles. Since the two preambles have the same content, the BLE wakeup end can still decode the two preambles using a preset algorithm and determine whether the decoded preambles pass verification. If so, it then determines whether the trigger sequence passes verification.
[0235] According to the description of the above embodiment, in Bluetooth version 4.0, three broadcast channels are set: channel 37, channel 38 and channel 39. If the BLE wake-up end generates a BLE broadcast packet on a broadcast channel, the frequency of the broadcast channel may be consistent with the frequency of the interference signal. In order to avoid the problem that the broadcast channel is occupied for a long time and the BLE awakened end cannot parse the wake-up frame from the BLE broadcast packet, Figure 7 Based on Figure 21 , this application also proposes a Bluetooth wake-up method that supports frequency hopping. Figure 21 As shown, the method can be applied to BLE classic Bluetooth, and the method can include the following S11 to S26.
[0236] S11, the BLE wake-up end is configured to low-power wake-up sending mode.
[0237] S12, the BLE awakened end is configured to low power wake-up channel detection mode.
[0238] For the specific implementation of S11 and S12, reference may be made to S01 and S02 of the above embodiment, which will not be repeated here.
[0239] S13, the BLE wake-up end starts sending a first BLE broadcast packet on the first channel.
[0240] After the BLE wake-up end is configured in low-power wake-up transmission mode, the BLE wake-up end randomly selects a channel from channel 37, channel 38, and channel 39, and starts sending the first BLE advertising packet on this channel. The first BLE advertising packet is also called the first paging message, which carries multiple cycles of wake-up frames, and the content of each wake-up frame is the same.
[0241] In step S14, the BLE awakened end performs random scans on the three channels at a preset time interval (which may be referred to as a first preset duration) to determine whether the conditions for switching from the low-power wake-up channel detection mode to the trigger sequence reception mode are met. If the conditions are met, step S15 is executed. If the conditions are not met, the low-power wake-up channel detection mode is maintained.
[0242] Different from S04 where the BLE awakened end scans only one channel in one scanning cycle, in S14 the BLE awakened end scans each of the three channels in turn in one scanning cycle. It should be noted that the scanning order of the three channels is also random within each preset time interval, thereby avoiding the phenomenon that one broadcast channel is occupied for a long time, resulting in the BLE awakened end being unable to parse the wake-up frame from the BLE broadcast packet.
[0243] S15: The BLE awakened end switches from the low-power wake-up channel detection mode to the trigger sequence receiving mode.
[0244] S16: The BLE awakened terminal receives information on the first channel. If the interference signal also uses the first channel, the information includes interference information from the interference signal and a wake-up sequence from the first BLE advertising packet.
[0245] S17, the BLE awakened end determines whether the information passes the verification.
[0246] Affected by the interference information, the BLE wake-up sequence cannot be successfully parsed and is therefore judged to have failed the verification.
[0247] S18, the BLE awakened end is reconfigured to low power wake-up channel detection mode.
[0248] S19, the BLE wake-up end starts sending a second BLE advertising packet on the second channel.
[0249] The second channel is a channel randomly selected by the BLE wakeup endpoint from channels 37, 38, and 39, and is different from the first channel. The second BLE broadcast packet, also known as the second paging message, carries multiple cycles of wakeup frames, each with the same content.
[0250] At step S20, the BLE awakened end performs random scans on the three channels at a preset time interval (which may be referred to as a first preset duration) to determine whether a condition for switching from the low-power wake-up channel detection mode to the trigger sequence reception mode is met. If the condition is met, step S21 is executed. If the condition is not met, the low-power wake-up channel detection mode is maintained.
[0251] It should be noted that both S14 and S20 adopt a random scanning method on the three channels, so the order in which the three channels are scanned sequentially may be the same or different.
[0252] S21, the BLE awakened end switches from the low-power wake-up channel detection mode to the trigger sequence receiving mode.
[0253] S22 , the BLE awakened end receives a wake-up sequence from a second BLE broadcast packet on a second channel.
[0254] S23, the BLE awakened end determines whether the wake-up sequence passes verification.
[0255] If the interference signal does not use the second channel, the information received by the BLE awakened end on the second channel only includes the wake-up sequence from the second BLE broadcast packet without interference information, so the BLE awakened end can determine that the verification has passed.
[0256] S24, the BLE awakened end sends a confirmation message or a connection request to the BLE awakening end.
[0257] The above confirmation message is used to indicate confirmation of scanning to the BLE wake-up end. The above connection request is used to request a Bluetooth connection.
[0258] S25, the BLE awakened end is configured as the BLE traditional transceiver mode.
[0259] S26, the BLE wake-up end is configured as BLE traditional transceiver mode.
[0260] For example, Figure 22 A schematic diagram of sending and receiving a wake-up frame in a frequency hopping mode provided in this application.
[0261] like Figure 22 As shown, the BLE wake-up end randomly sends BLE broadcast packets on three channels: channel 37, channel 38, and channel 39. For example, the first BLE broadcast packet is first sent on channel 37, the second BLE broadcast packet is then sent on channel 38, and then the third BLE broadcast packet is sent on channel 39.
[0262] In addition, the interference signal also uses channel 37 to interfere with the first BLE broadcast packet.
[0263] In the channel estimation detection period i, the BLE awakened end detects on channel 37, channel 39, and channel 38 in sequence. Since the BLE awakened end has not started sending packets, the switching condition is not met and the next round of detection continues.
[0264] In the channel estimation detection period i+1, the BLE awakened end detects on channel 38, channel 37, and channel 39 in sequence. Since the BLE awakened end has not started sending packets, the switching condition is not met and the next round of detection continues.
[0265] During channel estimation detection period i+2, the BLE victim first detects on channel 37. Since the BLE victim is sending the first BLE advertising packet on channel 37, the switching condition is met and the victim switches to the triggered sequence receiving mode. However, if the interfering signal also uses channel 37, the BLE victim will be affected by the interference information from the interfering signal and cannot obtain the wakeup frame of the first BLE advertising packet. The BLE victim then returns to the low-power wakeup channel detection mode.
[0266] In channel estimation detection period i+3, the BLE awakened end first detects on channel 39 and then on channel 37. Referring to the analysis of channel estimation detection period i+2, the BLE awakened end still cannot obtain the wake-up frame of the first BLE advertising packet, and the BLE awakened end returns to low-power wake-up channel detection mode.
[0267] In channel estimation detection period i+4, the BLE awakened end first detects on channel 38, then on channel 39, and finally on channel 37. Since there is only interference signal at this time and no BLE advertising packet, the BLE awakened end returns to low-power wake-up channel detection mode again.
[0268] During channel estimation detection period i+5, the BLE awakened end first detects on channel 38. Because the BLE awakening end is sending the second BLE advertising packet on channel 38, the switching condition is met and the device switches to triggered sequence reception mode. Furthermore, although there is an interference signal, the interference signal and the second BLE advertising packet use different channels and do not affect the reception of the second BLE advertising packet.
[0269] In the above scheme, when using BLE Classic Bluetooth, the BLE wake-up end can send BLE broadcast packets in a random order on the three broadcast channels: channel 37, channel 38, and channel 39. The BLE wake-up end can randomly scan the three channels at a preset time interval to determine whether the conditions for switching from low-power wake-up channel detection mode to trigger sequence reception mode are met, and receive any possible BLE broadcast packets. In this way, based on this frequency hopping technology, it can effectively avoid the problem of the broadcast channel being occupied for a long time, which makes the BLE wake-up end unable to parse the wake-up frame from the BLE broadcast packet, and improve the success rate of device discovery.
[0270] An embodiment of the present application further provides an electronic device, which may be the BLE wake-up terminal device of the above-mentioned embodiment. The electronic device may include: one or more processors and a memory. The memory is coupled to the one or more processors, and the memory is used to store computer program code, which includes computer instructions. The one or more processors call the computer instructions to enable the electronic device to implement the methods of each of the above-mentioned embodiments.
[0271] An embodiment of the present application further provides an electronic device, which may be the BLE wake-up end device of the above-described embodiment. The electronic device may include: one or more processors and a memory. The memory is coupled to the one or more processors, and the memory is used to store computer program code, which includes computer instructions. The one or more processors invoke the computer instructions to cause the electronic device to implement the methods of the above-described embodiments.
[0272] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored; when the computer-readable storage medium is run on a computer, the computer is caused to execute the method shown above. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more servers that can be integrated with the medium. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0273] An embodiment of the present application further provides a computer program product, which includes computer program code. When the computer program code runs on a computer, the computer executes the methods in the above embodiments.
[0274] The present application also provides a chip that is coupled to a memory and is used to read and execute computer programs or instructions stored in the memory to perform the methods in the above embodiments. The chip can be a general-purpose processor or a dedicated processor. It should be noted that the chip can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this application.
[0275] The terminal device, computer-readable storage medium, computer program product and chip provided in the above-mentioned embodiments of the present application are all used to execute the method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects corresponding to the method provided above, and will not be repeated here.
[0276] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0277] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0278] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0279] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0280] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application.
[0281] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A Bluetooth wake-up method, characterized in that: The method is applied to a first electronic device, and includes: The first electronic device scans the broadcast channel at a preset time interval, where the preset time interval is a first preset duration, and the duration of each scan is a second preset duration, where the first preset duration is less than or equal to a duration for receiving (m-1) wake-up frames, and the second preset duration is greater than or equal to a duration for receiving one wake-up frame, where m is an integer greater than 1; The first electronic device verifies the first wake-up frame received within the second preset time period, and if the verification of the first wake-up frame is passed, transmits business data with the second electronic device through the Bluetooth connection, where the first wake-up frame is one of the m wake-up frames of the first broadcast packet sent by the second electronic device.
2. The method according to claim 1, characterized in that The first wake-up frame includes: a channel estimation part, a trigger sequence, data and a check part; The first electronic device verifies the first wake-up frame received within the second preset time period, and transmits service data to the second electronic device through the Bluetooth connection if the verification of the first wake-up frame is passed, including: The first electronic device verifies the channel estimation part; In a case where the channel estimation part is verified, the first electronic device receives the trigger sequence and verifies the trigger sequence; When the trigger sequence is verified, the first electronic device receives the data and the verification part, and verifies the data and the verification part; When the data and the verification part are verified, the first electronic device transmits the business data to the second electronic device via Bluetooth connection.
3. The method according to claim 2, characterized in that The data and check part are encoded data; After the first electronic device receives the data and the verification part, and before the first electronic device verifies the data and the verification part, the method further includes: The first electronic device decodes the data and the check portion.
4. The method according to claim 1, wherein The first wake-up frame includes: a channel estimation part, a trigger sequence, a wake-up frame number and a check sequence; the first broadcast packet also includes an information frame, and the information frame includes data and a check part; The first electronic device verifies the first wake-up frame received within the second preset time period, and transmits service data to the second electronic device through the Bluetooth connection if the verification of the first wake-up frame is passed, including: The first electronic device verifies the channel estimation part; In a case where the channel estimation part is verified, the first electronic device receives the trigger sequence and verifies the trigger sequence; When the trigger sequence is verified, the first electronic device receives the wake-up frame number and the check sequence thereof, and when the wake-up frame number and the check sequence are verified, determines a scanning time of the information frame based on the wake-up frame number and the check sequence thereof; During the scanning time of the information frame, the first electronic device receives the information frame and verifies the data and the check part of the information frame; When the data and the verification part are verified, the first electronic device transmits the business data to the second electronic device via Bluetooth connection.
5. The method according to claim 4, characterized in that The wake-up frame number and its check sequence are encoded data, and the data and check part are encoded data; After the first electronic device receives the wake-up frame number and the check sequence thereof, and before the first electronic device verifies the wake-up frame number and the check sequence thereof, the method further includes: the first electronic device decoding the wake-up frame number and the check sequence thereof; After the first electronic device receives the information frame and before the first electronic device verifies the data and the check portion of the information frame, the method further includes: the first electronic device decoding the data and the check portion of the information frame.
6. The method according to any one of claims 2 to 5, characterized in that The channel estimation part includes a preamble; The first electronic device verifies the channel estimation part, including: The first electronic device performs carrier detection on the broadcast channel; In a case where the carrier detection is passed, the first electronic device verifies the preamble code.
7. The method according to claim 6, characterized in that The preamble codes include at least two preamble codes with identical content; and the first electronic device verifies the preamble codes, including: The first electronic device performs autocorrelation detection on the at least two preamble codes.
8. The method according to any one of claims 2 to 5, characterized in that The data and verification part includes at least one of the following: the identification of the master, the identification of the slave, the broadcast channel of the slave when establishing a connection, the broadcast time of the slave when establishing a connection, and a verification sequence.
9. The method according to any one of claims 1 to 8, characterized in that Before the first electronic device scans the broadcast channel at a preset time interval, the method further includes: When the first condition is met, the first electronic device is configured to be in a low-power wake-up channel detection mode; The power consumption wake-up channel detection mode means that before the first electronic device discovers other devices, it is configured to detect whether there is information sent on the broadcast channel according to a preset duty cycle, and the preset duty cycle is equal to the second preset duration divided by the sum of the first preset duration and the second preset duration; The first condition includes any one of the following: The first electronic device receives an operation by a user to turn on Bluetooth; The first electronic device does not exchange service data with other devices based on the Bluetooth connection within a third preset time period; The first electronic device receives a multi-screen collaborative operation of the user.
10. A Bluetooth wake-up method, characterized in that: The method is applied to a second electronic device, and includes: The second electronic device sends a first broadcast packet on a broadcast channel, where the first broadcast packet carries m wake-up frames, where m is an integer greater than 1; Based on the first wake-up frame in the first broadcast packet passing the verification by the first electronic device, the second electronic device transmits service data with the first electronic device through the Bluetooth connection.
11. The method according to claim 10, characterized in that The first wake-up frame includes: a channel estimation part, a trigger sequence, a data and check part; the channel estimation part includes multiple repeated autocorrelation preamble code sequences; the trigger sequence is a cross-correlation sequence modulated by a string of digits; the data and check part includes at least one of the following: the host identification, the slave identification, the slave broadcast channel when establishing a connection, the slave broadcast time when establishing a connection, and a check sequence.
12. The method according to claim 10, characterized in that The first wake-up frame includes: a channel estimation part, a trigger sequence, a wake-up frame number and a check sequence; the channel estimation part includes multiple repeated autocorrelation preamble code sequences; the trigger sequence is a cross-correlation sequence modulated by a string of digits; the wake-up frame number and its check sequence are used to indicate the number of the first wake-up frame in the first broadcast packet; the first broadcast packet also includes an information frame; the information frame includes data and a check part; the data and check part include at least one of the following: the host's identification, the slave's identification, the slave's broadcast channel when establishing a connection, the slave's broadcast time when establishing a connection, and a check sequence.
13. The method according to any one of claims 10 to 12, characterized in that The first broadcast packet is a broadcast packet based on BLE classic Bluetooth broadcast, and the broadcast channel includes a first channel, a second channel, and a third channel; Alternatively, the first broadcast packet is a broadcast packet based on BLE extended broadcast or HDT broadcast, and the broadcast channel is a preset broadcast channel.
14. The method according to any one of claims 10 to 12, characterized in that Before the second electronic device sends the first broadcast packet on the broadcast channel, the method further includes: When the second condition is met, the second electronic device is configured to be in a low-power wake-up transmission mode; The low-power wake-up transmission mode means that before the second electronic device is discovered by the first electronic device, it is configured to periodically send a BLE broadcast packet carrying the m wake-up frames on the broadcast channel; The second condition includes any one of the following: Powering on the second electronic device; The second electronic device receives a file sharing operation from the user; The second electronic device receives an operation by a user to turn on Bluetooth; The second electronic device receives a call answering request or an audio or video call request from another device.
15. An electronic device, wherein the electronic device is a first electronic device, and the first electronic device is a BLE awakened device or a host, characterized in that: The first electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the first electronic device to execute the Bluetooth wake-up method as described in any one of claims 1 to 9.
16. An electronic device, wherein the electronic device is a second electronic device, and the second electronic device is a BLE wake-up device or a slave device, characterized in that: The second electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the second electronic device to execute the Bluetooth wake-up method as described in any one of claims 10 to 14.
17. A communication system, characterized in that: The communication system includes the first electronic device according to claim 15 and the second electronic device according to claim 16.
18. A computer-readable storage medium, characterized in that The computer-readable storage medium includes instructions; When the instruction is executed on a first electronic device, the first electronic device executes the Bluetooth wake-up method as described in any one of claims 1 to 9; when the instruction is executed on a second electronic device, the second electronic device executes the Bluetooth wake-up method as described in any one of claims 10 to 14.
Citation Information
Patent Citations
Method and device for waking device
CN109076457A
An equipment awakening method and device
CN109787778A
Wake-up code Chirp signal generation method for realizing low power consumption and communication method
CN110831118A
Method for transmitting or receiving frame in wireless LAN and device therefor
CN110999416A
Event-driven ultra-low power consumption passive sensor data acquisition terminal and method
CN112566048A
Cited By
Bluetooth-based intelligent warehousing system and control method
CN121815234A
Bluetooth-based intelligent warehousing system and control method
CN121815234B