WO2021013156A1 - Bluetooth switching method and bluetooth device - Google Patents

Bluetooth switching method and bluetooth device Download PDF

Info

Publication number
WO2021013156A1
WO2021013156A1 PCT/CN2020/103358 CN2020103358W WO2021013156A1 WO 2021013156 A1 WO2021013156 A1 WO 2021013156A1 CN 2020103358 W CN2020103358 W CN 2020103358W WO 2021013156 A1 WO2021013156 A1 WO 2021013156A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
service
traditional
connection
bluetooth device
Prior art date
Application number
PCT/CN2020/103358
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021013156A1 publication Critical patent/WO2021013156A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • 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

  • This application relates to the field of short-distance communication, and in particular to a Bluetooth switching method and a Bluetooth device.
  • Bluetooth is a wireless technology standard that can realize short-distance data interaction between different devices.
  • the mobile phone can turn on the Bluetooth module and perform short-distance data interaction with the Bluetooth headset, so that the Bluetooth headset can be used as the audio input/output device of the mobile phone to realize functions such as call and music playback.
  • the wireless connection established between a Bluetooth-enabled device (Bluetooth device for short) and a mobile phone may be a traditional Bluetooth (classic Bluetooth) wireless connection or a Bluetooth low energy (Bluetooth low energy, BLE) wireless connection.
  • traditional Bluetooth wireless connection user services are mainly used to realize high-speed transmission of large amounts of data (such as audio data or video data).
  • low-power Bluetooth wireless connection standby power consumption is mainly used to realize low-speed transmission of small amounts of data.
  • This application provides a Bluetooth switching method and a Bluetooth device, which solves the problem of how to enable the Bluetooth device to achieve high-speed data transmission and low power consumption and long battery life.
  • a Bluetooth switching method is provided, which is applied to a Bluetooth device.
  • the Bluetooth device includes a processor, a BLE device, and a traditional Bluetooth device.
  • the method includes: the BLE device establishes a first Bluetooth connection with an electronic device, and the first Bluetooth connection is BLE connection, after the processor determines that the first service is available, it controls the traditional Bluetooth device to power on, the traditional Bluetooth device establishes a second Bluetooth connection with the electronic device, the second Bluetooth connection is a traditional Bluetooth connection, and the traditional Bluetooth device is connected through the second Bluetooth Transmit the data of the first service with the electronic device.
  • the first service may refer to the service that requires high-speed transmission of large data streams; after the processor determines that the first service transmission is complete, it controls the traditional Bluetooth device to power off and disconnect the traditional Bluetooth device
  • the second Bluetooth connection established with the electronic device maintains the first Bluetooth connection between the BLE device and the electronic device to realize low power consumption standby.
  • the Bluetooth device can maintain the first Bluetooth connection with the electronic device through the low-power Bluetooth device, realize low-power standby, and transmit a small amount of data; when there is a business request for a large data stream, it automatically Switching to the second Bluetooth connection enables high-speed data transmission through the second Bluetooth connection.
  • the Bluetooth device can achieve high-speed data transmission and low power consumption and long battery life, which effectively improves the user experience of the Bluetooth device.
  • the BLE device receives the request message of the first service through the first Bluetooth connection, and the request message of the first service includes the identity of the first service; the processor determines that there is the first service according to the identity of the first service, Control the power on of traditional Bluetooth devices.
  • the method before the processor determines that the first service is available, the method further includes: establishing a second Bluetooth connection between the traditional Bluetooth device and the electronic device. After the processor determines that there is no first service, it controls the traditional Bluetooth device to power off and disconnect the second Bluetooth connection established between the traditional Bluetooth device and the electronic device.
  • a Bluetooth device is provided to implement the method described in the first aspect.
  • the Bluetooth device includes a processor, a BLE device and a traditional Bluetooth device.
  • the BLE device is used to establish a first Bluetooth connection with an electronic device, and the first Bluetooth connection is a BLE connection.
  • the processor is used to determine that there is a first service and control the power-on of the traditional Bluetooth device.
  • the traditional Bluetooth device is used to communicate with the electronic device.
  • the device establishes a second Bluetooth connection, and the second Bluetooth connection is a traditional Bluetooth connection; the traditional Bluetooth device is also used to transmit data of the first service to the electronic device through the second Bluetooth connection; the processor is also used to determine the first service After the transmission is over, the traditional Bluetooth device is controlled to power off, and the second Bluetooth connection established between the traditional Bluetooth device and the electronic device is disconnected.
  • the BLE device is used to receive a request message of the first service through the first Bluetooth connection, and the request message of the first service includes the identity of the first service; the processor is used to determine that there is a first service according to the identity of the first service.
  • One service controlling the power on of traditional Bluetooth devices.
  • the traditional Bluetooth device is used to establish a second Bluetooth connection with the electronic device; the processor is used to determine that there is no first service, control the traditional Bluetooth device to power off, and disconnect the second Bluetooth device established with the electronic device. Bluetooth connection.
  • a computer-readable storage medium including: computer software instructions; when the computer software instructions run in a Bluetooth device, the Bluetooth device is caused to execute the method described in the first aspect.
  • a computer program product containing instructions is provided.
  • the Bluetooth device executes the method described in the first aspect.
  • a Near Field Communication (NFC) device which is used in an NFC card reader.
  • the NFC device includes at least one processor and a memory, and the memory is coupled to the processor, wherein: the The memory is used to store service type information supported by the NFC card reader; the at least one processor is used to instruct the NFC card reader to establish a Bluetooth connection with the electronic device according to the received information sent by the electronic device.
  • the NFC device is an NFC chip.
  • a communication system in a sixth aspect, includes a smart watch and a mobile phone.
  • the smart watch includes a processor and two independent Bluetooth devices.
  • the two independent Bluetooth devices include a BLE device and a traditional Bluetooth device. :
  • the BLE device is used to establish a first Bluetooth connection with a mobile phone, and the first Bluetooth connection is a BLE connection;
  • the mobile phone is used to send a request message for the first service to the smart watch through the first Bluetooth connection when it is determined that the first service is available, and the request message for the first service includes the identifier of the first service;
  • the BLE device is also used to receive the request message of the first service through the first Bluetooth connection;
  • the processor of the smart watch is used to control the power-on of the traditional Bluetooth device according to the identifier of the first service
  • the traditional Bluetooth device is used to establish a second Bluetooth connection with the mobile phone, and the second Bluetooth connection is a traditional Bluetooth connection;
  • the traditional Bluetooth device is also used to transmit data of the first service to the mobile phone through the second Bluetooth connection;
  • the processor of the smart watch is also used to control the power-off of the traditional Bluetooth device when determining that the first service transmission ends.
  • the traditional Bluetooth device is also used to establish a second Bluetooth connection with the mobile phone; the processor of the smart watch is also used to determine that there is no first service and control the traditional Bluetooth device to power off.
  • the names of the Bluetooth device and the electronic device do not limit the device itself. In actual implementation, these devices may appear under other names. As long as the function of each device is similar to that described in the embodiments of the present application, it falls within the scope of the claims of the present application and equivalent technologies.
  • FIG. 1 is an example diagram of the architecture of a communication system provided by an embodiment
  • FIG. 2 is a structural example diagram of a smart watch provided by an embodiment
  • FIG. 3 is a first example of the composition of an electronic device provided by an embodiment
  • FIG. 4 is a first flowchart of a Bluetooth handover method provided by an embodiment
  • FIG. 5A is an example diagram of a Bluetooth switching interface provided by an embodiment
  • FIG. 5B is an example diagram of an interface of a Bluetooth switching result provided by an embodiment
  • FIG. 6 is a second flowchart of a Bluetooth handover method provided by an embodiment
  • FIG. 7 is a diagram showing an example of the composition of a Bluetooth device provided by an embodiment
  • Figure 8 is Figure 2 of an example composition of an electronic device provided by an embodiment.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • Bluetooth is managed by the Bluetooth Special Interest Group (SIG), which is mainly responsible for the formulation of Bluetooth technical specifications.
  • SIG Bluetooth Special Interest Group
  • the Bluetooth technical specification has evolved from the Bluetooth technical specification version 1.0 to the Bluetooth technical specification version 4.2.
  • version 4.0 of the Bluetooth technical specification SIG first proposed low-power Bluetooth, that is, Bluetooth technical specification 4.0 includes two technical specifications of traditional Bluetooth and low-power Bluetooth.
  • Traditional Bluetooth can also be called classic Bluetooth.
  • Traditional Bluetooth and Bluetooth Low Energy are two completely different technical specifications.
  • Traditional Bluetooth 4.0 is an upgraded version of traditional Bluetooth 3.0 and is backward compatible. And Bluetooth Low Energy is a new branch and is not backward compatible.
  • Bluetooth Low Energy When using Bluetooth Low Energy to transmit data, the length of the data packet is shorter.
  • Bluetooth Low Energy is mainly used in products with high real-time requirements but relatively low data transmission rate.
  • remote control products such as: keyboard or remote control mouse
  • sensing equipment such as: heart rate belt, blood pressure monitor, temperature sensor
  • traditional Bluetooth When using traditional Bluetooth to transmit data, the length of the data packet is relatively long.
  • Traditional Bluetooth is mainly used in products that have relatively high data transmission rates and need to transmit large amounts of data (such as audio data or video data).
  • Bluetooth Low Energy After using Bluetooth Low Energy to complete sending and receiving data, Bluetooth Low Energy will suspend the transmission of wireless signals (but still receive data) and wait for the next connection to be activated again.
  • the traditional Bluetooth is to keep connected.
  • Bluetooth low energy has no power level, the general transmission power is +4dBm, and the transmission distance can be 70m.
  • the traditional Bluetooth has 3 power levels, supporting transmission distances of 100 meters, 10 meters, and 1 meter respectively.
  • Bluetooth Low Energy Bluetooth Compared to traditional Bluetooth, the advantages of low energy Bluetooth are fast search, fast connection, ultra-low power consumption to maintain the connection and transmit a small amount of data (such as: notification tone (such as incoming call notification tone, ring back tone, SMS) Prompt tone, etc.)), but the data transmission rate of Bluetooth Low Energy is low. Although traditional Bluetooth has a higher data transmission rate, it has a higher power consumption.
  • the wireless connection established by the Bluetooth device and the mobile phone may be a traditional Bluetooth connection or a BLE connection.
  • the traditional Bluetooth connection user services are mainly used to achieve high-speed transmission of large amounts of data (such as audio data or video data).
  • the BLE connection the standby power consumption is mainly used to realize the low-speed transmission of a small amount of data.
  • users both hope that Bluetooth devices can reach a higher data transmission rate, but also want to enable Bluetooth devices to have long battery life and standby, but these are two contradictory aspects. Therefore, how to enable Bluetooth devices to achieve high-speed data transmission and low power consumption and long battery life is an urgent problem to be solved.
  • An embodiment of the present application provides a Bluetooth switching method, which can be applied in the process of transmitting high-speed data between an electronic device (such as a smart phone) and a Bluetooth device (such as a wearable device).
  • the Bluetooth device may specifically include a BLE device and a traditional Bluetooth device.
  • the BLE device is used to implement the function of Bluetooth Low Energy.
  • the traditional Bluetooth device is used to implement the functions of the traditional Bluetooth.
  • the method includes: the Bluetooth device establishes a first Bluetooth connection with the electronic device, the first Bluetooth connection is a BLE connection, and when the processor of the Bluetooth device determines that the first service is available, controlling the traditional Bluetooth device to power on, the traditional Bluetooth device and the electronic device Establish a second Bluetooth connection, the second Bluetooth connection is a traditional Bluetooth connection, so that the traditional Bluetooth device transmits the data of the first service to the electronic device through the second Bluetooth connection; when the processor of the Bluetooth device determines that the first service transmission is complete, it controls the traditional The Bluetooth device is powered off, the second Bluetooth connection between the traditional Bluetooth device and the electronic device is disconnected, and the first Bluetooth connection between the low-power Bluetooth device and the electronic device is maintained.
  • the first service may refer to a service requiring high-speed transmission of large amounts of data.
  • the first service may be a voice service (such as voice calls or using applications (such as WeChat, Facebook) for voice calls) or video services (such as video playback or using Application (e.g. WeChat, Facebook) for video calls).
  • the data of the first service may include audio data and video data. Audio data may include: voice data during a call, voice data or voice messages during a voice call or video call using an application (eg, WeChat, Facebook), music, voice data during video playback, and so on.
  • the video data may include: image data during a video call using an application program (eg, WeChat, Facebook), image data during video playback, and so on.
  • the Bluetooth device when there is no first service, the Bluetooth device can maintain the first Bluetooth connection with the electronic device through Bluetooth low energy, so as to realize low power consumption standby, and transmit non-first Bluetooth through the first Bluetooth connection.
  • a small amount of business data when there is the first business, the Bluetooth device can automatically switch to the second Bluetooth connection, and high-speed data transmission can be realized through the second Bluetooth connection.
  • the Bluetooth device can achieve high-speed data transmission and low power consumption and long battery life, which effectively improves the user experience of the Bluetooth device.
  • the Bluetooth device may pre-store service identifiers related to services that require high-speed transmission of large amounts of data.
  • a business identification library can be established, and the business identification library includes at least one business identification.
  • the Bluetooth device After the Bluetooth device obtains the current service ID, it compares the current service ID with the service ID in the service ID library. If the service ID library covers the current service ID, the Bluetooth device can determine that the service corresponding to the current service ID is not a big data stream. For business, there is no need to use a traditional Bluetooth device to transmit the data of the business corresponding to the current business identifier.
  • the Bluetooth device may be a wearable device.
  • Wearable devices can also be called wearable smart devices. It is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes.
  • a wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. Wearable devices are not only a hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include full-featured, large-sized, complete or partial functions that can be achieved without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to cooperate with other devices such as smart phones. Use, such as various smart bracelets and smart jewelry for physical sign monitoring.
  • FIG. 1 shows an example diagram of the architecture of a communication system that can be applied to embodiments of the present application.
  • the communication system includes a Bluetooth device 101 and an electronic device 102.
  • the Bluetooth device 101 and the electronic device 102 can use Bluetooth to establish a Bluetooth connection.
  • the Bluetooth device 101 may include a low-power Bluetooth device 1011, a traditional Bluetooth device 1012, and a processor 1013.
  • the Bluetooth device 101 can establish a first Bluetooth connection with the electronic device 102 through the Bluetooth low energy device 1011.
  • the Bluetooth device 101 can also establish a second Bluetooth connection with the electronic device 102 through the traditional Bluetooth device 1012. Based on the established Bluetooth connection, the Bluetooth device 101 and the electronic device 102 can realize short-distance data interaction.
  • the processor 1013 when the processor 1013 determines that there is no first service, it can control the traditional Bluetooth device 1012 to power off and disconnect the second Bluetooth connection between the traditional Bluetooth device 1012 and the electronic device 102.
  • the processor 1013 determines that there is the first service, it can control the traditional Bluetooth device 1012 to power on, and the traditional Bluetooth device 1012 establishes a second Bluetooth connection with the electronic device 102.
  • the so-called power-on may refer to powering on the traditional Bluetooth device 1012.
  • the so-called powering off may refer to powering off the traditional Bluetooth device 1012.
  • the Bluetooth device 101 may be a smart watch.
  • the smart watch and the electronic device 102 may perform audio data transmission based on the above-mentioned second Bluetooth connection.
  • the smart watch can be used as an audio input/output device of the electronic device 102 to implement a call.
  • the smart watch can be used as an output device of the electronic device 102, such as a speaker for playing music.
  • FIG. 2 it is a structural example diagram of a smart watch provided by an embodiment of this application.
  • the smart watch may include: a processor 201, a memory 202, a sensor 203, at least one receiver 204, at least one microphone 205, a power supply 206, a Bluetooth low energy device 207, and a traditional Bluetooth device 208.
  • the memory 202 may be used to store application program codes, such as application program codes that enable the smart watch to pair with the aforementioned electronic device 102.
  • the processor 201 may control the execution of the above-mentioned application program code to realize the function of the smart watch in this embodiment.
  • the memory 202 may also store a Bluetooth address for uniquely identifying the smart watch.
  • the memory 202 may also store connection data of an electronic device successfully paired with the smart watch before.
  • the connection data may be the Bluetooth address of the electronic device successfully paired with the smart watch. Based on the connection data, the smart watch can automatically pair with the electronic device without configuring the connection between it, such as performing legality verification.
  • the aforementioned Bluetooth address may be a media access control (media access control, MAC) address.
  • the sensor 203 may be a distance sensor or a proximity light sensor.
  • the processor 201 of the smart watch can use the sensor 203 to determine whether it is worn by the user.
  • the processor 201 of the smart watch may use the proximity light sensor to detect whether there is an object near the smart watch, thereby determining whether the smart watch is worn by the user.
  • the processor 201 of the smart watch may turn on the receiver 204.
  • the smart watch may also include a bone conduction sensor combined with a bone conduction headset.
  • the bone conduction sensor can obtain the vibration signal of the vibrating bone block of the voice, and the processor 201 parses the voice signal to realize the control function corresponding to the voice signal.
  • the smart watch may further include a touch sensor or a pressure sensor, which are used to detect the touch operation and the pressing operation of the user, respectively.
  • the smart watch may also include a fingerprint sensor for detecting user fingerprints, identifying user identity, and so on.
  • the smart watch may further include an ambient light sensor, and the processor 201 of the smart watch may adaptively adjust some parameters, such as the volume level, according to the brightness of the ambient light sensed by the ambient light sensor.
  • the Bluetooth low energy device 207 is used to establish a first Bluetooth connection with the electronic device 102.
  • the traditional Bluetooth device 208 is used to establish a second Bluetooth connection with the electronic device 102.
  • the smart watch and the electronic device 102 are allowed to perform short-distance data interaction.
  • the receiver 204 which may also be referred to as a "earpiece", may be used to convert audio electrical signals into sound signals and play them. For example, when the smart watch is used as the audio output device of the aforementioned electronic device 102, the receiver 204 may convert the received audio electrical signal into a sound signal and play it.
  • the microphone 205 which may also be called a "microphone” or a “microphone”, is used to convert sound signals into audio electrical signals.
  • the microphone 205 can collect the user's voice signal and convert it into an audio electrical signal when the user speaks (such as making a call or sending a voice message).
  • the above audio electrical signal is the audio data in this embodiment.
  • the power supply 206 can be used to supply power to various components included in the smart watch.
  • the power source 206 may be a battery, such as a rechargeable battery.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the smart watch. It may have more or fewer components than shown in FIG. 2, may combine two or more components, or may have a different component configuration.
  • the smart watch may also include an indicator light (which can indicate power and other status), a dust-proof net (which can be used with a handset) and other components.
  • the various components shown in FIG. 2 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing or application specific integrated circuits.
  • the smart watch may include a left earplug and a right earplug.
  • the structure of the left earplug and the right earplug may be the same.
  • the left earplug and the right earplug of the smart watch may both include the components shown in FIG. 2.
  • the structure of the left earplug and the right earplug of the smart watch may also be different.
  • one earplug (such as the right earplug) of the smart watch may include the components shown in FIG. 2, and the other earplug (such as the left earplug) may include other components except the microphone 206 in FIG. 2.
  • the Bluetooth device 101 may also be any one of the following devices, such as: a Bluetooth speaker, a Bluetooth bracelet, a Bluetooth car, a Bluetooth smart glasses, etc.
  • a Bluetooth speaker such as: a Bluetooth speaker, a Bluetooth bracelet, a Bluetooth car, a Bluetooth smart glasses, etc.
  • the embodiment of the application does not limit the specific form of the Bluetooth device.
  • the electronic device 102 may be a mobile phone (as shown in FIG. 1), a tablet computer, a desktop computer, a laptop, a handheld computer, a notebook computer, or an ultra-mobile personal computer (UMPC). , Netbooks, and cellular phones, personal digital assistants (personal digital assistants, PDAs), augmented reality (AR) ⁇ virtual reality (VR) devices, media players, televisions and other devices.
  • PDAs personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • the structure of the electronic device 102 may be as shown in FIG. 3, which is a schematic structural diagram of the electronic device in the communication system shown in FIG. 1 provided by this embodiment of the present application.
  • the electronic device 102 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, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , The display screen 194, and the subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 102.
  • the electronic device 102 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the interface connection relationship between the modules illustrated in this embodiment is merely a schematic description, and does not constitute a structural limitation of the electronic device 102.
  • the electronic device 102 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 102. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the wireless communication function of the electronic device 102 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 102 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 102.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 102, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • WiFi wireless fidelity
  • BT Bluetooth
  • global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the electronic device 102 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 102 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 102 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 102 by running instructions stored in the internal memory 121.
  • the processor 110 may implement the Bluetooth switching function by executing instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 102.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 102 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the touch sensor 180K is also called a "touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 102, which is different from the position of the display screen 194.
  • Fig. 4 is a flowchart of a Bluetooth handover method provided by an embodiment of the application. As shown in Fig. 4, the method may include:
  • the mobile phone establishes a first Bluetooth connection with a Bluetooth low energy device in the Bluetooth device.
  • S402 The mobile phone establishes a second Bluetooth connection with the traditional Bluetooth device in the Bluetooth device.
  • the user can operate the mobile phone, the mobile phone establishes a first Bluetooth connection with the Bluetooth low energy device in the Bluetooth device, and the mobile phone establishes a second Bluetooth connection with the traditional Bluetooth device in the Bluetooth device.
  • the first Bluetooth connection is a BLE connection.
  • the first Bluetooth connection is a BLE connection.
  • the mobile phone Before the first Bluetooth connection between the mobile phone and the bluetooth device, it needs to be paired and authenticated with the bluetooth device. After the mobile phone is paired with the bluetooth device and authenticated successfully, the mobile phone can be connected with the bluetooth device. For example, a mobile phone and a Bluetooth device can be paired with a key. After the mobile phone is paired with the Bluetooth device and authenticated successfully, the key can be saved for use when the mobile phone establishes a connection with the Bluetooth device again.
  • the specific pairing method and connection method can refer to the prior art, which will not be repeated.
  • the mobile phone includes a Bluetooth low energy device and a traditional Bluetooth device.
  • the establishment of the second Bluetooth connection between the mobile phone and the traditional Bluetooth device in the Bluetooth device can be replaced by the description that the traditional Bluetooth device in the mobile phone establishes the second Bluetooth connection with the traditional Bluetooth device in the Bluetooth device.
  • the establishment of the first Bluetooth connection between the mobile phone and the Bluetooth low energy device in the Bluetooth device may alternatively be described as the establishment of the first Bluetooth connection between the Bluetooth low energy device in the mobile phone and the Bluetooth low energy device in the Bluetooth device.
  • the operation can be a gesture or voice command input by the user.
  • the gesture may be any one of a single click gesture, a sliding gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double tap gesture.
  • FIG. 5A is an example diagram of a Bluetooth connection process provided by an embodiment of this application.
  • FIG. 5A it is a schematic front view of a mobile phone provided by an embodiment of this application.
  • the user performs a sliding operation according to the sliding track 501.
  • the mobile phone displays a pull-down menu 502 in response to the sliding operation, and the pull-down menu 502 includes a Bluetooth icon 503.
  • the user can click the Bluetooth icon 503, as shown in (c) in Figure 5A, the mobile phone displays the Bluetooth user interface in response to the click operation, the mobile phone can automatically scan for nearby Bluetooth devices, and the Bluetooth user interface can include the scanned The identification 504 of the Bluetooth device (e.g., MAC address).
  • the Bluetooth user interface may further include a connection button 505 corresponding to the identification of each Bluetooth device.
  • the user can click the identification 504 of the Bluetooth device or the connection button 505 corresponding to the identification of the Bluetooth device.
  • the mobile phone establishes a first Bluetooth connection and a second Bluetooth connection with the Bluetooth device, and executes S403.
  • the Bluetooth user interface may further include a connected button 506 corresponding to the identification of the Bluetooth device.
  • “connected” here may mean that both the second Bluetooth connection and the first Bluetooth connection are connected.
  • the user interface may also include all connection buttons 507.
  • the user can click all connection buttons 507, and the mobile phone will establish a connection with all the scanned bluetooth devices in response to the click operation.
  • the second Bluetooth connection and the first Bluetooth connection, and S403 is executed.
  • the processor of the Bluetooth device determines that there is no first service, and controls the traditional Bluetooth device to power off.
  • the processor of the Bluetooth device can control the power-off of the traditional Bluetooth device, that is, stop supplying power to the traditional Bluetooth device, so that the traditional Bluetooth device stops working.
  • the mobile phone detects that the connection with the traditional Bluetooth device has timed out, and disconnects the second Bluetooth connection with the traditional Bluetooth device of the Bluetooth device.
  • the Bluetooth device and the mobile phone can store the paired device identification (such as MAC address) so that the traditional Bluetooth device of the Bluetooth device can be based on the paired
  • the device identifier establishes a second Bluetooth connection with the mobile phone again.
  • the Bluetooth user interface may include the Bluetooth 1 button 508 and the Bluetooth 2 button 509 corresponding to the identification of the Bluetooth device.
  • Bluetooth 1 can indicate that the first Bluetooth connection is connected and the second Bluetooth connection is disconnected.
  • Bluetooth 2 may indicate that the second Bluetooth connection is connected and the first Bluetooth connection is disconnected.
  • Bluetooth 2 here may indicate that the first Bluetooth connection is connected and the second Bluetooth connection is disconnected.
  • Bluetooth 1 may indicate that the second Bluetooth connection is connected and the first Bluetooth connection is disconnected. The embodiments of this application do not limit this.
  • the Bluetooth device disconnects the second Bluetooth connection established with the mobile phone, the Bluetooth device maintains the first Bluetooth connection with the mobile phone, so that the Bluetooth device and the mobile phone can use the first Bluetooth connection to transmit data with a smaller amount of data. flow.
  • the mobile phone and the Bluetooth device can re-establish a second Bluetooth connection, and the data of the first service is transmitted through the second Bluetooth connection between the mobile phone and the Bluetooth device.
  • S404 ⁇ S407 are described below.
  • S404 The processor of the Bluetooth device determines that there is the first service, and controls the traditional Bluetooth device to power on.
  • the processor of the Bluetooth device can initiate the first service by itself.
  • the processor of the Bluetooth device can determine that there is the first service, and execute S405.
  • the Bluetooth device is Bluetooth smart glasses, and the first service may be a video service. After the Bluetooth smart glasses are turned on, the video playback function is turned on, and the Bluetooth smart glasses can determine that the video service is started.
  • the Bluetooth device may determine that there is the first service according to the received message. As shown in FIG. 6, determining that the Bluetooth device has the first service may include the following steps.
  • the mobile phone sends a request message for the first service to the Bluetooth low energy device of the Bluetooth device.
  • the mobile phone After the mobile phone determines that the first service is started, it can send a request message for the first service to the Bluetooth device.
  • the request message of the first service includes the identifier of the first service.
  • the mobile phone may send a request message for the first service to the Bluetooth device through the first Bluetooth connection.
  • the Bluetooth low energy device of the Bluetooth device receives the request message of the first service sent by the mobile phone.
  • the Bluetooth low energy device of the Bluetooth device receives the request message of the first service through the first Bluetooth connection established with the mobile phone.
  • the processor of the Bluetooth device controls the traditional Bluetooth device to be powered on according to the identifier of the first service.
  • the request message of the first service may include the identifier of the first service.
  • the processor of the Bluetooth device can determine, according to the identifier of the first service, that the data of the first service needs to be transmitted between the mobile phone and the Bluetooth device, and the Bluetooth device A second Bluetooth connection is established with the mobile phone.
  • the Bluetooth device may pre-store service identifiers related to services that require high-speed transmission of large amounts of data. For example, a business identification library can be established, and the business identification library includes at least one business identification. After the Bluetooth device obtains the identity of the first service, it compares the identity of the first service with the service identity in the service identity database. If the service identity database covers the identity of the first service, the Bluetooth device can determine the difference between the mobile phone and the Bluetooth device. It is necessary to transmit the data of the first service and control the power on of the traditional Bluetooth device.
  • a business identification library can be established, and the business identification library includes at least one business identification. After the Bluetooth device obtains the identity of the first service, it compares the identity of the first service with the service identity in the service identity database. If the service identity database covers the identity of the first service, the Bluetooth device can determine the difference between the mobile phone and the Bluetooth device. It is necessary to transmit the data of the first service and control the power on of the traditional Bluetooth device.
  • the processor of the Bluetooth device controls the power on of the traditional Bluetooth device, that is, supplies power to the traditional Bluetooth device, so that the traditional Bluetooth device starts to work, and the traditional Bluetooth device establishes a second Bluetooth connection with the mobile phone.
  • the Bluetooth device stores the paired device identification (for example: MAC address), so that the traditional Bluetooth device of the Bluetooth device can establish a second Bluetooth connection with the mobile phone again according to the paired device identification.
  • the traditional Bluetooth device in the Bluetooth device establishes a second Bluetooth connection with the mobile phone.
  • establishing a second Bluetooth connection between the Bluetooth device and the mobile phone may include the following steps.
  • the traditional Bluetooth device of the Bluetooth device sends a traditional Bluetooth establishment request message to the mobile phone.
  • the traditional Bluetooth setup request message includes the device identification of the Bluetooth device.
  • the mobile phone receives the traditional Bluetooth establishment request message sent by the traditional Bluetooth device of the Bluetooth device.
  • the traditional Bluetooth device of the Bluetooth device can establish a second Bluetooth connection with the mobile phone again according to the paired device identifier.
  • the Bluetooth low energy device of the Bluetooth device may send a traditional Bluetooth establishment request message to the mobile phone through the first Bluetooth connection.
  • the mobile phone receives the traditional Bluetooth establishment request message sent by the Bluetooth low energy device of the Bluetooth device through the first Bluetooth connection.
  • the Bluetooth device establishes a second Bluetooth connection with the mobile phone.
  • S406 The traditional Bluetooth device of the Bluetooth device transmits the data of the first service to the mobile phone through the second Bluetooth connection.
  • the mobile phone can choose to transmit the data of the first service with the traditional Bluetooth device of the Bluetooth device through the second Bluetooth connection according to the identity of the first service, so as to realize the high-speed transmission of the data of the first service .
  • S407 The processor of the Bluetooth device determines that the first service transmission is completed, and controls the traditional Bluetooth device to power off.
  • the Bluetooth device when the Bluetooth device determines that the data of the first service has been transmitted, the Bluetooth device may determine that the first service transmission is completed.
  • the processor of the Bluetooth device can control the power-off of the traditional Bluetooth device, that is, stop supplying power to the traditional Bluetooth device, stop the traditional Bluetooth device from working, and disconnect the second Bluetooth connection established between the traditional Bluetooth device and the mobile phone.
  • the mobile phone detects that the connection with the traditional Bluetooth device has timed out, and disconnects the second Bluetooth connection with the traditional Bluetooth device of the Bluetooth device.
  • the Bluetooth device may determine the end of the first service transmission according to the received message. As shown in FIG. 6, the Bluetooth device determining that the first service transmission ends may include the following steps.
  • the mobile phone sends an end message of the first service to the traditional Bluetooth device of the Bluetooth device.
  • the mobile phone may send an end message of the first service to the Bluetooth device through the second Bluetooth connection.
  • the end message of the first service includes the identifier of the first service.
  • the traditional Bluetooth device of the Bluetooth device receives the end message of the first service sent by the mobile phone.
  • the processor of the Bluetooth device determines that the first service transmission is completed, and controls the traditional Bluetooth device to power off.
  • the Bluetooth device can maintain the first Bluetooth connection with the mobile phone through the low-power Bluetooth device, realize low-power standby, and transmit a small amount of data through the first Bluetooth connection; when there is a large data stream business When requested, it will automatically switch to the second Bluetooth connection, which can realize high-speed data transmission through the second Bluetooth connection.
  • the Bluetooth device can achieve high-speed data transmission and low power consumption and long battery life, which effectively improves the user experience of the Bluetooth device.
  • the Bluetooth device is a smart watch
  • the Bluetooth headset includes a processor, a low-power Bluetooth device and a traditional Bluetooth device.
  • the electronic device is a mobile phone as an example, and the Bluetooth switching method is illustrated as an example.
  • the user establishes a Bluetooth connection by operating a mobile phone to pair with a smart watch.
  • a Bluetooth icon is displayed on the display of a mobile phone, and the user can click the Bluetooth icon.
  • the mobile phone displays the Bluetooth user interface in response to the click operation.
  • the mobile phone can automatically scan to nearby smart watches.
  • the Bluetooth user interface can include the scanned smart The connection button corresponding to the MAC address of the watch and the MAC address of the smart watch.
  • the user can click the MAC address of the smart watch or the connection button corresponding to the MAC address of the smart watch.
  • the mobile phone establishes a second Bluetooth connection and a first Bluetooth connection with the smart watch.
  • the processor of the smart watch determines that there is no first service, the processor of the smart watch controls the traditional Bluetooth device to power off, and the traditional Bluetooth device of the smart watch disconnects the second Bluetooth connection established with the mobile phone.
  • the processor of the smart watch determines that the voice call service is started, and the processor of the smart watch controls the traditional Bluetooth device to power on, and the traditional Bluetooth device establishes a second Bluetooth connection with the mobile phone.
  • the traditional Bluetooth device of the smart watch and the mobile phone can transmit voice call data through the second Bluetooth connection.
  • the smart watch processor determines that the voice call service transmission is over, and the smart watch processor controls the traditional Bluetooth device Power off, then disconnect the second Bluetooth connection with the mobile phone, and maintain the first Bluetooth connection with the mobile phone.
  • the methods provided in the embodiments of the present application are introduced from the perspective of Bluetooth devices, electronic devices, and interactions between Bluetooth devices and electronic devices. It can be understood that, in order for each network element, such as a Bluetooth device and an electronic device, to implement each function in the method provided in the above embodiments of the present application, the Bluetooth device and electronic device include corresponding hardware structures and/or software modules for performing each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiment of the present application may divide the Bluetooth device and the electronic device into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • the Bluetooth device may include: one or more processors 701, a memory 702, a communication interface 703, a receiver 704, a microphone 705, and one or more computer programs 706, a traditional Bluetooth device 707, and low power consumption.
  • Bluetooth device 708; the above-mentioned devices can be connected through one or more communication buses 709.
  • the one or more computer programs 706 are stored in the aforementioned memory 702 and are configured to be executed by the one or more processors 701.
  • the one or more computer programs 706 include instructions, and the aforementioned instructions can be used to execute such as The steps performed in the corresponding embodiment of FIG. 4 or FIG. 6.
  • the Bluetooth device shown in FIG. 7 may also include other devices such as sensors, which are not limited in the embodiment of the present application.
  • the electronic device may include: a touch screen 801, where the touch screen 801 may include a touch-sensitive surface 806 and a display screen 807; one or more The processor 802; the memory 803; and one or more computer programs 804; the Bluetooth device 808; the above-mentioned devices can be connected through one or more communication buses 805.
  • the one or more computer programs 804 are stored in the aforementioned memory 803 and are configured to be executed by the one or more processors 802.
  • the one or more computer programs 804 include instructions, and the aforementioned instructions can be used to execute such as Each step performed by the electronic device in the corresponding embodiment of FIG. 4 or FIG. 6.
  • the electronic device shown in FIG. 8 may also be other devices such as a sensor module, an audio module, and a SIM card interface, and the embodiment of the present application does not impose any limitation on this.
  • the electronic device shown in FIG. 8 further includes other devices such as a sensor module, an audio module, and a SIM card interface, it may be the electronic device shown in FIG. 3.
  • This embodiment also provides a computer-readable storage medium, which includes instructions, which when executed on an electronic device, cause the electronic device to execute the relevant method steps in FIG. 4 or FIG. 6, To implement the method in the above embodiment.
  • This embodiment also provides a computer-readable storage medium, the computer-readable storage medium includes instructions, and when the instructions are run on a Bluetooth device, the Bluetooth device executes the relevant method steps in FIG. 4 or FIG. 6, To implement the method in the above embodiment.
  • This embodiment also provides a computer program product containing instructions.
  • the computer program product runs on an electronic device, the electronic device executes the relevant method steps shown in FIG. 4 or FIG. 6, so as to realize the above-mentioned embodiment Methods.
  • This embodiment also provides a computer program product containing instructions.
  • the computer program product runs on a Bluetooth device
  • the Bluetooth device executes the relevant method steps shown in FIG. 4 or FIG. 6, so as to realize the above-mentioned embodiment. Methods.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be Combined or can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each embodiment of this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this embodiment essentially 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, and the computer software product is stored in a storage medium.
  • the aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed are a Bluetooth switching method and a Bluetooth device, which relate to the field of short-distance communications. The Bluetooth device comprises a processor, a BLE apparatus, and a traditional Bluetooth apparatus. The Bluetooth device has established a first Bluetooth connection with an electronic device. When determining that there is a first service, the processor controls the traditional Bluetooth apparatus to establish a second Bluetooth connection with the electronic device; the traditional Bluetooth apparatus transmits data of the first service to the electronic device by means of the second Bluetooth connection; and the processor determines that the transmission of the first service ends, and controls the traditional Bluetooth apparatus to power off. In this way, high-speed data transmission between a Bluetooth device and an electronic device is achieved, and low-power consumption and long-term operation of the device are also achieved.

Description

蓝牙切换方法及蓝牙设备Bluetooth switching method and Bluetooth device
本申请要求于2019年07月25日提交国家知识产权局、申请号为201910677545.9、发明名称为“蓝牙切换方法及蓝牙设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on July 25, 2019, the application number is 201910677545.9, and the invention title is "Bluetooth switching method and Bluetooth device", the entire content of which is incorporated into this application by reference .
技术领域Technical field
本申请涉及短距离通信领域,尤其涉及一种蓝牙切换方法及蓝牙设备。This application relates to the field of short-distance communication, and in particular to a Bluetooth switching method and a Bluetooth device.
背景技术Background technique
蓝牙(Bluetooth)是一种无线技术标准,其可实现不同设备之间的短距离数据交互。如手机可以开启蓝牙模块与蓝牙耳机进行短距离数据交互,以将蓝牙耳机作为手机的音频输入/输出设备实现通话、音乐播放等功能。Bluetooth (Bluetooth) is a wireless technology standard that can realize short-distance data interaction between different devices. For example, the mobile phone can turn on the Bluetooth module and perform short-distance data interaction with the Bluetooth headset, so that the Bluetooth headset can be used as the audio input/output device of the mobile phone to realize functions such as call and music playback.
目前,具有蓝牙功能的设备(简称蓝牙设备)与手机建立的无线连接可以是传统蓝牙(classic Bluetooth)无线连接或低功耗蓝牙(Bluetooth low energy,BLE)无线连接。采用传统蓝牙无线连接时主要以用户业务为主,实现大量数据(如:音频数据或视频数据)的高速传输。采用低功耗蓝牙无线连接时主要以待机功耗为主,实现小量数据的低速传输。随着用户业务数据量的增大,用户既希望蓝牙设备能够达到较高的数据传输速率,又希望使蓝牙设备能够长续航待机,但这是两个矛盾的方面。因此,如何既能使蓝牙设备实现高速数据传输又能实现低功耗长续航是一个亟待解决的问题。At present, the wireless connection established between a Bluetooth-enabled device (Bluetooth device for short) and a mobile phone may be a traditional Bluetooth (classic Bluetooth) wireless connection or a Bluetooth low energy (Bluetooth low energy, BLE) wireless connection. When the traditional Bluetooth wireless connection is adopted, user services are mainly used to realize high-speed transmission of large amounts of data (such as audio data or video data). When using low-power Bluetooth wireless connection, standby power consumption is mainly used to realize low-speed transmission of small amounts of data. With the increase in the amount of user service data, users both hope that Bluetooth devices can reach a higher data transmission rate, but also want to enable Bluetooth devices to have long battery life and standby, but these are two contradictory aspects. Therefore, how to enable Bluetooth devices to achieve high-speed data transmission and low power consumption and long battery life is an urgent problem to be solved.
发明内容Summary of the invention
本申请提供了一种蓝牙切换方法及蓝牙设备,解决了如何既能使蓝牙设备实现高速数据传输又能实现低功耗长续航的问题。This application provides a Bluetooth switching method and a Bluetooth device, which solves the problem of how to enable the Bluetooth device to achieve high-speed data transmission and low power consumption and long battery life.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,提供了一种蓝牙切换方法,应用于蓝牙设备,蓝牙设备包括处理器、BLE装置和传统蓝牙装置,该方法包括:BLE装置与电子设备建立第一蓝牙连接,第一蓝牙连接为BLE连接,在处理器确定有第一业务之后,控制传统蓝牙装置上电,传统蓝牙装置与电子设备建立第二蓝牙连接,第二蓝牙连接为传统蓝牙连接,使传统蓝牙装置通过第二蓝牙连接与电子设备传输第一业务的数据,所述第一业务可以是指需要高速传输大数据流的业务;在处理器确定第一业务传输结束之后,控制传统蓝牙装置下电,断开传统蓝牙装置与电子设备建立的第二蓝牙连接,保持BLE装置与电子设备的第一蓝牙连接,实现低功耗待机。In the first aspect, a Bluetooth switching method is provided, which is applied to a Bluetooth device. The Bluetooth device includes a processor, a BLE device, and a traditional Bluetooth device. The method includes: the BLE device establishes a first Bluetooth connection with an electronic device, and the first Bluetooth connection is BLE connection, after the processor determines that the first service is available, it controls the traditional Bluetooth device to power on, the traditional Bluetooth device establishes a second Bluetooth connection with the electronic device, the second Bluetooth connection is a traditional Bluetooth connection, and the traditional Bluetooth device is connected through the second Bluetooth Transmit the data of the first service with the electronic device. The first service may refer to the service that requires high-speed transmission of large data streams; after the processor determines that the first service transmission is complete, it controls the traditional Bluetooth device to power off and disconnect the traditional Bluetooth device The second Bluetooth connection established with the electronic device maintains the first Bluetooth connection between the BLE device and the electronic device to realize low power consumption standby.
本申请实施例提供的蓝牙切换方法,蓝牙设备能够通过低功耗蓝牙装置与电子设备保持第一蓝牙连接,实现低功耗待机,传输少量的数据;当有大数据流的业务请求时,自动切换到第二蓝牙连接,能够通过第二蓝牙连接实现高速数据传输。从而,既能使蓝牙设备实现高速数据传输又能实现低功耗长续航,有效地提高了蓝牙设备的用户体验。In the Bluetooth switching method provided by the embodiments of the present application, the Bluetooth device can maintain the first Bluetooth connection with the electronic device through the low-power Bluetooth device, realize low-power standby, and transmit a small amount of data; when there is a business request for a large data stream, it automatically Switching to the second Bluetooth connection enables high-speed data transmission through the second Bluetooth connection. Thus, the Bluetooth device can achieve high-speed data transmission and low power consumption and long battery life, which effectively improves the user experience of the Bluetooth device.
在一种可能的设计中,BLE装置通过第一蓝牙连接接收第一业务的请求消息,第一业务的请求消息包括第一业务的标识;处理器根据第一业务的标识确定有第一业务, 控制传统蓝牙装置上电。In a possible design, the BLE device receives the request message of the first service through the first Bluetooth connection, and the request message of the first service includes the identity of the first service; the processor determines that there is the first service according to the identity of the first service, Control the power on of traditional Bluetooth devices.
在另一种可能的设计中,在处理器确定有第一业务之前,方法还包括:传统蓝牙装置与电子设备建立第二蓝牙连接。在处理器确定无第一业务之后,控制传统蓝牙装置下电,断开传统蓝牙装置与电子设备建立的第二蓝牙连接。In another possible design, before the processor determines that the first service is available, the method further includes: establishing a second Bluetooth connection between the traditional Bluetooth device and the electronic device. After the processor determines that there is no first service, it controls the traditional Bluetooth device to power off and disconnect the second Bluetooth connection established between the traditional Bluetooth device and the electronic device.
第二方面,提供了一种蓝牙设备,用于实现上述第一方面描述的方法。所述蓝牙设备包括处理器、BLE装置和传统蓝牙装置。所述BLE装置用于与电子设备建立第一蓝牙连接,第一蓝牙连接为BLE连接,所述处理器用于确定有第一业务,控制传统蓝牙装置上电,所述传统蓝牙装置用于与电子设备建立第二蓝牙连接,第二蓝牙连接为传统蓝牙连接;所述传统蓝牙装置还用于通过第二蓝牙连接与电子设备传输第一业务的数据;所述处理器还用于确定第一业务传输结束,控制传统蓝牙装置下电,断开传统蓝牙装置与电子设备建立的第二蓝牙连接。In the second aspect, a Bluetooth device is provided to implement the method described in the first aspect. The Bluetooth device includes a processor, a BLE device and a traditional Bluetooth device. The BLE device is used to establish a first Bluetooth connection with an electronic device, and the first Bluetooth connection is a BLE connection. The processor is used to determine that there is a first service and control the power-on of the traditional Bluetooth device. The traditional Bluetooth device is used to communicate with the electronic device. The device establishes a second Bluetooth connection, and the second Bluetooth connection is a traditional Bluetooth connection; the traditional Bluetooth device is also used to transmit data of the first service to the electronic device through the second Bluetooth connection; the processor is also used to determine the first service After the transmission is over, the traditional Bluetooth device is controlled to power off, and the second Bluetooth connection established between the traditional Bluetooth device and the electronic device is disconnected.
在一种可能的设计中,BLE装置用于通过第一蓝牙连接接收第一业务的请求消息,第一业务的请求消息包括第一业务的标识;处理器用于根据第一业务的标识确定有第一业务,控制传统蓝牙装置上电。In a possible design, the BLE device is used to receive a request message of the first service through the first Bluetooth connection, and the request message of the first service includes the identity of the first service; the processor is used to determine that there is a first service according to the identity of the first service. One service, controlling the power on of traditional Bluetooth devices.
在一种可能的设计中,传统蓝牙装置用于与电子设备建立第二蓝牙连接;处理器用于确定无第一业务,控制传统蓝牙装置下电,断开传统蓝牙装置与电子设备建立的第二蓝牙连接。In a possible design, the traditional Bluetooth device is used to establish a second Bluetooth connection with the electronic device; the processor is used to determine that there is no first service, control the traditional Bluetooth device to power off, and disconnect the second Bluetooth device established with the electronic device. Bluetooth connection.
第三方面,提供了一种计算机可读存储介质,包括:计算机软件指令;当计算机软件指令在蓝牙设备中运行时,使得蓝牙设备执行上述第一方面所述的方法。In a third aspect, a computer-readable storage medium is provided, including: computer software instructions; when the computer software instructions run in a Bluetooth device, the Bluetooth device is caused to execute the method described in the first aspect.
第四方面,提供了一种包含指令的计算机程序产品,当计算机程序产品在蓝牙设备中运行时,使得蓝牙设备执行上述第一方面所述的方法。In a fourth aspect, a computer program product containing instructions is provided. When the computer program product runs in a Bluetooth device, the Bluetooth device executes the method described in the first aspect.
第五方面,提供了一种近场通信(Near Field Communication,NFC)装置,应用在NFC读卡器中,该NFC装置包括至少一个处理器和一个存储器,该存储器与处理器耦合,其中:该存储器用于存储该NFC读卡器所支持的业务类型信息;该至少一个处理器用于根据接收到的该电子设备发送的信息,来指令该NFC读卡器与电子设备建立蓝牙连接。In a fifth aspect, a Near Field Communication (NFC) device is provided, which is used in an NFC card reader. The NFC device includes at least one processor and a memory, and the memory is coupled to the processor, wherein: the The memory is used to store service type information supported by the NFC card reader; the at least one processor is used to instruct the NFC card reader to establish a Bluetooth connection with the electronic device according to the received information sent by the electronic device.
在一种可能的实现方式中,该NFC装置为NFC芯片。In a possible implementation manner, the NFC device is an NFC chip.
第六方面,提供了一种通信系统,该通信系统包括智能手表和手机,其中,智能手表包括处理器和两个独立的蓝牙装置,两个独立的蓝牙装置包括BLE装置和传统蓝牙装置,其中:In a sixth aspect, a communication system is provided. The communication system includes a smart watch and a mobile phone. The smart watch includes a processor and two independent Bluetooth devices. The two independent Bluetooth devices include a BLE device and a traditional Bluetooth device. :
BLE装置用于与手机建立第一蓝牙连接,第一蓝牙连接为BLE连接;The BLE device is used to establish a first Bluetooth connection with a mobile phone, and the first Bluetooth connection is a BLE connection;
手机用于在确定有第一业务时,通过第一蓝牙连接向智能手表发送第一业务的请求消息,第一业务的请求消息包括第一业务的标识;The mobile phone is used to send a request message for the first service to the smart watch through the first Bluetooth connection when it is determined that the first service is available, and the request message for the first service includes the identifier of the first service;
BLE装置还用于通过第一蓝牙连接接收第一业务的请求消息;The BLE device is also used to receive the request message of the first service through the first Bluetooth connection;
智能手表的处理器用于根据第一业务的标识控制传统蓝牙装置上电;The processor of the smart watch is used to control the power-on of the traditional Bluetooth device according to the identifier of the first service;
传统蓝牙装置用于与手机建立第二蓝牙连接,第二蓝牙连接为传统蓝牙连接;The traditional Bluetooth device is used to establish a second Bluetooth connection with the mobile phone, and the second Bluetooth connection is a traditional Bluetooth connection;
传统蓝牙装置还用于通过第二蓝牙连接与手机传输第一业务的数据;The traditional Bluetooth device is also used to transmit data of the first service to the mobile phone through the second Bluetooth connection;
智能手表的处理器还用于确定第一业务传输结束时,控制传统蓝牙装置下电。The processor of the smart watch is also used to control the power-off of the traditional Bluetooth device when determining that the first service transmission ends.
在一种可能的设计中,传统蓝牙装置还用于与手机建立第二蓝牙连接;智能手表 的处理器还用于确定无第一业务,控制传统蓝牙装置下电。In a possible design, the traditional Bluetooth device is also used to establish a second Bluetooth connection with the mobile phone; the processor of the smart watch is also used to determine that there is no first service and control the traditional Bluetooth device to power off.
另外,上述任意方面的设计方式所带来的技术效果可参见第一方面中不同设计方式所带来的技术效果,此处不再赘述。In addition, the technical effects brought about by any of the above-mentioned design methods can be referred to the technical effects brought about by different design methods in the first aspect, which will not be repeated here.
本申请实施例中,蓝牙设备和电子设备的名字对设备本身不构成限定,在实际实现中,这些设备可以以其他名称出现。只要各个设备的功能和本申请实施例阐述的类似,属于本申请的权利要求及其等同技术的范围之内。In the embodiments of the present application, the names of the Bluetooth device and the electronic device do not limit the device itself. In actual implementation, these devices may appear under other names. As long as the function of each device is similar to that described in the embodiments of the present application, it falls within the scope of the claims of the present application and equivalent technologies.
附图说明Description of the drawings
图1为一实施例提供的一种通信系统的架构示例图;FIG. 1 is an example diagram of the architecture of a communication system provided by an embodiment;
图2为一实施例提供的一种智能手表的结构示例图;FIG. 2 is a structural example diagram of a smart watch provided by an embodiment;
图3为一实施例提供的一种电子设备的组成示例图一;FIG. 3 is a first example of the composition of an electronic device provided by an embodiment;
图4为一实施例提供的一种蓝牙切换方法的流程图一;FIG. 4 is a first flowchart of a Bluetooth handover method provided by an embodiment;
图5A为一实施例提供的一种蓝牙切换的界面示例图;FIG. 5A is an example diagram of a Bluetooth switching interface provided by an embodiment;
图5B为一实施例提供的一种蓝牙切换结果的界面示例图;FIG. 5B is an example diagram of an interface of a Bluetooth switching result provided by an embodiment;
图6为一实施例提供的一种蓝牙切换方法的流程图二;FIG. 6 is a second flowchart of a Bluetooth handover method provided by an embodiment;
图7为一实施例提供的一种蓝牙设备的组成示例图;FIG. 7 is a diagram showing an example of the composition of a Bluetooth device provided by an embodiment;
图8为一实施例提供的一种电子设备的组成示例图二。Figure 8 is Figure 2 of an example composition of an electronic device provided by an embodiment.
具体实施方式Detailed ways
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second", and "third" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
如今,蓝牙由蓝牙技术联盟(Bluetooth special interest group,SIG)管理,其主要负责蓝牙技术规范的制定。蓝牙技术规范已经从蓝牙技术规范1.0版本发展到了蓝牙技术规范4.2版本。在蓝牙技术规范4.0版本中,SIG首次提出了低功耗蓝牙,即蓝牙技术规范4.0包括了传统蓝牙和低功耗蓝牙两个技术规范。传统蓝牙还可以称为经典蓝牙。传统蓝牙和低功耗蓝牙是两个完全不同的技术规范。传统蓝牙4.0是传统蓝牙3.0的升级版本,向下兼容。而低功耗蓝牙是一个新的分支,不向下兼容。Today, Bluetooth is managed by the Bluetooth Special Interest Group (SIG), which is mainly responsible for the formulation of Bluetooth technical specifications. The Bluetooth technical specification has evolved from the Bluetooth technical specification version 1.0 to the Bluetooth technical specification version 4.2. In version 4.0 of the Bluetooth technical specification, SIG first proposed low-power Bluetooth, that is, Bluetooth technical specification 4.0 includes two technical specifications of traditional Bluetooth and low-power Bluetooth. Traditional Bluetooth can also be called classic Bluetooth. Traditional Bluetooth and Bluetooth Low Energy are two completely different technical specifications. Traditional Bluetooth 4.0 is an upgraded version of traditional Bluetooth 3.0 and is backward compatible. And Bluetooth Low Energy is a new branch and is not backward compatible.
下面对传统蓝牙和低功耗蓝牙的区别点进行简单说明。The following is a brief description of the differences between traditional Bluetooth and Bluetooth low energy.
利用低功耗蓝牙传输数据时,数据包的长度较短。低功耗蓝牙主要应用于实时性要求比较高,但数据传输速率相对较低的产品中。如:遥控类的产品(如:键盘或遥控鼠标)和传感设备(如:心率带,血压计,温度传感器)等。而利用传统蓝牙传输数据时,数据包的长度较长。传统蓝牙主要应用于数据传输速率相对较高,需要传输大量数据(如:音频数据或视频数据)的产品中。如:手机、平板电脑、媒体播放器、机器人系统、手持设备、笔记本电脑、游戏手柄、以及一些高音质耳机、调制解调器、手表等。When using Bluetooth Low Energy to transmit data, the length of the data packet is shorter. Bluetooth Low Energy is mainly used in products with high real-time requirements but relatively low data transmission rate. Such as: remote control products (such as: keyboard or remote control mouse) and sensing equipment (such as: heart rate belt, blood pressure monitor, temperature sensor), etc. When using traditional Bluetooth to transmit data, the length of the data packet is relatively long. Traditional Bluetooth is mainly used in products that have relatively high data transmission rates and need to transmit large amounts of data (such as audio data or video data). Such as: mobile phones, tablet computers, media players, robotics systems, handheld devices, notebook computers, gamepads, and some high-quality headphones, modems, watches, etc.
在利用低功耗蓝牙完成发送数据和接收数据之后,低功耗蓝牙会暂停发射无线信号(但是还是会接收数据),等待下一次连接再激活。而传统蓝牙是持续保持连接。After using Bluetooth Low Energy to complete sending and receiving data, Bluetooth Low Energy will suspend the transmission of wireless signals (but still receive data) and wait for the next connection to be activated again. The traditional Bluetooth is to keep connected.
完成一次低功耗蓝牙无线连接(扫描其它设备、建立链路、发送数据、认证和适当地结束)只需3毫秒。而完成一次传统蓝牙无线连接需要数百毫秒。It takes only 3 milliseconds to complete a Bluetooth low energy wireless connection (scan other devices, establish a link, send data, authenticate and terminate appropriately). It takes hundreds of milliseconds to complete a traditional Bluetooth wireless connection.
低功耗蓝牙无功率级别,一般发送功率在+4dBm,传输距离可以是70m。而传统蓝牙有3个功率级别,分别支持100米,10米,1米的传输距离。Bluetooth low energy has no power level, the general transmission power is +4dBm, and the transmission distance can be 70m. The traditional Bluetooth has 3 power levels, supporting transmission distances of 100 meters, 10 meters, and 1 meter respectively.
综上所述,相较于传统蓝牙,低功耗蓝牙的优点是快速搜索,快速连接,超低功耗保持连接和传输少量数据(如:提示音(如来电提示音、回铃音,短信提示音等)),但是低功耗蓝牙的数据传输速率较低。而传统蓝牙虽然数据传输速率较高,但是传统蓝牙的功耗较大。In summary, compared to traditional Bluetooth, the advantages of low energy Bluetooth are fast search, fast connection, ultra-low power consumption to maintain the connection and transmit a small amount of data (such as: notification tone (such as incoming call notification tone, ring back tone, SMS) Prompt tone, etc.)), but the data transmission rate of Bluetooth Low Energy is low. Although traditional Bluetooth has a higher data transmission rate, it has a higher power consumption.
目前,蓝牙设备与手机建立的无线连接可以是传统蓝牙连接或BLE连接。采用传统蓝牙连接时主要以用户业务为主,实现大量数据(如:音频数据或视频数据)的高速传输。采用BLE连接时主要以待机功耗为主,实现小量数据的低速传输。随着用户业务数据量的增大,用户既希望蓝牙设备能够达到较高的数据传输速率,又希望使蓝牙设备能够长续航待机,但这是两个矛盾的方面。因此,如何既能使蓝牙设备实现高速数据传输又能实现低功耗长续航是一个亟待解决的问题。Currently, the wireless connection established by the Bluetooth device and the mobile phone may be a traditional Bluetooth connection or a BLE connection. When the traditional Bluetooth connection is used, user services are mainly used to achieve high-speed transmission of large amounts of data (such as audio data or video data). When the BLE connection is used, the standby power consumption is mainly used to realize the low-speed transmission of a small amount of data. With the increase in the amount of user service data, users both hope that Bluetooth devices can reach a higher data transmission rate, but also want to enable Bluetooth devices to have long battery life and standby, but these are two contradictory aspects. Therefore, how to enable Bluetooth devices to achieve high-speed data transmission and low power consumption and long battery life is an urgent problem to be solved.
本申请一实施例提供了一种蓝牙切换方法,可以应用于电子设备(例如智能手机)与蓝牙设备(例如可穿戴设备)传输高速数据的过程中。其中,蓝牙设备具体可以包括BLE装置和传统蓝牙装置。BLE装置用于实现低功耗蓝牙的功能。传统蓝牙装置用于实现传统蓝牙的功能。所述方法包括:蓝牙设备与电子设备建立第一蓝牙连接,第一蓝牙连接为BLE连接,当蓝牙设备的处理器确定有第一业务时,控制传统蓝牙装置上电,传统蓝牙装置与电子设备建立第二蓝牙连接,第二蓝牙连接为传统蓝牙连接,使传统蓝牙装置通过第二蓝牙连接与电子设备传输第一业务的数据;当蓝牙设备的处理器确定第一业务传输结束后,控制传统蓝牙装置下电,断开传统蓝牙装置与电子设备的第二蓝牙连接,保持低功耗蓝牙装置与电子设备的第一蓝牙连接。An embodiment of the present application provides a Bluetooth switching method, which can be applied in the process of transmitting high-speed data between an electronic device (such as a smart phone) and a Bluetooth device (such as a wearable device). Among them, the Bluetooth device may specifically include a BLE device and a traditional Bluetooth device. The BLE device is used to implement the function of Bluetooth Low Energy. The traditional Bluetooth device is used to implement the functions of the traditional Bluetooth. The method includes: the Bluetooth device establishes a first Bluetooth connection with the electronic device, the first Bluetooth connection is a BLE connection, and when the processor of the Bluetooth device determines that the first service is available, controlling the traditional Bluetooth device to power on, the traditional Bluetooth device and the electronic device Establish a second Bluetooth connection, the second Bluetooth connection is a traditional Bluetooth connection, so that the traditional Bluetooth device transmits the data of the first service to the electronic device through the second Bluetooth connection; when the processor of the Bluetooth device determines that the first service transmission is complete, it controls the traditional The Bluetooth device is powered off, the second Bluetooth connection between the traditional Bluetooth device and the electronic device is disconnected, and the first Bluetooth connection between the low-power Bluetooth device and the electronic device is maintained.
在下文中,第一业务可以是指需要高速传输大量数据的业务。在一些实施例中,第一业务可以是语音业务(如:语音通话或利用应用程序(如,微信(WeChat),脸书(Facebook))进行语音通话)或视频业务(如:视频播放或利用应用程序(如,微信,脸书)进行视频通话)。相应地,第一业务的数据可以包括音频数据和视频数据。音频数据可以包括:通话过程中的语音数据,利用应用程序(如,微信,脸书)进行语音通话或视频通话过程中的语音数据或语音消息,音乐,播放视频时的语音数据等等。视频数据可以包括:利用应用程序(如,微信,脸书)进行进行视频通话过程中的图像数据,播放视频时的图像数据等等。In the following, the first service may refer to a service requiring high-speed transmission of large amounts of data. In some embodiments, the first service may be a voice service (such as voice calls or using applications (such as WeChat, Facebook) for voice calls) or video services (such as video playback or using Application (e.g. WeChat, Facebook) for video calls). Correspondingly, the data of the first service may include audio data and video data. Audio data may include: voice data during a call, voice data or voice messages during a voice call or video call using an application (eg, WeChat, Facebook), music, voice data during video playback, and so on. The video data may include: image data during a video call using an application program (eg, WeChat, Facebook), image data during video playback, and so on.
本申请实施例提供的蓝牙切换方法,可以在没有第一业务时,蓝牙设备能够通过低功耗蓝牙与电子设备保持第一蓝牙连接,实现低功耗待机,通过第一蓝牙连接传输非第一业务的少量的数据;当有第一业务时,蓝牙设备可以自动切换到第二蓝牙连接,能够通过第二蓝牙连接实现高速数据传输。从而,既能使蓝牙设备实现高速数据传输又能实现低功耗长续航,有效地提高了蓝牙设备的用户体验。In the Bluetooth switching method provided by the embodiments of the present application, when there is no first service, the Bluetooth device can maintain the first Bluetooth connection with the electronic device through Bluetooth low energy, so as to realize low power consumption standby, and transmit non-first Bluetooth through the first Bluetooth connection. A small amount of business data; when there is the first business, the Bluetooth device can automatically switch to the second Bluetooth connection, and high-speed data transmission can be realized through the second Bluetooth connection. Thus, the Bluetooth device can achieve high-speed data transmission and low power consumption and long battery life, which effectively improves the user experience of the Bluetooth device.
在一些实施例中,蓝牙设备可以预先存储与需要高速传输大量数据的业务相关的业务标识。例如,可以建立一个业务标识库,业务标识库包括至少一个业务标识。在蓝牙设备获取到当前业务标识之后,将当前业务标识与业务标识库中的业务标识进行 比对,若业务标识库涵盖当前业务标识,蓝牙设备可以确定当前业务标识对应的业务不是大数据流的业务,无需使用传统蓝牙装置传输当前业务标识对应的业务的数据。In some embodiments, the Bluetooth device may pre-store service identifiers related to services that require high-speed transmission of large amounts of data. For example, a business identification library can be established, and the business identification library includes at least one business identification. After the Bluetooth device obtains the current service ID, it compares the current service ID with the service ID in the service ID library. If the service ID library covers the current service ID, the Bluetooth device can determine that the service corresponding to the current service ID is not a big data stream. For business, there is no need to use a traditional Bluetooth device to transmit the data of the business corresponding to the current business identifier.
所述蓝牙设备可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。The Bluetooth device may be a wearable device. Wearable devices can also be called wearable smart devices. It is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. Wearable devices are not only a hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include full-featured, large-sized, complete or partial functions that can be achieved without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to cooperate with other devices such as smart phones. Use, such as various smart bracelets and smart jewelry for physical sign monitoring.
下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
图1示出的是可以应用于本申请实施例的通信系统的架构示例图。如图1所示,该通信系统包括蓝牙设备101和电子设备102。蓝牙设备101与电子设备102可以采用蓝牙建立蓝牙连接。其中,蓝牙设备101可以包括低功耗蓝牙装置1011、传统蓝牙装置1012和处理器1013。蓝牙设备101可以通过低功耗蓝牙装置1011与电子设备102建立第一蓝牙连接。蓝牙设备101还可以通过传统蓝牙装置1012与电子设备102建立第二蓝牙连接。基于建立的上述蓝牙连接,蓝牙设备101与电子设备102之间可以实现短距离的数据交互。FIG. 1 shows an example diagram of the architecture of a communication system that can be applied to embodiments of the present application. As shown in FIG. 1, the communication system includes a Bluetooth device 101 and an electronic device 102. The Bluetooth device 101 and the electronic device 102 can use Bluetooth to establish a Bluetooth connection. The Bluetooth device 101 may include a low-power Bluetooth device 1011, a traditional Bluetooth device 1012, and a processor 1013. The Bluetooth device 101 can establish a first Bluetooth connection with the electronic device 102 through the Bluetooth low energy device 1011. The Bluetooth device 101 can also establish a second Bluetooth connection with the electronic device 102 through the traditional Bluetooth device 1012. Based on the established Bluetooth connection, the Bluetooth device 101 and the electronic device 102 can realize short-distance data interaction.
在一些实施例中,处理器1013确定无第一业务时,可以控制传统蓝牙装置1012下电,断开传统蓝牙装置1012与电子设备102间的第二蓝牙连接。在处理器1013确定有第一业务时,可以控制传统蓝牙装置1012上电,传统蓝牙装置1012与电子设备102建立第二蓝牙连接。In some embodiments, when the processor 1013 determines that there is no first service, it can control the traditional Bluetooth device 1012 to power off and disconnect the second Bluetooth connection between the traditional Bluetooth device 1012 and the electronic device 102. When the processor 1013 determines that there is the first service, it can control the traditional Bluetooth device 1012 to power on, and the traditional Bluetooth device 1012 establishes a second Bluetooth connection with the electronic device 102.
所谓上电可以是指对传统蓝牙装置1012通电。所谓下电可以是指对传统蓝牙装置1012断电。The so-called power-on may refer to powering on the traditional Bluetooth device 1012. The so-called powering off may refer to powering off the traditional Bluetooth device 1012.
在一些实施例中,蓝牙设备101可以是智能手表。智能手表与电子设备102之间可以基于上述第二蓝牙连接进行音频数据的传输。如,基于上述第二蓝牙连接,智能手表可以作为电子设备102的音频输入/输出设备实现通话。又如,基于上述第二蓝牙连接,智能手表可以作为电子设备102的输出设备,如扬声器播放音乐等。In some embodiments, the Bluetooth device 101 may be a smart watch. The smart watch and the electronic device 102 may perform audio data transmission based on the above-mentioned second Bluetooth connection. For example, based on the aforementioned second Bluetooth connection, the smart watch can be used as an audio input/output device of the electronic device 102 to implement a call. For another example, based on the aforementioned second Bluetooth connection, the smart watch can be used as an output device of the electronic device 102, such as a speaker for playing music.
示例的,如图2所示,为本申请一实施例提供的一种智能手表的结构示例图。智能手表可以包括:处理器201、存储器202、传感器203、至少一个受话器204、至少一个麦克风205、电源206、低功耗蓝牙装置207和传统蓝牙装置208。Illustratively, as shown in FIG. 2, it is a structural example diagram of a smart watch provided by an embodiment of this application. The smart watch may include: a processor 201, a memory 202, a sensor 203, at least one receiver 204, at least one microphone 205, a power supply 206, a Bluetooth low energy device 207, and a traditional Bluetooth device 208.
其中,存储器202可以用于存储应用程序代码,如使得智能手表与上述电子设备102进行配对的应用程序代码。处理器201可以控制执行上述应用程序代码,以实现本实施例中智能手表的功能。The memory 202 may be used to store application program codes, such as application program codes that enable the smart watch to pair with the aforementioned electronic device 102. The processor 201 may control the execution of the above-mentioned application program code to realize the function of the smart watch in this embodiment.
存储器202中还可以存储有用于唯一标识该智能手表的蓝牙地址。另外,该存储器202中还可以存储有与该智能手表之前成功配对过的电子设备的连接数据。例如,该连接数据可以是与该智能手表成功配对过的电子设备的蓝牙地址。基于该连接数据,该智能手表能够与该电子设备自动配对,而不必配置与其之间的连接,如进行合法性验证等。上述蓝牙地址可以为媒体访问控制(media access control,MAC)地址。The memory 202 may also store a Bluetooth address for uniquely identifying the smart watch. In addition, the memory 202 may also store connection data of an electronic device successfully paired with the smart watch before. For example, the connection data may be the Bluetooth address of the electronic device successfully paired with the smart watch. Based on the connection data, the smart watch can automatically pair with the electronic device without configuring the connection between it, such as performing legality verification. The aforementioned Bluetooth address may be a media access control (media access control, MAC) address.
传感器203可以为距离传感器或接近光传感器。智能手表的处理器201可以通过该传感器203确定是否被用户佩戴。例如,智能手表的处理器201可以利用接近光传感器来检测智能手表附近是否有物体,从而确定智能手表是否被用户佩戴。在确定智能手表被佩戴时,智能手表的处理器201可以打开受话器204。在一些实施例中,该智能手表还可以包括骨传导传感器,结合成骨传导耳机。该骨传导传感器可以获取声部振动骨块的振动信号,处理器201解析出语音信号,实现语音信号对应的控制功能。在另一些实施例中,该智能手表还可以包括触摸传感器或压力传感器,分别用于检测用户的触摸操作和按压操作。在另一些实施例中,该智能手表还可以包括指纹传感器,用于检测用户指纹,识别用户身份等。在另一些实施例中,该智能手表还可以包括环境光传感器,智能手表的处理器201可以根据该环境光传感器感知的环境光的亮度,自适应调节一些参数,如音量大小。The sensor 203 may be a distance sensor or a proximity light sensor. The processor 201 of the smart watch can use the sensor 203 to determine whether it is worn by the user. For example, the processor 201 of the smart watch may use the proximity light sensor to detect whether there is an object near the smart watch, thereby determining whether the smart watch is worn by the user. When it is determined that the smart watch is worn, the processor 201 of the smart watch may turn on the receiver 204. In some embodiments, the smart watch may also include a bone conduction sensor combined with a bone conduction headset. The bone conduction sensor can obtain the vibration signal of the vibrating bone block of the voice, and the processor 201 parses the voice signal to realize the control function corresponding to the voice signal. In other embodiments, the smart watch may further include a touch sensor or a pressure sensor, which are used to detect the touch operation and the pressing operation of the user, respectively. In other embodiments, the smart watch may also include a fingerprint sensor for detecting user fingerprints, identifying user identity, and so on. In other embodiments, the smart watch may further include an ambient light sensor, and the processor 201 of the smart watch may adaptively adjust some parameters, such as the volume level, according to the brightness of the ambient light sensed by the ambient light sensor.
低功耗蓝牙装置207用于与电子设备102建立第一蓝牙连接。传统蓝牙装置208用于与电子设备102建立第二蓝牙连接。使得智能手表与电子设备102进行短距离数据交互。受话器204,也可以称为“听筒”,可以用于将音频电信号转换成声音信号并播放。例如,当智能手表作为上述电子设备102的音频输出设备时,受话器204可以将接收到的音频电信号转换为声音信号并播放。The Bluetooth low energy device 207 is used to establish a first Bluetooth connection with the electronic device 102. The traditional Bluetooth device 208 is used to establish a second Bluetooth connection with the electronic device 102. The smart watch and the electronic device 102 are allowed to perform short-distance data interaction. The receiver 204, which may also be referred to as a "earpiece", may be used to convert audio electrical signals into sound signals and play them. For example, when the smart watch is used as the audio output device of the aforementioned electronic device 102, the receiver 204 may convert the received audio electrical signal into a sound signal and play it.
麦克风205,也可以称为“话筒”,“传声器”,用于将声音信号转换为音频电信号。例如,当智能手表作为上述电子设备102的音频输入设备时,在用户说话(如通话或发语音消息)时,麦克风205可以采集用户的声音信号,并将其转换为音频电信号。上述音频电信号即为本实施例中的音频数据。The microphone 205, which may also be called a "microphone" or a "microphone", is used to convert sound signals into audio electrical signals. For example, when the smart watch is used as the audio input device of the aforementioned electronic device 102, the microphone 205 can collect the user's voice signal and convert it into an audio electrical signal when the user speaks (such as making a call or sending a voice message). The above audio electrical signal is the audio data in this embodiment.
电源206,可以用于向智能手表包含的各个部件供电。在一些实施例中,该电源206可以是电池,如可充电电池。The power supply 206 can be used to supply power to various components included in the smart watch. In some embodiments, the power source 206 may be a battery, such as a rechargeable battery.
可以理解的是,本实施例示意的结构并不构成对智能手表的具体限定。其可以具有比图2中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。例如,该智能手表还可以包括指示灯(可以指示电量等状态)、防尘网(可以配合听筒使用)等部件。图2中所示出的各种部件可以在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the smart watch. It may have more or fewer components than shown in FIG. 2, may combine two or more components, or may have a different component configuration. For example, the smart watch may also include an indicator light (which can indicate power and other status), a dust-proof net (which can be used with a handset) and other components. The various components shown in FIG. 2 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing or application specific integrated circuits.
需要说明的是,智能手表可以包括左耳塞和右耳塞。左耳塞和右耳塞的结构可以相同。例如,智能手表的左耳塞和右耳塞可以都包括图2中所示的部件。或者,智能手表的左耳塞和右耳塞的结构也可以不同。例如,智能手表的一个耳塞(如右耳塞)可以包括图2中所示的部件,而另一个耳塞(如左耳塞)可以包括图2中除麦克风206之外的其他的部件。It should be noted that the smart watch may include a left earplug and a right earplug. The structure of the left earplug and the right earplug may be the same. For example, the left earplug and the right earplug of the smart watch may both include the components shown in FIG. 2. Or, the structure of the left earplug and the right earplug of the smart watch may also be different. For example, one earplug (such as the right earplug) of the smart watch may include the components shown in FIG. 2, and the other earplug (such as the left earplug) may include other components except the microphone 206 in FIG. 2.
可选的,蓝牙设备101还可以是以下设备中的任一种,如:蓝牙音箱,蓝牙手环,蓝牙车载,蓝牙智能眼镜等,本申请实施例对蓝牙设备的具体形态不作限定。Optionally, the Bluetooth device 101 may also be any one of the following devices, such as: a Bluetooth speaker, a Bluetooth bracelet, a Bluetooth car, a Bluetooth smart glasses, etc. The embodiment of the application does not limit the specific form of the Bluetooth device.
在一些实施例中,电子设备102可以是手机(如图1中所示)、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备、媒体播放器、电视机等设备,本实施例对该设备的具体形态不作特殊限制。In some embodiments, the electronic device 102 may be a mobile phone (as shown in FIG. 1), a tablet computer, a desktop computer, a laptop, a handheld computer, a notebook computer, or an ultra-mobile personal computer (UMPC). , Netbooks, and cellular phones, personal digital assistants (personal digital assistants, PDAs), augmented reality (AR)\virtual reality (VR) devices, media players, televisions and other devices. The specific form of the equipment is not subject to special restrictions.
在本申请一实施例中,电子设备102的结构可以如图3所示,为本申请实施例提供的一种图1所示的通信系统中的电子设备的结构示意图。In an embodiment of the present application, the structure of the electronic device 102 may be as shown in FIG. 3, which is a schematic structural diagram of the electronic device in the communication system shown in FIG. 1 provided by this embodiment of the present application.
如图3所示,电子设备102可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in FIG. 3, the electronic device 102 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, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , The display screen 194, and the subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本实施例示意的结构并不构成对电子设备102的具体限定。在另一些实施例中,电子设备102可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 102. In other embodiments, the electronic device 102 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备102的结构限定。在本申请另一些实施例中,电子设备102也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in this embodiment is merely a schematic description, and does not constitute a structural limitation of the electronic device 102. In other embodiments of the present application, the electronic device 102 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备102的无线充电线圈接收无线充电输入。充电管理模块140为电池 142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 102. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电子设备102的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 102 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备102中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 102 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备102上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 102. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备102上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 102, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
在一些实施例中,电子设备102的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备102可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导 航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 102 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 102 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备102通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 102 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
其中,内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备102的各种功能应用以及数据处理。例如,在本实施例中,处理器110可以通过执行存储在内部存储器121中的指令,实现蓝牙切换功能。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备102使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备102的各种功能应用以及数据处理。The internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 102 by running instructions stored in the internal memory 121. For example, in this embodiment, the processor 110 may implement the Bluetooth switching function by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 102. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 102 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
其中,触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备102的表面,与显示屏194所处的位置不同。Among them, the touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 102, which is different from the position of the display screen 194.
接下来,结合附图对具体实施方式进行详细描述。为了便于描述,下面以电子设备是手机为例说明。蓝牙设备包括处理器、低功耗蓝牙装置和传统蓝牙装置。图4为本申请实施例提供的一种蓝牙切换方法的流程图,如图4所示,该方法可以包括:Next, specific implementations will be described in detail with reference to the drawings. For ease of description, the electronic device is a mobile phone as an example. Bluetooth devices include processors, low-power Bluetooth devices and traditional Bluetooth devices. Fig. 4 is a flowchart of a Bluetooth handover method provided by an embodiment of the application. As shown in Fig. 4, the method may include:
S401、手机与蓝牙设备中的低功耗蓝牙装置建立第一蓝牙连接。S401. The mobile phone establishes a first Bluetooth connection with a Bluetooth low energy device in the Bluetooth device.
S402、手机与蓝牙设备中的传统蓝牙装置建立第二蓝牙连接。S402: The mobile phone establishes a second Bluetooth connection with the traditional Bluetooth device in the Bluetooth device.
用户可以对手机进行操作,手机与蓝牙设备中的低功耗蓝牙装置建立第一蓝牙连接,以及手机与蓝牙设备中的传统蓝牙装置建立第二蓝牙连接。其中,第一蓝牙连接为BLE连接。第一蓝牙连接为BLE连接。The user can operate the mobile phone, the mobile phone establishes a first Bluetooth connection with the Bluetooth low energy device in the Bluetooth device, and the mobile phone establishes a second Bluetooth connection with the traditional Bluetooth device in the Bluetooth device. Among them, the first Bluetooth connection is a BLE connection. The first Bluetooth connection is a BLE connection.
在手机与蓝牙设备进行初次蓝牙连接之前,需要与蓝牙设备进行配对、鉴权,在手机与蓝牙设备配对并鉴权成功后,手机才可以与蓝牙设备进行蓝牙连接。例如,手机与蓝牙设备可以采用密钥进行配对。在手机与蓝牙设备配对并鉴权成功后,可以保存密钥,以便手机再次与蓝牙设备建立连接时使用。具体的配对方法和连接方法可以参考现有技术,不予赘述。Before the first Bluetooth connection between the mobile phone and the bluetooth device, it needs to be paired and authenticated with the bluetooth device. After the mobile phone is paired with the bluetooth device and authenticated successfully, the mobile phone can be connected with the bluetooth device. For example, a mobile phone and a Bluetooth device can be paired with a key. After the mobile phone is paired with the Bluetooth device and authenticated successfully, the key can be saved for use when the mobile phone establishes a connection with the Bluetooth device again. The specific pairing method and connection method can refer to the prior art, which will not be repeated.
在一些实施例中,手机包括低功耗蓝牙装置和传统蓝牙装置。手机与蓝牙设备中的传统蓝牙装置建立第二蓝牙连接可以替换描述为手机中的传统蓝牙装置与蓝牙设备中的传统蓝牙装置建立第二蓝牙连接。手机与蓝牙设备中的低功耗蓝牙装置建立第一 蓝牙连接可以替换描述为手机中的低功耗蓝牙装置与蓝牙设备中的低功耗蓝牙装置建立第一蓝牙连接。In some embodiments, the mobile phone includes a Bluetooth low energy device and a traditional Bluetooth device. The establishment of the second Bluetooth connection between the mobile phone and the traditional Bluetooth device in the Bluetooth device can be replaced by the description that the traditional Bluetooth device in the mobile phone establishes the second Bluetooth connection with the traditional Bluetooth device in the Bluetooth device. The establishment of the first Bluetooth connection between the mobile phone and the Bluetooth low energy device in the Bluetooth device may alternatively be described as the establishment of the first Bluetooth connection between the Bluetooth low energy device in the mobile phone and the Bluetooth low energy device in the Bluetooth device.
操作可以是用户输入的手势或语音指令。所述手势可以为单击手势、滑动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种。The operation can be a gesture or voice command input by the user. The gesture may be any one of a single click gesture, a sliding gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double tap gesture.
示例的,图5A为本申请一实施例提供的一种蓝牙连接过程示例图。如图5A中的(a)所示,为本申请实施例提供的手机的正面示意图。在用户主界面,用户按照滑动轨迹501执行滑动操作。如图5A中的(b)所示,手机响应于该滑动操作,显示下拉菜单502,该下拉菜单502中包括蓝牙图标503。用户可以点击蓝牙图标503,如图5A中的(c)所示,手机响应于该点击操作,显示蓝牙的用户界面,手机可以自动扫描到附近的蓝牙设备,蓝牙的用户界面可以包括扫描到的蓝牙设备的标识504(如:MAC地址)。在另外一些实施例中,蓝牙的用户界面还可以包括每个蓝牙设备的标识对应的连接按键505。用户可以点击蓝牙设备的标识504或蓝牙设备的标识对应的连接按键505,手机响应于该点击操作,与蓝牙设备建立第一蓝牙连接和第二蓝牙连接,并执行S403。在另外一些实施例中,如图5A中的(d)所示,手机响应于该点击操作,蓝牙的用户界面还可以包括蓝牙设备的标识对应的已连接按键506。需要说明的是,这里的“已连接”可以表示第二蓝牙连接和第一蓝牙连接均已连接。By way of example, FIG. 5A is an example diagram of a Bluetooth connection process provided by an embodiment of this application. As shown in (a) of FIG. 5A, it is a schematic front view of a mobile phone provided by an embodiment of this application. In the main user interface, the user performs a sliding operation according to the sliding track 501. As shown in (b) of FIG. 5A, the mobile phone displays a pull-down menu 502 in response to the sliding operation, and the pull-down menu 502 includes a Bluetooth icon 503. The user can click the Bluetooth icon 503, as shown in (c) in Figure 5A, the mobile phone displays the Bluetooth user interface in response to the click operation, the mobile phone can automatically scan for nearby Bluetooth devices, and the Bluetooth user interface can include the scanned The identification 504 of the Bluetooth device (e.g., MAC address). In some other embodiments, the Bluetooth user interface may further include a connection button 505 corresponding to the identification of each Bluetooth device. The user can click the identification 504 of the Bluetooth device or the connection button 505 corresponding to the identification of the Bluetooth device. In response to the click operation, the mobile phone establishes a first Bluetooth connection and a second Bluetooth connection with the Bluetooth device, and executes S403. In other embodiments, as shown in (d) of FIG. 5A, the mobile phone responds to the click operation, and the Bluetooth user interface may further include a connected button 506 corresponding to the identification of the Bluetooth device. It should be noted that “connected” here may mean that both the second Bluetooth connection and the first Bluetooth connection are connected.
在另一些实施例中,如图5A中的(c)所示,用户界面还可以包括全部连接按键507,用户可以点击全部连接按键507,手机响应于点击操作,与扫描到的所有蓝牙设备建立第二蓝牙连接和第一蓝牙连接,并执行S403。In other embodiments, as shown in (c) in FIG. 5A, the user interface may also include all connection buttons 507. The user can click all connection buttons 507, and the mobile phone will establish a connection with all the scanned bluetooth devices in response to the click operation. The second Bluetooth connection and the first Bluetooth connection, and S403 is executed.
S403、蓝牙设备的处理器确定无第一业务,控制传统蓝牙装置下电。S403. The processor of the Bluetooth device determines that there is no first service, and controls the traditional Bluetooth device to power off.
在一些实施例中,蓝牙设备的处理器可以控制传统蓝牙装置下电,即停止给传统蓝牙装置供电,使传统蓝牙装置停止工作。手机检测到与传统蓝牙装置连接超时,断开与蓝牙设备的传统蓝牙装置的第二蓝牙连接。In some embodiments, the processor of the Bluetooth device can control the power-off of the traditional Bluetooth device, that is, stop supplying power to the traditional Bluetooth device, so that the traditional Bluetooth device stops working. The mobile phone detects that the connection with the traditional Bluetooth device has timed out, and disconnects the second Bluetooth connection with the traditional Bluetooth device of the Bluetooth device.
在断开蓝牙设备的传统蓝牙装置与手机的第二蓝牙连接后,蓝牙设备和手机可以保存有已配对的设备标识(如:MAC地址),以便于蓝牙设备的传统蓝牙装置可以根据已配对的设备标识与手机再次建立第二蓝牙连接。After the traditional Bluetooth device of the Bluetooth device is disconnected from the second Bluetooth connection of the mobile phone, the Bluetooth device and the mobile phone can store the paired device identification (such as MAC address) so that the traditional Bluetooth device of the Bluetooth device can be based on the paired The device identifier establishes a second Bluetooth connection with the mobile phone again.
示例的,在蓝牙设备断开与手机建立的第二蓝牙连接之后,如图5B所示,蓝牙的用户界面可以包括蓝牙设备的标识对应的蓝牙1按键508和蓝牙2按键509。这里的“蓝牙1”可以表示第一蓝牙连接已连接,第二蓝牙连接已断开。“蓝牙2”可以表示第二蓝牙连接已连接,第一蓝牙连接已断开。在另外一些实施例中,这里的“蓝牙2”可以表示第一蓝牙连接已连接,第二蓝牙连接已断开。“蓝牙1”可以表示第二蓝牙连接已连接,第一蓝牙连接已断开。本申请实施例对此不作限定。For example, after the Bluetooth device disconnects the second Bluetooth connection established with the mobile phone, as shown in FIG. 5B, the Bluetooth user interface may include the Bluetooth 1 button 508 and the Bluetooth 2 button 509 corresponding to the identification of the Bluetooth device. Here "Bluetooth 1" can indicate that the first Bluetooth connection is connected and the second Bluetooth connection is disconnected. "Bluetooth 2" may indicate that the second Bluetooth connection is connected and the first Bluetooth connection is disconnected. In other embodiments, "Bluetooth 2" here may indicate that the first Bluetooth connection is connected and the second Bluetooth connection is disconnected. "Bluetooth 1" may indicate that the second Bluetooth connection is connected and the first Bluetooth connection is disconnected. The embodiments of this application do not limit this.
需要说明的是,在蓝牙设备断开与手机建立的第二蓝牙连接之后,蓝牙设备与手机保持第一蓝牙连接,以便于蓝牙设备与手机之间利用第一蓝牙连接传输数据量较少的数据流。It should be noted that after the Bluetooth device disconnects the second Bluetooth connection established with the mobile phone, the Bluetooth device maintains the first Bluetooth connection with the mobile phone, so that the Bluetooth device and the mobile phone can use the first Bluetooth connection to transmit data with a smaller amount of data. flow.
若手机确定有第一业务,手机与蓝牙设备可以重建第二蓝牙连接,通过手机与蓝牙设备的第二蓝牙连接传输第一业务的数据。如下S404~S407的阐述。If the mobile phone is determined to have the first service, the mobile phone and the Bluetooth device can re-establish a second Bluetooth connection, and the data of the first service is transmitted through the second Bluetooth connection between the mobile phone and the Bluetooth device. S404 ~ S407 are described below.
S404、蓝牙设备的处理器确定有第一业务,控制传统蓝牙装置上电。S404: The processor of the Bluetooth device determines that there is the first service, and controls the traditional Bluetooth device to power on.
在一些实施例中,蓝牙设备的处理器可以自己启动第一业务。当蓝牙设备启动了 第一业务,蓝牙设备的处理器可以确定有第一业务,执行S405。例如,蓝牙设备是蓝牙智能眼镜,第一业务可以是视频业务,蓝牙智能眼镜开启后,开启了视频播放功能,蓝牙智能眼镜可以确定视频业务启动。In some embodiments, the processor of the Bluetooth device can initiate the first service by itself. When the Bluetooth device starts the first service, the processor of the Bluetooth device can determine that there is the first service, and execute S405. For example, the Bluetooth device is Bluetooth smart glasses, and the first service may be a video service. After the Bluetooth smart glasses are turned on, the video playback function is turned on, and the Bluetooth smart glasses can determine that the video service is started.
在另一些实施例中,蓝牙设备可以根据接收到的消息确定有第一业务。如图6所示,蓝牙设备确定有第一业务可以包括以下步骤。In other embodiments, the Bluetooth device may determine that there is the first service according to the received message. As shown in FIG. 6, determining that the Bluetooth device has the first service may include the following steps.
S4041、手机向蓝牙设备的低功耗蓝牙装置发送第一业务的请求消息。S4041. The mobile phone sends a request message for the first service to the Bluetooth low energy device of the Bluetooth device.
在手机确定第一业务启动之后,可以向蓝牙设备发送第一业务的请求消息。其中,第一业务的请求消息包括第一业务的标识。在一些实施例中,手机可以通过第一蓝牙连接向蓝牙设备发送第一业务的请求消息。After the mobile phone determines that the first service is started, it can send a request message for the first service to the Bluetooth device. Wherein, the request message of the first service includes the identifier of the first service. In some embodiments, the mobile phone may send a request message for the first service to the Bluetooth device through the first Bluetooth connection.
S4042、蓝牙设备的低功耗蓝牙装置接收手机发送的第一业务的请求消息。S4042. The Bluetooth low energy device of the Bluetooth device receives the request message of the first service sent by the mobile phone.
蓝牙设备的低功耗蓝牙装置通过与手机建立的第一蓝牙连接接收第一业务的请求消息。The Bluetooth low energy device of the Bluetooth device receives the request message of the first service through the first Bluetooth connection established with the mobile phone.
S4043、蓝牙设备的处理器根据第一业务的标识控制传统蓝牙装置上电。S4043. The processor of the Bluetooth device controls the traditional Bluetooth device to be powered on according to the identifier of the first service.
第一业务的请求消息可以包括第一业务的标识。蓝牙设备的低功耗蓝牙装置接收到手机发送的第一业务的请求消息之后,蓝牙设备的处理器可以根据第一业务的标识确定手机与蓝牙设备之间需要传输第一业务的数据,蓝牙设备便与手机建立第二蓝牙连接。The request message of the first service may include the identifier of the first service. After the Bluetooth low energy device of the Bluetooth device receives the request message for the first service sent by the mobile phone, the processor of the Bluetooth device can determine, according to the identifier of the first service, that the data of the first service needs to be transmitted between the mobile phone and the Bluetooth device, and the Bluetooth device A second Bluetooth connection is established with the mobile phone.
在一些实施例中,蓝牙设备可以预先存储与需要高速传输大量数据的业务相关的业务标识。例如,可以建立一个业务标识库,业务标识库包括至少一个业务标识。在蓝牙设备获取到第一业务的标识之后,将第一业务的标识与业务标识库中的业务标识进行比对,若业务标识库涵盖第一业务的标识,蓝牙设备可以确定手机与蓝牙设备之间需要传输第一业务的数据,控制传统蓝牙装置上电。In some embodiments, the Bluetooth device may pre-store service identifiers related to services that require high-speed transmission of large amounts of data. For example, a business identification library can be established, and the business identification library includes at least one business identification. After the Bluetooth device obtains the identity of the first service, it compares the identity of the first service with the service identity in the service identity database. If the service identity database covers the identity of the first service, the Bluetooth device can determine the difference between the mobile phone and the Bluetooth device. It is necessary to transmit the data of the first service and control the power on of the traditional Bluetooth device.
蓝牙设备的处理器控制传统蓝牙装置上电,即给传统蓝牙装置供电,使传统蓝牙装置开始工作,传统蓝牙装置与手机建立第二蓝牙连接。蓝牙设备保存有已配对的设备标识(如:MAC地址),从而,蓝牙设备的传统蓝牙装置可以根据已配对的设备标识与手机再次建立第二蓝牙连接。The processor of the Bluetooth device controls the power on of the traditional Bluetooth device, that is, supplies power to the traditional Bluetooth device, so that the traditional Bluetooth device starts to work, and the traditional Bluetooth device establishes a second Bluetooth connection with the mobile phone. The Bluetooth device stores the paired device identification (for example: MAC address), so that the traditional Bluetooth device of the Bluetooth device can establish a second Bluetooth connection with the mobile phone again according to the paired device identification.
S405、蓝牙设备中的传统蓝牙装置与手机建立第二蓝牙连接。S405. The traditional Bluetooth device in the Bluetooth device establishes a second Bluetooth connection with the mobile phone.
在一些实施例中,如图6所示,蓝牙设备与手机建立第二蓝牙连接可以包括以下步骤。In some embodiments, as shown in FIG. 6, establishing a second Bluetooth connection between the Bluetooth device and the mobile phone may include the following steps.
S4051、蓝牙设备的传统蓝牙装置向手机发送传统蓝牙建立请求消息。S4051. The traditional Bluetooth device of the Bluetooth device sends a traditional Bluetooth establishment request message to the mobile phone.
在一些实施例中,传统蓝牙建立请求消息包括蓝牙设备的设备标识。In some embodiments, the traditional Bluetooth setup request message includes the device identification of the Bluetooth device.
S4052、手机接收蓝牙设备的传统蓝牙装置发送的传统蓝牙建立请求消息。S4052. The mobile phone receives the traditional Bluetooth establishment request message sent by the traditional Bluetooth device of the Bluetooth device.
手机接收到蓝牙设备的传统蓝牙装置发送的传统蓝牙建立请求消息后,蓝牙设备的传统蓝牙装置可以根据已配对的设备标识与手机再次建立第二蓝牙连接。After the mobile phone receives the traditional Bluetooth establishment request message sent by the traditional Bluetooth device of the Bluetooth device, the traditional Bluetooth device of the Bluetooth device can establish a second Bluetooth connection with the mobile phone again according to the paired device identifier.
在另一些实施例中,蓝牙设备的低功耗蓝牙装置可以通过第一蓝牙连接向手机发送传统蓝牙建立请求消息。手机通过第一蓝牙连接接收蓝牙设备的低功耗蓝牙装置发送的传统蓝牙建立请求消息。从而,蓝牙设备与手机建立第二蓝牙连接。In other embodiments, the Bluetooth low energy device of the Bluetooth device may send a traditional Bluetooth establishment request message to the mobile phone through the first Bluetooth connection. The mobile phone receives the traditional Bluetooth establishment request message sent by the Bluetooth low energy device of the Bluetooth device through the first Bluetooth connection. Thus, the Bluetooth device establishes a second Bluetooth connection with the mobile phone.
S406、蓝牙设备的传统蓝牙装置通过第二蓝牙连接与手机传输第一业务的数据。S406: The traditional Bluetooth device of the Bluetooth device transmits the data of the first service to the mobile phone through the second Bluetooth connection.
在蓝牙设备与手机建立完成第二蓝牙连接之后,手机可以根据第一业务的标识选 择通过第二蓝牙连接与蓝牙设备的传统蓝牙装置传输第一业务的数据,实现第一业务的数据的高速传输。After the Bluetooth device and the mobile phone have established the second Bluetooth connection, the mobile phone can choose to transmit the data of the first service with the traditional Bluetooth device of the Bluetooth device through the second Bluetooth connection according to the identity of the first service, so as to realize the high-speed transmission of the data of the first service .
S407、蓝牙设备的处理器确定第一业务传输结束,控制传统蓝牙装置下电。S407: The processor of the Bluetooth device determines that the first service transmission is completed, and controls the traditional Bluetooth device to power off.
在一些实施例中,当蓝牙设备确定第一业务的数据已传输完成,蓝牙设备可以确定第一业务传输结束。蓝牙设备的处理器可以控制传统蓝牙装置下电,即停止给传统蓝牙装置供电,使传统蓝牙装置停止工作,断开传统蓝牙装置与手机建立的第二蓝牙连接。手机检测到与传统蓝牙装置连接超时,断开与蓝牙设备的传统蓝牙装置的第二蓝牙连接。In some embodiments, when the Bluetooth device determines that the data of the first service has been transmitted, the Bluetooth device may determine that the first service transmission is completed. The processor of the Bluetooth device can control the power-off of the traditional Bluetooth device, that is, stop supplying power to the traditional Bluetooth device, stop the traditional Bluetooth device from working, and disconnect the second Bluetooth connection established between the traditional Bluetooth device and the mobile phone. The mobile phone detects that the connection with the traditional Bluetooth device has timed out, and disconnects the second Bluetooth connection with the traditional Bluetooth device of the Bluetooth device.
在另一些实施例中,蓝牙设备可以根据接收到的消息确定第一业务传输结束。如图6所示,蓝牙设备确定第一业务传输结束可以包括以下步骤。In other embodiments, the Bluetooth device may determine the end of the first service transmission according to the received message. As shown in FIG. 6, the Bluetooth device determining that the first service transmission ends may include the following steps.
S4071、手机向蓝牙设备的传统蓝牙装置发送第一业务的结束消息。S4071. The mobile phone sends an end message of the first service to the traditional Bluetooth device of the Bluetooth device.
例如,手机可以通过第二蓝牙连接向蓝牙设备发送第一业务的结束消息。其中,第一业务的结束消息包括第一业务的标识。For example, the mobile phone may send an end message of the first service to the Bluetooth device through the second Bluetooth connection. Wherein, the end message of the first service includes the identifier of the first service.
S4072、蓝牙设备的传统蓝牙装置接收手机发送的第一业务的结束消息。S4072. The traditional Bluetooth device of the Bluetooth device receives the end message of the first service sent by the mobile phone.
S4073、蓝牙设备的处理器确定第一业务传输结束,控制传统蓝牙装置下电。S4073. The processor of the Bluetooth device determines that the first service transmission is completed, and controls the traditional Bluetooth device to power off.
本申请实施例提供的蓝牙切换方法,蓝牙设备能够通过低功耗蓝牙装置与手机保持第一蓝牙连接,实现低功耗待机,通过第一蓝牙连接传输少量的数据;当有大数据流的业务请求时,自动切换到第二蓝牙连接,能够通过第二蓝牙连接实现高速数据传输。从而,既能使蓝牙设备实现高速数据传输又能实现低功耗长续航,有效地提高了蓝牙设备的用户体验。In the Bluetooth switching method provided by the embodiments of the present application, the Bluetooth device can maintain the first Bluetooth connection with the mobile phone through the low-power Bluetooth device, realize low-power standby, and transmit a small amount of data through the first Bluetooth connection; when there is a large data stream business When requested, it will automatically switch to the second Bluetooth connection, which can realize high-speed data transmission through the second Bluetooth connection. Thus, the Bluetooth device can achieve high-speed data transmission and low power consumption and long battery life, which effectively improves the user experience of the Bluetooth device.
下面以蓝牙设备是智能手表,蓝牙耳机包括处理器、低功耗蓝牙装置和传统蓝牙装置。电子设备是手机为例,对蓝牙切换方法举例说明。Below, the Bluetooth device is a smart watch, and the Bluetooth headset includes a processor, a low-power Bluetooth device and a traditional Bluetooth device. The electronic device is a mobile phone as an example, and the Bluetooth switching method is illustrated as an example.
示例的,用户通过操作手机与智能手表进行配对建立蓝牙连接。例如,手机的显示屏上显示有蓝牙图标,用户可以点击蓝牙图标,手机响应于点击操作,显示蓝牙的用户界面,手机可以自动扫描到附近的智能手表,蓝牙的用户界面可以包括扫描到的智能手表的MAC地址和智能手表的MAC地址对应的连接按键。用户可以点击智能手表的MAC地址或智能手表的MAC地址对应的连接按键,手机响应于点击操作,手机与智能手表建立第二蓝牙连接和第一蓝牙连接。具体的界面示意可以参考上述图5A的阐述,不予赘述。若智能手表的处理器确定无第一业务,智能手表的处理器控制传统蓝牙装置下电,智能手表的传统蓝牙装置断开与手机建立的第二蓝牙连接。当用户正在开车时,用户的手机接收到了语音来电,手机将语音来电的音频数据通过第一蓝牙连接传输给智能手表的低功耗蓝牙装置,智能手表的低功耗蓝牙装置接收到语音来电的音频数据之后,智能手表的处理器确定语音通话业务启动,智能手表的处理器控制传统蓝牙装置上电,传统蓝牙装置与手机建立第二蓝牙连接。随后,在用户接听语音来电之后,智能手表的传统蓝牙装置与手机可以通过第二蓝牙连接传输语音通话数据。在用户未接听语音来电直接挂断语音来电之后,或者,用户接听语音来电进行通话,再挂断语音来电之后,智能手表的处理器确定语音通话业务传输结束,智能手表的处理器控制传统蓝牙装置下电,再断开与手机重建的第二蓝牙连接,保持与手机的第一蓝牙连接。For example, the user establishes a Bluetooth connection by operating a mobile phone to pair with a smart watch. For example, a Bluetooth icon is displayed on the display of a mobile phone, and the user can click the Bluetooth icon. The mobile phone displays the Bluetooth user interface in response to the click operation. The mobile phone can automatically scan to nearby smart watches. The Bluetooth user interface can include the scanned smart The connection button corresponding to the MAC address of the watch and the MAC address of the smart watch. The user can click the MAC address of the smart watch or the connection button corresponding to the MAC address of the smart watch. In response to the click operation, the mobile phone establishes a second Bluetooth connection and a first Bluetooth connection with the smart watch. For the specific interface diagram, please refer to the above description of FIG. 5A, which will not be repeated. If the processor of the smart watch determines that there is no first service, the processor of the smart watch controls the traditional Bluetooth device to power off, and the traditional Bluetooth device of the smart watch disconnects the second Bluetooth connection established with the mobile phone. When the user is driving, the user’s mobile phone receives a voice call, the mobile phone transmits the audio data of the voice call to the Bluetooth low energy device of the smart watch through the first Bluetooth connection, and the Bluetooth low energy device of the smart watch receives the voice call After the audio data, the processor of the smart watch determines that the voice call service is started, and the processor of the smart watch controls the traditional Bluetooth device to power on, and the traditional Bluetooth device establishes a second Bluetooth connection with the mobile phone. Subsequently, after the user answers the voice call, the traditional Bluetooth device of the smart watch and the mobile phone can transmit voice call data through the second Bluetooth connection. After the user directly hangs up the voice call without answering the voice call, or after the user answers the voice call and then hangs up the voice call, the smart watch processor determines that the voice call service transmission is over, and the smart watch processor controls the traditional Bluetooth device Power off, then disconnect the second Bluetooth connection with the mobile phone, and maintain the first Bluetooth connection with the mobile phone.
上述各实施例中,分别从蓝牙设备、电子设备、以及蓝牙设备和电子设备之间交互的角度对本申请实施例提供的方法进行了介绍。可以理解的是,各个网元,例如蓝牙设备、电子设备为了实现上述本申请实施例提供的方法中的各功能,蓝牙设备和电子设备包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请各实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。In the foregoing embodiments, the methods provided in the embodiments of the present application are introduced from the perspective of Bluetooth devices, electronic devices, and interactions between Bluetooth devices and electronic devices. It can be understood that, in order for each network element, such as a Bluetooth device and an electronic device, to implement each function in the method provided in the above embodiments of the present application, the Bluetooth device and electronic device include corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of the examples described in the embodiments disclosed in this document, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对蓝牙设备、电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the Bluetooth device and the electronic device into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
本申请另一些实施例还提供了一种蓝牙设备。如图7所示,该蓝牙设备可以包括:一个或多个处理器701、存储器702、通信接口703、受话器704、麦克风705、以及一个或多个计算机程序706、传统蓝牙装置707和低功耗蓝牙装置708;上述各器件可以通过一个或多个通信总线709连接。其中该一个或多个计算机程序706被存储在上述存储器702中,并被配置为被该一个或多个处理器701执行,该一个或多个计算机程序706包括指令,上述指令可以用于执行如图4或图6相应实施例中执行的各个步骤。当然,图7所示的蓝牙设备还可以包括如传感器等其他器件,本申请实施例对此不做任何限制。Other embodiments of this application also provide a Bluetooth device. As shown in FIG. 7, the Bluetooth device may include: one or more processors 701, a memory 702, a communication interface 703, a receiver 704, a microphone 705, and one or more computer programs 706, a traditional Bluetooth device 707, and low power consumption. Bluetooth device 708; the above-mentioned devices can be connected through one or more communication buses 709. The one or more computer programs 706 are stored in the aforementioned memory 702 and are configured to be executed by the one or more processors 701. The one or more computer programs 706 include instructions, and the aforementioned instructions can be used to execute such as The steps performed in the corresponding embodiment of FIG. 4 or FIG. 6. Of course, the Bluetooth device shown in FIG. 7 may also include other devices such as sensors, which are not limited in the embodiment of the present application.
本申请另一些实施例还提供了一种电子设备,如图8所示,该电子设备可以包括:触摸屏801,其中,所述触摸屏801可以包括触敏表面806和显示屏807;一个或多个处理器802;存储器803;以及一个或多个计算机程序804;蓝牙装置808;上述各器件可以通过一个或多个通信总线805连接。其中该一个或多个计算机程序804被存储在上述存储器803中,并被配置为被该一个或多个处理器802执行,该一个或多个计算机程序804包括指令,上述指令可以用于执行如图4或图6相应实施例中电子设备执行的各个步骤。当然,图8所示的电子设备还可以如传感器模块、音频模块以及SIM卡接口等其他器件,本申请实施例对此不做任何限制。当图8所示的电子设备还包括如传感器模块、音频模块以及SIM卡接口等其他器件时,其可以为图3所示的电子设备。Other embodiments of the present application also provide an electronic device. As shown in FIG. 8, the electronic device may include: a touch screen 801, where the touch screen 801 may include a touch-sensitive surface 806 and a display screen 807; one or more The processor 802; the memory 803; and one or more computer programs 804; the Bluetooth device 808; the above-mentioned devices can be connected through one or more communication buses 805. The one or more computer programs 804 are stored in the aforementioned memory 803 and are configured to be executed by the one or more processors 802. The one or more computer programs 804 include instructions, and the aforementioned instructions can be used to execute such as Each step performed by the electronic device in the corresponding embodiment of FIG. 4 or FIG. 6. Of course, the electronic device shown in FIG. 8 may also be other devices such as a sensor module, an audio module, and a SIM card interface, and the embodiment of the present application does not impose any limitation on this. When the electronic device shown in FIG. 8 further includes other devices such as a sensor module, an audio module, and a SIM card interface, it may be the electronic device shown in FIG. 3.
本实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中包括指令,当上述指令在电子设备上运行时,使得该电子设备执行图4或图6中的相关方法步骤,以实现上述实施例中的方法。This embodiment also provides a computer-readable storage medium, which includes instructions, which when executed on an electronic device, cause the electronic device to execute the relevant method steps in FIG. 4 or FIG. 6, To implement the method in the above embodiment.
本实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中包括指令,当上述指令在蓝牙设备上运行时,使得该蓝牙设备执行图4或图6中的相关方法步骤,以实现上述实施例中的方法。This embodiment also provides a computer-readable storage medium, the computer-readable storage medium includes instructions, and when the instructions are run on a Bluetooth device, the Bluetooth device executes the relevant method steps in FIG. 4 or FIG. 6, To implement the method in the above embodiment.
本实施例还提供了一种包含指令的计算机程序产品,当该计算机程序产品在电子 设备上运行时,使得该电子设备执行如图4或图6中的相关方法步骤,以实现上述实施例中的方法。This embodiment also provides a computer program product containing instructions. When the computer program product runs on an electronic device, the electronic device executes the relevant method steps shown in FIG. 4 or FIG. 6, so as to realize the above-mentioned embodiment Methods.
本实施例还提供了一种包含指令的计算机程序产品,当该计算机程序产品在蓝牙设备上运行时,使得该蓝牙设备执行如图4或图6中的相关方法步骤,以实现上述实施例中的方法。This embodiment also provides a computer program product containing instructions. When the computer program product runs on a Bluetooth device, the Bluetooth device executes the relevant method steps shown in FIG. 4 or FIG. 6, so as to realize the above-mentioned embodiment. Methods.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, device, and unit described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not repeated here.
在本实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this embodiment, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be Combined or can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this embodiment essentially 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, and the computer software product is stored in a storage medium. There are several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor execute all or part of the steps of the method described in each embodiment. The aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any change or replacement within the technical scope disclosed in this application shall be covered by the protection scope of this application . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (10)

  1. 一种通信系统,其特征在于,该通信系统包括智能手表和手机,其中,所述智能手表包括处理器和两个独立的蓝牙装置,所述两个独立的蓝牙装置分别为低功耗蓝牙BLE装置和传统蓝牙装置,其中:A communication system, characterized in that the communication system includes a smart watch and a mobile phone, wherein the smart watch includes a processor and two independent Bluetooth devices, and the two independent Bluetooth devices are low-power Bluetooth BLE Devices and traditional Bluetooth devices, including:
    所述BLE装置用于与所述手机建立第一蓝牙连接,所述第一蓝牙连接为BLE连接;The BLE device is used to establish a first Bluetooth connection with the mobile phone, and the first Bluetooth connection is a BLE connection;
    所述手机用于在确定有第一业务时,通过所述第一蓝牙连接向所述智能手表发送所述第一业务的请求消息,所述第一业务的请求消息包括所述第一业务的标识;The mobile phone is configured to send a request message of the first service to the smart watch through the first Bluetooth connection when the first service is determined, and the request message of the first service includes the information of the first service Logo
    所述BLE装置还用于通过所述第一蓝牙连接接收所述第一业务的请求消息;The BLE device is further configured to receive a request message of the first service through the first Bluetooth connection;
    所述智能手表的处理器用于根据所述第一业务的标识控制所述传统蓝牙装置上电;The processor of the smart watch is configured to control the power-on of the traditional Bluetooth device according to the identifier of the first service;
    所述传统蓝牙装置用于与所述手机建立第二蓝牙连接,所述第二蓝牙连接为传统蓝牙连接;The traditional Bluetooth device is used to establish a second Bluetooth connection with the mobile phone, and the second Bluetooth connection is a traditional Bluetooth connection;
    所述传统蓝牙装置还用于通过所述第二蓝牙连接与所述手机传输所述第一业务的数据;The traditional Bluetooth device is also used to transmit data of the first service with the mobile phone through the second Bluetooth connection;
    所述智能手表的处理器还用于确定所述第一业务传输结束时,控制所述传统蓝牙装置下电。The processor of the smart watch is further configured to control the power-off of the traditional Bluetooth device when determining that the first service transmission ends.
  2. 根据权利要求1所述的系统,其特征在于,The system according to claim 1, wherein:
    所述传统蓝牙装置还用于与所述手机建立所述第二蓝牙连接;The traditional Bluetooth device is also used to establish the second Bluetooth connection with the mobile phone;
    所述智能手表的处理器还用于确定无所述第一业务,控制所述传统蓝牙装置下电。The processor of the smart watch is further configured to determine that the first service is not available, and control the power-off of the traditional Bluetooth device.
  3. 一种蓝牙切换方法,其特征在于,应用于蓝牙设备,所述蓝牙设备包括处理器、低功耗蓝牙BLE装置和传统蓝牙装置,所述方法包括:A Bluetooth switching method, characterized in that it is applied to a Bluetooth device, the Bluetooth device includes a processor, a low-power Bluetooth BLE device and a traditional Bluetooth device, and the method includes:
    所述BLE装置与电子设备建立第一蓝牙连接,所述第一蓝牙连接为BLE连接;Establishing a first Bluetooth connection between the BLE device and the electronic device, and the first Bluetooth connection is a BLE connection;
    所述处理器在确定有第一业务时,控制所述传统蓝牙装置上电,所述传统蓝牙装置与所述电子设备建立第二蓝牙连接,所述第二蓝牙连接为传统蓝牙连接;When the processor determines that there is a first service, control the traditional Bluetooth device to power on, the traditional Bluetooth device establishes a second Bluetooth connection with the electronic device, and the second Bluetooth connection is a traditional Bluetooth connection;
    所述传统蓝牙装置通过所述第二蓝牙连接与所述电子设备传输所述第一业务的数据;The traditional Bluetooth device transmits the data of the first service to the electronic device through the second Bluetooth connection;
    所述处理器确定所述第一业务传输结束,控制所述传统蓝牙装置下电。The processor determines that the first service transmission ends, and controls the traditional Bluetooth device to power off.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    所述BLE装置通过所述第一蓝牙连接接收所述第一业务的请求消息,所述第一业务的请求消息包括所述第一业务的标识;Receiving, by the BLE device, a request message of the first service through the first Bluetooth connection, the request message of the first service including an identifier of the first service;
    所述处理器控制所述传统蓝牙装置上电,包括:The processor controlling the power on of the traditional Bluetooth device includes:
    所述处理器根据所述第一业务的标识控制所述传统蓝牙装置上电。The processor controls the power-on of the traditional Bluetooth device according to the identifier of the first service.
  5. 根据权利要求3或4所述的方法,其特征在于,在所述处理器确定有第一业务之前,所述方法还包括:The method according to claim 3 or 4, wherein before the processor determines that there is a first service, the method further comprises:
    所述传统蓝牙装置与所述电子设备建立所述第二蓝牙连接;Establishing the second Bluetooth connection between the traditional Bluetooth device and the electronic device;
    所述处理器确定无所述第一业务,控制所述传统蓝牙装置下电。The processor determines that the first service is not available, and controls the traditional Bluetooth device to power off.
  6. 一种蓝牙设备,其特征在于,所述蓝牙设备包括处理器、低功耗蓝牙BLE装置和传统蓝牙装置,其中:A Bluetooth device, characterized in that the Bluetooth device includes a processor, a low-power Bluetooth BLE device and a traditional Bluetooth device, wherein:
    所述BLE装置用于与电子设备建立第一蓝牙连接,所述第一蓝牙连接为BLE连 接;The BLE device is used to establish a first Bluetooth connection with an electronic device, and the first Bluetooth connection is a BLE connection;
    所述处理器用于在确定有第一业务时,控制所述传统蓝牙装置上电;The processor is configured to control the power-on of the traditional Bluetooth device when it is determined that there is a first service;
    所述传统蓝牙装置用于与所述电子设备建立第二蓝牙连接,所述第二蓝牙连接为传统蓝牙连接;The traditional Bluetooth device is used to establish a second Bluetooth connection with the electronic device, and the second Bluetooth connection is a traditional Bluetooth connection;
    所述传统蓝牙装置还用于通过所述第二蓝牙连接与所述电子设备传输所述第一业务的数据;The traditional Bluetooth device is also used to transmit the data of the first service with the electronic device through the second Bluetooth connection;
    所述处理器还用于确定所述第一业务传输结束,控制所述传统蓝牙装置下电。The processor is further configured to determine the end of the first service transmission, and control the power-off of the traditional Bluetooth device.
  7. 根据权利要求6所述的蓝牙设备,其特征在于,The Bluetooth device according to claim 6, wherein:
    所述BLE装置用于通过所述第一蓝牙连接接收第一业务的请求消息,所述第一业务的请求消息包括所述第一业务的标识;The BLE device is configured to receive a request message for a first service through the first Bluetooth connection, where the request message for the first service includes an identifier of the first service;
    所述处理器用于根据所述第一业务的标识控制所述传统蓝牙装置上电。The processor is configured to control the power-on of the traditional Bluetooth device according to the identifier of the first service.
  8. 根据权利要求6或7所述的蓝牙设备,其特征在于,The Bluetooth device according to claim 6 or 7, characterized in that:
    所述传统蓝牙装置用于与所述电子设备建立所述第二蓝牙连接;The traditional Bluetooth device is used to establish the second Bluetooth connection with the electronic device;
    所述处理器用于确定无所述第一业务,控制所述传统蓝牙装置下电。The processor is configured to determine that the first service is not available, and control the power-off of the traditional Bluetooth device.
  9. 一种计算机可读存储介质,其特征在于,包括:计算机软件指令;A computer-readable storage medium, characterized by comprising: computer software instructions;
    当所述计算机软件指令在蓝牙设备或内置在蓝牙设备的芯片中运行时,使得所述蓝牙设备执行如权利要求3-5中任一项所述的蓝牙切换方法。When the computer software instruction runs in a Bluetooth device or a chip built in the Bluetooth device, the Bluetooth device is caused to execute the Bluetooth switching method according to any one of claims 3-5.
  10. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在蓝牙设备或内置在蓝牙设备的芯片中运行时,使得所述蓝牙设备执行如权利要求3-5中任一项所述的蓝牙切换方法。A computer program product containing instructions, characterized in that, when the computer program product runs in a Bluetooth device or a chip built in the Bluetooth device, the Bluetooth device is caused to execute the method described in any one of claims 3-5 The Bluetooth switching method described.
PCT/CN2020/103358 2019-07-25 2020-07-21 Bluetooth switching method and bluetooth device WO2021013156A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910677545.9A CN110572803A (en) 2019-07-25 2019-07-25 Bluetooth switching method and Bluetooth device
CN201910677545.9 2019-07-25

Publications (1)

Publication Number Publication Date
WO2021013156A1 true WO2021013156A1 (en) 2021-01-28

Family

ID=68773536

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103358 WO2021013156A1 (en) 2019-07-25 2020-07-21 Bluetooth switching method and bluetooth device

Country Status (2)

Country Link
CN (1) CN110572803A (en)
WO (1) WO2021013156A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613226A (en) * 2021-07-30 2021-11-05 上海闻泰信息技术有限公司 Connection method and device of Bluetooth equipment, electronic equipment and storage medium
CN113873589A (en) * 2021-09-18 2021-12-31 深圳市爱都科技有限公司 Bluetooth connection switching method, Bluetooth headset and computer readable storage medium
US20220308650A1 (en) * 2021-03-25 2022-09-29 Dell Products L.P. Information handling system location wakeup radio interface synchronized communications
CN116033597A (en) * 2022-08-08 2023-04-28 荣耀终端有限公司 Bluetooth connection method and device, electronic equipment and storage medium
US11737026B2 (en) 2021-03-25 2023-08-22 Dell Products L.P. Information handling system and peripheral wakeup radio interface synchronized communications
US11943712B2 (en) 2021-03-25 2024-03-26 Dell Products L.P. Information handling system and peripheral group wakeup radio interface synchronized communications
WO2024174664A1 (en) * 2023-02-21 2024-08-29 华为技术有限公司 Bluetooth resource management method, electronic device, and computer readable storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572803A (en) * 2019-07-25 2019-12-13 华为技术有限公司 Bluetooth switching method and Bluetooth device
CN111867150B (en) * 2020-07-29 2022-05-17 青岛交互物联科技有限公司 High-speed data transmission method and system
CN112423280A (en) * 2020-10-27 2021-02-26 上海影创信息科技有限公司 Wireless communication method, system and medium based on Bluetooth private protocol
CN114422992A (en) * 2020-12-08 2022-04-29 Oppo广东移动通信有限公司 Dual-system Bluetooth device and electronic equipment
CN115550891A (en) * 2021-06-29 2022-12-30 华为技术有限公司 Service data transmission method and related equipment
CN113852945B (en) * 2021-10-12 2024-03-29 维沃移动通信有限公司 Electronic equipment and communication method thereof
CN117793836A (en) * 2022-09-21 2024-03-29 Oppo广东移动通信有限公司 Bluetooth switching method and device, bluetooth equipment and computer readable medium
CN117793837A (en) * 2022-09-22 2024-03-29 Oppo广东移动通信有限公司 Bluetooth switching method and device, bluetooth connection method and device and electronic equipment
CN116321084A (en) * 2022-12-08 2023-06-23 Oppo广东移动通信有限公司 Bluetooth communication method, bluetooth communication device, electronic equipment and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506910A (en) * 2014-12-31 2015-04-08 青岛歌尔声学科技有限公司 Remote control method and dual-mode Bluetooth remote controller
CN107135463A (en) * 2017-04-01 2017-09-05 杭州联络互动信息科技股份有限公司 A kind of Bluetooth connecting method and device
US20180103499A1 (en) * 2016-10-06 2018-04-12 Htc Corporation Control method for bluetooth communication and bluetooth low energy communication
CN109788461A (en) * 2017-11-15 2019-05-21 深圳市优必选科技有限公司 Bluetooth dual-mode data communication method and device
CN110572803A (en) * 2019-07-25 2019-12-13 华为技术有限公司 Bluetooth switching method and Bluetooth device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10159044B2 (en) * 2013-12-09 2018-12-18 GM Global Technology Operations LLC Method and apparatus for controlling operating states of bluetooth interfaces of a bluetooth module
CN205263518U (en) * 2015-11-12 2016-05-25 朗昇科技(苏州)有限公司 Low -power consumption intelligence bluetooth wrist -watch
CN106707735A (en) * 2015-11-12 2017-05-24 朗昇科技(苏州)有限公司 Low-power consumption intelligent Bluetooth watch
CN105472542B (en) * 2015-12-16 2019-02-12 深圳智芯数据服务有限公司 A kind of intelligent wearable device based on low-power consumption bluetooth standard and data transmission method of mobile terminal and system
US20170208639A1 (en) * 2016-01-15 2017-07-20 Lg Electronics Inc. Method and apparatus for controlling a device using bluetooth technology
CN106658677B (en) * 2016-11-01 2019-10-08 飞天诚信科技股份有限公司 A kind of Bluetooth communication method and terminal for taking into account communication speed and power consumption

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506910A (en) * 2014-12-31 2015-04-08 青岛歌尔声学科技有限公司 Remote control method and dual-mode Bluetooth remote controller
US20180103499A1 (en) * 2016-10-06 2018-04-12 Htc Corporation Control method for bluetooth communication and bluetooth low energy communication
CN107135463A (en) * 2017-04-01 2017-09-05 杭州联络互动信息科技股份有限公司 A kind of Bluetooth connecting method and device
CN109788461A (en) * 2017-11-15 2019-05-21 深圳市优必选科技有限公司 Bluetooth dual-mode data communication method and device
CN110572803A (en) * 2019-07-25 2019-12-13 华为技术有限公司 Bluetooth switching method and Bluetooth device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220308650A1 (en) * 2021-03-25 2022-09-29 Dell Products L.P. Information handling system location wakeup radio interface synchronized communications
US11737026B2 (en) 2021-03-25 2023-08-22 Dell Products L.P. Information handling system and peripheral wakeup radio interface synchronized communications
US11907039B2 (en) * 2021-03-25 2024-02-20 Dell Products L.P. Information handling system location wakeup radio interface synchronized communications
US11943712B2 (en) 2021-03-25 2024-03-26 Dell Products L.P. Information handling system and peripheral group wakeup radio interface synchronized communications
CN113613226A (en) * 2021-07-30 2021-11-05 上海闻泰信息技术有限公司 Connection method and device of Bluetooth equipment, electronic equipment and storage medium
CN113873589A (en) * 2021-09-18 2021-12-31 深圳市爱都科技有限公司 Bluetooth connection switching method, Bluetooth headset and computer readable storage medium
CN116033597A (en) * 2022-08-08 2023-04-28 荣耀终端有限公司 Bluetooth connection method and device, electronic equipment and storage medium
CN116033597B (en) * 2022-08-08 2023-12-12 荣耀终端有限公司 Bluetooth connection method and device, electronic equipment and storage medium
WO2024174664A1 (en) * 2023-02-21 2024-08-29 华为技术有限公司 Bluetooth resource management method, electronic device, and computer readable storage medium

Also Published As

Publication number Publication date
CN110572803A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
WO2021013156A1 (en) Bluetooth switching method and bluetooth device
WO2021147686A1 (en) Method for guiding intelligent device to access network, and medium, control terminal, and system
CN113382397B (en) Bluetooth connection method, device and system
CN113613238B (en) SIM module management method and electronic equipment
WO2021036835A1 (en) Bluetooth search method and system, and related apparatus
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
WO2021082829A1 (en) Bluetooth connection method and related apparatus
US20220039179A1 (en) Bluetooth Connection Method and Device
WO2020133183A1 (en) Audio data synchronization method and device
CN111405681B (en) Wi-Fi Aware link establishment method, wi-Fi Aware link establishment system, electronic equipment and storage medium
WO2020062344A1 (en) Data transmission method and electronic device
CN112868244A (en) Point-to-multipoint data transmission method and device
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
CN114079893B (en) Bluetooth communication method, terminal device and computer readable storage medium
CN112771828B (en) Audio data communication method and electronic equipment
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
CN112469011A (en) Bluetooth pairing method and related device
WO2020062304A1 (en) File transmission method and electronic device
WO2022242528A1 (en) Volume adjustment method and terminal device
CN112469014A (en) Method and electronic equipment for configuring Bluetooth connection parameters
CN113365274B (en) Network access method and electronic equipment
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
WO2021129128A1 (en) Wireless charging method for mobile terminal and mobile terminal
EP4398613A1 (en) Audio playing method, and electronic device and system
CN116133165A (en) Headset connection system, method, headset, electronic device, and readable storage medium

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: 20844550

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20844550

Country of ref document: EP

Kind code of ref document: A1