WO2021164159A1 - 设备唤醒方法、装置和电子设备 - Google Patents

设备唤醒方法、装置和电子设备 Download PDF

Info

Publication number
WO2021164159A1
WO2021164159A1 PCT/CN2020/097146 CN2020097146W WO2021164159A1 WO 2021164159 A1 WO2021164159 A1 WO 2021164159A1 CN 2020097146 W CN2020097146 W CN 2020097146W WO 2021164159 A1 WO2021164159 A1 WO 2021164159A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
peripheral
module
bluetooth peripheral
information
Prior art date
Application number
PCT/CN2020/097146
Other languages
English (en)
French (fr)
Inventor
赵琛
唐玉莲
Original Assignee
展讯通信(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 展讯通信(上海)有限公司 filed Critical 展讯通信(上海)有限公司
Priority to EP20919536.1A priority Critical patent/EP4109910A4/en
Priority to US17/904,576 priority patent/US20230091286A1/en
Publication of WO2021164159A1 publication Critical patent/WO2021164159A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4436Power management, e.g. shutting down unused components of the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communication technology, and in particular to a device wake-up method, device and electronic equipment.
  • a TV box needs to be in standby or hibernation when it is not in use, and when the TV box is converted from a standby state or a hibernation state to a working state, the TV box needs to be awakened first.
  • the system structure of a device with Bluetooth includes a device main control module and a Bluetooth module.
  • the Bluetooth module can communicate with Bluetooth peripherals. When the main control module of the device is in the dormant state, the Bluetooth module does not have the ability to parse the upper-layer service data sent by the Bluetooth peripheral.
  • the Bluetooth peripheral is usually customized.
  • the customized Bluetooth peripheral sends special data, and correspondingly, the customized Bluetooth peripheral information is written in the Bluetooth module.
  • the Bluetooth module receives special data, it can identify the customized Bluetooth peripherals and wake up the device. This leads to higher costs for waking up devices and poor versatility.
  • the embodiment of the present invention provides a device wake-up method, device and electronic device, which reduces the cost of waking up the device and improves the versatility of Bluetooth peripherals.
  • an embodiment of the present invention provides a device wake-up method, which is applied to a device wake-up device, the device wake-up device includes a Bluetooth module and a protocol stack module, and the method includes:
  • the Bluetooth module When the protocol stack module is in the dormant state, the Bluetooth module receives the to-be-processed data sent by the first Bluetooth peripheral; wherein, the Bluetooth module stores the data that the protocol stack module sends before entering the dormant state and the Information of the second Bluetooth peripheral that the Bluetooth module successfully paired with Bluetooth;
  • the Bluetooth module wakes up the device according to the data to be processed and the information of the second Bluetooth peripheral.
  • the data to be processed includes the address of the first Bluetooth peripheral, and the information of the second Bluetooth peripheral includes the address of the second Bluetooth peripheral;
  • the Bluetooth module wakes up the device according to the data to be processed and the information of the second Bluetooth peripheral, including:
  • the Bluetooth module determines that the address of the first Bluetooth peripheral is the same as the address of the second Bluetooth peripheral, wake up the device.
  • the data to be processed further includes a target button descriptor
  • the information of the second Bluetooth peripheral further includes mapping information between the buttons of the second Bluetooth peripheral and the button descriptor and preset buttons, The preset button is used to wake up the device;
  • the Bluetooth module Before the Bluetooth module wakes up the device, it also includes:
  • the Bluetooth module determines whether the first Bluetooth peripheral supports the Bluetooth HID protocol
  • the Bluetooth module determines that the first Bluetooth peripheral supports the Bluetooth HID protocol, then determine the target button according to the target button descriptor and the mapping information;
  • the Bluetooth module wakes up the device, including:
  • the Bluetooth module determines that the target button is the preset button, wake up the device.
  • the first Bluetooth peripheral is a Bluetooth peripheral that maintains a Bluetooth connection with the Bluetooth module.
  • the first Bluetooth peripheral and the Bluetooth module are not currently Bluetooth connected, and the to-be-processed data is data broadcast by the first Bluetooth peripheral.
  • the method before the protocol stack module enters the sleep state, the method further includes:
  • the protocol stack module obtains the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module;
  • the protocol stack module sends the information of the second Bluetooth peripheral to the Bluetooth module.
  • the method further includes:
  • the protocol stack module determines whether the second Bluetooth peripheral supports the Bluetooth HID protocol
  • the acquiring, by the protocol stack module, the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module includes:
  • the protocol stack module determines that the second Bluetooth peripheral supports the Bluetooth HID protocol, it acquires the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module.
  • an embodiment of the present invention provides a device wake-up device, including: a Bluetooth module and a protocol stack module;
  • the Bluetooth module is configured to receive the data to be processed from the first Bluetooth peripheral when the protocol stack module is in the sleep state; wherein, the Bluetooth module stores the data sent by the protocol stack module before entering the sleep state Information about the second Bluetooth peripheral that successfully performs Bluetooth pairing with the Bluetooth module;
  • the Bluetooth module is also used to wake up the device according to the data to be processed and the information of the second Bluetooth peripheral.
  • the data to be processed includes the address of the first Bluetooth peripheral, and the information of the second Bluetooth peripheral includes the address of the second Bluetooth peripheral;
  • the Bluetooth module is specifically used for:
  • the data to be processed further includes a target button descriptor
  • the information of the second Bluetooth peripheral further includes mapping information between the buttons of the second Bluetooth peripheral and the button descriptor and preset buttons, The preset button is used to wake up the device;
  • the Bluetooth module is also used for:
  • the target button If it is determined that the first Bluetooth peripheral supports the Bluetooth HID protocol, determine the target button according to the target button descriptor and the mapping information;
  • the Bluetooth module is specifically used for:
  • the first Bluetooth peripheral is a Bluetooth peripheral that maintains a Bluetooth connection with the Bluetooth module.
  • the first Bluetooth peripheral and the Bluetooth module are not currently Bluetooth connected, and the to-be-processed data is data broadcast by the first Bluetooth peripheral.
  • protocol stack module is also used for:
  • the second Bluetooth module sent by the second Bluetooth peripheral is acquired through the Bluetooth module.
  • Bluetooth peripheral information
  • protocol stack module is also used for:
  • the protocol stack module is specifically used for:
  • the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral is acquired through the Bluetooth module.
  • an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a transceiver;
  • the transceiver is used to communicate with other devices;
  • the memory is used to store instructions
  • the processor is configured to execute instructions stored in the memory to execute the method provided by any implementation manner of the first aspect of the present invention.
  • an embodiment of the present invention provides a computer-readable storage medium, including: a readable storage medium and a computer program, where the computer program is used to implement the method provided by any one of the implementation manners of the first aspect of the present invention.
  • an embodiment of the present invention provides a program product.
  • the program product includes a computer program (that is, an execution instruction), and the computer program is stored in a readable storage medium.
  • At least one processor can read the computer program from a readable storage medium, and at least one processor executes the computer program to enable the device to implement the method provided by any one of the implementation manners of the first aspect of the present invention.
  • Embodiments of the present invention provide a device wake-up method, device, and electronic device.
  • the Bluetooth module receives the data to be processed from the first Bluetooth peripheral device, wherein the Bluetooth module stores the protocol stack module when entering The information of the second Bluetooth peripheral that is successfully paired with the Bluetooth module before the dormant state is sent, and the Bluetooth module wakes up the device according to the data to be processed and the information of the second Bluetooth peripheral.
  • the protocol stack module sends the information of the second Bluetooth peripheral to the Bluetooth module, so that the Bluetooth module can identify the Bluetooth peripheral that wakes up the device.
  • the first Bluetooth peripheral does not need to be customized in advance, which reduces wake-up The cost of the device improves the versatility of Bluetooth peripherals to wake up the device.
  • Figure 1 is a schematic diagram of the existing principle of waking up a device through a Bluetooth peripheral
  • FIG. 2 is a schematic diagram of the principle of waking up a device through a Bluetooth peripheral to which an embodiment of the present invention is applicable;
  • FIG. 3 is a diagram of an application scenario to which the embodiment of the present invention is applicable.
  • FIG. 4 is a flowchart of a device wake-up method provided by an embodiment of the present invention.
  • FIG. 5 is another flowchart of a device wake-up method provided by an embodiment of the present invention.
  • FIG. 6 is another flowchart of a device wake-up method provided by an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a device wake-up device provided by an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of the existing principle of waking up a device through a Bluetooth peripheral.
  • the device 100 may include a Bluetooth module 11 and a device main control module.
  • the Bluetooth module 11 can communicate with the Bluetooth peripheral 200.
  • the device main control module 21 runs a protocol stack 22, which supports the Bluetooth protocol.
  • the present invention does not limit the hardware form of the device main control module 21 and the Bluetooth module 11.
  • the device main control module 21 may be a chip.
  • the Bluetooth module 11 can receive upper-layer service data sent by the Bluetooth peripheral 200, and send the upper-layer service data to the device main control module 21 for analysis.
  • the device main control module 21 may enter a sleep state or a standby state.
  • the Bluetooth module 11 does not have the ability to analyze the upper-layer service data sent by the Bluetooth peripheral 200. Therefore, by customizing a specific Bluetooth peripheral 200, part of the information related to the customized Bluetooth peripheral 200 is written in the Bluetooth module 11.
  • the Bluetooth module 11 can pass through Part of the information of the hard-coded Bluetooth peripheral 200 parses the upper-layer service data sent by the Bluetooth peripheral 200.
  • the device main control module 21 can be awakened to realize the waking up of the device.
  • customizing Bluetooth peripherals not only increases the cost of waking up the device, but the Bluetooth peripherals are fixed, resulting in poor versatility.
  • FIG. 2 is a schematic diagram of a principle of waking up a device through a Bluetooth peripheral to which an embodiment of the present invention is applicable.
  • the device main control module 21 before the device main control module 21 enters the dormant state, the device main control module 21 sends information to the Bluetooth module 11, and the information is used by the Bluetooth module 11 to parse the upper-layer service data sent by the Bluetooth peripheral 200, so that The Bluetooth module 11 has the ability to analyze upper-layer service data sent by the Bluetooth peripheral 200, so as to wake up the device.
  • the Bluetooth peripheral does not need to be customized in advance, thereby reducing the cost of waking up the device and improving the versatility of the Bluetooth peripheral waking up the device.
  • the device can be any device that can be awakened via Bluetooth, for example, a TV box, a TV, an air conditioner, a computer, a projector, and so on.
  • the Bluetooth peripheral 200 can be any device that supports the Bluetooth function and can wake up the device, for example, a remote control, a smart phone, a wearable device (such as a smart watch, a smart bracelet), and so on.
  • FIG. 3 is a diagram of an application scenario to which the embodiment of the present invention is applicable.
  • the device 100 may be a TV box
  • the Bluetooth peripheral 200 may be a remote control.
  • the up button on the remote control can be used to wake up the TV box.
  • Fig. 4 is a flowchart of a device wake-up method provided by an embodiment of the present invention.
  • the device wake-up method provided in this embodiment can be applied to a device wake-up device, and the device wake-up device includes a Bluetooth module and a protocol stack module.
  • the device wake-up method provided in this embodiment may include:
  • the Bluetooth module stores the information of the second Bluetooth peripheral that successfully performs Bluetooth pairing with the Bluetooth module that is sent by the protocol stack module before entering the dormant state.
  • the protocol stack module can run the Bluetooth protocol stack, and the Bluetooth module can perform Bluetooth communication with Bluetooth peripherals and transmit data.
  • the protocol stack module sends the information of the second Bluetooth peripheral to the Bluetooth module, and correspondingly, the Bluetooth module receives and stores the information of the second Bluetooth peripheral.
  • the Bluetooth module uses the information of the second Bluetooth peripheral to have the ability to identify the first Bluetooth module and analyze the pending data. The ability to process data, and further determine whether to wake up the device based on the recognition result and the data analysis result.
  • this embodiment does not limit the number and type of second Bluetooth peripherals.
  • the Bluetooth peripheral that successfully performs Bluetooth pairing with the Bluetooth module is referred to as the second Bluetooth peripheral.
  • the second Bluetooth peripheral can wake up the device.
  • the Bluetooth peripheral that performs Bluetooth communication with the Bluetooth module is called the first Bluetooth peripheral.
  • the second Bluetooth peripheral must have made a Bluetooth connection with the Bluetooth module.
  • the Bluetooth module can receive the to-be-processed data sent by the first Bluetooth peripheral.
  • the first Bluetooth peripheral and the second Bluetooth peripheral may be the same Bluetooth peripheral or different Bluetooth peripherals.
  • the first Bluetooth peripheral is a Bluetooth peripheral that maintains a Bluetooth connection with the Bluetooth module.
  • the first Bluetooth peripheral and the Bluetooth module are not currently Bluetooth connected, and the data to be processed is data broadcast by the first Bluetooth peripheral.
  • the Bluetooth peripheral 1 performs Bluetooth pairing and Bluetooth connection with the Bluetooth module, and then disconnects the Bluetooth connection. After the protocol stack module enters the dormant state, the Bluetooth peripheral 1 and the Bluetooth module perform a Bluetooth connection again, and send data to be processed to the Bluetooth module. At this time, the second Bluetooth peripheral is Bluetooth peripheral 1, and the first Bluetooth peripheral is Bluetooth peripheral 1.
  • the Bluetooth peripheral 1 performs Bluetooth pairing and Bluetooth connection with the Bluetooth module, and then disconnects the Bluetooth connection. After the protocol stack module enters the sleep state, the Bluetooth peripheral 1 broadcasts data, and the Bluetooth module receives the data broadcast by the Bluetooth peripheral 1. At this time, the second Bluetooth peripheral is Bluetooth peripheral 1, and the first Bluetooth peripheral is Bluetooth peripheral 1.
  • the Bluetooth peripheral 1 performs Bluetooth pairing and Bluetooth connection with the Bluetooth module, and always maintains the Bluetooth connection. After the protocol stack module enters the dormant state, the Bluetooth peripheral 1 sends the data to be processed to the Bluetooth module. At this time, the second Bluetooth peripheral is Bluetooth peripheral 1, and the first Bluetooth peripheral is Bluetooth peripheral 1.
  • Bluetooth peripherals 1 to 3 perform Bluetooth pairing and Bluetooth connection with the Bluetooth module, and always maintain the Bluetooth connection. After the protocol stack module enters the dormant state, the Bluetooth peripheral 2 sends the data to be processed to the Bluetooth module. At this time, the second Bluetooth peripheral is Bluetooth peripherals 1 to 3, and the first Bluetooth peripheral is Bluetooth peripheral 2.
  • the Bluetooth peripherals 1 to 3 perform Bluetooth pairing and Bluetooth connection with the Bluetooth module. After that, the Bluetooth peripheral 1 disconnects the Bluetooth connection, and the Bluetooth peripherals 2 to 3 maintain the Bluetooth connection. After the protocol stack module enters the dormant state, the Bluetooth peripheral 4 performs a Bluetooth connection with the Bluetooth module, and sends the data to be processed to the Bluetooth module. At this time, the second Bluetooth peripheral is Bluetooth peripherals 1 to 3, and the first Bluetooth peripheral is Bluetooth peripheral 4.
  • the Bluetooth peripherals 1 to 3 perform Bluetooth pairing and Bluetooth connection with the Bluetooth module. After that, the Bluetooth peripheral 1 disconnects the Bluetooth connection, and the Bluetooth peripherals 2 to 3 maintain the Bluetooth connection. After the protocol stack module enters the sleep state, the Bluetooth peripheral 1 broadcasts data, and the Bluetooth module receives the data broadcast by the Bluetooth peripheral 1. At this time, the second Bluetooth peripheral is Bluetooth peripherals 1 to 3, and the first Bluetooth peripheral is Bluetooth peripheral 1.
  • the Bluetooth module wakes up the device according to the data to be processed and the information of the second Bluetooth peripheral.
  • the protocol stack module before the protocol stack module enters the sleep state, the protocol stack module sends the information of the second Bluetooth peripheral that has successfully performed Bluetooth pairing to the Bluetooth module, and the information of the second Bluetooth peripheral is used for
  • the Bluetooth module recognizes the Bluetooth peripheral and analyzes the data sent by the Bluetooth peripheral, so that the Bluetooth module has the ability to analyze the upper-layer business data sent by the Bluetooth peripheral. Therefore, the Bluetooth module determines whether or not according to the data to be processed and the information of the second Bluetooth peripheral. You can wake up the device.
  • the first Bluetooth peripheral does not need to be customized in advance, and the device can be waked up by any Bluetooth peripheral, which reduces the cost of waking up the device and improves the versatility of the Bluetooth peripheral to wake up the device.
  • the information of the second Bluetooth peripheral may include at least one of the following: the identification of the second Bluetooth peripheral, the address of the second Bluetooth peripheral, the preset information for the second Bluetooth peripheral to wake up the device, and the need to parse upper-layer service data information.
  • the data to be processed may include information for waking up the device, for example, including at least one of the following: the identification of the first Bluetooth peripheral, the first Bluetooth peripheral The address and preset information used to wake up the device.
  • the data to be processed may include the address of the first Bluetooth peripheral
  • the information of the second Bluetooth peripheral may include the address of the second Bluetooth peripheral
  • the Bluetooth module wakes up the device according to the data to be processed and the information of the second Bluetooth peripheral, which may include:
  • the Bluetooth module determines that the address of the first Bluetooth peripheral is the same as the address of the second Bluetooth peripheral, it wakes up the device.
  • the Bluetooth module determines that the address of the first Bluetooth peripheral is the same as the address of the second Bluetooth peripheral, it means that the first Bluetooth peripheral and the second Bluetooth peripheral are the same device, and the first Bluetooth peripheral can wake up the device.
  • the Bluetooth module can identify whether the first Bluetooth peripheral is The second Bluetooth peripheral. When it is determined that the first Bluetooth peripheral and the second Bluetooth peripheral are the same device, the device can be awakened.
  • the application scenario of this embodiment may be: the first Bluetooth peripheral currently maintains a Bluetooth connection with the Bluetooth module, and the first Bluetooth peripheral sends data to be processed to the Bluetooth module; or, the first Bluetooth peripheral and the Bluetooth module are not currently connected by Bluetooth , The first Bluetooth peripheral broadcasts data, and the Bluetooth module receives the data broadcast by the first Bluetooth peripheral. Exemplarily, it can be applied to any one of the foregoing first application scenario to sixth application scenario.
  • FIG. 5 is another flowchart of a device wake-up method provided by an embodiment of the present invention.
  • the device wake-up method provided in this embodiment is applicable to an application scenario where the first Bluetooth peripheral device maintains a Bluetooth connection with the Bluetooth module.
  • the data to be processed includes the address of the first Bluetooth peripheral and the target key descriptor
  • the information of the second Bluetooth peripheral may include the address of the second Bluetooth peripheral, preset keys, and the keys and keys of the second Bluetooth peripheral.
  • the mapping information between descriptors, the preset button is used to wake up the device.
  • the device wake-up method provided in this embodiment may include:
  • the Bluetooth module determines whether the address of the first Bluetooth peripheral is the same as the address of the second Bluetooth peripheral.
  • the Bluetooth module determines whether the first Bluetooth peripheral supports the Bluetooth HID protocol.
  • the Bluetooth Human Interface Device (HID) protocol is based on the Universal Serial Bus (Universal Serial Bus, USB) HID protocol, and is used for slave devices (slaver) to control the master device (host).
  • slaver is a Bluetooth peripheral
  • host is a device to be awakened.
  • the Bluetooth HID protocol stipulates that there is a mapping relationship (reportmap) between the buttons of the Bluetooth peripherals and the button descriptors. In this embodiment, through the mapping relationship between the keys of the Bluetooth peripheral and the key descriptors, the preset keys for waking up the device can be customized, which improves the flexibility of waking up the device.
  • the Bluetooth module determines the target button according to the target button descriptor and the mapping information between the button of the second Bluetooth peripheral and the button descriptor.
  • both the remote control and the TV box support the Bluetooth HID protocol.
  • the data to be processed sent by the remote control to the TV box includes the target key descriptor corresponding to the key.
  • the mapping information between the keys of the remote control and the key descriptors may include: the up key corresponding signal 1, the down key corresponding signal 2, the left key corresponding signal 3, and the right key corresponding signal 4.
  • the TV box can parse the target key descriptor sent by the remote control according to the mapping information between the keys of the remote control and the key descriptors, so as to determine the keys on the remote control that are pressed. For example, if the target key descriptor is signal 4, it corresponds to the right key.
  • the preset button may be an up button, or a down button, or a left button, or a right button in the remote control.
  • the device wake-up method provided in this embodiment is applied to a scenario where both the Bluetooth peripheral and the device to be awakened support the Bluetooth HID protocol.
  • the first Bluetooth peripheral maintains a Bluetooth connection with the Bluetooth module.
  • the Bluetooth module first determines whether the device is the same device through the address of the first Bluetooth peripheral and the address of the second Bluetooth peripheral. If it is determined to be the same device, it is further determined whether the first Bluetooth peripheral is a Bluetooth HID device.
  • the target key corresponding to the target key descriptor sent by the first Bluetooth peripheral is awakened
  • the preset buttons of the device are compared to determine whether to wake up the device.
  • the first Bluetooth peripheral does not need to be customized in advance, and the device can be waked up through a pre-defined preset button, which reduces the cost of waking up the device and improves the versatility of the Bluetooth peripheral to wake up the device.
  • FIG. 6 is another flowchart of a device wake-up method provided by an embodiment of the present invention.
  • the device wake-up method provided in this embodiment may further include:
  • the protocol stack module obtains the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module.
  • the protocol stack module sends the information of the second Bluetooth peripheral to the Bluetooth module.
  • the Bluetooth module can receive the information sent by the second Bluetooth peripheral, and the Bluetooth module can send the information of the second Bluetooth peripheral to the protocol stack module, so that the protocol The stack module obtains and stores the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module. Before the protocol stack module enters the sleep state, the protocol stack module sends the second Bluetooth peripheral information to the Bluetooth module. This embodiment does not limit the specific time for the protocol stack module to send the information of the second Bluetooth peripheral.
  • the protocol stack module in S601 obtains the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module, it may further include:
  • the protocol stack module determines whether the second Bluetooth peripheral supports the Bluetooth HID protocol.
  • the protocol stack module obtains the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module, which may include:
  • the protocol stack module determines that the second Bluetooth peripheral supports the Bluetooth HID protocol, it acquires the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral through the Bluetooth module.
  • the second Bluetooth peripheral by determining whether the second Bluetooth peripheral supports the Bluetooth HID protocol, it is determined whether the second Bluetooth peripheral is a Bluetooth HID device.
  • the acquired information of the second Bluetooth peripheral is more accurate and comprehensive, for example, the mapping information between the keys of the second Bluetooth peripheral and the key descriptor and the preset keys, further Improved the accuracy of waking up devices via Bluetooth peripherals.
  • FIG. 7 is a schematic structural diagram of a device wake-up device provided by an embodiment of the present invention.
  • the device wake-up device provided in this embodiment may include: a Bluetooth module 71 and a protocol stack module 72;
  • the Bluetooth module 71 is used to receive the data to be processed from the first Bluetooth peripheral when the protocol stack module 72 is in a sleep state; wherein, the Bluetooth module 71 stores the protocol stack module 72 when the protocol stack module 72 enters the dormant state.
  • the Bluetooth module 71 is also used to wake up the device according to the data to be processed and the information of the second Bluetooth peripheral.
  • the data to be processed includes the address of the first Bluetooth peripheral, and the information of the second Bluetooth peripheral includes the address of the second Bluetooth peripheral;
  • the Bluetooth module 71 is specifically used for:
  • the data to be processed further includes a target button descriptor
  • the information of the second Bluetooth peripheral further includes mapping information between the buttons of the second Bluetooth peripheral and the button descriptor and preset buttons, The preset button is used to wake up the device;
  • the Bluetooth module 71 is also used for:
  • the Bluetooth module 71 Before the Bluetooth module 71 wakes up the device, determine whether the first Bluetooth peripheral supports the Bluetooth HID protocol;
  • the target button If it is determined that the first Bluetooth peripheral supports the Bluetooth HID protocol, determine the target button according to the target button descriptor and the mapping information;
  • the Bluetooth module 71 is specifically used for:
  • the first Bluetooth peripheral is a Bluetooth peripheral that maintains a Bluetooth connection with the Bluetooth module 71.
  • the first Bluetooth peripheral device and the Bluetooth module 71 are not currently Bluetooth connected, and the data to be processed is data broadcast by the first Bluetooth peripheral device.
  • protocol stack module 72 is also used to:
  • the Bluetooth module 71 Before the protocol stack module 72 enters the dormant state, and after the Bluetooth module 71 successfully performs Bluetooth pairing with the second Bluetooth peripheral, the Bluetooth module 71 obtains all the data sent by the second Bluetooth peripheral. State the information of the second Bluetooth peripheral;
  • protocol stack module 72 is also used to:
  • the protocol stack module 72 is specifically used for:
  • the information of the second Bluetooth peripheral sent by the second Bluetooth peripheral is acquired through the Bluetooth module 71.
  • the device wake-up device provided in this embodiment is used to execute the device wake-up method provided in the method embodiment of the present invention, and its technical principles and effects are similar, and will not be repeated here.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the electronic device may include a processor 81, a memory 82, and a transceiver 83.
  • the transceiver 83 is used to communicate with other devices.
  • the memory 82 is used to store instructions.
  • the processor 81 is configured to execute instructions stored in the memory 82, so that the electronic device executes the device wake-up method provided by the method embodiment of the present invention.
  • the technical principles and technical effects are similar and will not be repeated here.
  • All or part of the steps in the foregoing method embodiments may be implemented by a program instructing relevant hardware.
  • the aforementioned program can be stored in a readable memory.
  • the program executes the steps of the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, Solid state hard disk, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
  • These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the term “including” and its variations may refer to non-limiting inclusion; the term “or” and its variations may refer to “and/or”.
  • the terms “first”, “second”, etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
  • “plurality” means two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects before and after are in an "or” relationship.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供一种设备唤醒方法、装置和电子设备,其中,设备唤醒方法包括:在协议栈模块处于休眠状态时,蓝牙模块接收第一蓝牙外设发送的待处理数据;其中,蓝牙模块存储有协议栈模块在进入休眠状态前发送的与蓝牙模块成功进行蓝牙配对的第二蓝牙外设的信息;蓝牙模块根据待处理数据和第二蓝牙外设的信息,唤醒设备。通过协议栈模块在进入休眠状态前向蓝牙模块发送第二蓝牙外设的信息,第一蓝牙外设不需要提前定制,降低了唤醒设备的成本,提高了蓝牙外设的通用性。

Description

设备唤醒方法、装置和电子设备
本申请要求于2020年02月18日提交中国专利局、申请号为202010098946.1、申请名称为“设备唤醒方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种设备唤醒方法、装置和电子设备。
背景技术
随着物联网的发展,人们对各种设备的低功耗要求越来越高。例如,电视盒子在不用的情况下需要待机或休眠,电视盒子从待机状态或休眠状态转换为工作状态时,需要首先唤醒电视盒子。
唤醒设备有多种实现方式,其中一种为通过蓝牙外设实现。通常,带蓝牙的设备的系统结构包括设备主控模块和蓝牙模块。蓝牙模块可以与蓝牙外设通信。当设备主控模块处于休眠状态时,蓝牙模块不具备解析蓝牙外设发送的上层业务数据的能力。
目前,通过蓝牙外设实现唤醒设备时,蓝牙外设通常是定制的。定制的蓝牙外设发送特殊的数据,相应的,蓝牙模块中写死定制的蓝牙外设的信息。当蓝牙模块收到特殊的数据后可以识别定制的蓝牙外设,并唤醒设备。这导致了唤醒设备的成本较高,通用性很差。
发明内容
本发明实施例提供一种设备唤醒方法、装置和电子设备,降低了唤醒设备的成本,提高了蓝牙外设的通用性。
第一方面,本发明实施例提供一种设备唤醒方法,应用于设备唤醒装置,所述设备唤醒装置包括蓝牙模块和协议栈模块,所述方法包括:
在所述协议栈模块处于休眠状态时,所述蓝牙模块接收第一蓝牙外设发送的待处理数据;其中,所述蓝牙模块存储有所述协议栈模块在进入休眠状态前发送的与所述蓝牙模块成功进行蓝牙配对的第二蓝牙外设的信息;
所述蓝牙模块根据所述待处理数据和所述第二蓝牙外设的信息,唤醒设备。
可选的,所述待处理数据包括所述第一蓝牙外设的地址,所述第二蓝牙外设的信息包括所述第二蓝牙外设的地址;
所述蓝牙模块根据所述待处理数据和所述第二蓝牙外设的信息,唤醒设备,包括:
所述蓝牙模块若确定所述第一蓝牙外设的地址与所述第二蓝牙外设的地址相同,则唤醒设备。
可选的,所述待处理数据还包括目标按键描述符,所述第二蓝牙外设的信息还包括所述第二蓝牙外设的按键与按键描述符之间的映射信息以及预设按键,所述预设按 键用于唤醒设备;
所述蓝牙模块唤醒设备之前,还包括:
所述蓝牙模块确定所述第一蓝牙外设是否支持蓝牙HID协议;
所述蓝牙模块若确定所述第一蓝牙外设支持蓝牙HID协议,则根据所述目标按键描述符和所述映射信息确定目标按键;
所述蓝牙模块唤醒设备,包括:
所述蓝牙模块若确定所述目标按键为所述预设按键,则唤醒设备。
可选的,所述第一蓝牙外设为与所述蓝牙模块保持蓝牙连接的蓝牙外设。
可选的,所述第一蓝牙外设与所述蓝牙模块当前未进行蓝牙连接,所述待处理数据为所述第一蓝牙外设广播的数据。
可选的,在所述协议栈模块进入休眠状态之前,还包括:
在所述蓝牙模块与所述第二蓝牙外设成功进行蓝牙配对后,所述协议栈模块通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息;
所述协议栈模块向所述蓝牙模块发送所述第二蓝牙外设的信息。
可选的,所述协议栈模块通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息之前,还包括:
所述协议栈模块确定所述第二蓝牙外设是否支持蓝牙HID协议;
所述协议栈模块通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息,包括:
所述协议栈模块若确定所述第二蓝牙外设支持蓝牙HID协议,则通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息。
第二方面,本发明实施例提供一种设备唤醒装置,包括:蓝牙模块和协议栈模块;
所述蓝牙模块,用于在所述协议栈模块处于休眠状态时,接收第一蓝牙外设发送的待处理数据;其中,所述蓝牙模块存储有所述协议栈模块在进入休眠状态前发送的与所述蓝牙模块成功进行蓝牙配对的第二蓝牙外设的信息;
所述蓝牙模块,还用于根据所述待处理数据和所述第二蓝牙外设的信息,唤醒设备。
可选的,所述待处理数据包括所述第一蓝牙外设的地址,所述第二蓝牙外设的信息包括所述第二蓝牙外设的地址;
所述蓝牙模块具体用于:
若确定所述第一蓝牙外设的地址与所述第二蓝牙外设的地址相同,则唤醒设备。
可选的,所述待处理数据还包括目标按键描述符,所述第二蓝牙外设的信息还包括所述第二蓝牙外设的按键与按键描述符之间的映射信息以及预设按键,所述预设按键用于唤醒设备;
所述蓝牙模块还用于:
在所述蓝牙模块唤醒设备之前,确定所述第一蓝牙外设是否支持蓝牙HID协议;
若确定所述第一蓝牙外设支持蓝牙HID协议,则根据所述目标按键描述符和所述映射信息确定目标按键;
所述蓝牙模块具体用于:
若确定所述目标按键为所述预设按键,则唤醒设备。
可选的,所述第一蓝牙外设为与所述蓝牙模块保持蓝牙连接的蓝牙外设。
可选的,所述第一蓝牙外设与所述蓝牙模块当前未进行蓝牙连接,所述待处理数据为所述第一蓝牙外设广播的数据。
可选的,所述协议栈模块还用于:
在所述协议栈模块进入休眠状态之前,且在所述蓝牙模块与所述第二蓝牙外设成功进行蓝牙配对后,通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息;
向所述蓝牙模块发送所述第二蓝牙外设的信息。
可选的,所述协议栈模块还用于:
在通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息之前,确定所述第二蓝牙外设是否支持蓝牙HID协议;
所述协议栈模块具体用于:
若确定所述第二蓝牙外设支持蓝牙HID协议,则通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息。
第三方面,本发明实施例提供一种电子设备,包括:处理器、存储器和收发器;
所述收发器,用于与其他设备通信;
所述存储器,用于存储指令;
所述处理器,用于执行所述存储器中存储的指令,以执行本发明第一方面任一实施方式提供的方法。
第四方面,本发明实施例提供一种计算机可读存储介质,包括:可读存储介质和计算机程序,所述计算机程序用于实现本发明第一方面任一实施方式提供的方法。
第五方面,本发明实施例提供一种程序产品,该程序产品包括计算机程序(即执行指令),该计算机程序存储在可读存储介质中。至少一个处理器可以从可读存储介质读取该计算机程序,至少一个处理器执行该计算机程序使得该设备实施本发明第一方面任一实施方式提供的方法。
本发明实施例提供一种设备唤醒方法、装置和电子设备,在协议栈模块处于休眠状态时,蓝牙模块接收第一蓝牙外设发送的待处理数据,其中,蓝牙模块存储有协议栈模块在进入休眠状态前发送的与蓝牙模块成功进行蓝牙配对的第二蓝牙外设的信息,蓝牙模块根据待处理数据和第二蓝牙外设的信息,唤醒设备。通过在协议栈模块进入休眠状态之前,协议栈模块向蓝牙模块发送第二蓝牙外设的信息,使得蓝牙模块可以识别唤醒设备的蓝牙外设,第一蓝牙外设不需要提前定制,降低了唤醒设备的成本,提高了蓝牙外设唤醒设备的通用性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为现有的通过蓝牙外设唤醒设备的原理示意图;
图2为本发明实施例适用的通过蓝牙外设唤醒设备的原理示意图;
图3为本发明实施例适用的一个应用场景图;
图4为本发明实施例提供的设备唤醒方法的一种流程图;
图5为本发明实施例提供的设备唤醒方法的另一种流程图;
图6为本发明实施例提供的设备唤醒方法的又一种流程图;
图7为本发明实施例提供的设备唤醒装置的一种结构示意图;
图8为本发明实施例提供的电子设备的一种结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在现有技术中,通常通过定制的蓝牙外设唤醒处于休眠状态或待机状态的设备。下面结合图1进行说明。示例性的,图1为现有的通过蓝牙外设唤醒设备的原理示意图。如图1所示,设备100可以包括蓝牙模块11和设备主控模块。蓝牙模块11可以与蓝牙外设200通信。设备主控模块21运行协议栈22,该协议栈22支持蓝牙协议。本发明对设备主控模块21、蓝牙模块11的硬件形态不做限定。例如,设备主控模块21可以为芯片。设备主控模块21处于工作状态时,蓝牙模块11可以接收蓝牙外设200发送的上层业务数据,并将上层业务数据发送至设备主控模块21进行解析。为了满足设备的低功耗需求,设备主控模块21可以进入休眠状态或待机状态,此时,蓝牙模块11不具备解析蓝牙外设200发送的上层业务数据的能力。因此,通过定制特定的蓝牙外设200,将与该定制的蓝牙外设200的一部分信息写死在蓝牙模块11中,当设备主控模块21处于休眠状态或待机状态时,蓝牙模块11可以通过写死的蓝牙外设200的一部分信息解析蓝牙外设200发送的上层业务数据。当解析出上层业务数据包括用于唤醒设备的预设数据时,可以唤醒设备主控模块21,实现设备的唤醒。但是,通过定制蓝牙外设,不仅增大了唤醒设备的成本,而且蓝牙外设固定,导致通用性很差。
基于该技术问题,本发明实施例提供一种设备唤醒方法。示例性的,结合图2,图2为本发明实施例适用的通过蓝牙外设唤醒设备的原理示意图。如图2所示,在设备主控模块21进入休眠状态之前,通过设备主控模块21向蓝牙模块11发送信息,该信息用于蓝牙模块11解析蓝牙外设200发送的上层业务数据,从而使得蓝牙模块11具备解析蓝牙外设200发送的上层业务数据的能力,从而实现唤醒设备。通过本发明实施例提供的设备唤醒方法,蓝牙外设不需要提前定制,从而降低了唤醒设备的成本,提高了蓝牙外设唤醒设备的通用性。
需要说明的是,本发明实施例对图1和图2中的设备100和蓝牙外设200的产品形态、类型、结构等不做限定。设备可以为任意能够通过蓝牙方式唤醒的设备,例如, 电视盒子、电视、空调、电脑、投影仪等。蓝牙外设200可以为任意支持蓝牙功能且可以唤醒设备的装置,例如,遥控器、智能手机、可穿戴设备(例如智能手表、智能手环)等。示例性的,图3为本发明实施例适用的一个应用场景图。在图3中,设备100可以为电视盒子,蓝牙外设200可以为遥控器。例如,遥控器上的向上按键可以用于唤醒电视盒子。
下面结合附图进行描述。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
图4为本发明实施例提供的设备唤醒方法的一种流程图。本实施例提供的设备唤醒方法,可以应用于设备唤醒装置,设备唤醒装置包括蓝牙模块和协议栈模块。如图4所示,本实施例提供的设备唤醒方法,可以包括:
S401、在协议栈模块处于休眠状态时,蓝牙模块接收第一蓝牙外设发送的待处理数据。
其中,蓝牙模块存储有协议栈模块在进入休眠状态前发送的与蓝牙模块成功进行蓝牙配对的第二蓝牙外设的信息。
具体的,协议栈模块可以运行蓝牙协议栈,蓝牙模块可以与蓝牙外设进行蓝牙通信,传输数据。在协议栈模块进入休眠状态之前,协议栈模块将第二蓝牙外设的信息发送给蓝牙模块,相应的,蓝牙模块接收第二蓝牙外设的信息,并进行存储。这样,当协议栈模块处于休眠状态,蓝牙模块接收到第一蓝牙外设发送的待处理数据时,蓝牙模块利用第二蓝牙外设的信息,就具备了识别第一蓝牙模块的能力以及解析待处理数据的能力,根据识别结果和数据解析结果进一步确定是否唤醒设备。
其中,本实施例对第二蓝牙外设的数量和类型不做限定。
在本实施例中,为了便于区分,与蓝牙模块成功进行蓝牙配对的蓝牙外设称为第二蓝牙外设。第二蓝牙外设可以唤醒设备。在协议栈模块处于休眠状态时,与蓝牙模块进行蓝牙通信的蓝牙外设称为第一蓝牙外设。第二蓝牙外设一定与蓝牙模块进行过蓝牙连接,但是,在协议栈模块处于休眠状态时,第二蓝牙外设与蓝牙模块是否保持蓝牙连接,本实施例对此不做限定。在协议栈模块处于休眠状态时,蓝牙模块可以接收第一蓝牙外设发送的待处理数据,但是,第一蓝牙外设与蓝牙模块是否保持蓝牙连接,本实施例对此不做限定。其中,第一蓝牙外设与第二蓝牙外设可以为同一个蓝牙外设,也可以为不同的蓝牙外设。
可选的,第一蓝牙外设为与蓝牙模块保持蓝牙连接的蓝牙外设。
可选的,第一蓝牙外设与蓝牙模块当前未进行蓝牙连接,待处理数据为第一蓝牙外设广播的数据。
下面,通过示例对本发明实施例适用的应用场景进行说明,但这并不构成对应用场景的限定。假设,有4个蓝牙外设,分别称为蓝牙外设1~蓝牙外设4。
在第一个应用场景中,蓝牙外设1与蓝牙模块进行蓝牙配对和蓝牙连接,之后断开蓝牙连接。协议栈模块进入休眠状态后,蓝牙外设1与蓝牙模块再次进行蓝牙连接,向蓝牙模块发送待处理数据。此时,第二蓝牙外设为蓝牙外设1,第一蓝牙外设为蓝牙外设1。
在第二个应用场景中,蓝牙外设1与蓝牙模块进行蓝牙配对和蓝牙连接,之后断开蓝牙连接。协议栈模块进入休眠状态后,蓝牙外设1广播数据,蓝牙模块接收蓝牙外设1广播的数据。此时,第二蓝牙外设为蓝牙外设1,第一蓝牙外设为蓝牙外设1。
在第三个应用场景中,蓝牙外设1与蓝牙模块进行蓝牙配对和蓝牙连接,并一直保持蓝牙连接。协议栈模块进入休眠状态后,蓝牙外设1向蓝牙模块发送待处理数据。此时,第二蓝牙外设为蓝牙外设1,第一蓝牙外设为蓝牙外设1。
在第四个应用场景中,蓝牙外设1~3与蓝牙模块进行蓝牙配对和蓝牙连接,并一直保持蓝牙连接。协议栈模块进入休眠状态后,蓝牙外设2向蓝牙模块发送待处理数据。此时,第二蓝牙外设为蓝牙外设1~3,第一蓝牙外设为蓝牙外设2。
在第五个应用场景中,蓝牙外设1~3与蓝牙模块进行蓝牙配对和蓝牙连接,之后,蓝牙外设1断开蓝牙连接,蓝牙外设2~3保持蓝牙连接。协议栈模块进入休眠状态后,蓝牙外设4与蓝牙模块进行蓝牙连接,向蓝牙模块发送待处理数据。此时,第二蓝牙外设为蓝牙外设1~3,第一蓝牙外设为蓝牙外设4。
在第六个应用场景中,蓝牙外设1~3与蓝牙模块进行蓝牙配对和蓝牙连接,之后,蓝牙外设1断开蓝牙连接,蓝牙外设2~3保持蓝牙连接。协议栈模块进入休眠状态后,蓝牙外设1广播数据,蓝牙模块接收蓝牙外设1广播的数据。此时,第二蓝牙外设为蓝牙外设1~3,第一蓝牙外设为蓝牙外设1。
S402、蓝牙模块根据待处理数据和第二蓝牙外设的信息,唤醒设备。
可见,本实施例提供的设备唤醒方法,在协议栈模块进入休眠状态之前,协议栈模块向蓝牙模块发送已经成功进行蓝牙配对的第二蓝牙外设的信息,第二蓝牙外设的信息用于蓝牙模块识别蓝牙外设,解析蓝牙外设发送的数据,使得蓝牙模块具备解析蓝牙外设发送的上层业务数据的能力,从而,蓝牙模块根据待处理数据和第二蓝牙外设的信息,确定是否可以唤醒设备。本实施例提供的设备唤醒方法,第一蓝牙外设不需要提前定制,通过任意的蓝牙外设均可以唤醒设备,降低了唤醒设备的成本,提高了蓝牙外设唤醒设备的通用性。
需要说明的是,本实施例对待处理数据和第二蓝牙外设的信息包括的具体内容不做限定。第二蓝牙外设的信息可以包括下列中的至少一项:第二蓝牙外设的标识、第二蓝牙外设的地址、第二蓝牙外设唤醒设备的预设信息和解析上层业务数据的必要信息。如果第一蓝牙外设为可以唤醒设备的蓝牙外设,待处理数据可以包括用于唤醒设备的信息,例如,包括下列中的至少一项:第一蓝牙外设的标识、第一蓝牙外设的地址和用于唤醒设备的预设信息。
可选的,待处理数据可以包括第一蓝牙外设的地址,第二蓝牙外设的信息可以包括第二蓝牙外设的地址。
S402中,蓝牙模块根据待处理数据和第二蓝牙外设的信息,唤醒设备,可以包括:
蓝牙模块若确定第一蓝牙外设的地址与第二蓝牙外设的地址相同,则唤醒设备。
具体的,如果蓝牙模块确定第一蓝牙外设的地址与第二蓝牙外设的地址相同,说明第一蓝牙外设与第二蓝牙外设为同一设备,第一蓝牙外设可以唤醒设备。
可见,在本实施方式中,蓝牙模块通过将第一蓝牙外设的地址与协议栈模块进入休眠状态前发送的第二蓝牙外设的地址进行比对,可以识别出第一蓝牙外设是否为第 二蓝牙外设。当确定第一蓝牙外设与第二蓝牙外设为同一设备时,可以唤醒设备。本实施方式的应用场景可以为:第一蓝牙外设当前与蓝牙模块保持蓝牙连接,第一蓝牙外设向蓝牙模块发送待处理数据;或者,第一蓝牙外设与蓝牙模块当前未进行蓝牙连接,第一蓝牙外设广播数据,蓝牙模块接收第一蓝牙外设广播的数据。示例性的,可以应用于上述第一个应用场景~第六个应用场景中的任意一个应用场景。
在图4所示实施例的基础上,图5为本发明实施例提供的设备唤醒方法的另一种流程图。本实施例提供的设备唤醒方法,适用于第一蓝牙外设与蓝牙模块保持蓝牙连接的应用场景。其中,待处理数据包括第一蓝牙外设的地址和目标按键描述符,第二蓝牙外设的信息可以包括第二蓝牙外设的地址、预设按键,以及第二蓝牙外设的按键与按键描述符之间的映射信息,预设按键用于唤醒设备。
如图5所示,本实施例提供的设备唤醒方法,可以包括:
S501、在协议栈模块处于休眠状态时,蓝牙模块接收第一蓝牙外设发送的待处理数据。
可以参见S401的描述,原理相似,此处不再赘述。
S502、蓝牙模块确定第一蓝牙外设的地址与第二蓝牙外设的地址是否相同。
如果第一蓝牙外设的地址与第二蓝牙外设的地址相同,则执行S503。
如果第一蓝牙外设的地址与第二蓝牙外设的地址不相同,则执行S506。
S503、蓝牙模块确定第一蓝牙外设是否支持蓝牙HID协议。
如果蓝牙模块确定第一蓝牙外设支持蓝牙HID协议,则执行S504。
如果蓝牙模块确定第一蓝牙外设不支持蓝牙HID协议,则执行S506。
其中,蓝牙人机接口设备(Human Interface Device,HID)协议基于通用串行总线(Universal Serial Bus,USB)HID协议,用于从设备(slaver)控制主设备(host)。在本发明各实施例中,slaver为蓝牙外设,host为待唤醒的设备。蓝牙HID协议中规定了蓝牙外设的按键与按键描述符之间具有映射关系(reportmap)。在本实施例中,通过蓝牙外设的按键与按键描述符之间的映射关系,可以自定义用于唤醒设备的预设按键,提升了唤醒设备的灵活性。
S504、蓝牙模块根据目标按键描述符以及第二蓝牙外设的按键与按键描述符之间的映射信息,确定目标按键。
举例说明。如图3所示,遥控器和电视盒子均支持蓝牙HID协议,当按下遥控器上的某个按键时,遥控器向电视盒子发送的待处理数据中包括该按键对应的目标按键描述符。遥控器的按键与按键描述符之间的映射信息可以包括:向上按键对应信号1、向下按键对应信号2、向左按键对应信号3、向右按键对应信号4。相应的,电视盒子可以根据遥控器的按键与按键描述符之间的映射信息解析遥控器发送的目标按键描述符,从而确定按下的遥控器上的按键。例如,若目标按键描述符为信号4,则对应向右按键。
S505、蓝牙模块若确定目标按键为预设按键,则唤醒设备。
需要说明的是,本实施例对预设按键不做限定。例如,在图3中,预设按键可以为遥控器中的向上按键、或向下按键、或向左按键、或向右按键。
S506、丢弃待处理数据。
可见,本实施例提供的设备唤醒方法,应用于蓝牙外设和待唤醒的设备均支持蓝牙HID协议的场景。第一蓝牙外设与蓝牙模块保持蓝牙连接,蓝牙模块首先通过第一蓝牙外设的地址与第二蓝牙外设的地址确定是否为同一设备。如果确定为同一设备,进一步确定第一蓝牙外设是否为蓝牙HID设备,在第一蓝牙外设为蓝牙HID设备时,将第一蓝牙外设发送的目标按键描述符对应的目标按键与可以唤醒设备的预设按键进行比对,从而确定是否唤醒设备。
本实施例提供的设备唤醒方法,第一蓝牙外设不需要提前定制,通过预先定义的预设按键可以唤醒设备,降低了唤醒设备的成本,提高了蓝牙外设唤醒设备的通用性。
在图4或图5所示实施例的基础上,图6为本发明实施例提供的设备唤醒方法的又一种流程图。本实施例提供的设备唤醒方法,在协议栈模块进入休眠状态之前,还可以包括:
S601、在蓝牙模块与第二蓝牙外设成功进行蓝牙配对后,协议栈模块通过蓝牙模块获取第二蓝牙外设发送的第二蓝牙外设的信息。
S602、协议栈模块向蓝牙模块发送第二蓝牙外设的信息。
具体的,蓝牙模块与第二蓝牙外设成功进行蓝牙配对后,蓝牙模块可以接收第二蓝牙外设发送的信息,蓝牙模块可以将第二蓝牙外设的信息发送给协议栈模块,从而,协议栈模块通过蓝牙模块获取第二蓝牙外设发送的第二蓝牙外设的信息,并进行存储。在协议栈模块进入休眠状态之前,协议栈模块向蓝牙模块发送第二蓝牙外设的信息。本实施例对协议栈模块发送第二蓝牙外设的信息的具体时间不做限定。
可选的,在S601中的协议栈模块通过蓝牙模块获取第二蓝牙外设发送的第二蓝牙外设的信息之前,还可以包括:
协议栈模块确定第二蓝牙外设是否支持蓝牙HID协议。
S601中,协议栈模块通过蓝牙模块获取第二蓝牙外设发送的第二蓝牙外设的信息,可以包括:
协议栈模块若确定第二蓝牙外设支持蓝牙HID协议,则通过蓝牙模块获取第二蓝牙外设发送的第二蓝牙外设的信息。
具体的,通过确定第二蓝牙外设是否支持蓝牙HID协议,确定第二蓝牙外设是否为蓝牙HID设备。当第二蓝牙外设为蓝牙HID设备时,获取的第二蓝牙外设的信息更加准确和全面,例如,第二蓝牙外设的按键与按键描述符之间的映射信息和预设按键,进一步提升了通过蓝牙外设唤醒设备的准确性。
图7为本发明实施例提供的设备唤醒装置的一种结构示意图。如图7所示,本实施例提供的设备唤醒装置,可以包括:蓝牙模块71和协议栈模块72;
所述蓝牙模块71,用于在所述协议栈模块72处于休眠状态时,接收第一蓝牙外设发送的待处理数据;其中,所述蓝牙模块71存储有所述协议栈模块72在进入休眠状态前发送的与所述蓝牙模块71成功进行蓝牙配对的第二蓝牙外设的信息;
所述蓝牙模块71,还用于根据所述待处理数据和所述第二蓝牙外设的信息,唤醒 设备。
可选的,所述待处理数据包括所述第一蓝牙外设的地址,所述第二蓝牙外设的信息包括所述第二蓝牙外设的地址;
所述蓝牙模块71具体用于:
若确定所述第一蓝牙外设的地址与所述第二蓝牙外设的地址相同,则唤醒设备。
可选的,所述待处理数据还包括目标按键描述符,所述第二蓝牙外设的信息还包括所述第二蓝牙外设的按键与按键描述符之间的映射信息以及预设按键,所述预设按键用于唤醒设备;
所述蓝牙模块71还用于:
在所述蓝牙模块71唤醒设备之前,确定所述第一蓝牙外设是否支持蓝牙HID协议;
若确定所述第一蓝牙外设支持蓝牙HID协议,则根据所述目标按键描述符和所述映射信息确定目标按键;
所述蓝牙模块71具体用于:
若确定所述目标按键为所述预设按键,则唤醒设备。
可选的,所述第一蓝牙外设为与所述蓝牙模块71保持蓝牙连接的蓝牙外设。
可选的,所述第一蓝牙外设与所述蓝牙模块71当前未进行蓝牙连接,所述待处理数据为所述第一蓝牙外设广播的数据。
可选的,所述协议栈模块72还用于:
在所述协议栈模块72进入休眠状态之前,且在所述蓝牙模块71与所述第二蓝牙外设成功进行蓝牙配对后,通过所述蓝牙模块71获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息;
向所述蓝牙模块71发送所述第二蓝牙外设的信息。
可选的,所述协议栈模块72还用于:
在通过所述蓝牙模块71获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息之前,确定所述第二蓝牙外设是否支持蓝牙HID协议;
所述协议栈模块72具体用于:
若确定所述第二蓝牙外设支持蓝牙HID协议,则通过所述蓝牙模块71获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息。
本实施例提供的设备唤醒装置,用于执行本发明方法实施例提供的设备唤醒方法,其技术原理和技术效果类似,此处不再赘述。
图8为本发明实施例提供的电子设备的一种结构示意图。如图8所示,电子设备可以包括处理器81、存储器82和收发器83。所述收发器83,用于与其他设备通信。所述存储器82,用于存储指令。所述处理器81,用于执行所述存储器82中存储的指令,以使所述电子设备执行本发明方法实施例提供的设备唤醒方法,其技术原理和技术效果类似,此处不再赘述。
实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一可读取存储器中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储器(存储介质)包括:只读存储器(英文:read-only memory, 缩写:ROM)、RAM、快闪存储器、硬盘、固态硬盘、磁带(英文:magnetic tape)、软盘(英文:floppy disk)、光盘(英文:optical disc)及其任意组合。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
在本申请中,术语“包括”及其变形可以指非限制性的包括;术语“或”及其变形可以指“和/或”。本本申请中术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。本申请中,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。

Claims (17)

  1. 一种设备唤醒方法,其特征在于,应用于设备唤醒装置,所述设备唤醒装置包括蓝牙模块和协议栈模块,所述方法包括:
    在所述协议栈模块处于休眠状态时,所述蓝牙模块接收第一蓝牙外设发送的待处理数据;其中,所述蓝牙模块存储有所述协议栈模块在进入休眠状态前发送的与所述蓝牙模块成功进行蓝牙配对的第二蓝牙外设的信息;
    所述蓝牙模块根据所述待处理数据和所述第二蓝牙外设的信息,唤醒设备。
  2. 根据权利要求1所述的方法,其特征在于,所述待处理数据包括所述第一蓝牙外设的地址,所述第二蓝牙外设的信息包括所述第二蓝牙外设的地址;
    所述蓝牙模块根据所述待处理数据和所述第二蓝牙外设的信息,唤醒设备,包括:
    所述蓝牙模块若确定所述第一蓝牙外设的地址与所述第二蓝牙外设的地址相同,则唤醒设备。
  3. 根据权利要求2所述的方法,其特征在于,所述待处理数据还包括目标按键描述符,所述第二蓝牙外设的信息还包括所述第二蓝牙外设的按键与按键描述符之间的映射信息以及预设按键,所述预设按键用于唤醒设备;
    所述蓝牙模块唤醒设备之前,还包括:
    所述蓝牙模块确定所述第一蓝牙外设是否支持蓝牙人机接口设备HID协议;
    所述蓝牙模块若确定所述第一蓝牙外设支持蓝牙HID协议,则根据所述目标按键描述符和所述映射信息确定目标按键;
    所述蓝牙模块唤醒设备,包括:
    所述蓝牙模块若确定所述目标按键为所述预设按键,则唤醒设备。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一蓝牙外设为与所述蓝牙模块保持蓝牙连接的蓝牙外设。
  5. 根据权利要求1或2所述的方法,其特征在于,所述第一蓝牙外设与所述蓝牙模块当前未进行蓝牙连接,所述待处理数据为所述第一蓝牙外设广播的数据。
  6. 根据权利要求1-3任一项所述的方法,其特征在于,在所述协议栈模块进入休眠状态之前,还包括:
    在所述蓝牙模块与所述第二蓝牙外设成功进行蓝牙配对后,所述协议栈模块通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息;
    所述协议栈模块向所述蓝牙模块发送所述第二蓝牙外设的信息。
  7. 根据权利要求6所述的方法,其特征在于,所述协议栈模块通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息之前,还包括:
    所述协议栈模块确定所述第二蓝牙外设是否支持蓝牙HID协议;
    所述协议栈模块通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息,包括:
    所述协议栈模块若确定所述第二蓝牙外设支持蓝牙HID协议,则通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息。
  8. 一种设备唤醒装置,其特征在于,包括:蓝牙模块和协议栈模块;
    所述蓝牙模块,用于在所述协议栈模块处于休眠状态时,接收第一蓝牙外设发送的待处理数据;其中,所述蓝牙模块存储有所述协议栈模块在进入休眠状态前发送的与所述蓝牙模块成功进行蓝牙配对的第二蓝牙外设的信息;
    所述蓝牙模块,还用于根据所述待处理数据和所述第二蓝牙外设的信息,唤醒设备。
  9. 根据权利要求8所述的装置,其特征在于,所述待处理数据包括所述第一蓝牙外设的地址,所述第二蓝牙外设的信息包括所述第二蓝牙外设的地址;
    所述蓝牙模块具体用于:若确定所述第一蓝牙外设的地址与所述第二蓝牙外设的地址相同,则唤醒设备。
  10. 根据权利要求9所述的装置,其特征在于,所述待处理数据还包括目标按键描述符,所述第二蓝牙外设的信息还包括所述第二蓝牙外设的按键与按键描述符之间的映射信息以及预设按键,所述预设按键用于唤醒设备;
    所述蓝牙模块还用于:
    在所述蓝牙模块唤醒设备之前,确定所述第一蓝牙外设是否支持蓝牙人机接口设备HID协议;
    若确定所述第一蓝牙外设支持蓝牙HID协议,则根据所述目标按键描述符和所述映射信息确定目标按键;
    所述蓝牙模块具体用于:
    若确定所述目标按键为所述预设按键,则唤醒设备。
  11. 根据权利要求8-10任一项所述的装置,其特征在于,所述第一蓝牙外设为与所述蓝牙模块保持蓝牙连接的蓝牙外设。
  12. 根据权利要求8或9所述的装置,其特征在于,所述第一蓝牙外设与所述蓝牙模块当前未进行蓝牙连接,所述待处理数据为所述第一蓝牙外设广播的数据。
  13. 根据权利要求8-10任一项所述的装置,其特征在于,所述协议栈模块还用于:
    在所述协议栈模块进入休眠状态之前,且在所述蓝牙模块与所述第二蓝牙外设成功进行蓝牙配对后,通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息;
    向所述蓝牙模块发送所述第二蓝牙外设的信息。
  14. 根据权利要求13所述的装置,其特征在于,所述协议栈模块还用于:
    在通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息之前,确定所述第二蓝牙外设是否支持蓝牙HID协议;
    所述协议栈模块具体用于:
    若确定所述第二蓝牙外设支持蓝牙HID协议,则通过所述蓝牙模块获取所述第二蓝牙外设发送的所述第二蓝牙外设的信息。
  15. 一种电子设备,其特征在于,包括:处理器、存储器和收发器;
    所述收发器,用于与其他设备通信;
    所述存储器,用于存储指令;
    所述处理器,用于执行所述存储器中存储的指令,以执行如权利要求1-7任一项所述的方法。
  16. 一种计算机可读存储介质,其特征在于,包括:可读存储介质和计算机程序,所述计算机程序用于实现如权利要求1-7任一项所述的方法。
  17. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中;
    电子设备的至少一个处理器从所述可读存储介质读取所述计算机程序,至少一个处理器执行所述计算机程序,以执行如权利要求1-7任一项所述的方法。
PCT/CN2020/097146 2020-02-18 2020-06-19 设备唤醒方法、装置和电子设备 WO2021164159A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20919536.1A EP4109910A4 (en) 2020-02-18 2020-06-19 METHOD AND APPARATUS FOR AWAKENING DEVICE, AND ELECTRONIC DEVICE
US17/904,576 US20230091286A1 (en) 2020-02-18 2020-06-19 Device waking-up method and apparatus, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010098946.1A CN111327933A (zh) 2020-02-18 2020-02-18 设备唤醒方法、装置和电子设备
CN202010098946.1 2020-02-18

Publications (1)

Publication Number Publication Date
WO2021164159A1 true WO2021164159A1 (zh) 2021-08-26

Family

ID=71165245

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/097146 WO2021164159A1 (zh) 2020-02-18 2020-06-19 设备唤醒方法、装置和电子设备

Country Status (4)

Country Link
US (1) US20230091286A1 (zh)
EP (1) EP4109910A4 (zh)
CN (1) CN111327933A (zh)
WO (1) WO2021164159A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756952A (zh) * 2020-07-23 2020-10-09 北京字节跳动网络技术有限公司 一种效果应用的预览方法、装置、设备及存储介质
CN114173315B (zh) * 2022-02-14 2022-06-14 荣耀终端有限公司 蓝牙回连方法及终端设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592401A (zh) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 终端设备的位置信息获取方法和装置
CN106131634A (zh) * 2016-08-29 2016-11-16 康佳集团股份有限公司 一种遥控器连接处理方法及系统
CN106162531A (zh) * 2016-08-16 2016-11-23 科立讯通信股份有限公司 蓝牙通信系统的运行方法
CN107682746A (zh) * 2017-09-01 2018-02-09 北京小米移动软件有限公司 唤醒方法及装置
US20180176864A1 (en) * 2016-12-20 2018-06-21 Intel IP Corporation Method and apparatus to controlling sleep time for bluetooth device and bluetooth enabled device
CN109951893A (zh) * 2019-03-21 2019-06-28 青岛海信电器股份有限公司 一种终端设备唤醒方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504791A (zh) * 2009-02-23 2009-08-12 上海圈之圆网络科技有限公司 一种多功能智能终端的遥控装置
CN103106757B (zh) * 2013-02-22 2016-05-25 福建联迪商用设备有限公司 一种蓝牙唤醒pos机的方法
US20140307600A1 (en) * 2013-04-15 2014-10-16 Nokia Corporation Method, apparatus, and computer program product for reducing power consumption for wireless communications
CN105207747B (zh) * 2015-10-08 2019-01-22 中颖电子股份有限公司 一种基于hid协议的数据传输方法
CN106095143B (zh) * 2016-06-28 2020-07-24 联想(北京)有限公司 一种信息处理方法和电子设备
CN109451474A (zh) * 2018-10-15 2019-03-08 四川长虹电器股份有限公司 被控终端设备及其蓝牙回连方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592401A (zh) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 终端设备的位置信息获取方法和装置
CN106162531A (zh) * 2016-08-16 2016-11-23 科立讯通信股份有限公司 蓝牙通信系统的运行方法
CN106131634A (zh) * 2016-08-29 2016-11-16 康佳集团股份有限公司 一种遥控器连接处理方法及系统
US20180176864A1 (en) * 2016-12-20 2018-06-21 Intel IP Corporation Method and apparatus to controlling sleep time for bluetooth device and bluetooth enabled device
CN107682746A (zh) * 2017-09-01 2018-02-09 北京小米移动软件有限公司 唤醒方法及装置
CN109951893A (zh) * 2019-03-21 2019-06-28 青岛海信电器股份有限公司 一种终端设备唤醒方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4109910A4

Also Published As

Publication number Publication date
EP4109910A4 (en) 2023-07-26
CN111327933A (zh) 2020-06-23
EP4109910A1 (en) 2022-12-28
US20230091286A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
US10659200B2 (en) Companion application for activity cooperation
US9602286B2 (en) Electronic device and method for extracting encrypted message
US9201814B2 (en) Electronic devices and methods for sharing peripheral devices in dual operating systems
EP2891988B1 (en) Charging method and charging apparatus for electronic device
US20150288629A1 (en) Electronic device and method of providing information by electronic device
WO2021164159A1 (zh) 设备唤醒方法、装置和电子设备
EP3844628B1 (en) Slave-to-slave direct communication
US9785465B2 (en) Method for task group migration and electronic device supporting the same
US10423566B2 (en) Electronic device and method for controlling external electronic device connected to USB type-C connector
KR102405773B1 (ko) Usb 타입 c 인터페이스를 이용한 멀티 디바이스 간의 통신 방법 및 이를 구현한 전자 장치
KR102256291B1 (ko) 번역 상황을 인지하고 번역 기능을 수행하는 방법 및 이를 구현하는 전자장치
US10698524B2 (en) Touch screen device, input device, and control method thereof and method thereof
US11574632B2 (en) In-cloud wake-up method and system, terminal and computer-readable storage medium
WO2022161244A1 (zh) 多主机仲裁方法、装置和可读存储介质
US11234100B2 (en) Electronic device for performing ranging operation and operation method thereof
US20200218681A1 (en) Method for automatically identifying host operating systems
CN109144723B (zh) 一种分配存储空间的方法和终端
US10884467B2 (en) System events in universal serial bus (USB) devices
CN116028210B (zh) 资源调度方法、电子设备及存储介质
AU2014315883A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
WO2019196415A1 (zh) 交互智能平板
WO2019196414A1 (zh) 交互智能平板及触摸数据处理方法
CN105279110B (zh) 一种usb设备识别主机系统的方法及usb设备
US11068430B2 (en) Configuration parameter transfer
US10545562B2 (en) Electronic device and method for operating the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20919536

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020919536

Country of ref document: EP

Effective date: 20220919