Bluetooth wake-up method, device, and storage medium
By employing a multi-cycle wake-up sequence and a low-power wake-up channel detection mode in Bluetooth devices, the high power consumption and long latency issues during the device discovery phase of Bluetooth devices are resolved, achieving low power consumption and fast device discovery and connection establishment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-02-08
- Publication Date
- 2026-06-23
AI Technical Summary
Existing Bluetooth Low Energy technology increases device power consumption during the device discovery phase when both the wake-up and wake-up ends are always on, resulting in higher power consumption and affecting user experience. Furthermore, the use of duty cycle mode to send and scan BLE broadcast packets prolongs device discovery and connection establishment time.
The BLE wake-up end loops the wake-up sequence multiple times in a broadcast packet. The BLE wake-up end is configured to low-power wake-up channel detection mode, which detects whether information is being sent on the broadcast channel by a low duty cycle, and switches to wake-up sequence receiving mode when the wake-up sequence is received, thus avoiding additional hardware costs and compatibility issues.
It reduces the power consumption of the BLE-wake-up device, reduces wake-up latency, improves device discovery and connection speed, and requires no additional hardware costs, avoiding protocol and baseband compatibility issues.
Smart Images

Figure CN120499788B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a Bluetooth wake-up method, device and storage medium. Background Technology
[0002] Currently, Bluetooth Low Energy (BLE) technology is widely used in smart devices such as IoT devices, smart home devices, and wearable devices. Due to factors such as size and portability, the battery capacity of smart devices is usually relatively small.
[0003] During the device discovery phase, if both the BLE wake-up client and the BLE wake-up device are always on, it will increase device power consumption. To reduce the power consumption of smart devices, the BLE wake-up client and the BLE wake-up device can use a duty cycle to send and scan BLE broadcast packets. The lower the duty cycle for sending and scanning BLE broadcast packets, the lower the device power consumption, but the longer the device discovery and connection establishment latency, thus affecting the user experience. Summary of the Invention
[0004] This application provides a Bluetooth wake-up method, device, and storage medium, which solves the latency problem that exists when sending and scanning BLE broadcast packets using a duty cycle method.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, embodiments of this application provide a Bluetooth wake-up method. This method can be applied to a first electronic device. The method may include: the first electronic device scanning a broadcast channel at preset time intervals, the preset time interval being a first preset duration, the duration of each scan (i.e., the duration of the scanning window) being a second preset duration, the first preset duration being less than or equal to the reception duration of (m-1) wake-up sequences, and the second preset duration being less than or equal to the reception duration of one wake-up sequence; then, based on the signal strength indication of the carrier of the broadcast channel being greater than or equal to a preset strength, the first electronic device receives a first wake-up sequence within a third preset duration, the third preset duration being greater than or equal to the reception duration of one wake-up sequence, the first wake-up sequence being a wake-up sequence in a first BLE broadcast packet sent by a second electronic device, the first BLE broadcast packet carrying m wake-up sequences with identical content; and then, based on the matching of the first wake-up sequence with the identifier of the first electronic device, the first electronic device transmits service data with the second electronic device via a BLE connection. Wherein, m is an integer greater than 1.
[0007] In the above scheme, since the BLE wake-up end can cycle through the wake-up sequence multiple times within a single BLE broadcast packet, the BLE wake-up recipient can be designed based on the transmission duration of the wake-up sequence, detecting whether information is being transmitted on the broadcast channel with a low duty cycle. Once the BLE wake-up recipient detects that information is being transmitted on the broadcast channel, it switches to wake-up sequence receiving mode and receives the wake-up sequence within a third preset duration. The BLE wake-up recipient can detect whether information is being transmitted on the broadcast channel with a low duty cycle, thus reducing its power consumption. Furthermore, since the BLE wake-up recipient can receive the complete wake-up sequence within a single BLE broadcast packet, the wake-up latency of this scheme is less than the duration of a single BLE broadcast packet, improving device discovery and connection establishment speed.
[0008] Furthermore, the BLE-wake-up device does not require an additional wake-up receiver module; it only needs a self-developed Bluetooth chip to support low-power wake-up channel detection mode and wake-up sequence reception mode. Therefore, the BLE-wake-up device requires no additional hardware costs and avoids protocol and baseband compatibility issues.
[0009] In one possible implementation, the aforementioned broadcast channel can be a pre-defined broadcast channel, which may be a first channel, a second channel, or a third channel. For example, the first channel could be channel 37, the second channel could be channel 38, and the third channel could be channel 39. As a first example, the BLE wake-up device manufacturer and the BLE wake-up device manufacturer can pre-define a channel (such as channel 37) as the broadcast channel for transmitting BLE broadcast packets through code. After the BLE wake-up device is configured to low-power wake-up transmission mode, it begins to transmit the first BLE broadcast packet on channel 37. Correspondingly, after the BLE wake-up device is configured to low-power wake-up channel detection mode, it can scan channel 37 at time intervals of a first preset duration. As a second example, the BLE wake-up device and the BLE wake-up device can be devices that have been paired and disconnected. During the previous connection, the BLE wake-up device and the BLE wake-up device can negotiate and select the channel with the least signal interference (such as channel 39) as the broadcast channel for this reconnection, based on the signal interference conditions of channels 37, 38, and 39. During this reconnection, the BLE wake-up end begins to send the first BLE broadcast packet on channel 37, and the BLE wake-up end can scan on channel 37 at time intervals of the first preset duration.
[0010] In one possible implementation, the broadcast channel may include a first channel, a second channel, and a third channel. Accordingly, the first electronic device scans the broadcast channel at preset time intervals, which may include: within each preset time interval, the first electronic device sequentially scans the first channel, the second channel, and the third channel, with the scanning order of the first channel, the second channel, and the third channel being random. Based on the signal strength indication of the carrier of the broadcast channel being greater than or equal to a preset strength, the first electronic device receives a first wake-up sequence within a third preset duration, which may include: based on the signal strength indication of the carrier of the first channel being greater than or equal to a preset strength, the first electronic device receives a first wake-up sequence on the first channel within a third preset duration.
[0011] In the above scheme, the BLE-wake-up device can randomly scan three channels at preset time intervals to determine whether the conditions for switching from low-power wake-up channel detection mode to wake-up sequence reception mode are met, and receive any possible BLE broadcast packets. Thus, based on this frequency hopping technology, the problem of the BLE-wake-up device being unable to parse the wake-up sequence from the BLE broadcast packets due to the broadcast channel being occupied for a long time can be effectively avoided, improving the success rate of device discovery.
[0012] In one possible implementation, before the first electronic device scans the broadcast channel at preset time intervals, the method may further include: configuring the first electronic device to a low-power wake-up channel detection mode if a first condition is met. The low-power wake-up channel detection mode refers to being configured to detect whether information is being transmitted on the broadcast channel according to a preset duty cycle before the first electronic device detects other devices. 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.
[0013] Let x represent the length of a wake-up sequence. If the first BLE broadcast packet carries m wake-up sequences, then 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 x / q, and the third preset duration can be represented by p×x. Here, the first preset duration refers to the time interval during which the BLE-wake-up end performs detection on the broadcast channel, i.e., the time interval from the end of the previous scan to the start of the next scan; the second preset duration refers to the duration of channel scanning by the BLE-wake-up end in each scan cycle; and the third preset duration refers to the duration of receiving the wake-up sequence. Both q and p are greater than 1.
[0014] Taking x=25, m=8, q=5, 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 5 microseconds, and the third preset duration is 30 microseconds.
[0015] Taking x=20, m=10, q=2, 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 10 microseconds, and the third preset duration is 30 microseconds.
[0016] In the above scheme, under the low-power wake-up channel detection mode, the BLE wake-up end only needs to detect whether there is information being sent on the broadcast channel, without receiving a complete wake-up sequence. Therefore, the duration of channel scanning in each scanning cycle (i.e., the second preset duration) can be set to be less than the reception duration of a wake-up sequence, which helps to reduce the duty cycle of the BLE wake-up end and reduce the device power consumption of the BLE wake-up end.
[0017] In one possible implementation, the first condition may include any one of the following:
[0018] The first electronic device receives a user's command to enable Bluetooth;
[0019] The first electronic device did not interact with other devices based on BLE connection to exchange service data within the fourth preset time period;
[0020] The first electronic device receives the user's multi-screen collaboration operation.
[0021] It is understood that the first condition mentioned above is only an example. Under other conditions, the first electronic device can also be configured to low-power wake-up channel detection mode.
[0022] In one possible implementation, before the first electronic device receives the first wake-up sequence within a third preset duration, the method may further include: based on a signal strength indication of the carrier of the broadcast channel being greater than or equal to a preset strength, the first electronic device switches from a low-power wake-up channel detection mode to a wake-up sequence receiving mode. The wake-up sequence receiving mode refers to being configured to receive a wake-up sequence from the second electronic device within a third preset duration after the first electronic device detects the second electronic device.
[0023] In the above scheme, the scanning time of the BLE wake-up end on the broadcast channel according to a preset time interval (i.e., the first preset duration) is set to be less than or equal to the transmission time of (m-1) wake-up sequences, and the receiving time of the wake-up sequence from the BLE wake-up end (i.e., the third preset duration) is set to be greater than the receiving time of one wake-up sequence, so that the BLE wake-up end can receive the complete wake-up sequence from the first BLE broadcast packet.
[0024] Secondly, embodiments of this 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 BLE broadcast packet on a broadcast channel, the first BLE broadcast packet carrying m wake-up sequences, the m wake-up sequences having identical content; based on a first wake-up sequence matching an identifier of the first electronic device, the second electronic device transmits service data with the first electronic device via a BLE connection. Wherein, m is an integer greater than 1.
[0025] In the above scheme, the BLE wake-up endpoint repeatedly loops the wake-up sequence within a single BLE broadcast packet, ensuring that the BLE-wake-up target receives the complete wake-up sequence within that packet. Therefore, the wake-up latency is less than the duration of a single BLE broadcast packet, improving device discovery and connection establishment speed. Furthermore, with proper timing design, the wake-up sequence of the first BLE broadcast packet sent by the BLE wake-up endpoint can be received by the BLE-wake-up target, thus reducing the number of packets sent and lowering the power consumption of the BLE wake-up endpoint.
[0026] In one possible implementation, the m wake-up sequences are specifically carried in the protocol data unit of the first BLE broadcast packet.
[0027] Taking Bluetooth version 4.0 as an example, the length of the broadcast data field in a PDU cannot exceed 31 bytes. If the length of a wake-up sequence is n bits, then the following condition must be met: m×n≤31 bytes.
[0028] 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 sequence is n bits, then the following condition must be met: m×n≤254 bytes.
[0029] In one possible implementation, the broadcast channel is a pre-defined broadcast channel, which may be a first channel, a second channel, or a third channel. For example, the first channel could be channel 37, the second channel could be channel 38, and the third channel could be channel 39.
[0030] In one possible implementation, the broadcast channel may include a first channel, a second channel, and a third channel. The second electronic device transmitting a first BLE broadcast packet on the broadcast channel may include: the second electronic device transmitting the first BLE broadcast packet on the first channel, transmitting a second BLE broadcast packet on the second channel, and transmitting a third BLE broadcast packet on the third channel. The transmission order of the first, second, and third channels is random. The second BLE broadcast packet carries m wake-up sequences, and the third BLE broadcast packet carries m wake-up sequences.
[0031] In one possible implementation, before the second electronic device transmits the first BLE broadcast packet on the broadcast channel, the method may further include: configuring the second electronic device to a low-power wake-up transmission mode if a second condition is met. The low-power wake-up transmission mode refers to being configured to periodically transmit BLE broadcast packets carrying m wake-up sequences on the broadcast channel before the second electronic device is discovered by the first electronic device.
[0032] In one possible implementation, the second condition may include any of the following:
[0033] The second electronic device is powered on;
[0034] The second electronic device receives the user's file sharing request;
[0035] The second electronic device receives the user's command to enable Bluetooth;
[0036] The second electronic device receives incoming call requests and audio / video call requests from other devices.
[0037] It is understood that the second condition mentioned above is only an example. Under other conditions, the second electronic device can be configured to a low-power wake-up transmission mode.
[0038] Thirdly, this application provides an apparatus comprising units for performing the methods described in the first or second aspect above. This apparatus can correspond to performing the methods described in the first or second aspect above. For a detailed description of the units within this apparatus, please refer to the descriptions in the first or second aspect above; for brevity, they will not be repeated here.
[0039] Fourthly, this application provides an electronic device, which can be a first electronic device. The first electronic device can be a BLE-wake-up device or a host. The first electronic device may include: one or more processors, and a memory. The memory is coupled to 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 first electronic device to perform the methods provided by the first aspect and any possible implementation thereof.
[0040] Fifthly, this application provides an electronic device. The electronic device can be a second electronic device. The second electronic device can be a BLE wake-up device or a slave device. The second electronic device may include: one or more processors, and a memory. The memory is coupled to one or more processors and 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 methods provided in the second aspect and any possible implementation thereof.
[0041] Sixthly, this application provides a communication system that may include a BLE wake-up device as provided in the fourth aspect and a BLE wake-up device as provided in the fifth aspect.
[0042] In a seventh aspect, this application provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions. When the computer instructions are executed on a first electronic device (i.e., a BLE wake-up device), the first electronic device performs the method provided by the first aspect and any possible implementation thereof. When the computer instructions are executed on a second electronic device (i.e., a BLE wake-up device), the second electronic device performs the method provided by the second aspect and any possible implementation thereof.
[0043] Eighthly, this application provides a computer program product. When the computer program product is run on a first electronic device, it causes the first electronic device to perform the method provided by the first aspect and any possible implementation thereof. When the computer program product is run on a second electronic device, it causes the second electronic device to perform the method provided by the second aspect and any possible implementation thereof.
[0044] Ninthly, this application provides a chip system. When the chip system is applied to a first electronic device, the chip system includes one or more processors, which are configured to invoke computer instructions to cause the first electronic device to perform the method provided by 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, which are configured to invoke computer instructions to cause the second electronic device to perform the method provided by the second aspect and any possible implementation thereof.
[0045] It is understood that the beneficial effects achieved by the apparatus of the third aspect, the electronic device of the fourth aspect, the electronic device of the fifth aspect, the communication system of the sixth aspect, the computer-readable storage medium of the seventh aspect, the computer program product of the eighth aspect, and the chip system of the ninth aspect can be referred to as the beneficial effects of the first and second aspects, and will not be repeated here. Attached Figure Description
[0046] Figure 1 A schematic diagram of a communication system provided in an embodiment of this application;
[0047] Figure 2 This is a schematic diagram of the structure of the Bluetooth module provided in an embodiment of this application;
[0048] Figure 3 A schematic diagram illustrating the transmission and scanning of BLE broadcast packets using a duty cycle method, provided for embodiments of this application;
[0049] Figure 4 This is a schematic diagram of the process of waking up a device based on a wake-up receiving module, provided in an embodiment of this application.
[0050] Figure 5 A schematic diagram illustrating scanning BLE broadcast packets based on a wake-up receiving module, provided for an embodiment of this application;
[0051] Figure 6 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of this application;
[0052] Figure 7 A schematic diagram of the hardware structure of a Bluetooth watch provided in an embodiment of this application;
[0053] Figure 8 A flowchart illustrating a Bluetooth wake-up method provided in an embodiment of this application;
[0054] Figure 9 A schematic diagram of a Bluetooth wake-up scenario provided in an embodiment of this application;
[0055] Figure 10 A schematic diagram illustrating another Bluetooth wake-up scenario provided in an embodiment of this application;
[0056] Figure 11 A schematic diagram illustrating another Bluetooth wake-up scenario provided in an embodiment of this application;
[0057] Figure 12 A schematic diagram illustrating another Bluetooth wake-up scenario provided in an embodiment of this application;
[0058] Figure 13 A schematic diagram illustrating a data format of a BLE broadcast packet provided in an embodiment of this application;
[0059] Figure 14 A schematic diagram of three cyclic sequences in a PDU provided for embodiments of this application;
[0060] Figure 15 A schematic diagram illustrating another data format of BLE broadcast packets provided in an embodiment of this application;
[0061] Figure 16 A schematic diagram illustrating another data format of BLE broadcast packets provided in an embodiment of this application;
[0062] Figure 17 A comparative diagram of the traditional BLE wake-up mode and the BLE low-power wake-up mode provided in the embodiments of this application;
[0063] Figure 18 A comparative schematic diagram showing how different wake-up sequences are received due to the influence of transmission timing, provided for embodiments of this application;
[0064] Figure 19 A flowchart illustrating a Bluetooth wake-up method supporting frequency hopping, provided as an embodiment of this application;
[0065] Figure 20 This is a schematic diagram illustrating the transmission and reception of a wake-up sequence in frequency hopping mode, as provided in an embodiment of this application. Detailed Implementation
[0066] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0067] In the description of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. In the description of this application, "and / or" is merely a way of describing the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone.
[0068] In the specification and claims of this application, the terms "first" and "second," etc., are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of the objects. For example, "first operation" and "second operation," etc., are used to distinguish different operations, rather than to describe a specific order of operations. In the embodiments of this application, "multiple" refers to two or more.
[0069] References to "some embodiments" and the like in this specification mean that one or more embodiments of this application include the specific features, structures, or characteristics described in connection with that embodiment. Therefore, phrases such as "in some embodiments," "in other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiments, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0070] To facilitate understanding of the embodiments of this application, some terms used in the embodiments of this application will be explained below.
[0071] Bluetooth Broadband (BLE) is a short-range wireless communication technology. Currently, BLE is widely used in low-power IoT devices, smart home devices, and wearable devices. Compared to classic Bluetooth, BLE aims to reduce power consumption in smart devices while maintaining the same communication range. BLE has a total of 40 channels, with frequency bands ranging from 2402 MHz to 2480 MHz. Each 2 MHz corresponds to one channel. These 40 channels include 3 broadcast channels (channels 37, 38, and 39) and 37 data channels.
[0072] Typically, the BLE connection process between a master and slave device involves the following stages: broadcast, scanning, pairing, binding, connection, and communication. As an example, in the broadcast stage, the slave device sends a broadcast packet; in the scanning stage (also known as the device discovery stage), the master device receives the broadcast packet from the slave device; after the master device successfully verifies the broadcast packet, the master and slave devices can establish a Bluetooth connection and transmit service data through subsequent stages. As another example, when the smart device is not in use, or during use due to excessive wireless distance or strong interference, the smart device may disconnect from the Bluetooth connection. Even after a paired device disconnects from the Bluetooth connection, it still needs to rebroadcast and scan to transmit service data based on the re-established Bluetooth connection.
[0073] For example, Figure 1 This is a schematic diagram of a communication system provided in an embodiment of this application.
[0074] A communication system may include a master device (also known as a BLE master) and at least one slave device (also known as a BLE slave). Both the master and slave devices are BLE-connected smart devices, and the master device can independently exchange business data with each slave device. The master and slave devices can be of the same or different types. For example, the master device can be a mobile phone, a personal computer (PC), a computer or tablet with wireless transceiver capabilities, etc., while the slave device can 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, such as... Figure 1 As shown, the main device can be a mobile phone, and the slave device can be a laptop, tablet, smart tag, smartwatch, wireless earphone, Bluetooth speaker, or smart washing machine, etc.
[0075] Interoperability between smart devices is based on device discovery and device connection. In this application, the device sending the broadcast packet is referred to as the BLE wake-up end, and the device receiving the broadcast packet is referred to as the BLE wake-up received end. As one example, the slave device is the BLE wake-up end, and the master device is the BLE wake-up received end. As another example, the master device is the BLE wake-up end, and the slave device is the BLE wake-up received end. It should be noted that the following embodiments are all described using the slave device as the BLE wake-up end and the master device as the BLE wake-up received end, and do not constitute a limitation on this application.
[0076] For example, Figure 2 This is a schematic diagram of the structure of the Bluetooth module provided in an embodiment of this application.
[0077] like Figure 2 As shown, both the BLE wake-up end and the BLE woken-up end can be configured with a Bluetooth module. A Bluetooth module is also called a Bluetooth chip. A Bluetooth chip can include a Bluetooth subsystem and a Bluetooth interface, etc. The Bluetooth subsystem can include a microprocessor, Bluetooth baseband, read-only memory (ROM), random access memory (RAM), a joint test action group (JTAG), an advanced high-performance bus (AHB), and an RF module, etc. The Bluetooth interface can include a universal asynchronous receiver / transmitter (UART) and pulse code modulation (PCM), etc.
[0078] It should be noted that, as Figure 2 The Bluetooth module shown is merely illustrative and does not limit the scope of this application. In actual implementation, the Bluetooth module may include more or fewer functional structures.
[0079] In this application embodiment, according to the hardware architecture classification, the Bluetooth modules of the BLE wake-up end and the BLE wake-up end can adopt a standard dual-chip architecture, a single-chip architecture, or a custom dual-chip architecture.
[0080] The dual-chip master control standard architecture consists of a host and a controller. Typically, this architecture is used in powerful system-on-chip (SoC) master control systems such as mobile phones and smart TVs. The host runs on Linux or Android. The controller also has its own dedicated SoC master control. The two communicate via human-computer interaction (HCI) protocols and standard hardware interfaces (such as USB). The host consists of a core protocol layer (L2CAP, SDP, SMP, ATT) and core specifications (GAP, GATT). The controller is responsible for running the physical and logical link layer functions.
[0081] Single-chip architectures are typically used in relatively simple peripheral devices that connect to mobile phones, such as Bluetooth headsets, Bluetooth watches, and smart trackers. A single-chip architecture can implement the entire Bluetooth protocol stack on a single chip, which includes a host and a controller. The host and controller exchange data through an application programming interface (API).
[0082] 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 term "custom dual-chip architecture."
[0083] BLE technology can be applied to low-power IoT devices, smart home devices, and wearable devices. Due to limitations in size and portability, smart devices typically have small battery capacities. During the device discovery phase, if both the BLE wake-up and BLE wake-up devices are constantly powered on, it increases the power consumption of the smart device and reduces its battery life. To reduce power consumption and extend battery life, the BLE wake-up and BLE wake-up devices can use a duty cycle approach to send and scan BLE broadcast packets.
[0084] For example, Figure 3 This is a schematic diagram illustrating the BLE wake-up end and the BLE wake-up end sending and scanning BLE broadcast packets using a duty cycle method, as provided in the embodiments of this application.
[0085] exist Figure 3 (a) and Figure 3In (b) of the diagram, the BLE wake-up client can send a BLE broadcast packet at second intervals, with each BLE broadcast packet having a transmission duration equal to the first interval. For example, if the first interval is 300 microseconds and the second interval is 600 microseconds, the BLE wake-up client can send BLE broadcast packet 1 from time t2 to time t4, and BLE broadcast packet 2 from time t6 to time t7. The transmission durations from time t2 to time t4, from time t4 to time t6, and from time t6 to time t7 are all 300 microseconds. The BLE wake-up client can send broadcast packets with a duty cycle of 50% for the first interval / second interval.
[0086] exist Figure 3 (a) and Figure 3 In (b) of the protocol, the BLE-wake-up end can perform a round of detection every fourth time interval to determine whether BLE information is being transmitted on the broadcast channel. The duration of each channel detection is the third time interval. The third time interval is greater than or equal to the sum of the second time interval and twice the first time interval. The BLE-wake-up end can detect whether BLE information is being transmitted on the broadcast channel according to the duty cycle of the third time interval / fourth time interval.
[0087] The following section explains the correlation between the duty cycle of the BLE wake-up end and the device detection latency by changing the duty cycle of the BLE wake-up end while keeping the duty cycle of the BLE wake-up end constant.
[0088] In Figure 3 Taking (a) as an example, the third duration is 900 microseconds and the fourth duration is 1200 microseconds. The BLE-wake-up end can detect whether BLE information is being sent on the broadcast channel with a 75% duty cycle. The BLE-wake-up end can perform one round of detection during channel detection period 1 (from time t1 to time t3). Since time t3 is between time t2 and time t4, the BLE-wake-up end has not yet received the complete BLE broadcast packet 1 by the end of this round of detection. The BLE-wake-up end determines that no device has been found and switches to sleep mode. Then, the BLE-wake-up end can perform the next round of detection during channel detection period 2 (from time t5 to time t8). Since time t6 to time t7 is included in channel detection period 2, the BLE-wake-up end can receive the complete BLE broadcast packet 2 before the end of this round of detection and discover the BLE wake-up end based on the BLE broadcast packet 2. Thus, the BLE wake-up end and the BLE-wake-up end can attempt to establish a BLE connection. That is to say, in Figure 3In (a), when the BLE wake-up end sends a broadcast packet with a 50% duty cycle, and the BLE wake-up end detects whether there is BLE information being sent on the broadcast channel with a 75% duty cycle, the device discovery delay is (t7-t2), that is, the time between the moment t2 when the first broadcast packet is sent and the moment t7 when a complete broadcast packet is received is the device discovery delay.
[0089] In Figure 3 Taking (b) as an example, where the third and fourth durations are both 900 microseconds. The BLE-wake-up end can detect whether BLE information is being sent on the broadcast channel with a 50% duty cycle. The BLE-wake-up end can perform one round of detection during channel detection period 1 (from time t1 to time t3). Since time t3 is between time t2 and time t4, the BLE-wake-up end has not yet received the complete BLE broadcast packet 1 by the end of this round of detection. The BLE-wake-up end determines that no device has been found and switches to sleep mode. Since time t6 to time t7 is not included in channel detection period 2, the BLE-wake-up end cannot receive the broadcast packet 2 from the BLE wake-up end, and therefore cannot find the BLE wake-up end. Then, the BLE-wake-up end can perform the next round of detection during channel detection period 2 (from time t9 to time t12). Since the period from time t10 to time t11 is included in channel detection period 2, the BLE-wake-up end can receive the complete BLE broadcast packet 3 before the end of this round of detection, and discover the BLE-wake-up end based on the BLE broadcast packet 3. Therefore, the BLE-wake-up end and the BLE-wake-up end can attempt to establish a BLE connection. That is to say, in Figure 3 In (b) of the diagram, when the BLE wake-up end sends a broadcast packet with a 50% duty cycle, and the BLE wake-up end checks whether BLE information is being sent on the broadcast channel with a 50% duty cycle, the device discovery delay is (t11-t2). That is, the time between the moment t2 when the first broadcast packet is sent and the moment t11 when a complete broadcast packet is received is the device discovery delay. Where (t11-t2) > (t7-t2).
[0090] As described in the above embodiments, the third duration is determined based on the first and second durations. Changing the fourth duration will change the duty cycle of the BLE wake-up device. A higher duty cycle of the BLE wake-up device results in a shorter device detection latency and higher device power consumption; conversely, a lower duty cycle of the BLE wake-up device results in a longer device detection latency and lower device power consumption. Therefore, there is a strong correlation between the duty cycle of the BLE wake-up device, the duty cycle of the BLE wake-up device, the device detection latency, and the device power consumption.
[0091] During the device discovery phase, both the BLE wake-up end and the BLE wake-up end can reduce the power consumption of smart devices by decreasing the duty cycle of sending and scanning BLE broadcast packets. However, for scenarios that urgently require device connection establishment, such as answering calls, multi-screen collaboration, and super connection, a lower duty cycle will increase the device discovery latency, thereby affecting connection establishment and reducing the user's experience with smart devices.
[0092] To address the latency issue inherent in the transmission and scanning of BLE broadcast packets using duty cycle methods by both the BLE wake-up end and the BLE wake-up device, this application also provides a low-power wake-up scheme based on a wake-up receiver module. In this scheme, a wake-up receiver module is added to the BLE wake-up device to reduce device discovery latency.
[0093] For example, Figure 4 This is a schematic diagram of the process of waking up a device based on a wake-up receiving module, provided in an embodiment of this application.
[0094] like Figure 4 As shown, during the device discovery phase, the wake-up receiver module of the BLE wake-up device is in a normally open state (i.e., continuously working state), while the Bluetooth module of the BLE wake-up device is in a sleep state. The BLE wake-up device sends a wake-up sequence. Since the wake-up receiver module is in a normally open state, once it receives the wake-up sequence from the BLE wake-up device, it can directly determine whether the wake-up sequence matches the device identifier (ID) of the BLE wake-up device. If they match, the wake-up receiver module sends wake-up information to the Bluetooth module, thereby waking up the Bluetooth module. The BLE wake-up device and the BLE wake-up device then interact normally with each other based on their respective Bluetooth modules, providing normal service data. It can be understood that compared to setting only one Bluetooth module on the BLE wake-up device, this wake-up scheme can reduce device discovery latency. Furthermore, because the wake-up receiver module is in a normally open state, this wake-up scheme can discover devices promptly, eliminating the need for the BLE wake-up device to send the wake-up sequence multiple times, thus reducing the power consumption of the BLE wake-up device.
[0095] For example, Figure 5 This is a schematic diagram illustrating scanning BLE broadcast packets based on a wake-up receiving module, as provided in an embodiment of this application.
[0096] like Figure 5As shown, the BLE wake-up device includes a wake-up receiver module and a Bluetooth module. During the device discovery phase, the wake-up receiver module is in a normally-on state, and the Bluetooth module is in a sleep state. From time t1 to time t2, the BLE wake-up device sends broadcast packet 1. Correspondingly, the wake-up receiver module receives broadcast packet 1. If broadcast packet 1 matches the device identifier of the BLE wake-up device, the wake-up receiver module notifies the Bluetooth module. The Bluetooth module then transitions from a sleep state to an active state. Subsequently, the BLE wake-up device and the BLE wake-up device interact normally with each other based on their respective Bluetooth modules, sharing service data.
[0097] As described in the above embodiments, although setting up a wake-up receiver module can reduce device discovery latency, it also increases hardware and design costs. Furthermore, there may be compatibility issues between the wake-up receiver module and the Bluetooth module's protocol and baseband.
[0098] In view of the problems existing in the above two Bluetooth wake-up schemes, this application provides an improved Bluetooth wake-up scheme without requiring a wake-up receiving module on the BLE wake-up device. In this scheme, the BLE wake-up device is configured in a low-power wake-up transmission mode, and can cycle through the wake-up sequence multiple times within a single BLE broadcast packet. The BLE wake-up device is configured in a low-power wake-up channel detection mode, and can detect whether information is being transmitted on the broadcast channel with a low duty cycle based on the transmission duration of the wake-up sequence. Once the BLE wake-up device detects information being transmitted on the broadcast channel, it switches to the wake-up sequence receiving mode and receives the wake-up sequence. Based on the design of multiple cycle wake-up sequences and a low duty cycle in the BLE broadcast packet, this scheme reduces the power consumption of both the BLE wake-up device and the BLE wake-up device. Since the BLE wake-up device can receive the complete wake-up sequence within a single BLE broadcast packet, the wake-up latency of this scheme is less than the duration of a single BLE broadcast packet.
[0099] It should be noted that the duration of a BLE broadcast packet, also known as transmission duration or reception duration, can refer to the time elapsed from when the BLE wake-up end starts sending a broadcast packet to when it finishes sending it, or it can refer to the time elapsed from when the BLE wake-up end starts receiving a broadcast packet to when it finishes receiving it. For example, the duration of a BLE broadcast packet is 300 microseconds.
[0100] The following is combined with Figures 6 to 20 An example is provided to illustrate the improved Bluetooth wake-up scheme provided in this application.
[0101] Taking a mobile phone as the device being woken up as an example, Figure 6 This is a schematic diagram of the hardware structure of a mobile phone provided in an embodiment of this application.
[0102] like Figure 6As 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0103] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc.
[0104] The controller can serve as the central nervous system and command center of the mobile phone 100. Based on the instruction operation code and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.
[0105] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0106] The charging management module 140 is used to receive charging input from the charger.
[0107] 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 power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.
[0108] The wireless communication function of mobile phone 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Mobile communication module 150 can provide solutions for wireless communication applications in mobile phone 100, including 2G / 3G / 4G / 5G. Mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. Wireless communication module 160 can provide solutions for wireless communication applications in mobile phone 100, including wireless local area networks (WLAN), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near-field communication (NFC), infrared (IR), etc. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0109] In this embodiment, the wireless communication module 160 mainly refers to a Bluetooth module. This Bluetooth module may have the following features: Figure 2 The hardware structure shown, for example, includes a Bluetooth subsystem and a Bluetooth interface. The Bluetooth module and processor 110 can employ a dual-chip standard architecture. When the processor 110 schedules the Bluetooth module, the Bluetooth module is configured in low-power wake-up channel detection mode and checks for information being transmitted on the broadcast channel with a low duty cycle. If the Bluetooth module detects information being transmitted on the broadcast channel, it switches to wake-up sequence reception mode and receives the wake-up sequence.
[0110] The mobile phone 100 uses a GPU, a display screen 194, and an application processor to achieve its display function.
[0111] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel.
[0112] The mobile phone 100 can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0113] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.
[0114] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of mobile phone 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area.
[0115] The mobile phone 100 can achieve audio functions such as music playback and recording through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0116] Keypad 190 includes a power button, volume buttons, etc. Mobile phone 100 can receive keypad input and generate key signal inputs related to user settings and function control of mobile phone 100.
[0117] Motor 191 can generate vibration alerts.
[0118] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages.
[0119] The SIM card interface 195 is used to connect the SIM card.
[0120] Understandable, Figure 6 The illustrated structure does not constitute a specific limitation on the mobile phone 100. In other embodiments, the mobile phone 100 may include... Figure 6 The diagram shows more or fewer components, or combinations of components, or separate components, or different arrangements of components. The components shown can be implemented in hardware, software, or a combination of both.
[0121] Taking a Bluetooth watch as the wake-up device as an example, Figure 7 This is a schematic diagram of the hardware structure of a Bluetooth watch provided in an embodiment of this application.
[0122] like Figure 7As shown, the Bluetooth watch 200 may include a microcontroller unit 201, a Bluetooth module 202, an audio module 203, a power module 204, a memory 205, and a display 206.
[0123] The microcontroller unit 201 is the main control chip of the Bluetooth watch 200. It executes application code and calls relevant modules to implement the functions of the Bluetooth watch 200, such as pairing and connecting with the mobile phone 100, audio playback, and making / receiving calls. The microcontroller unit 201 has a low-power mode, which can reduce device power consumption while operating at high performance. For example, the microcontroller unit 201 can instruct the Bluetooth module 202 to send a broadcast packet carrying a cyclic wake-up sequence in low-power wake-up transmission mode, so that the mobile phone 100 can switch from low-power wake-up channel detection mode to wake-up sequence reception mode when it detects information being transmitted on the broadcast channel.
[0124] Bluetooth module 202 can be used as follows Figure 2 The Bluetooth module shown is used. The Bluetooth watch 200 can pair and connect with the Bluetooth chip of the mobile phone 100 via the Bluetooth module 202 to achieve wireless communication and service processing between the Bluetooth watch 200 and the mobile phone 100. In this embodiment, the Bluetooth module 202 can be a BLE module. The Bluetooth module 202 can receive the signal to be transmitted from the microcontroller unit 201, perform frequency modulation, amplify it, and then convert it into electromagnetic waves for radiation via the Bluetooth antenna.
[0125] 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 via Bluetooth headset, playing music, activating / deactivating the voice assistant of the mobile phone 100 connected to the Bluetooth headset, and receiving / sending user voice data. The audio module 203 may include a speaker (or earpiece, receiver) assembly for outputting audio signals, a microphone (or microphone), and a microphone recording circuit that works with the microphone. The speaker can be used to convert audio electrical signals into sound signals and play them. The microphone can be used to convert sound signals into audio electrical signals.
[0126] The power module 204 provides system power to the Bluetooth watch 200, supplying power to its various functional modules. The power module 204 may include a power management unit (PMU) and a battery. The PMU can receive external charging input, transform the electrical signal input to the charging circuit, and provide it to the battery for charging. It can 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. Additionally, the power management unit can monitor battery capacity, battery cycle count, and battery health status.
[0127] 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 for handling the audio services of the mobile phone 100 (such as music playback and making / receiving calls). 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.
[0128] The display 206 includes a display panel for displaying an interface, such as a call screen.
[0129] Additionally, the Bluetooth watch 200 may also include sensors 207. For example, sensors 207 may include a proximity sensor, an ambient light sensor, a temperature sensor, an accelerometer, a pedometer, a heart rate sensor, a barometer, and an altimeter. For instance, the Bluetooth watch 200 can use a proximity sensor to detect the presence of objects nearby, an ambient light sensor to sense ambient light levels, and a temperature sensor to collect temperature data. When the microcontroller unit 201 detects an object near the Bluetooth watch 200, and the ambient light levels are below 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.
[0130] Understandable, Figure 7 The illustrated structure does not constitute a specific limitation on the Bluetooth watch 200. It can have more or fewer components, can combine two or more components, or can have different component configurations. For example, the outer surface of the Bluetooth watch may also include components such as buttons, indicator lights (which can indicate battery level, incoming / outgoing calls, pairing mode, etc.), and a dustproof mesh (which can be used with the earpiece). The buttons can be physical buttons or touch buttons (used in conjunction with a touch sensor), used to trigger operations such as power on / off, pause, play, record, initiate pairing, and reset.
[0131] It should be noted that traditional BLE wake-up devices and BLE wake-up terminals may not be capable of executing the Bluetooth wake-up solution provided in this application. For example, the Bluetooth module of the BLE wake-up device may not support Low Power Wake-up Channel Detection mode, and the Bluetooth module of the BLE wake-up terminal may not support Low Power Wake-up Transmission mode. In the embodiments of this application, the Bluetooth module of the BLE wake-up device can be a manufacturer-developed chip or a custom chip, which supports configuration in Low Power Wake-up Channel Detection mode, Wake-up Sequence Reception mode, and BLE Traditional Transceiver mode. The BLE wake-up terminal can be a product of the same manufacturer (i.e., the manufacturer of the BLE wake-up device), or an ecosystem product developed by a partner manufacturer of that manufacturer. For example, the manufacturer of the BLE wake-up device provides software modification rights to the manufacturer of the BLE wake-up device. When the BLE wake-up device and the BLE wake-up terminal establish a connection for the first time, the BLE wake-up device can modify the software of its microcontroller unit and / or Bluetooth module to enable the BLE wake-up terminal to support configuration in Low Power Wake-up Transmission mode and BLE Traditional Transceiver mode.
[0132] For example, Figure 8 This is a flowchart illustrating a Bluetooth wake-up method provided in an embodiment of this application. Figure 8 As shown, the method may include the following S01 to S10.
[0133] S01, the BLE wake-up end is configured to low-power wake-up transmission mode.
[0134] In the low-power wake-up transmission mode, the BLE wake-up endpoint is configured to periodically send BLE broadcast packets on the broadcast channel before being discovered by the BLE wake-up recipient. A single BLE broadcast packet contains multiple cyclical wake-up sequences. Each wake-up sequence can be used to determine if it matches the device ID of the wake-up recipient. In other words, each wake-up sequence can be used by the BLE wake-up recipient to discover the BLE wake-up endpoint.
[0135] In some embodiments, the BLE wake-up endpoint can be configured for low-power wake-up transmission mode under the following conditions (which may be referred to as the second condition):
[0136] (1) Power on the BLE wake-up terminal.
[0137] like Figure 9 As shown, when a user opens the charging case of the Bluetooth earbuds, it indicates that the user may need to use the earbuds. The earbuds can be configured in low-power wake-up transmission mode according to software settings and transmit BLE broadcast packets containing a wake-up sequence that loops multiple times on the broadcast channel. Correspondingly, a mobile phone configured in low-power wake-up channel detection mode can receive the wake-up sequence.
[0138] It should be noted that, Figure 9This explanation uses a Bluetooth headset entering low-power wake-up transmission mode upon power-up as an example, and does not limit the scope of this application. Other possible smart devices can also be configured into low-power wake-up transmission mode according to software settings when powered on. For example, after installing batteries in a smart finder, the finder powers on and is configured into low-power wake-up transmission mode, sending BLE broadcast packets on a broadcast channel to facilitate discovery by other devices.
[0139] (2) The BLE wake-up terminal receives the user's file sharing operation.
[0140] The file sharing operation described above can be used to instruct the sharing of files in the BLE wake-up client to other devices.
[0141] like Figure 10 As shown, during user interaction with phone 1, the user may need to share files such as videos, pictures, or documents from phone 1 to other devices. For example, when phone 1 displays a photo in the gallery app, the user can click the "Share to other devices" option. In response to the user's action, phone 1 is configured in low-power wake-up transmission mode and sends a BLE broadcast packet containing a wake-up sequence that loops multiple times on the broadcast channel. Accordingly, phone 2, configured in low-power wake-up channel detection mode, can receive the wake-up sequence. After successful verification, phone 1 shares the photo to phone 2 via Bluetooth.
[0142] (3) The BLE wake-up terminal receives call answering requests and audio / video call requests from other devices.
[0143] like Figure 11 As shown, initially, the phone and Bluetooth headset successfully pair 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 in Low Power Wake-up Channel Detection (BLE) mode. At this point, if the phone receives a call request from another device, it can, according to its software settings, configure itself in Low Power Wake-up Transmission (BLE) mode and transmit BLE broadcast packets containing a multiple-loop wake-up sequence on the broadcast channel. The Bluetooth headset can then receive this wake-up sequence. After successful verification, the user can make calls through the Bluetooth headset.
[0144] (4) The BLE wake-up terminal receives the user's operation to enable Bluetooth.
[0145] like Figure 12As shown, Bluetooth on the phone is initially turned off. When the user wants to use Bluetooth, they can pull down the screen to access the phone's control menu. Then, the user can tap the "Bluetooth" option in the control menu. In response to the tap, the phone configures itself to Low Power Wake-up Transmit mode and transmits a BLE broadcast packet containing a multiple-loop wake-up sequence on the broadcast channel. Correspondingly, a PC configured to Low Power Wake-up Channel Detection mode can receive the wake-up sequence. After successful verification, the phone and PC attempt to connect.
[0146] It is understood that the second condition mentioned above is only an example. Under other conditions, the BLE wake-up end can be configured to low-power wake-up transmission mode.
[0147] Referring to the description of the above embodiments, the BLE wake-up end communicates with the BLE wake-up end via a Bluetooth module. Specifically, the BLE wake-up end can configure its Bluetooth module to a low-power wake-up transmission mode, enabling the Bluetooth module to transmit BLE broadcast packets containing a wake-up sequence that loops multiple times on the broadcast channel.
[0148] S02, the BLE wake-up end is configured to low-power wake-up channel detection mode.
[0149] Among them, the low-power wake-up channel detection mode refers to the BLE wake-up end being configured to detect whether there is information being sent on the broadcast channel according to a preset duty cycle before the BLE wake-up end discovers the BLE wake-up end.
[0150] In some embodiments, the BLE-wake-up device can be configured to a low-power wake-up channel detection mode under the following conditions (which may be referred to as the first condition):
[0151] (1) The BLE wake-up device receives the user's Bluetooth activation command.
[0152] like Figure 9 As shown, Bluetooth on the phone is initially turned off. When the user wants to use Bluetooth, they can pull down the screen to access the control menu. Then, the user can tap the "Bluetooth" option in the control menu. In response to the tap, the phone is configured to low-power wake-up channel detection mode and checks the broadcast channel for information to be transmitted according to a preset duty cycle.
[0153] Based on the descriptions in S01 (4) and S02 (1) of the above embodiments, a mobile phone may be configured simultaneously to a low-power wake-up transmission mode and a low-power wake-up channel detection mode. That is, the mobile phone can both broadcast its wake-up sequence to other devices and receive wake-up sequences from other devices.
[0154] (2) The BLE-wake-up device does not interact with other devices via Bluetooth to exchange service data within a preset time period.
[0155] like Figure 11 As shown, initially, the mobile phone and Bluetooth headset successfully pair and establish a Bluetooth connection. If the Bluetooth headset detects that it has not exchanged service data with the mobile phone via Bluetooth within a preset time period (e.g., 10 minutes), or if the signal between the Bluetooth headset and the mobile phone is weak, the Bluetooth headset disconnects from the mobile phone and is configured to low-power wake-up channel detection mode, and checks whether there is information being sent on the broadcast channel according to a preset duty cycle. Once a wake-up sequence sent by the mobile phone is detected, the mobile phone and Bluetooth headset re-establish the connection and exchange service data. It can be understood that when the user does not use the Bluetooth headset for a long time, configuring the Bluetooth headset to low-power wake-up channel detection mode can reduce the power consumption of the Bluetooth headset and extend its battery life.
[0156] (3) The BLE-wake-up terminal receives the user's multi-screen collaboration operation.
[0157] Multi-screen collaboration refers to establishing a connection between at least two electronic devices. It allows you to mirror the windows of another electronic device on one device, making it more efficient to use applications from the other device, drag and drop files, and edit files on your phone.
[0158] like Figure 12 As shown, when a user wants to use the multi-screen collaboration feature, they can click the multi-screen collaboration option in the PC control panel. In response to the user's click, the PC is configured in low-power wake-up channel detection mode and checks for information being transmitted on the broadcast channel according to a preset duty cycle. When the PC detects a BLE broadcast packet from another electronic device, it can verify the BLE broadcast packet. If the BLE broadcast packet verification is successful, the PC's logo and the logos of other electronic devices (such as mobile phones) are displayed on the PC's screen. 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.
[0159] It is understood that the first condition mentioned above is only an example. Under other conditions, the BLE wake-up device can also be configured to low-power wake-up channel detection mode.
[0160] Referring to the description of the above embodiments, the BLE wake-up end communicates with the BLE wake-up end via Bluetooth module. Therefore, the BLE wake-up end can specifically configure its Bluetooth module to low-power wake-up channel detection mode.
[0161] S03, the BLE wake-up end begins sending the first BLE broadcast packet.
[0162] The first BLE broadcast packet mentioned above, also known as a paging message, is used to discover Bluetooth devices located near the BLE wake-up end.
[0163] After the BLE wake-up endpoint is configured to low-power wake-up transmission mode, it begins sending the first BLE broadcast packet. This first BLE broadcast packet can carry multiple cyclic wake-up sequences. Each wake-up sequence contains the same content. As an example, each wake-up sequence includes a device access code (DAC). When this DAC matches the DAC of the BLE wake-up endpoint, the BLE wake-up endpoint determines that it has discovered the BLE wake-up endpoint.
[0164] It should be noted that, since the first BLE broadcast packet carries not only multiple cyclic wake-up sequences but also information such as preambles and access addresses, it can be continuously transmitted on the broadcast channel for a period of time. During this period, the BLE wake-up end can successively transmit multiple wake-up sequences, and the BLE wake-up end may receive one of these wake-up sequences.
[0165] In some embodiments, the BLE wake-up device may use the broadcast data field of the protocol data unit (PDU) to carry a wake-up sequence that loops multiple times. The length of the broadcast data field in the PDU may vary in different Bluetooth versions; therefore, the number of wake-up sequences carried in the broadcast data field of the PDU may also differ depending on the Bluetooth version used.
[0166] For example, Figure 13 This is a schematic diagram of a BLE broadcast packet data format provided in an embodiment of this application.
[0167] Taking Bluetooth version 4.0 as an example. Figure 13 As shown, a BLE broadcast packet consists of a preamble, access address, PDU, and cyclic redundancy check (CRC). The preamble is an 8-bit alternating sequence, such as 01010101 or 10101010, primarily used for receiver frequency offset synchronization, timing synchronization, and automatic gain control. The access address, also known as the access code, is a string; the protocol specifies that the access address for all broadcast channels is 0x8E89BED6. Data from both the BLE wake-up and BLE wake-up ends requires whitening and noise reduction processing. During this process, the BLE wake-up end uses an XOR operation on the original data to access the access address, and the BLE wake-up end uses an XOR operation to restore the data. The PDU is mainly used to carry data packets. The CRC, also known as the error correction code, is mainly used for error detection.
[0168] A PDU may include a packet header and a payload. The 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, a non-connectable broadcast, or a directed broadcast type. In this embodiment, the PDU type can be Adv_IND, which represents a normal broadcast packet. The payload may include a broadcast address (AdvA) and broadcast data (AdvData). The broadcast address is the medium access control (MAC) address of the slave device (i.e., the BLE wake-up end). The broadcast data field is used to carry a wake-up sequence that loops multiple times. In Bluetooth version 4.0, the length of the broadcast data field cannot exceed 31 bytes. If the length of a wake-up sequence is n bits, then the following condition must be met: m × n ≤ 31 bytes.
[0169] Figure 14 This is a schematic diagram of three cyclic sequences in a PDU provided in the embodiments of this application.
[0170] For example, such as Figure 14 As shown in (a), the length of a wake-up sequence is 62 bits. Since 62 bits × 4 = 31 bytes, the wake-up sequence can loop a maximum of 4 times in the broadcast data field of the PDU in the first BLE broadcast packet.
[0171] For example, such as Figure 14 As shown in (b), the length of a wake-up sequence is 31 bits. Since 31 bits × 8 = 31 bytes, the wake-up sequence can loop a maximum of 8 times in the broadcast data field of the PDU in the first BLE broadcast packet.
[0172] For example, such as Figure 14 As shown in (c), the length of a wake-up sequence is 49 bits. Since 49 bits × 5 < 31 bytes and 49 bits × 6 > 31 bytes, the wake-up sequence can loop a maximum of 5 times in the broadcast data field of the PDU in the first BLE broadcast packet.
[0173] For example, Figure 15 This is a schematic diagram illustrating another data format of BLE broadcast packets provided in an embodiment of this application.
[0174] Taking Bluetooth version 5.0 as an example, Bluetooth version 5.0 divides broadcast channels into two categories: one is the primary advertisement channels, operating on channels 37, 38, and 39, which are the broadcast channels used in Bluetooth version 4.0; the other is the secondary advertisement channels, operating on channels 0-36, which are new broadcast channels added in Bluetooth version 5.0. Figure 14 Compared to the data format shown, Bluetooth version 5.0 adds an ADV_EXT_IND command to the data type of the main broadcast. When a scanning device receives the ADV_EXT_IND command and can identify the data it carries, the scanning device can listen for auxiliary packets on the second broadcast channel. Bluetooth version 5.0 also expands the structure of broadcast packets.
[0175] like Figure 15 As shown, in Bluetooth version 5.0, a BLE broadcast packet can include a packet header and a valid packet. The valid packet can further include the extended header length, the broadcast mode (AdvMode), the extended header, and the broadcast data (AdvData). The extended header length, consisting of 6 bits, indicates the length of the extended header. The broadcast mode, consisting of 2 bits, indicates the broadcast mode. The extended header, with a length ranging from 0 to 63 bytes, is specified by the number of bits in its length. The extended header is the core component of the extended packet and can include the broadcast address, destination address, broadcast data identifier, broadcast event type, channel of the auxiliary packet, transmit power, and additional broadcast data. The broadcast data, with a length ranging from 0 to 254 bytes, carries a multi-cycle wake-up sequence.
[0176] In Bluetooth version 5.0, the length of the broadcast data field in an extended PDU cannot exceed 254 bytes. If the length of a wake-up sequence is n bits, then the following condition must be met: m × n ≤ 254 bytes.
[0177] It should be noted that the above embodiments are illustrated using Bluetooth versions 4.0 and 5.0 as examples, and do not limit the scope of this application. In actual implementation, the Bluetooth versions used by the BLE wake-up end and the BLE wake-up device can 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 understood that the BLE wake-up end can also carry multiple loops of the wake-up sequence in future higher versions of the BLE broadcast packet, and the number of loops of the wake-up sequence can be determined based on the length of the broadcast data field in the higher version. With the wake-up sequence length remaining constant, the longer the broadcast data field, the more loops the wake-up sequence will have.
[0178] In other embodiments, such as Figure 16 As shown, in the first BLE broadcast packet, each wake-up sequence can be replaced by a wake-up frame in multiple loops. That is, the first BLE broadcast packet can include multiple loops of wake-up frames, each with the same content. A wake-up frame includes three parts: a channel estimation part, a trigger sequence, and a data reception verification part. The channel estimation part can be used to detect carrier information and preamble for carrier detection; the trigger sequence is the wake-up sequence described in the above embodiment, such as the device access code. The data reception verification part can include slave identifier, master identifier, subsequent slave establishment scan time, scan channel, and verification sequence, which can also be used for auxiliary verification.
[0179] S04, the BLE-wake-up device scans at a preset time interval (which may be referred to as the first preset duration) to determine whether the conditions for switching from low-power wake-up channel detection mode to wake-up sequence reception mode are met. If the conditions are met, proceed to S05. If the conditions are not met, maintain the low-power wake-up channel detection mode.
[0180] The wake-up sequence receiving mode refers to the configuration of the BLE wake-up end to receive a wake-up sequence from the BLE wake-up end within a preset duration (referred to as the third preset duration) after the BLE wake-up end detects the BLE wake-up client. The third preset duration is greater than or equal to the reception duration of a wake-up sequence. The reception duration of a wake-up sequence depends on the field length of the wake-up sequence (e.g., n bits). In other words, the more information a wake-up sequence carries, the longer its field length, and the longer its reception duration.
[0181] After the BLE wake-up device is configured to low-power wake-up channel detection mode, it can scan the broadcast channel at preset time intervals (referred to as the first preset duration). The duration of channel scanning within each scanning period is the second preset duration. The sum of the first and second preset durations is less than or equal to the wake-up transmission duration, which refers to the reception duration of all wake-up sequences 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 less than or equal to the reception duration of one wake-up sequence. If the received signal strength indicator (RSSI) of the broadcast channel carrier is greater than or equal to a preset strength during a certain channel detection period, it indicates that information is being transmitted on the broadcast channel, or that interference signals may be using the broadcast channel. The BLE wake-up device can then be configured to switch to wake-up sequence reception mode, i.e., switch from low-power wake-up channel detection mode to wake-up sequence reception mode to receive wake-up sequences that may originate from the BLE wake-up device. If the RSSI of the broadcast channel carrier is less than the preset strength during a certain channel detection period, it indicates that there may be interference signals or no information being transmitted on the broadcast channel. Continue to maintain the low-power wake-up channel detection mode until the conditions for switching from the low-power wake-up channel detection mode to the wake-up sequence reception mode are met.
[0182] As an example, let the length of a wake-up sequence be denoted by x. If the first BLE broadcast packet carries m wake-up sequences, then 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 x / q, and the third preset duration can be represented by p×x. Here, the first preset duration refers to the time interval for the BLE-wake-up end to detect on the broadcast channel; the second preset duration refers to the duration of channel scanning by the BLE-wake-up end in each scanning cycle; and the third preset duration refers to the duration of receiving the wake-up sequence. Both q and p are greater than 1.
[0183] Taking x=25, m=8, q=5, 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 5 microseconds, and the third preset duration is 30 microseconds.
[0184] Taking x=20, m=10, q=2, 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 10 microseconds, and the third preset duration is 30 microseconds.
[0185] In the above scheme, under the low-power wake-up channel detection mode, the BLE wake-up end only needs to detect whether information is being transmitted on the broadcast channel, without needing to receive a complete wake-up sequence. Therefore, the duration of channel scanning in each scanning cycle (i.e., the second preset duration) can be set to be less than the reception duration of a wake-up sequence, which helps to reduce the duty cycle of the BLE wake-up end and lower its device power consumption. Furthermore, the duration for the BLE wake-up end to scan the broadcast channel at preset time intervals (i.e., the first preset duration) is set to be less than or equal to the transmission duration of (m-1) wake-up sequences, and the duration for receiving the wake-up sequence from the BLE wake-up end (i.e., the third preset duration) is set to be greater than the reception duration of a wake-up sequence, enabling the BLE wake-up end to receive a complete wake-up sequence from the first BLE broadcast packet.
[0186] It should be noted that the above embodiments are illustrated using the example where the BLE wake-up end is already configured in low-power wake-up channel detection mode when the BLE wake-up end starts sending the first BLE broadcast packet, and this does not limit the scope of this application. As another example, when the BLE wake-up end starts sending the first BLE broadcast packet, the BLE wake-up end may not yet be configured in low-power wake-up channel detection mode. In this case, since no BLE wake-up end receives a BLE broadcast packet from the BLE wake-up end, the BLE wake-up end may need to continue sending BLE broadcast packets according to a preset period, such as sending a second BLE broadcast packet at a second time, a third BLE broadcast packet at a third time, etc., until the BLE wake-up end receives a BLE broadcast packet from the BLE wake-up end and returns the ACK message in S08 below to the BLE wake-up end, at which point the BLE wake-up end stops sending BLE broadcast packets.
[0187] S05, the BLE-wake-up end switches from low-power wake-up channel detection mode to wake-up sequence reception mode.
[0188] For the low-power wake-up channel detection mode and wake-up sequence reception mode, please refer to the description in the above embodiments.
[0189] In some embodiments, the broadcast channels of the BLE wake-up end and the BLE wake-up device can be preset channels or randomly selected channels.
[0190] As a first example, the BLE wake-up device manufacturer and the BLE wake-up device manufacturer can pre-define a channel (such as channel 37) as the broadcast channel for transmitting BLE broadcast packets through code. After the BLE wake-up device is configured to low-power wake-up transmission mode, it begins transmitting the first BLE broadcast packet on channel 37. Correspondingly, after the BLE wake-up device is configured to low-power wake-up channel detection mode, it can scan channel 37 at time intervals of a first preset duration.
[0191] As a second example, the BLE wake-up end and the BLE wake-up device can be devices that have been paired and disconnected. During the previous connection, the BLE wake-up end and the BLE wake-up device could negotiate and select the channel with the least signal interference (such as channel 39) as the broadcast channel for this reconnection, based on the signal interference conditions of channels 37, 38, and 39. During this reconnection, the BLE wake-up end begins sending the first BLE broadcast packet on channel 37, and the BLE wake-up device can scan on channel 37 at time intervals of a first preset duration.
[0192] As a third example, after the BLE wake-up end is configured in low-power wake-up transmission mode, it can randomly select one channel from channels 37, 38, and 39. Taking channel 39 as an example, the BLE wake-up end begins sending the first BLE broadcast packet on channel 39. After the BLE wake-up device is configured in low-power wake-up channel detection mode, since the BLE wake-up device cannot determine which channel the BLE wake-up end uses, it can scan channels 37, 38, and 39 at time intervals of a first preset duration. In the first possible implementation, only one broadcast channel is scanned within one scan cycle, and three scan cycles constitute one round, achieving separate listening to channels 37, 38, and 39, but this method has a relatively large latency. In the second possible implementation, channels 37, 38, and 39 are listened to for a period of time within each scan cycle, but this method has a relatively high power consumption.
[0193] As a fourth example, after the BLE wake-up end is configured in low-power wake-up transmission mode, it can send a BLE broadcast packet on channels 37, 38, and 39 respectively, with each broadcast packet containing the same content. After the BLE wake-up device is configured in low-power wake-up channel detection mode, since it cannot determine which channel the BLE wake-up end uses, it can listen to channels 37, 38, and 39 for a period of time in each scan cycle. It should be noted that the implementation of this fourth example can be referred to the following embodiments. Figure 19 The specific details are not elaborated here.
[0194] S06, the BLE wake-up end continues to send the first BLE broadcast packet, such as the first wake-up sequence. Correspondingly, the BLE wake-up end receives the first wake-up sequence.
[0195] The aforementioned first wake-up sequence can be one of the multiple wake-up sequences carried by the first BLE broadcast packet.
[0196] For example, Figure 17 A comparative diagram of the traditional BLE wake-up mode and the BLE low-power wake-up mode provided in the embodiments of this application.
[0197] like Figure 17 As shown in (a), in the traditional BLE wake-up mode, the BLE wake-up end can send a BLE broadcast packet every second time interval, and the transmission duration of each BLE broadcast packet is the first time interval. The BLE wake-up end can perform a round of detection every fourth time interval to determine whether there is information being sent on the broadcast channel, and the duration of each channel detection is the third time interval. The third time interval is greater than or equal to the sum of the second and first time intervals. For example, the first time interval is 300 microseconds, the second time interval is 600 microseconds, the third time interval is 900 microseconds, and the fourth time interval is (…). Figure 17 (Not shown) is 1200 microseconds, and the wake-up latency is 1000 microseconds. The wake-up latency refers to the time interval from the moment the BLE wake-up end sends the first broadcast packet (e.g., BLE broadcast packet 1) to the moment the BLE wake-up end receives a complete broadcast packet (e.g., BLE broadcast packet 3), which is the device discovery latency. According to the description of the above embodiment, the third duration is determined based on the first and second durations. It can be seen that in the traditional BLE wake-up mode, 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 latency, and the device power consumption, and the wake-up latency is relatively large.
[0198] like Figure 17 As shown in (b) of this application embodiment, in the BLE low-power wake-up mode, the transmission duration of the first BLE broadcast packet sent by the BLE wake-up terminal is as follows: Figure 17In (a) of the diagram, the transmission duration of a traditional BLE broadcast packet is equal. Assume that the broadcast data field of the PDU in the first BLE broadcast packet carries 8 wake-up sequences. Taking the transmission duration of the first BLE broadcast packet as 300 microseconds and the total transmission duration of the 8 wake-up sequences (i.e., the wake-up transmission duration) as 200 microseconds as an example, the transmission duration of each wake-up sequence is 25 microseconds. The BLE-wake-up end can perform a round of detection every first preset time interval to determine whether information is being sent on the broadcast channel. The duration of each channel detection is the second preset time interval. The first preset time interval is less than or equal to the transmission duration of (m-1) wake-up sequences, and the second preset time interval is less than the reception duration of one wake-up sequence. For example, the first preset time interval is 175 microseconds, and the second preset time interval is 5 microseconds. It should be noted that the embodiments of this application are illustrated using the example of a first BLE broadcast packet transmission duration of 300 microseconds, which does not limit the application. In actual implementation, the duration of the BLE broadcast packet can be adjusted, for example, a broadcast packet can be up to 376 microseconds.
[0199] Taking the case where the RSSI of the broadcast channel is greater than or equal to a preset strength during channel detection period i+8 as an example, the BLE-wake-up end switches from low-power wake-up channel detection mode to wake-up sequence reception mode and receives the first wake-up sequence of the first BLE broadcast packet within a third preset duration, such as wake-up sequence 6. The third preset duration is longer than the reception duration of a wake-up sequence, for example, 30 microseconds. It can be seen that the BLE-wake-up end can receive the wake-up sequence when the BLE wake-up end sends the first BLE broadcast packet. Therefore, the wake-up delay of the BLE low-power wake-up mode provided in this application embodiment (e.g., 156 microseconds) is less than the transmission duration of a BLE broadcast packet (e.g., 300 microseconds), thereby improving the device discovery and connection establishment speed and breaking the strong correlation between the duty cycle of the BLE wake-up end, the duty cycle of the BLE-wake-up end, and the device discovery delay.
[0200] Compared with the traditional BLE wake-up mode, the BLE low-power wake-up mode provided in this application embodiment has the following advantages:
[0201] From a latency perspective, the BLE-wake-up device can receive the complete wake-up sequence within a single BLE broadcast packet. Therefore, the wake-up latency is less than the duration of a single BLE broadcast packet. For example, this BLE low-power wake-up mode can reduce the wake-up latency from 1000 microseconds to less than the transmission time of a single BLE broadcast packet (e.g., 156 microseconds), improving device discovery and connection establishment speed. Furthermore, decoupling the wake-up latency from the broadcast interval of the BLE wake-up device also helps reduce the broadcast duty cycle of the BLE wake-up device, thereby lowering its power consumption.
[0202] From a power consumption perspective, since the wake-up sequence in a BLE broadcast packet cycles m times, and the transmission time of a single wake-up sequence accounts for 1 / m of the wake-up transmission duration (i.e., the reception duration of all wake-up sequences in a BLE broadcast packet), the first duty cycle of the BLE wake-up end is 1 / m. On the other hand, the second preset duration (i.e., the duration of channel scanning within each preset time interval) is set to a very short value, such as 1 / q of the transmission duration of a wake-up sequence, so the second duty cycle of the BLE wake-up end is 1 / q. On average, the total duty cycle of the BLE wake-up end is 1 / m × 1 / q. That is, the average power consumption of the BLE wake-up end is 1 / m × 1 / q of the normally on power consumption. Taking m = 8 and q = 6 as an example, the average power consumption of the BLE wake-up end is 48 times lower than the normally on power consumption.
[0203] It should be noted that in the low-power wake-up channel detection mode, the BLE-wake-up end can detect whether information is being transmitted on the broadcast channel by dividing the second preset duration by the duty cycle of the sum of the first and second preset durations. Since the timing of the BLE wake-up end transmitting the first BLE broadcast packet is random, the first wake-up sequence received by the BLE-wake-up end may be any one of the multiple wake-up sequences carried in the first BLE broadcast packet. For example, in... Figure 18 In (a) of the diagram, the reception start time of the first BLE broadcast packet is earlier, and the BLE wake-up end can receive wake-up sequence 6; Figure 18 In (b) of the above, the reception start time of the first BLE broadcast packet is relatively complete, and the BLE wake-up end can receive the wake-up sequence 3.
[0204] S07, the BLE wake-up end determines whether the first wake-up sequence matches the device ID of the BLE wake-up end.
[0205] The aforementioned "determining whether the first wake-up sequence matches the device ID of the BLE wake-up device" can refer to determining whether the first wake-up sequence is consistent with the device ID of the BLE wake-up device. If they are consistent, the BLE wake-up device executes S08 and S09 below. If they are not consistent, the BLE wake-up device is reconfigured to low-power wake-up channel detection mode, that is, it returns to executing S02 and S04 above.
[0206] Referring to the description of S03 in the above embodiment, each wake-up sequence can be replaced with a wake-up frame in the first BLE broadcast packet. A wake-up frame includes three parts: a channel estimation part, a trigger sequence, and a data reception verification part. Accordingly, S07 above can be replaced as follows: the BLE wake-up end verifies the channel estimation part; if the verification passes, the BLE wake-up end determines whether the first wake-up sequence matches the device ID of the BLE wake-up end; if they match, the BLE wake-up end verifies the data reception verification part; if the verification passes, the BLE wake-up end executes S08 and S09 below; if any one of these three parts fails the verification, the execution returns to S02 and S04 above.
[0207] S08, the BLE-wake-up end sends an acknowledgment (ACK) message to the BLE-wake-up end.
[0208] The above confirmation message is used to indicate that the scan has been successful on the BLE wake-up device.
[0209] S09, the BLE-wake-up end is configured to BLE traditional transmit / receive mode.
[0210] The S10 BLE wake-up end is configured in BLE traditional transmit / receive mode.
[0211] The traditional BLE transmit / receive mode refers to the normal transmission and reception of business data, such as audio and video data, call data, and files, between the BLE wake-up end and the BLE wake-up end after establishing a BLE connection.
[0212] In the Bluetooth wake-up method provided in this application, only the software of the BLE wake-up end needs to be improved by adding a low-power wake-up transmission mode; the BLE wake-up end does not need to set up an additional wake-up receiving module, but only needs to set up a self-developed Bluetooth chip to support the low-power wake-up channel detection mode and wake-up sequence receiving mode. Therefore, no additional hardware costs are required, and there are no compatibility issues with protocols and basebands.
[0213] Furthermore, since the BLE wake-up end can cycle through the wake-up sequence multiple times within a single BLE broadcast packet, the BLE wake-up recipient can design based on the transmission duration of the wake-up sequence, detecting whether information is being transmitted on the broadcast channel according to a duty cycle calculated by dividing a second preset duration by the sum of the first and second preset durations. Once the BLE wake-up recipient detects information being transmitted on the broadcast channel, it switches to wake-up sequence reception mode and receives the wake-up sequence within a third preset duration. Because the BLE wake-up recipient can receive the complete wake-up sequence within a single BLE broadcast packet, the wake-up latency of this scheme is less than the duration of a single BLE broadcast packet, improving device discovery and connection establishment speed.
[0214] Furthermore, decoupling the wake-up latency and the broadcast interval of the BLE wake-up end also helps to reduce the broadcast duty cycle of the BLE wake-up end, thereby reducing its power consumption. The total duty cycle of the BLE wake-up end is 1 / m × 1 / q. That is, the average power consumption of the BLE wake-up end is 1 / m × 1 / q of the normally on power consumption, thus reducing the average power consumption of the BLE wake-up end.
[0215] As described in the above embodiments, in Bluetooth version 4.0, three broadcast channels, channel 37, channel 38, and channel 39, are set. If a BLE wake-up device sends a BLE broadcast packet on a certain broadcast channel, the frequency of that broadcast channel may be the same as the frequency of the interference signal. To avoid the problem of the BLE wake-up device being unable to parse the wake-up sequence from the BLE broadcast packet due to the long-term occupation of the broadcast channel, in... Figure 8 Based on, combined Figure 19 This application also proposes a Bluetooth wake-up method that supports frequency hopping. For example... Figure 19 As shown, the method may include the following steps S11 to S26.
[0216] S11, the BLE wake-up end is configured to low-power wake-up transmission mode.
[0217] The low-power wake-up transmission mode refers to the BLE wake-up endpoint being configured to send BLE broadcast packets on the broadcast channel before being discovered by the BLE wake-up recipient. Each BLE broadcast packet contains multiple cyclic wake-up sequences. Each wake-up sequence can be used to determine whether it matches the device ID of the wake-up recipient.
[0218] S12, the BLE wake-up device is configured to low-power wake-up channel detection mode.
[0219] Among them, the low-power wake-up channel detection mode refers to the BLE wake-up end being configured to detect whether there is information being sent on the broadcast channel according to a preset duty cycle before the BLE wake-up end discovers the BLE wake-up end.
[0220] For the specific implementation of S11 and S12, please refer to S01 and S02 of the above embodiments, which will not be repeated here.
[0221] S13, the BLE wake-up end begins sending the first BLE broadcast packet on the first channel.
[0222] After the BLE wake-up end is configured to low-power wake-up transmission mode, the BLE wake-up end randomly selects one of the channels 37, 38 and 39, and starts sending the first BLE broadcast packet on this channel. The first BLE broadcast packet is also called the first paging message, which carries multiple cyclic wake-up sequences, each with the same content.
[0223] S14, the BLE-wake-up device performs a random scan on the three channels at preset time intervals (which may be referred to as the first preset duration) to determine whether the conditions for switching from the low-power wake-up channel detection mode to the wake-up sequence reception mode are met. If the conditions are met, then S15 is executed. If the conditions are not met, then the low-power wake-up channel detection mode is maintained.
[0224] Unlike S04, where the BLE wake-up end scans only one channel within a scan cycle, in S14, the BLE wake-up end scans each of the three channels sequentially within a scan cycle. It should be noted that the scanning order of these three channels within each scan cycle is also random, which avoids the phenomenon that the BLE wake-up end cannot parse the wake-up sequence from the BLE broadcast packet due to a broadcast channel being occupied for a long time.
[0225] S15, the BLE-wake-up device switches from low-power wake-up channel detection mode to wake-up sequence reception mode.
[0226] S16, the BLE-wake-up device receives information on the first channel. If the interfering signal also uses the first channel, then the information includes interference information from the interfering signal and a wake-up sequence from the first BLE broadcast packet.
[0227] S17, the BLE-wake-up end determines whether the information matches the device ID.
[0228] Due to interference, BLE cannot successfully parse the wake-up sequence when it is awakened, thus determining that the two do not match.
[0229] S18, the BLE-wake-up device is reconfigured to low-power wake-up channel detection mode.
[0230] S19, the BLE wake-up end begins sending the second BLE broadcast packet on the second channel.
[0231] The second channel is a channel randomly selected by the BLE wake-up end from channels 37, 38, and 39, and it is different from the first channel. The second BLE broadcast packet, also known as the second paging message, carries multiple cyclic wake-up sequences, each with the same content.
[0232] S20, the BLE-wake-up device randomly scans the three channels at preset time intervals (which may be referred to as the first preset duration) to determine whether the conditions for switching from the low-power wake-up channel detection mode to the wake-up sequence reception mode are met. If the conditions are met, then S21 is executed. If the conditions are not met, then the low-power wake-up channel detection mode is maintained.
[0233] It should be noted that both S14 and S20 use a random scanning method on the three channels, so the order in which the three channels are scanned may be the same or different.
[0234] S21, the BLE-wake-up end switches from low-power wake-up channel detection mode to wake-up sequence reception mode.
[0235] S22, the BLE-wake-up end receives the second wake-up sequence from the second BLE broadcast packet on the second channel.
[0236] S23, the BLE-wake-up end determines whether the information matches the device ID.
[0237] If the interference signal does not use the second channel, then the information received by the BLE wake-up end on the second channel only includes the second wake-up sequence from the second BLE broadcast packet, without interference information. Thus, the BLE wake-up end can determine whether the information matches the device ID.
[0238] S24, the BLE-wake-up end sends an acknowledgment message to the BLE-wake-up end.
[0239] The above confirmation message is used to indicate that the scan has been successful on the BLE wake-up device.
[0240] S25, the BLE-wake-up end is configured in BLE traditional transmit / receive mode.
[0241] S26, the BLE wake-up end is configured in BLE traditional transmit / receive mode.
[0242] For example, Figure 20 This is a schematic diagram illustrating the transmission and reception of wake-up sequences in frequency hopping mode, as provided in this application.
[0243] like Figure 20 As shown, the BLE wake-up end randomly sends BLE broadcast packets on three channels: channel 37, channel 38, and channel 39. For example, it first sends the first BLE broadcast packet on channel 37, then sends the second BLE broadcast packet on channel 38, and then sends the third BLE broadcast packet on channel 39.
[0244] In addition, the interference signal also used channel 37, causing interference to the first BLE broadcast packet.
[0245] During channel detection period i, the BLE-wake-up end sequentially performs detection on channels 37, 39, and 38. Since the BLE-wake-up end has not yet started sending packets, the handover condition is not met, and the next round of detection continues.
[0246] During channel detection period i+1, the BLE-wake-up end sequentially performs detection on channels 38, 37, and 39. Since the BLE-wake-up end has not yet started sending packets, the handover condition is not met, and the next round of detection continues.
[0247] During channel detection period i+2, the BLE-wake-up end first performs detection on channel 37. Since the BLE-wake-up end is sending the first BLE broadcast packet on channel 37, the switching condition is met, and it switches to the wake-up sequence reception mode. However, if the interference signal also uses channel 37, the BLE-wake-up end will be unable to obtain the wake-up sequence of the first BLE broadcast packet due to the interference information from the interference signal, and the BLE-wake-up end will return to the low-power wake-up channel detection mode.
[0248] During channel detection period i+3, the BLE-wake-up end first performs detection on channel 39, and then on channel 37. Referring to the analysis of channel detection period i+2, the BLE-wake-up end still cannot obtain the wake-up sequence of the first BLE broadcast packet, and the BLE-wake-up end returns to the low-power wake-up channel detection mode.
[0249] During channel detection period i+4, the BLE-wake-up device first performs detection on channel 38, then on channel 39, and finally on channel 37. Since only interference signals exist at this time and there are no BLE broadcast packets, the BLE-wake-up device returns to the low-power wake-up channel detection mode.
[0250] During channel detection period i+5, the BLE-wake-up end first performs detection on channel 38. Since the BLE-wake-up end is transmitting the second BLE broadcast packet on channel 38, the handover condition is met, and it switches to the wake-up sequence reception mode. Furthermore, although there is interference signal, the interference signal and the second BLE broadcast packet use different channels and will not affect the reception of the second BLE broadcast packet.
[0251] In the above scheme, the BLE wake-up end can send BLE broadcast packets sequentially in a random order on three broadcast channels: channel 37, channel 38, and channel 39. The BLE wake-up end can randomly scan the three channels at preset time intervals to determine whether the conditions for switching from low-power wake-up channel detection mode to wake-up sequence reception mode are met, and receive any available BLE broadcast packets. Thus, based on this frequency hopping technology, the problem of the BLE wake-up end being unable to parse the wake-up sequence from the BLE broadcast packets due to the long-term occupation of the broadcast channel can be effectively avoided, improving the success rate of device discovery.
[0252] This application also provides an electronic device, which can be the BLE wake-up device described in the above embodiments. The electronic device may include one or more processors and a memory. The memory is coupled to one or more processors and is used to store computer program code, including computer instructions. The one or more processors invoke the computer instructions to cause the electronic device to implement the methods described in the above embodiments.
[0253] This application also provides an electronic device, which can be the BLE wake-up device described in the above embodiments. The electronic device may include one or more processors and a memory. The memory is coupled to one or more processors and 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 described in the above embodiments.
[0254] This application also provides a computer-readable storage medium storing computer instructions. When the computer-readable storage medium is run on a computer, it causes the computer to perform the method described above. The computer instructions can be stored in the computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access, or it can include one or more data storage devices such as servers or data centers that can be integrated with the medium. Available media can be magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media, or semiconductor media (e.g., solid-state drives (SSDs)).
[0255] This application also provides a computer program product, which includes computer program code that, when run on a computer, causes the computer to perform the methods described in the above embodiments.
[0256] This application also provides a chip coupled to a memory. This chip is used to read and execute computer programs or instructions stored in the memory to perform the methods described in the above embodiments. The chip can be a general-purpose processor or a special-purpose processor. It should be noted that the chip can be implemented using 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.
[0257] The terminal device, computer-readable storage medium, computer program product, and chip provided in the embodiments of this application are all used to execute the methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects corresponding to the methods provided above, and will not be repeated here.
[0258] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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.
[0259] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0260] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0261] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0262] If the integrated unit is implemented as 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 embodiments of this application, in essence, 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. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application.
[0263] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A Bluetooth wake-up method, characterized in that, The method is applied to a first electronic device, and the method includes: The first electronic device scans the broadcast channel at a preset time interval, the preset time interval being a first preset duration, the duration of each scan being a second preset duration, the first preset duration being less than or equal to the reception duration of (m-1) wake-up sequences, and the second preset duration being less than or equal to the reception duration of one wake-up sequence. Based on the signal strength indication of the carrier of the broadcast channel being greater than or equal to a preset strength, the first electronic device receives a first wake-up sequence within a third preset duration. The third preset duration is greater than or equal to the reception duration of a wake-up sequence. The first wake-up sequence is a wake-up sequence in a first BLE broadcast packet sent by the second electronic device. The first BLE broadcast packet carries m wake-up sequences with the same content. Any one of the m wake-up sequences is used to independently wake up the electronic device that received the wake-up sequence. Based on the matching of the first wake-up sequence with the identifier of the first electronic device, the first electronic device transmits service data with the second electronic device via a BLE connection; Where m is an integer greater than 1.
2. The method according to claim 1, characterized in that, The broadcast channel is a pre-defined broadcast channel, which may be a first channel, a second channel, or a third channel.
3. The method according to claim 1, characterized in that, The broadcast channels include a first channel, a second channel, and a third channel; The first electronic device scans the broadcast channel at preset time intervals, including: Within each preset time interval, the first electronic device sequentially scans the first channel, the second channel, and the third channel, with the scanning order of the first channel, the second channel, and the third channel being random. Based on the signal strength indication of the carrier of the broadcast channel being greater than or equal to a preset strength, the first electronic device receives a first wake-up sequence within a third preset time period, including: Based on the signal strength indication of the carrier of the first channel being greater than or equal to a preset strength, the first electronic device receives the first wake-up sequence on the first channel within the third preset duration.
4. The method according to any one of claims 1 to 3, characterized in that, Before the first electronic device scans the broadcast channel at preset time intervals, the method further includes: If the first condition is met, the first electronic device is configured to a low-power wake-up channel detection mode; The power consumption wake-up channel detection mode refers to the configuration to detect whether information is being sent on the broadcast channel according to a preset duty cycle before the first electronic device detects other devices. 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 a user's command to enable Bluetooth; The first electronic device did not interact with other devices for service data via BLE connection within the fourth preset time period; The first electronic device receives the user's multi-screen collaboration operation.
5. The method according to claim 4, characterized in that, Before the first electronic device receives the first wake-up sequence within a third preset time period, the method further includes: Based on the signal strength indication of the carrier of the broadcast channel being greater than or equal to the preset strength, the first electronic device switches from the low-power wake-up channel detection mode to the wake-up sequence receiving mode. The wake-up sequence receiving mode refers to the configuration, after the first electronic device discovers the second electronic device, to receive a wake-up sequence from the second electronic device within the third preset time period.
6. A Bluetooth wake-up method, characterized in that, The method is applied to a second electronic device, and the method includes: The second electronic device sends a first BLE broadcast packet on the broadcast channel. The first BLE broadcast packet carries m wake-up sequences. The content of the m wake-up sequences is the same. Any one of the m wake-up sequences is used to independently wake up the electronic device that received the wake-up sequence. Based on the matching of the first wake-up sequence with the identifier of the first electronic device, the second electronic device transmits service data with the first electronic device through a BLE connection. The first wake-up sequence is the wake-up sequence received by the first electronic device from the second electronic device, and the first wake-up sequence is one of the m wake-up sequences. Where m is an integer greater than 1.
7. The method according to claim 6, characterized in that, The broadcast channel is a pre-defined broadcast channel, which may be a first channel, a second channel, or a third channel.
8. The method according to claim 6, characterized in that, The broadcast channels include a first channel, a second channel, and a third channel; The second electronic device transmits a first BLE broadcast packet on the broadcast channel, including: The second electronic device sends the first BLE broadcast packet on the first channel, sends the second BLE broadcast packet on the second channel, and sends the third BLE broadcast packet on the third channel. The transmission order of the first channel, the second channel, and the third channel is random. The second BLE broadcast packet carries the m wake-up sequences, and the third BLE broadcast packet carries the m wake-up sequences.
9. The method according to any one of claims 6 to 8, characterized in that, Before the second electronic device transmits the first BLE broadcast packet on the broadcast channel, the method further includes: If the second condition is met, the second electronic device is configured to a low-power wake-up transmission mode; The low-power wake-up transmission mode refers to the configuration of periodically transmitting BLE broadcast packets carrying the m wake-up sequences on the broadcast channel before the second electronic device is discovered by the first electronic device. The second condition includes any one of the following: The second electronic device is powered on; The second electronic device receives the user's file sharing request; The second electronic device receives the user's command to enable Bluetooth; The second electronic device receives incoming call requests and audio / video call requests from other devices.
10. The method according to any one of claims 6 to 8, characterized in that, The m wake-up sequences are specifically carried in the protocol data unit of the first BLE broadcast packet.
11. An electronic device, wherein the electronic device is a first electronic device, the first electronic device being a BLE-wake-up device, 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 including computer instructions, and the one or more processors call the computer instructions to cause the first electronic device to perform the Bluetooth wake-up method as described in any one of claims 1 to 5.
12. An electronic device, wherein the electronic device is a second electronic device, and the second electronic device is a BLE wake-up device, characterized in that, The second electronic device includes: one or more processors, and 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, wherein the one or more processors invoke the computer instructions to cause the second electronic device to perform the Bluetooth wake-up method as described in any one of claims 6 to 10.
13. A communication system, characterized in that, The communication system includes the first electronic device as described in claim 11 and the second electronic device as described in claim 12.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions; When the instruction is executed on the first electronic device, the first electronic device performs the Bluetooth wake-up method as described in any one of claims 1 to 5; when the instruction is executed on the second electronic device, the second electronic device performs the Bluetooth wake-up method as described in any one of claims 6 to 10.