WO2018000134A1 - 一种蓝牙连接的方法及终端 - Google Patents

一种蓝牙连接的方法及终端 Download PDF

Info

Publication number
WO2018000134A1
WO2018000134A1 PCT/CN2016/087324 CN2016087324W WO2018000134A1 WO 2018000134 A1 WO2018000134 A1 WO 2018000134A1 CN 2016087324 W CN2016087324 W CN 2016087324W WO 2018000134 A1 WO2018000134 A1 WO 2018000134A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
bluetooth
device information
connection
bluetooth connection
Prior art date
Application number
PCT/CN2016/087324
Other languages
English (en)
French (fr)
Inventor
李家欣
赵朋
陈风
孙渊磊
周喜渝
陈健
杨俊�
章亚
杜丙坚
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP16906538.0A priority Critical patent/EP3462802B1/en
Priority to PCT/CN2016/087324 priority patent/WO2018000134A1/zh
Priority to US16/313,462 priority patent/US10645559B2/en
Priority to CN201680087220.XA priority patent/CN109417758B/zh
Publication of WO2018000134A1 publication Critical patent/WO2018000134A1/zh

Links

Images

Classifications

    • 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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a Bluetooth connection method and terminal.
  • wireless short-range communication technologies such as Wireless-Fidelity (Wi-Fi or WiFi) technology, Bluetooth technology and ZigBee technology have also been well developed.
  • Wearable devices are gaining popularity because of their ease of portability, ease of use, and variety of appearance.
  • a user may also have one or more other terminals such as a wristband and a watch. Different terminals of the same user can connect and transmit data through Bluetooth technology.
  • Dual-mode Bluetooth which supports Bluetooth Low Energy (BLE) and Classic Bluetooth (Bluetooth).
  • BLE Bluetooth Low Energy
  • Bluetooth Classic Bluetooth
  • the current Bluetooth 4.0 protocol has integrated dual-mode Bluetooth.
  • Bluetooth connection between the mobile phone and the watch can be disconnected via Classic Bluetooth. Users can synchronize the information on the phone to the watch via Bluetooth, answering and making calls, receiving and replying to short messages and instant messages.
  • the Bluetooth connection between the mobile phone and the watch is disconnected, the above synchronization cannot be achieved.
  • the watch or the mobile phone does not attempt to automatically reconnect, which will definitely affect the user experience to a certain extent.
  • the watch continues to connect to the mobile phone without interruption, and the mobile phone is outside the connectable range for a long time, it will definitely cause serious power loss, which is a challenge to the battery life of the smart terminal. Therefore, after the Bluetooth connection between the watch and the mobile phone is disconnected, how to achieve automatic reconnection under the condition of ensuring user experience and power consumption is an urgent problem to be solved.
  • the embodiment of the invention discloses a display method and a terminal to optimize the processing process of the existing display system and reduce the display power consumption of the terminal.
  • an embodiment of the present invention provides a Bluetooth connection method, including:
  • the classic Bluetooth connection of the first terminal and the second terminal is disconnected, and both the first terminal and the second terminal support Bluetooth low energy BLE and classic Bluetooth;
  • the second terminal matches the device information with pre-stored device information
  • the second terminal initiates a classic Bluetooth connection request to the first terminal;
  • the first terminal establishes a classic Bluetooth connection with the second terminal.
  • the above Bluetooth connection scheme effectively combines BLE and classic Bluetooth.
  • the first terminal After the previous classic Bluetooth connection is disconnected, the first terminal periodically broadcasts its own device information through the BLE broadcast message, and the second terminal acquires or generates the watch.
  • the device information is used as the filtering condition of the scanning.
  • the connection request of the classic Bluetooth is initiated, and the classic Bluetooth connection is established with the first terminal to communicate.
  • the power loss of the BLE is low.
  • the first terminal can periodically send the BLE broadcast without interruption, so that the second terminal can find the first in time.
  • the presence and connection status of the terminal enables real-time classic Bluetooth automatic reconnection in a low power state.
  • the method before the second terminal matches the device information with the pre-stored device information, the method further includes:
  • the second terminal measures a signal strength of the BLE broadcast message, and determines that the measured signal strength is greater than a signal strength threshold preset by the second terminal.
  • the measurement and comparison of the signal strength threshold can simply correlate the connectable effective distance of the BLE with the connectable effective distance of the classic Bluetooth, and to some extent guarantee the success rate of the subsequent Bluetooth connection. Moreover, setting the signal strength threshold can also filter out the relatively long distance Bluetooth connection and improve security.
  • the device information is a Bluetooth address of the first terminal
  • the second terminal matches the device information with the pre-stored device information, where the second terminal matches the acquired Bluetooth address of the first terminal with a pre-stored Bluetooth address.
  • the device information is the Bluetooth address of the first terminal.
  • the first terminal and the second terminal have a Bluetooth connection before, so the second terminal can record the Bluetooth address of the first terminal, and broadcast the BLE message.
  • the address information in the match is matched with the recorded Bluetooth address, and the connection can be quickly and easily performed quickly and easily.
  • the device information is a first ciphertext generated by the first terminal
  • the second terminal matches the device information with the pre-stored device information, where the second terminal generates the first ciphertext generated by the first terminal and the pre-stored second terminal generated by the second terminal.
  • the second ciphertext is matched.
  • the device information is the ciphertext generated by the first terminal, and the security of the BLE broadcast information has been improved.
  • the first terminal and the second terminal acquire the same common attribute and state data, and use the same encryption algorithm, Generating the first ciphertext and the second ciphertext.
  • the first terminal and the second terminal can acquire the same common attribute and status data of the connection process, and other devices cannot be known, which can further enhance the security of the encryption.
  • the public attribute and the status data include, but are not limited to, one or more of the following: the current connection The connectable address, the last time the Bluetooth connection was disconnected or the time since the last Bluetooth disconnection, the value passed in the last Bluetooth connection, the value passed by the broadcast message before the last Bluetooth connection was disconnected, the classic Bluetooth last time The connection key used to connect successfully.
  • the foregoing is an example of public attribute and status data of a Bluetooth connection between the first terminal and the second terminal, and one or more combinations may be selected for encryption.
  • the common attribute and the status data are both the first terminal and the second terminal Bluetooth connection.
  • Non-fixed data can greatly enhance security.
  • an embodiment of the present invention provides a Bluetooth connection method, including:
  • the second terminal is disconnected from the classic Bluetooth connection of the first terminal, and both the first terminal and the second terminal support Bluetooth low energy BLE and classic Bluetooth;
  • the second terminal matches the device information with pre-stored device information
  • the second terminal initiates a classic Bluetooth connection request to the first terminal to be established with the first terminal.
  • a classic Bluetooth connection If the device information obtained by the second terminal matches the pre-stored device information, the second terminal initiates a classic Bluetooth connection request to the first terminal to be established with the first terminal. A classic Bluetooth connection.
  • the second aspect is the Bluetooth connection method of the present invention described from the second terminal.
  • the above Bluetooth connection scheme effectively combines BLE and classic Bluetooth. After the previous classic Bluetooth connection is disconnected, the second terminal can acquire or generate the device information of the watch as a filtering condition, and when receiving the BLE broadcast message and matching If the device information is successful, a classic Bluetooth connection request is initiated, and a classic Bluetooth connection is established with the first terminal to communicate.
  • the power loss of the BLE is low, and the second terminal can continuously perform BLE scanning after the last classic Bluetooth connection of the first terminal and the second terminal is disconnected, so as to timely discover the existence and connection state of the first terminal, and low power consumption. The state achieves real-time classic Bluetooth auto-reconnection.
  • an embodiment of the present invention provides a Bluetooth connection method, including:
  • the classic Bluetooth connection of the first terminal and the second terminal is disconnected, and both the first terminal and the second terminal support Bluetooth low energy BLE and classic Bluetooth;
  • the first terminal sends a BLE broadcast message, where the BLE broadcast message includes device information, so that the second terminal matches the device information after receiving the BLE broadcast message, and initiates a classic after the matching succeeds.
  • Bluetooth connection ;
  • the first terminal is in a connectable state of classic Bluetooth
  • the first terminal establishes a classic Bluetooth connection with the second terminal.
  • the third aspect is the Bluetooth connection method of the present invention described from the first terminal.
  • the first terminal After the previous classic Bluetooth connection is disconnected, the first terminal periodically broadcasts its own device information through the BLE broadcast message, so that the second terminal matches the device information, and when the second terminal receives the BLE broadcast message and matches If the device information is successful, a classic Bluetooth connection request is initiated, and a classic Bluetooth connection is established with the first terminal to communicate.
  • the power loss of the BLE is low.
  • the first terminal can continuously send the BLE broadcast, so that the second terminal can discover the existence and connection status of the first terminal in time. Real-time classic Bluetooth auto-reconnection in real-time with low power consumption.
  • an embodiment of the present invention provides a Bluetooth low energy BLE and classic Bluetooth.
  • Terminal comprising: one or more processors, a memory and a bus, the one or more processors, the memory and the display screen communicating via the bus;
  • the memory is for storing instructions
  • the one or more processors are configured to invoke an instruction in the memory to perform the following steps:
  • a classic Bluetooth connection request is initiated to the first terminal to establish a classic Bluetooth connection with the first terminal.
  • the terminal provided by the fourth aspect may be used to implement a Bluetooth connection method provided by the second aspect.
  • the above Bluetooth connection scheme effectively combines BLE with classic Bluetooth.
  • the power loss of the BLE is low.
  • the BLE scan can be continuously performed, so that the presence and connection state of the first terminal can be found in time, and real-time is realized in a low-power state.
  • an embodiment of the present invention provides a terminal supporting Bluetooth low energy BLE and classic Bluetooth, including: one or more processors, a memory, and a bus, the one or more processors, the memory, and The display screen communicates via the bus;
  • the memory is for storing instructions
  • the one or more processors are configured to invoke an instruction in the memory to perform the following steps:
  • the terminal provided by the fifth aspect may be used to implement a Bluetooth connection method provided by the third aspect.
  • the above Bluetooth connection scheme effectively combines BLE with classic Bluetooth.
  • the power loss of the BLE is low.
  • the BLE broadcast can be continuously sent, so that the second terminal can be found in time, and the real-time classic Bluetooth self is realized in a low-power state. Move again.
  • the embodiment of the present invention provides a Bluetooth connection system, including: the terminal according to any implementation manner of the fourth aspect, and the terminal according to any implementation manner of the fifth aspect.
  • the above Bluetooth connection method, terminal and system effectively combine BLE and classic Bluetooth, combine the advantages of BLE Bluetooth low power consumption, and continuously transmit BLE broadcast messages or BLE scans after the classic Bluetooth disconnection, promptly let It is found that the other party's Bluetooth device discovers or discovers the other party, realizing the real-time classic Bluetooth automatic reconnection in the low power state.
  • FIG. 1 is a schematic diagram of a Bluetooth connection of a mobile phone and a watch disclosed in an embodiment of the present invention
  • FIG. 2 is a hardware structural diagram of a dual mode terminal according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a method for performing Bluetooth connection between a watch and a mobile phone according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of still another method for performing Bluetooth connection between a watch and a mobile phone according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of ciphertext generation and broadcast disclosed in an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • Bluetooth can also be called low power Bluetooth.
  • a short-range wireless communication can be made between the mobile phone and the watch via a Bluetooth connection.
  • Mobile phones and watches can be connected via BLE or connected via classic Bluetooth.
  • BLE For a terminal that only supports BLE connection, it can be called a single mode Bluetooth terminal.
  • BLE connection For a terminal that supports both a BLE connection and a classic Bluetooth connection, it can be called a dual mode Bluetooth terminal.
  • the Bluetooth related to the embodiment of the present invention is a wireless communication standard for short-distance data exchange, and may include classic Bluetooth and BLE.
  • Classic Bluetooth also known as traditional Bluetooth or standard Bluetooth.
  • Classic Bluetooth is developed and improved on the basis of previous Bluetooth specification protocol versions 1.0, 1.2, 2.0+EDR, 2.1+EDR, 3.0+HS, etc. It is the usual name after BLE appears.
  • Relative to BLE Classic Bluetooth is currently more suitable for transmissions with a large amount of data, such as voice, music, and so on.
  • BLE also known as Bluetooth Smart or others, was developed on Nokia's Wibree standard and introduced in the Bluetooth Specification Protocol version 4.0.
  • BLE as its name suggests, consumes very little power, consumes 1/10 or less of the classic Bluetooth, and features short message, high-efficiency encoding, and short connection setup time.
  • Bluetooth For a description of Bluetooth, see the Wikipedia article at https://en.wikipedia.org/wiki/Bluetooth and the last visit was June 25, 2016.
  • Users can use the smart watch connected to the mobile phone to make or receive calls, send and receive instant messages or text messages, or use the watch to record or detect their status, such as walking number, sleep status, Heart rate, running speed, etc.
  • the "terminal” involved in the present invention is a dual-mode Bluetooth terminal capable of implementing a Bluetooth connection function, and the terminal can be a mobile phone, a watch, a wristband, a tablet computer, a point of sales (POS) or a vehicle-mounted computer, etc., the present invention
  • POS point of sales
  • the examples are not specifically limited.
  • a mobile phone and a watch are mainly taken as an example for description.
  • FIG. 2 is a block diagram showing a part of the structure of the terminal 200 related to the embodiment of the present invention, which is applicable to the dual mode Bluetooth terminal described in the embodiment of the present invention.
  • terminal 200 can include components such as processor 210, memory 220, power supply 230, Bluetooth chip 240, audio circuit 250, I/O subsystem 260, display screen 270, sensor 280, and other input devices 290.
  • processor 210 processor 210
  • memory 220 power supply 230
  • Bluetooth chip 240 Bluetooth chip 240
  • audio circuit 250 I/O subsystem 260
  • I/O subsystem 260 I/O subsystem
  • display screen 270 display screen 270
  • sensor 280 sensor 280
  • other input devices 290 input devices
  • Processor 210 is the control center of terminal 200, which connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in memory 220, and recalling data stored in memory 220. The various functions and processing data of the terminal 200 are executed to perform overall monitoring of the mobile terminal.
  • the processor 210 may include one or more processors or processing modules.
  • the processor 210 may integrate an application processor (AP) and a modem processor, where the AP mainly processes the operating system.
  • the user interface, application, etc., the modem processor primarily handles wireless communications.
  • the processor 210 may further include an image processor GPU, which is not specifically limited by the present invention.
  • a Bluetooth module is also integrated in the processor 210 to implement related functions such as Bluetooth connection and data transmission. It can be understood that some processors 210 can directly execute the instructions configured in the processor to perform related functions, and the instructions or data in the memory 220 need not be called. However, in order to simplify the processing, the embodiment of the present invention can adopt the “processing”. The statement that the instruction in the memory 210 invokes an instruction in memory to perform certain operations or steps does not specifically limit the details of the execution of the instructions by the processor 210.
  • the memory 220 can be used to store software programs and modules, and the processor 210 executes various functional applications and data processing of the terminal 200 by running software programs and modules stored in the memory 220.
  • the memory 220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as Bluetooth control, Bluetooth connection function, etc.), and the like; the storage data area may be stored according to the terminal. Data created by the use of 200 (such as ciphertext) Generate algorithms, Bluetooth connection records, etc.).
  • memory 220 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • a power source 230 such as a battery, can power various components.
  • the power source can be logically connected to the processor 210 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the terminal 200 may also include a Bluetooth chip 240.
  • the Bluetooth chip 240 may include a BLE controller 241 and a classic Bluetooth controller 242.
  • the BLE controller 241 and the classic Bluetooth controller 242 can implement transmission and reception of Bluetooth radio frequency signals.
  • the BLE controller 241 can transmit and receive BLE broadcast messages
  • the classic Bluetooth controller 242 can send and receive classic Bluetooth connection requests and responses.
  • the terminal 200 can control the BLE controller 241 and the classic Bluetooth controller 242 in the Bluetooth chip 240 through the Bluetooth module in the processor 210.
  • the Bluetooth chip 240 can pre-store part of the data, such as the signal strength threshold of the pre-stored Bluetooth signal, the address of the target Bluetooth terminal that can be connected, ciphertext or other identity.
  • the Bluetooth chip 240 can also perform some simple processing separately, such as detecting the signal strength of the Bluetooth related message, and/or comparing the detected signal strength with a pre-stored signal strength threshold; parsing Bluetooth related messages, such as broadcast messages, and The address, ciphertext or other identity in the Bluetooth-related message is matched with the pre-stored corresponding information;
  • the BLE controller 241 and the classic Bluetooth controller 242 can be independent hardware modules or just logically independent modules, and the hardware is integrated.
  • the Bluetooth chip 240 can belong to the scope of the processor 210.
  • the terminal 200 may also have no separate Bluetooth chip.
  • the circuitry and functionality associated with the Bluetooth chip 240 can be integrated into the processor 210, such as an AP that can be integrated into a cell phone or watch.
  • the Bluetooth module integrates all the functional modules related to the Bluetooth function implementation described above.
  • the audio circuit 250 can include a microphone and a speaker to provide an audio interface between the user and the terminal 200.
  • the audio circuit 250 may output the audio data to the Bluetooth module or the Bluetooth chip 240 to transmit to another terminal, or output the audio data acquired from the Bluetooth module or the Bluetooth chip 240 to the user or the like.
  • the I/O subsystem 260 is used to control external devices for input and output, and may include other device input controllers, sensor controllers, and display controllers.
  • the terminal can include a display screen 270.
  • the display screen 270 can be used to display information input by the user or information provided to the user as well as various menus of the terminal 200, and can also accept user input. specific,
  • the display screen 270 can include a display panel 271 and a touch panel 272.
  • the display controller in I/O subsystem 260 can receive signals from display screen 270 and/or send signals to display screen 270 for human-computer interaction.
  • Terminal 200 may also include one or more sensors 280, such as light sensors, motion sensors, and other sensors.
  • sensors 280 such as light sensors, motion sensors, and other sensors.
  • a sensor controller in I/O subsystem 260 can receive signals from one or more sensors 280 and/or send signals to one or more sensors 280.
  • Other input devices 290 can be used to receive input digital or character information, as well as to generate key signal inputs related to user settings and function control of terminal 200.
  • One or more other device input controllers receive signals from other input devices 290 and/or send signals to other input devices 290.
  • the terminal 200 may also include radio frequency circuitry for receiving and transmitting signals during transmission or reception of information or during a call.
  • the terminal 200 may further include a camera, a Wireless-Fidelity (Wi-Fi or WiFi) module, an infrared module, and the like, and details are not described herein.
  • Wi-Fi or WiFi Wireless-Fidelity
  • FIG. 2 is a general structural block diagram of a terminal. It can be understood that different terminals may include more or less structures in FIG. 2.
  • the terminal for implementing the Bluetooth connection method of the following embodiments of the present invention may also refer to a processor or a processor plus necessary auxiliary circuits and auxiliary devices or a chipset composed of one chip or multiple chips. .
  • a different terminal having the structure shown in FIG. 2 can implement a Bluetooth connection within a certain range, but once the valid Bluetooth connection range is exceeded, the Bluetooth connection between the terminals is automatically disconnected.
  • the user's smart watch and the mobile phone have always maintained a classic Bluetooth connection, but the user has to go out for running. Because the mobile phone is inconvenient to carry, he only goes out with the watch.
  • the distance between the watch worn by the user and the mobile phone is more than the effective range of the classic Bluetooth connection, such as 10 meters, the classic Bluetooth connection between the watch and the mobile phone will be automatically disconnected.
  • the watch After the classic Bluetooth connection is disconnected, if the watch no longer automatically attempts to connect to the mobile phone, once disconnected, the watch and the mobile phone cannot be automatically reconnected, and if the watch (or mobile phone) keeps sending messages, try to reconnect and the mobile phone (or The watch can be connected. If it is not connected for a long time, the power of the watch and the phone will be seriously depleted and the standby time will be shorter.
  • the current technical solution performs a relatively balanced processing based on the above two situations. That is, the watch (or mobile phone) will try to reconnect the mobile phone (or watch) at a predetermined time interval within a certain time interval, such as trying to connect once every 5 minutes, if 10 times Not On the connection, the connection is no longer actively attempted. Or, in an existing implementation, the watch (or mobile phone) tries to connect once every 2 seconds, if the connection fails, the second time tries to connect once every 4 seconds, and if it fails again, the third time is 8 seconds. Try to connect once. If the connection fails, try connecting at the next time twice the interval.
  • the time interval reaches a certain value, such as 256 seconds, try to connect at 256 seconds before the connection is successful.
  • a certain value such as 256 seconds
  • an embodiment of the present invention provides a method for Bluetooth connection.
  • the Bluetooth connection method provided by the embodiment of the present invention specifically includes:
  • the mobile phone and the watch maintain the connected state of the classic Bluetooth, and the corresponding data transmission can be performed through the classic Bluetooth connection.
  • connection When a classic Bluetooth connection is established between the phone and the watch, data can be transferred to each other via the classic Bluetooth connection.
  • the mobile phone and the watch can obtain each other's connection status and identity information.
  • the mobile phone and the watch can separately record the connection time of the classic Bluetooth, and can record some values transmitted in the connection, and the connection key (Link key) used when the connection is successful.
  • the classic Bluetooth connection between the phone and the watch may be disconnected because the distance between the phone and the watch exceeds the effective distance of Bluetooth, or it may be disconnected by other reasons, such as the phone or watch is out of power, or other environmental factors. Etc., there is no limit here.
  • the mobile phone and the watch can separately record the disconnection time of the classic Bluetooth connection.
  • the watch obtains its own Bluetooth address.
  • the Bluetooth address may refer to a multimedia access control (MAC) address of the Bluetooth device, or other accessible address for implementing a Bluetooth connection.
  • MAC multimedia access control
  • the application processor (AP) of the mobile phone obtains the Bluetooth address of the watch from the recorded information in the mobile phone, and sends the Bluetooth chip to the mobile phone.
  • the Bluetooth chip of the mobile phone pre-stores the Bluetooth of the watch sent by the AP.
  • the address can be used as a filter condition for the Bluetooth chip scanning process. That is, after the Bluetooth chip of the mobile phone searches for the broadcast message, it is first determined whether the Bluetooth address in the broadcast message matches the pre-stored Bluetooth address. After the AP sends the Bluetooth address to the Bluetooth chip, the AP and Bluetooth related modules can enter a sleep state to save power.
  • the watch enters a broadcast state, and the Bluetooth address of the watch is periodically broadcasted through a BLE broadcast message.
  • the watch periodically sends a BLE broadcast message, where the BLE broadcast message contains the Bluetooth address of the watch.
  • the AP of the watch, or the Bluetooth module of the AP may be in a sleep state.
  • the watch's classic Bluetooth controller can be in a connectable state, or is in a page scan state to be connected, in order to receive the classic Bluetooth connection request of the mobile phone.
  • the classic Bluetooth controller refers to a control module that implements classic Bluetooth.
  • the watch's classic Bluetooth controller can also be periodically in a sleep state, further reducing power loss.
  • the periodic sleep period of the watch's classic Bluetooth controller may correspond to the period of the BLE broadcast message. That is, the watch's classic Bluetooth controller can be in the scanning state to be connected when the watch sends a BLE broadcast message, and continues for a preset time in this state.
  • the classic Bluetooth controller of the watch can also be in the scanning state to be connected after the watch sends the BLE broadcast message, and the time of the interval can be an empirical value or a measured value, and the transmission of the BLE broadcast message can be mainly considered. Time, the time when the mobile phone parses and matches the BLE device information, and the time when the AP initiates the classic Bluetooth connection message, to further optimize the sleep time of the classic Bluetooth controller and reduce power loss.
  • the Bluetooth chip of the mobile phone enters a search state, and receives a BLE broadcast message.
  • the Bluetooth chip of the mobile phone enters a search state, or scan state, to receive the broadcast packets of the BLE sent by the watch.
  • the Bluetooth chip of the mobile phone measures the signal strength of the BLE broadcast message when receiving the BLE broadcast message, and when the measured signal strength of the BLE broadcast message is greater than a preset signal strength value, obtaining the broadcast message. Device information, otherwise, ignore the broadcast message.
  • the effective distance that BLE can be connected is different from the effective distance that classic Bluetooth can connect.
  • the connectable effective distance between BLE and classic Bluetooth is related to factors such as transmission power, device characteristics, and environment. usually, The effective distance of BLE can be several tens of meters, up to 100 meters; the effective distance of classic Bluetooth can be several meters, ten meters and several tens of meters.
  • the connectable effective distance of BLE can be simply associated with the connectable effective distance of the classic Bluetooth, and the success rate of the subsequent Bluetooth connection is guaranteed to a certain extent.
  • setting the signal strength threshold can also filter out the relatively long distance Bluetooth connection and improve security.
  • the preset signal strength value may be an empirical value of the signal strength; or may be a signal strength value obtained by a technician based on a comprehensive measurement of a power factor according to the measured result, or a signal strength value set by the user according to a specific requirement, and the like.
  • the preset signal strength value setting can further ensure the subsequent classic Bluetooth connection and security.
  • the preset signal strength value is not specifically limited in the embodiment of the present invention.
  • this step is a preferred step to achieve the solution, rather than a necessary step.
  • other schemes can be further used to further secure the effective connection of the subsequent classic Bluetooth, for example, the connectable effective distance of the BLE of the same terminal can be directly associated with the connectable effective distance of the classic Bluetooth, that is, the two are set to be the same Or a value that is not much different.
  • S316 The Bluetooth chip of the mobile phone matches whether the ciphertext in the BLE broadcast message matches the pre-stored ciphertext. If the ciphertext in the BLE broadcast message matches the pre-stored ciphertext, the Bluetooth chip wakes up the AP, otherwise, the BLE broadcast message is ignored.
  • the mobile phone determines that the ciphertext in the BLE broadcast message matches the pre-stored ciphertext, the mobile phone does not perform a BLE connection with the watch, but triggers a subsequent classic Bluetooth connection. That is, the whole Bluetooth connection process, the BLE between the mobile phone and the watch can not be connected, which not only saves resources, but also can connect and communicate with other Bluetooth devices supporting BLE after the classic Bluetooth connection, and increase the Bluetooth between the terminals. The flexibility and diversity of connectivity.
  • the Bluetooth chip of the phone can wake up the AP through a hardware interrupt.
  • the mobile phone can obtain the type of the interrupt through a Host Controller Interface (HCI) event for subsequent classic Bluetooth connection operations.
  • HCI Host Controller Interface
  • the mobile phone obtains the classic Bluetooth connection address of the watch and sends a connection request to the watch. If the watch is in the state to be connected, after receiving the connection request sent by the mobile phone, a classic Bluetooth connection can be established with the mobile phone.
  • the phone can stop searching, or stop scanning.
  • the mobile phone can initiate a classic Bluetooth search and then connect.
  • the mobile phone has received the BLE broadcast data packet of the watch and matches some data in the broadcast data packet. Therefore, when the mobile phone and the watch are connected to the classic Bluetooth, the classic Bluetooth search can be performed without establishing a physical channel for searching, and the connection request of the classic Bluetooth is directly initiated, and the connection state is entered.
  • the watch after receiving the classic Bluetooth connection request sent by the mobile phone, the watch stops broadcasting and re-establishes a classic Bluetooth connection with the mobile phone.
  • the watch When the watch receives the classic Bluetooth connection request sent by the mobile phone, responds to the connection request of the mobile phone, and performs a classic Bluetooth connection with the mobile phone to establish a physical channel for connection.
  • the above Bluetooth connection scheme effectively combines BLE and classic Bluetooth.
  • the watch After the previous classic Bluetooth connection is disconnected, the watch periodically broadcasts the connectable Bluetooth address through the BLE broadcast message, and the mobile phone records from the recorded information.
  • the Bluetooth address is sent to the Bluetooth chip as a filtering condition for scanning the Bluetooth broadcast message.
  • the mobile phone receives the BLE broadcast message and the matching address is successful, the mobile phone AP wakes up the Bluetooth AP to initiate a classic Bluetooth connection request, and re-establishes a classic Bluetooth connection with the watch. Communication.
  • the watch can periodically send the BLE broadcast without interruption, so that the mobile phone can discover the existence and connection state of the watch in time, real-time in the state of low power consumption.
  • Classic Bluetooth automatically reconnects.
  • the above Bluetooth connection scheme can realize the real-time back connection of the classic Bluetooth in a low power state.
  • the security of the Bluetooth connection can be improved by matching the address and setting the signal strength threshold, etc., but the Bluetooth device always broadcasts its own address for Bluetooth, and exposing its identity for a long time may increase the risk of being tracked and attacked.
  • the embodiment of the present invention provides another Bluetooth connection method based on the above Bluetooth connection solution.
  • the method is a method described on the basis of the method of FIG. 3.
  • the same or related content can be referred to the description of the method of FIG. 3, such as S402-S404, S412-S414, S418-S420, and no longer here. Narration.
  • the following mainly describes steps S406-S410 and S416.
  • the watch can generate a set of encrypted messages, or Referred to as ciphertext.
  • the watch can generate a set of ciphertexts using a preset algorithm.
  • the algorithm may be a determined set of algorithms for generating ciphertext preset by the watch, and the algorithm may also be one of a plurality of preset algorithms for generating ciphertext. If both parties to the Bluetooth connection have agreed to support multiple algorithms for generating ciphertext, the watch can specify the corresponding information for generating the ciphertext in the broadcast message.
  • the application processor (AP) of the mobile phone can also generate a set of ciphertext by using an algorithm, and send the Bluetooth chip to the mobile phone as a filtering process of the Bluetooth chip scanning process. condition.
  • the Bluetooth-related module in the AP can enter a sleep state to save power.
  • the algorithm for generating ciphertext by the mobile phone is the same algorithm as the ciphertext generated by the watch to ensure that the ciphertext generated by the two matches successfully. If there are multiple algorithms for generating ciphertexts, the two ciphertexts may be generated according to different algorithms, or the ciphertexts may be generated after the corresponding algorithm identifiers are obtained in the broadcast message.
  • the AP of the mobile phone can send the ciphertext to the Bluetooth chip for storage.
  • the Bluetooth chip can obtain the ciphertext generated by the watch in the broadcast message.
  • the Bluetooth chip can match the stored ciphertext with the ciphertext in the BLE broadcast message. If they are the same, the matching is successful. If not, the BLE broadcast message is ignored.
  • the ciphertext matched by the mobile phone Bluetooth chip may be directly matched after the ciphertext in the BLE broadcast message is parsed, and the matching efficiency may be provided; or the obtained ciphertext may be processed and matched again, if the ciphertext is to be passed.
  • the preset algorithm performs re-encryption or decryption and then performs matching to further improve the security, which is not limited in this embodiment of the present invention.
  • the foregoing solution may also generate a ciphertext from a Bluetooth chip of the mobile phone.
  • the mobile phone can periodically update the generated ciphertext and change the scanned content. That is, the ciphertext can be changed periodically.
  • the mobile phone and the watch can change the way or content of the generated ciphertext at intervals.
  • mobile phones and watches can regenerate ciphertext every 15 minutes, generate ciphertext every 15 minutes, or change the ciphertext generation algorithm every 15 minutes, or change it every 15 minutes for encryption.
  • the data such as the data to be encrypted, includes the time from the last disconnection, then the time from the last disconnection is obtained every 15 minutes. This time itself is changing, so the ciphertext is generated every 15 minutes.
  • the content is also changing.
  • the data processed by the encryption is not limited to the above-mentioned time from the last disconnection, and may be other agreed values.
  • the method for periodically changing the content of the broadcast and/or the scan of the mobile phone and the watch, the embodiment of the present invention does not Body definition. Phones and watches periodically change the content of broadcasts and/or scans to further enhance security.
  • the watch enters a broadcast state, and the ciphertext of the watch is periodically broadcasted through a BLE broadcast message.
  • the watch periodically sends a BLE broadcast message, wherein the BLE broadcast message contains ciphertext.
  • the watch can place the ciphertext into a field in the broadcast message.
  • the BLE broadcast message can broadcast the unresolvable private address of the Bluetooth, and the watch adds the generated ciphertext to a standard undefined field in the BLE broadcast message for broadcast, and the mobile phone can also identify the watch by matching the ciphertext in the BLE broadcast message.
  • the ciphertext generation and broadcast carrying manner refer to the detailed description of the following embodiments.
  • the field that is not defined by the standard may also be referred to as a reserved field or an expandable field, and is not limited herein.
  • step S410 For the related content of step S410, refer to the description of step S310, and details are not described herein again.
  • the watch periodically updates the ciphertext, and the watch can periodically change the content of the broadcast.
  • the watch can periodically change the content of the broadcast.
  • the Bluetooth chip of the mobile phone matches whether the ciphertext in the BLE broadcast message matches the pre-stored ciphertext.
  • the mobile phone can parse the BLE broadcast message to obtain the ciphertext generated by the watch. If the watch sends the ciphertext through the private address, the mobile phone can parse the corresponding field of the private address to obtain the ciphertext. After the mobile phone analyzes and obtains the ciphertext of the watch, the ciphertext is matched with the ciphertext generated by the mobile phone. If the ciphertext in the BLE broadcast message matches the pre-stored ciphertext, the Bluetooth chip wakes up the AP, otherwise, the BLE broadcast message is ignored.
  • the mobile phone can perform a BLE connection with the watch.
  • the mobile phone may directly connect the watch to the BLE connection, and directly trigger the subsequent classic Bluetooth connection.
  • the Bluetooth chip of the phone can wake up the AP through a hardware interrupt.
  • the mobile phone can obtain the type of the interrupt through the HCI event for subsequent classic Bluetooth connection operations.
  • the Bluetooth address carried in the BLE broadcast of the watch in the method shown in FIG. 3 and the ciphertext carried in the device information BLE broadcast in the method shown in FIG. 4 can be referred to as device information.
  • the Bluetooth chip of the mobile phone matches the device information, and after successful, wakes up the AP and performs classic Bluetooth connection.
  • the device information may also include both a Bluetooth address and a ciphertext. That is, the mobile phone needs to match the Bluetooth address and also match the ciphertext. Can reason It is to be understood that the device information may be in other forms, which is not specifically limited in the embodiment of the present invention.
  • the Bluetooth connection scheme shown in FIG. 4 effectively combines BLE and classic Bluetooth.
  • the watch After the previous classic Bluetooth connection is disconnected, the watch periodically generates the generated ciphertext through the BLE broadcast message.
  • the mobile phone After the previous classic Bluetooth connection is disconnected, the watch periodically generates the generated ciphertext through the BLE broadcast message.
  • the mobile phone After the previous classic Bluetooth connection is disconnected, the watch periodically generates the generated ciphertext through the BLE broadcast message.
  • the mobile phone generates the ciphertext through the same algorithm and sends it to the Bluetooth chip as a filtering condition for scanning the Bluetooth broadcast message.
  • the mobile phone receives the BLE broadcast message and matches the ciphertext successfully, the mobile phone AP wakes up the Bluetooth AP to initiate a classic Bluetooth connection request, and re-establishes a classic Bluetooth connection with the watch for communication.
  • the watch can periodically send BLE broadcasts in an uninterrupted manner, so that the mobile phone can find the presence and connection status of the watch in time, real-time in a low-power state.
  • the classic Bluetooth is automatically reconnected, and the watch and the mobile phone respectively generate ciphertext, and the ciphertext is successfully matched before the classic Bluetooth connection is made, thereby further improving the security of the Bluetooth connection.
  • the embodiment of the present invention further provides a specific method for generating a ciphertext and a broadcast ciphertext.
  • the ciphertext generation and broadcast method is only an example and does not constitute a limitation on the embodiments of the present invention.
  • the ciphertext generation and broadcast method may also be not limited to the methods described above in FIG. 3 and FIG. 4, for example, the ciphertext generation and broadcast method may be used not only for a dual mode Bluetooth terminal, but is not limited to FIG. 3 and FIG.
  • the method described in 4 can also be used for a single mode Bluetooth terminal, such as a process applied to BLE broadcast and connection.
  • the MAC address is basically included.
  • the MAC address is unique. Usually in network communication, the MAC address is used as a device symbol. The MAC address is mostly allocated by the manufacturer of the device and stored in the device. If there are two devices in the network with the same MAC address, then there will be problems with network communication, so the manufacturer of the device is very careful when assigning the MAC address to ensure the uniqueness of the address.
  • Bluetooth devices also have their own device address. In the core specification of Bluetooth, it is usually called BD_ADDR (Bluetooth Device Address). BD_ADDR will play the role of device identification in the process of Bluetooth devices such as connection and pairing. For Bluetooth devices, you can use the Public Address Address or the Random Device Address. Among them, the private address is one of random addresses. Currently, BLE can support the characteristics of private addresses.
  • the mobile phone and the watch can respectively obtain the same common attribute and status data of the connection, that is, the data 502 used for encryption by the encryption algorithm, by using the preset algorithm 504. Encrypted to generate ciphertext 506.
  • the preset algorithm 504 can be secure
  • the Secure Hash Algorithm (SHA1) may also be another algorithm for performing encryption, which is not specifically limited in the embodiment of the present invention. Since the mobile phone and the watch acquire the same common attribute and the same state data, that is, the input data 502 for performing algorithm encryption is the same, the ciphertext 506 output by the algorithm encryption will be the same.
  • Common attributes may include connectable addresses and connection keys, etc.
  • Status data may include connection or disconnection times for Bluetooth connections, values passed in broadcast messages, values passed after connections, and the like. It is to be understood that the public attributes and the status data described in the embodiments of the present invention may be other than the examples, and are not specifically limited herein.
  • the data 502 used for algorithm encryption may include, but is not limited to, the following:
  • the access address may be the broadcast access address of the current connection, or the data access address used between the two devices after the connection is established.
  • the data access address here is a random value, and different connections can have different values.
  • the terminal can also generate different random values that satisfy certain rules each time as needed.
  • connection keys can be agreed between different terminals, and the connection key of each Bluetooth connection of the same terminal can also be different.
  • the data used for algorithm encryption can be the connection key used successfully for the last connection, or it can be the connection key that was successfully used by a previous connection.
  • the time of the last Bluetooth connection disconnection can be recorded separately for the mobile phone and the watch.
  • the time for each Bluetooth connection disconnection of different terminals or the same terminal will be different, so the time of the Bluetooth disconnection or the time of the last Bluetooth disconnection It will also be different, with uncertainty and randomness.
  • the mobile phone and the watch may have certain errors in the recording of the above time, and the mobile phone and the watch may perform certain processing on the above time.
  • the distance recorded by the mobile phone is 28 minutes from the last Bluetooth disconnection, and the watch is recorded as 30 minutes.
  • the mobile phone and the watch can be rounded off on the basis of 30 minutes respectively. Therefore, the distance between the mobile phone and the watch is the last time the Bluetooth connection is disconnected.
  • the time is 30 minutes. It can be understood that the mobile phone and the watch can be processed in other ways, which is not limited herein.
  • Both the mobile phone and the watch's Bluetooth connected status can communicate data for communication.
  • the value passed It can be a value that is intentionally passed to generate ciphertext, or it can be a certain value agreed upon in normal data interaction.
  • the mobile phone and the watch can send and receive data through broadcast messages, similar to the values in 3), which can be the value of the broadcast message intentionally transmitted for ciphertext generation, or the agreement in the normal data interaction. A certain value.
  • the above-exemplified data that can be used for encryption is just a few simple examples, and the encrypted data may also include other public attributes or status data.
  • the data used for algorithm encryption may be one or more of them, and the two sides of the connection may be agreed in advance or may be specified by a broadcast message.
  • Some or all of the above-exemplified data that can be used for algorithm encryption are not fixed.
  • the data used to encrypt each time the ciphertext is generated is independent of each other and has no regularity. In this way, the third-party terminal can not only directly obtain which data is included in the algorithm encryption, but also knows the specific value of the data used for the algorithm encryption.
  • For the data encrypted by the algorithm there may be data with certain error.
  • the data may be processed in the early stage, and the uniquely determined ciphertext may be generated by encryption, or the error range allowed to exist may be set, and a compatible interval of a set of ciphertexts may be generated.
  • the embodiment of the present invention is not specifically limited.
  • the watch can place the generated ciphertext 506 into a certain field of the BLE broadcast message that is not defined or reserved by the standard, such as the expandable AD structure 508 in the BLE broadcast message or the invalid part 510 defined by the standard in the BLE message, as the BLE. Part of the broadcast message.
  • the ciphertext may be placed in the vendor data or the service data part of the BLE broadcast message, or may be other fields, which are not specifically limited in the embodiment of the present invention.
  • the watch puts the generated ciphertext into a standard undefined extensible field of the BLE broadcast message, which is an implementation of carrying the ciphertext for broadcasting.
  • the cipher text can also be placed in an address field, such as an expandable field in a watch or a mobile phone address, which is not specifically limited in the present invention.
  • the embodiment of the present invention further provides a schematic block diagram of a terminal, which is used to implement the Bluetooth connection method shown in FIG. 3 and FIG. 4, and the ciphertext generation and broadcast density shown in FIG. The method of the text.
  • a terminal which is used to implement the Bluetooth connection method shown in FIG. 3 and FIG. 4, and the ciphertext generation and broadcast density shown in FIG. The method of the text.
  • FIG. 6 the specific implementation details of the foregoing method shown in FIG. 6 can be referred to the related descriptions in FIG. 3 to FIG. 5 above, and details are not described herein again.
  • the features and technical effects in FIGS. 3 to 6 are applicable to the terminal 600.
  • the terminal shown in FIG. 6 can be applied to the first terminal and the second terminal of the Bluetooth connection, that is, the mobile phone and the watch shown in FIG. 3 and FIG.
  • the terminal 600 includes a Bluetooth low energy BLE module 610, a classic Bluetooth module 620, and a processing module 630.
  • the low power Bluetooth module 610 can be used to receive and send BLE broadcast messages.
  • the classic Bluetooth module can be used to receive and send classic Bluetooth connection requests and to achieve a classic Bluetooth connection to other terminals.
  • the processing module 630 can be used to control the Bluetooth low energy module 610 and the classic Bluetooth module 620. Specifically, it may include whether the Bluetooth low energy module 610 and/or the classic Bluetooth module 630 are enabled, whether to send and receive broadcast messages, connection requests, and the like.
  • the processing module 630 can also obtain device information, such as a Bluetooth address.
  • the processing module 630 can also generate a ciphertext and match the ciphertext.
  • the terminal 600 corresponds to the following second terminal, and specifically includes:
  • the Bluetooth low-power module 610 is configured to receive a BLE broadcast message sent by the first terminal to obtain device information in the BLE broadcast message after the classic Bluetooth connection between the second terminal and the first terminal is disconnected, where The first terminal and the second terminal both support Bluetooth low energy BLE and classic Bluetooth, and the BLE broadcast message includes device information;
  • the processing module 630 is configured to match the device information with the pre-stored device information.
  • the classic Bluetooth module 620 if the processing module 630 successfully matches the acquired device information with the pre-stored device information, may be used to initiate a classic Bluetooth connection request to the first terminal to establish a classic Bluetooth with the first terminal. connection.
  • the processing module 630 is further configured to measure a signal strength of the BLE broadcast message, and determine that the measured signal strength is greater than a preset signal strength threshold of the second terminal.
  • the signal strength of the BLE broadcast message can also be measured by the Bluetooth low energy module 610 as described above.
  • the processing module 630 can also generate and match the ciphertext.
  • the processing module 630 can also generate and match the ciphertext.
  • the terminal 600 corresponds to the following first terminal, and specifically includes:
  • the processing module 630 can be configured to acquire or generate device information.
  • the Bluetooth low energy module 610 is configured to send, after the classic Bluetooth connection between the first terminal and the second terminal is disconnected, the first terminal sends a BLE broadcast message, where the first terminal and the second terminal are both Supporting Bluetooth low energy BLE and classic Bluetooth, the BLE broadcast message includes device information, so that the second terminal matches the device information after receiving the BLE broadcast message, and starts the classic after the matching is successful.
  • Bluetooth connection ;
  • the classic Bluetooth module 620 can be in the connectable state of the classic Bluetooth and receive the Bluetooth connection request of the second terminal;
  • the classic Bluetooth module 620 is further configured to establish a classic Bluetooth connection with the second terminal after receiving the Bluetooth connection request of the second terminal.
  • the processing module 630 can also generate and match the ciphertext.
  • the processing module 630 can also generate and match the ciphertext.
  • the above terminal 600 can realize real-time classic Bluetooth automatic reconnection in a state of low power consumption.

Landscapes

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

Abstract

本发明实施例提出一种蓝牙连接方法,包括:第一终端发送蓝牙低功耗BLE广播消息,所述BLE广播消息包括设备信息;第二终端接收所述BLE广播消息;所述第二终端获取所述设备信息;所述第二终端将所述设备信息与预存的设备信息匹配;若所述设备信息与预存的设备信息匹配成功,所述第二终端向所述第一终端发起经典蓝牙连接请求;所述第一终端与所述第二终端建立经典蓝牙连接。BLE的功率损耗低,该方案中,第一终端与第二终端的上一次经典蓝牙连接断开后,第一终端可以持续性地发送BLE广播或进行扫描,以便于让第二终端及时发现第一终端的存在及连接状态,在低功耗的状态实现实时的经典蓝牙自动重连。

Description

一种蓝牙连接的方法及终端 技术领域
本发明涉及通信技术领域,尤其涉及一种蓝牙连接的方法及终端。
背景技术
随着可穿戴设备等终端的发展,各终端间的无线通信连接技术也越来越多,相应的,无线短距离通信技术,如无线保真(Wireless-Fidelity,Wi-Fi or WiFi)技术、蓝牙技术和ZigBee技术等,也得到了良好的发展。
由于便捷携带、使用方便,以及外观多样等因素,可穿戴设备越来越受到青睐。一个用户除了常备的手机外,可能还配有手环、手表等一个或多个其他终端。而同一用户的不同的终端,可以通过蓝牙技术进行连接并传输数据。
随着蓝牙技术的发展,当前的终端多可以支持双模蓝牙。双模蓝牙,即支持蓝牙低功耗(Bluetooth Low Energy,BLE)和经典蓝牙(Classic Bluetooth)两种蓝牙协议。例如,当前的蓝牙4.0协议,已集成双模蓝牙。
当前,手机与可穿戴设备,如智能手表,可以通过经典蓝牙进行连接。用户可以通过蓝牙将手机上的信息同步到手表,实现接听和拨打电话、接收和回复短消息和即时消息等。但若手机与手表间的蓝牙连接断开,上述同步就不能实现。当手机与手表间的蓝牙连接断开时,手表或手机不尝试自动重连,肯定会在一定程度上影响用户体验。但若手表一直不间断的尝试重新连接上手机,而手机较长时间处于可连接范围外,肯定会造成严重的功率损耗,这对智能终端的电池续航能力是一个挑战。因此,在手表与手机间的蓝牙连接断开后,怎么在保证用户体验和功耗的情况下实现自动重新连接是当前亟待解决的问题。
发明内容
本发明实施例公开了一种显示方法及终端,以优化现有的显示系统的处理过程,减少终端的显示功耗。
第一方面,本发明实施例提供了一种蓝牙连接方法,包括:
第一终端与第二终端的经典蓝牙连接断开,所述第一终端与第二终端都支持蓝牙低功耗BLE和经典蓝牙;
所述第一终端发送BLE广播消息,所述BLE广播消息包括设备信息;
所述第二终端接收所述BLE广播消息,并获取所述设备信息;
所述第二终端将所述设备信息与预存的设备信息进行匹配;
若所述第二终端获取的所述设备信息与所述预存的设备信息匹配成功,所述第二终端向所述第一终端发起经典蓝牙连接请求;
所述第一终端与所述第二终端建立经典蓝牙连接。
上述蓝牙连接的方案将BLE和经典蓝牙进行了有效结合,在前一次经典蓝牙连接断开后,第一终端通过BLE广播消息将自身设备信息进行周期性地广播,第二终端获取或生成手表的设备信息作为扫描的过滤条件,当第二终端接收到BLE广播消息并匹配设备信息成功,则发起经典蓝牙的连接请求,重新与第一终端建立经典蓝牙连接进行通信。BLE的功率损耗低,整个方案中,第一终端与第二终端的上一次经典蓝牙连接断开后,第一终端可以不间断的周期性发送BLE广播,以便于让第二终端及时发现第一终端的存在及连接状态,在低功耗的状态实现实时的经典蓝牙自动重连。
结合第一方面,在第一方面的第一种实现方式中,在所述第二终端将所述设备信息与预存的设备信息进行匹配前,所述方法还包括:
所述第二终端测量所述BLE广播消息的信号强度,并确定所述测量的信号强度大于所述第二终端预设的信号强度阈值。
信号强度阈值的测量与比较,可以将BLE的可连接有效距离与经典蓝牙的可连接有效距离简单关联起来,从一定程度上保证后续蓝牙连接的成功率。并且,设置信号强度阈值也可以滤除相对较远距离的蓝牙连接,提高安全性。
结合第一方面及第一方面的第一种实现方式,在第一方面的第二种实现方式中,所述设备信息为所述第一终端的蓝牙地址;
所述第二终端将所述设备信息与预存的设备信息进行匹配,具体为:所述第二终端将所述获取的所述第一终端的蓝牙地址与预存的蓝牙地址进行匹配。
此处,设备信息为第一终端的蓝牙地址。第一终端与第二终端之前有过蓝牙连接,所以第二终端可记录有第一终端的蓝牙地址,将BLE广播消息 中的地址信息与已记录的蓝牙地址进行匹配,可简单有效地快速进行回连。
结合第一方面及第一方面的第一种实现方式,在第一方面的第三种实现方式中,所述设备信息为所述第一终端生成的第一密文;
所述第二终端将所述设备信息与预存的设备信息进行匹配,具体为:所述第二终端将获取的所述第一终端生成的第一密文与预存的所述第二终端生成的第二密文进行匹配。
此处,设备信息为第一终端生成的密文,已提高BLE广播信息的安全性。
结合第一方面的第三种实现方式,在第一方面的第四种实现方式中,所述第一终端和所述第二终端获取相同的公共属性和状态数据,并通过相同的加密算法,生成所述第一密文和所述第二密文。
第一终端和第二终端可获取连接过程的相同的公共属性和状态数据,而其他设备无法获知,这样可以进一步增强加密的安全性。
结合第一方面及第一方面的第四种实现方式,在第一方面的第五种实现方式中,所述公共属性和状态数据包括但不限于下述的一种或多种:本次连接的可连接地址、上次蓝牙连接断开的时间或距离上次蓝牙断开的时间、上次蓝牙连接中传递的数值、上次蓝牙连接断开之前通过广播消息传递的数值、经典蓝牙上次连接成功使用的连接密钥。
上述为第一终端与第二终端蓝牙连接的公共属性和状态数据的示例,可选择其中的一种或多种组合进行加密,这些公共属性和状态数据都是第一终端与第二终端蓝牙连接的非固定数据,可很大程度上增强安全性。
第二方面,本发明实施例提供了一种蓝牙连接方法,包括:
第二终端与第一终端的经典蓝牙连接断开,所述第一终端与第二终端都支持蓝牙低功耗BLE和经典蓝牙;
所述第二终端接收所述第一终端发送的BLE广播消息,并获取所述BLE广播消息中的设备信息;
所述第二终端将所述设备信息与预存的设备信息进行匹配;
若所述第二终端获取的所述设备信息与所述预存的设备信息匹配成功,所述第二终端向所述第一终端发起经典蓝牙连接请求,以与所述第一终端建 立经典蓝牙连接。
第二方面是从第二终端来描述的本发明的蓝牙连接方法。上述蓝牙连接的方案将BLE和经典蓝牙进行了有效结合,在前一次经典蓝牙连接断开后,第二终端可获取或生成手表的设备信息作为扫描的过滤条件,当接收到BLE广播消息并匹配设备信息成功,则发起经典蓝牙的连接请求,重新与第一终端建立经典蓝牙连接进行通信。BLE的功率损耗低,第一终端与第二终端的上一次经典蓝牙连接断开后,第二终端可以持续地进行BLE扫描,以便于及时发现第一终端的存在及连接状态,在低功耗的状态实现实时的经典蓝牙自动重连。
第二方面的其他可实施方式可参见第一方面的第一至第五种实现方式的相关内容,本发明此处不再赘述。
第三方面,本发明实施例提供了一种蓝牙连接方法,包括:
第一终端与第二终端的经典蓝牙连接断开,所述第一终端与第二终端都支持蓝牙低功耗BLE和经典蓝牙;
所述第一终端发送BLE广播消息,所述BLE广播消息包括设备信息,以便于所述第二终端在接收到所述BLE广播消息后对所述设备信息进行匹配,并在匹配成功后发起经典蓝牙连接;
所述第一终端处于经典蓝牙的可连接状态;
所述第一终端接收所述第二终端的蓝牙连接请求;
所述第一终端与所述第二终端建立经典蓝牙连接。
第三方面是从第一终端来描述的本发明的蓝牙连接方法。在前一次经典蓝牙连接断开后,第一终端通过BLE广播消息将自身设备信息进行周期性地广播,以便于第二终端对该设备信息进行匹配,当第二终端接收到BLE广播消息并匹配设备信息成功,则发起经典蓝牙的连接请求,重新与第一终端建立经典蓝牙连接进行通信。BLE的功率损耗低,第一终端与第二终端的上一次经典蓝牙连接断开后,第一终端可以持续地发送BLE广播,以便于让第二终端及时发现第一终端的存在及连接状态,在低功耗的状态实现实时的经典蓝牙自动重连。
第三方面的其他可实施方式可参见第一方面的第一至第五种实现方式的相关内容,本发明此处不再赘述。
第四方面,本发明实施例提供了一种支持蓝牙低功耗BLE和经典蓝牙 的终端,包括:一个或多个处理器,存储器以及总线,所述一个或多个处理器、所述存储器和所述显示屏通过所述总线通信;
所述存储器用于存储指令;
所述一个或多个处理器用于调用所述存储器中的指令执行以下步骤:
接收第一终端发送的BLE广播消息,并获取所述BLE广播消息中的设备信息;
将所述设备信息与预存的设备信息进行匹配;
若获取的所述设备信息与所述预存的设备信息匹配成功,向所述第一终端发起经典蓝牙连接请求,以与所述第一终端建立经典蓝牙连接。
第四方面提供的终端可以用来实现第二方面提供的一种蓝牙连接方法。上述蓝牙连接的方案将BLE和经典蓝牙进行了有效结合。BLE的功率损耗低,该终端与第一终端的上一次经典蓝牙连接断开后,可以持续地进行BLE扫描,以便于及时发现第一终端的存在及连接状态,在低功耗的状态实现实时的经典蓝牙自动重连。
第四方面的其他可实施方式可参见第一方面的第一至第五种实现方式的相关内容,本发明此处不再赘述。
第五方面,本发明实施例提供了一种支持蓝牙低功耗BLE和经典蓝牙的终端,包括:一个或多个处理器,存储器以及总线,所述一个或多个处理器、所述存储器和所述显示屏通过所述总线通信;
所述存储器用于存储指令;
所述一个或多个处理器用于调用所述存储器中的指令执行以下步骤:
发送BLE广播消息,所述BLE广播消息包括设备信息,以便于所述第二终端在接收到所述BLE广播消息后对所述设备信息进行匹配,并在匹配成功后发起经典蓝牙连接;
处于经典蓝牙的可连接状态;
接收所述第二终端的蓝牙连接请求,并与所述第二终端建立经典蓝牙连接。
第五方面提供的终端可以用来实现第三方面提供的一种蓝牙连接方法。上述蓝牙连接的方案将BLE和经典蓝牙进行了有效结合。BLE的功率损耗低,该终端与第二终端的上一次经典蓝牙连接断开后,可以持续地发送BLE广播,以便于让第二终端及时发现,在低功耗的状态实现实时的经典蓝牙自 动重连。
第五方面的其他可实施方式可参见第一方面的第一至第五种实现方式的相关内容,本发明此处不再赘述。
第六方面,本发明实施例提供了一种蓝牙连接系统,包括:第四方面任一实现方式所述的终端以及第五方面任一实现方式所述的终端。
上述蓝牙连接的方法、终端及系统,将BLE和经典蓝牙进行了有效结合,结合了BLE蓝牙低功耗的优势,在经典蓝牙断开后可持续地发送BLE广播消息或进行BLE扫描,及时让发现对方蓝牙设备发现或发现对方,在低功耗的状态实现实时的经典蓝牙自动重连。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对现有技术或实施例中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的一种手机与手表的蓝牙连接示意图;
图2是本发明实施例公开的双模终端的硬件结构图;
图3是本发明实施例公开的手表和手机进行蓝牙连接的方法示意图;
图4是本发明实施例公开的手表和手机进行蓝牙连接的又一方法示意图;
图5是本发明实施例公开的密文生成与广播的示意图;
图6是本发明实施例公开的另一种终端的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。为了理解本发明,在以下详细描述中提到了众多具体细节。但是本领域技术人员应该理解,本发明可以无需这些具体细节实现。在其他实例中,不详细描述公知的方法、过程、组件和电路等,以免造成实施例不必要地模糊。显然,以下所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的 所有其他实施例,都属于本发明保护的范围。
本发明实施例中使用的术语是为了更好地描述特定的实施例,而并不限定本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。进一步应当理解,本文中采用的术语“包括”规定了所述的特征、整体、步骤、操作、元件和/或部件的存在,而不排除一个或多个其他特征、整体、步骤、操作、元件、部件和/或它们的组的存在或附加。
本发明实施例涉及的一些术语进行说明:蓝牙(Bluetooth,BT),基础速率(Basic Rate,BR),增强数据率(Enhanced Data Rate,EDR),高速(High Speed,HS),蓝牙低功耗(Bluetooth Low Energy,BLE)。其中,蓝牙低功耗也可以称为低功耗蓝牙。
参见图1,手机与手表间可以通过蓝牙连接进行短距离无线通信。手机与手表可以通过BLE进行连接,也可以通过经典蓝牙进行连接。对于只支持BLE连接的终端,可称为单模蓝牙终端。对于既支持BLE连接又支持经典蓝牙连接的终端,可称为双模蓝牙终端。
本发明实施例涉及的蓝牙,是一种短距离数据交换的无线通信标准,可包括经典蓝牙和BLE。经典蓝牙,也可称之为传统蓝牙或标准蓝牙。经典蓝牙是在之前的蓝牙规范协议版本1.0、1.2、2.0+EDR、2.1+EDR、3.0+HS等蓝牙基础上发展和完善起来的,是在BLE出现后通常的称呼。相对BLE,经典蓝牙当前更适用于数据量比较大的传输,如语音、音乐等。BLE,也可称为Bluetooth Smart或其他,是在Nokia的Wibree标准上发展起来的,并在蓝牙规范协议版本4.0中开始引入。BLE,顾名思义,功耗很低,功耗是经典蓝牙的1/10或更少,具有报文短、高效率编码、连接建立时间短等特点。关于蓝牙的相关描述,可参见维基百科的相关内容,可访问网址为:https://en.wikipedia.org/wiki/Bluetooth,最后一次访问时间为2016年6月25日。
用户可以用与手机连接的智能手表来拨打或接听电话、收发即时消息或短信,也可以用该手表来记录或检测自己的状态,比如:步行数、睡眠状态、 心率、跑步速度等。
本发明涉及的“终端”,为可以实现蓝牙连接功能的双模蓝牙终端,该终端可以为手机、手表、手环、平板电脑、销售终端(Point of Sales,POS)或车载电脑等,本发明实施例不作具体限定。在本发明实施例中,为描述方便,主要以手机和手表为例进行说明。
图2示出了与本发明实施例相关的终端200的部分结构的框图,可适用于本发明实施例描述的双模蓝牙终端。参考图2,终端200可包括处理器210、存储器220、电源230、蓝牙芯片240、音频电路250、I/O子系统260、显示屏270、传感器280以及其他输入设备290等部件。本领域技术人员可以理解,图2中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
下面结合图2对终端200的各个构成部件进行具体的介绍:
处理器210是终端200的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器220内的软件程序和/或模块,以及调用存储在存储器220内的数据,执行终端200的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器210可包括一个或多个处理器或处理模块;优选的,处理器210可集成应用处理器(Application Processor,AP)和调制解调处理器,其中,AP主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。在本发明实施例中,上述处理器210还可包括图像处理器GPU,对此本发明不作具体限定。为实现本发明方案,处理器210中还集成有蓝牙模块,以实现蓝牙连接与数据传输等相关功能。可以理解的是,有些处理器210也可以直接执行配置在处理器中的指令来完成相关功能,可不需要调用存储器220中的指令或数据,不过为了简化处理,本发明实施例均可采用“处理器210调用存储器中的指令执行某些操作或步骤”的表述,不对处理器210执行指令的细节作具体限制。
存储器220可用于存储软件程序以及模块,处理器210通过运行存储在存储器220的软件程序以及模块,从而执行终端200的各种功能应用以及数据处理。存储器220可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如蓝牙控制、蓝牙连接功能等)等;存储数据区可存储根据终端200的使用所创建的数据(比如密文 生成算法、蓝牙连接记录等)等。此外,存储器220可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
电源230,比如电池,可以给各个部件供电。优选的,电源可以通过电源管理系统与处理器210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。
终端200还可包括蓝牙芯片240。在本发明实施例中,蓝牙芯片240可包括BLE控制器241和经典蓝牙控制器242。BLE控制器241和经典蓝牙控制器242可实现蓝牙射频信号的发送和接收,如:BLE控制器241可发送和接收BLE广播消息,经典蓝牙控制器242可发送和接收经典蓝牙连接请求和响应等。终端200可通过处理器210中的蓝牙模块,对蓝牙芯片240中的BLE控制器241和经典蓝牙控制器242进行控制。
蓝牙芯片240可预存部分数据,如预存蓝牙信号的信号强度阈值,可连接的目标蓝牙终端的地址、密文或其他身份标识。蓝牙芯片240也可单独进行一些简单的处理,如检测蓝牙相关消息的信号强度,和/或,将检测的信号强度与预存的信号强度阈值进行比较;解析蓝牙相关消息,如广播消息,并将蓝牙相关消息中的地址、密文或其他身份标识与预存的相应信息进行匹配;等。
可以理解的是,BLE控制器241和经典蓝牙控制器242可以是独立的硬件模块,也可以只是逻辑上独立的模块,而硬件是集成在一起的。进一步可以理解的是,蓝牙芯片240可属于处理器210的范畴。并且,终端200也可没有单独的蓝牙芯片。蓝牙芯片240相关的电路和功能可集成在处理器210中,如可集成在手机或手表的AP中。此时,蓝牙模块集成了上述描述的所有与蓝牙功能实现相关的功能模块。
音频电路250可包括麦克风和扬声器,提供用户与终端200之间的音频接口。音频电路250可将音频数据输出至蓝牙模块或蓝牙芯片240以发送给另一终端,或者将从蓝牙模块或蓝牙芯片240获取的音频数据输出给用户等。
I/O子系统260用来控制输入输出的外部设备,可以包括其他设备输入控制器、传感器控制器、显示控制器。
终端可包括显示屏270。显示屏270可用于显示由用户输入的信息或提供给用户的信息以及终端200的各种菜单,还可以接受用户输入。具体的, 显示屏270可包括显示面板271和触控面板272。I/O子系统260中的显示控制器可从显示屏270接收信号和/或者向显示屏270发送信号,实现人机交互。
终端200还可包括一种或多种传感器280,比如光传感器、运动传感器以及其他传感器。I/O子系统260中的传感器控制器可以从一个或者多个传感器280接收信号和/或者向一个或者多个传感器280发送信号。
其他输入设备290可用于接收输入的数字或字符信息,以及产生与终端200的用户设置以及功能控制有关的键信号输入。一个或多个其他设备输入控制器从其他输入设备290接收信号和/或者向其他输入设备290发送信号。
尽管未示出,终端200也可以包括射频电路,用于收发信息或通话过程中,信号的接收和发送。终端200还可以包括摄像头、无线保真(Wireless-Fidelity,Wi-Fi or WiFi)模块、红外线模块等,在此不再赘述。
图2是终端的通用结构框图,可以理解的是,不同的终端可以包括图2中更多或更少的结构。
需要说明的是,实现本发明下述实施例的蓝牙连接方法的终端也可以是指一个处理器或一个处理器加上必要的辅助电路及辅助器件或一个芯片或多个芯片构成的芯片组等。
具有图2所示结构的不同终端可以在一定的范围内实现蓝牙连接,但是一旦超过有效的蓝牙连接范围,终端间的蓝牙连接就会自动断开。例如:用户的智能手表与手机间一直保持着经典蓝牙连接,但该用户要出去跑步,由于手机携带不方便,便只带着手表就出门了。当用户佩戴的手表与手机间隔的距离超过经典蓝牙连接的有效范围,如10米,手表与手机间的经典蓝牙连接就会自动断开。在经典蓝牙连接断开后,如手表不再自动尝试连接手机,那么一旦断开,手表与手机间就无法实现自动重新连接,而若手表(或手机)一直发送消息尝试重新连接且手机(或手表)保持可被连接状态,若长时间连接不上,手表和手机的电量会损耗严重,待机时间变短。
为了实现不同终端间在经典蓝牙连接断开后能自动重新连接的问题,当前的技术方案基于上述两种情况做了一个相对平衡的处理。即,手表(或手机)会在一定的时间范围内以预定的时间间隔进行一定次数的尝试来重新连接手机(或手表),如以每隔5分钟的时间间隔尝试一次连接,若10次还未 连接上,则不再主动尝试连接。或者,现有的一种实现方式中,手表(或手机)第一次隔2秒尝试一次连接,若连接失败,第二次隔4秒尝试一次连接,若再失败,第三次隔8秒尝试一次连接,若连接还失败,下一次以上一次2倍的间隔尝试连接,可选的,当时间间隔达到一定值的时候,如256秒,则在连接成功前均以256秒的间隔尝试连接。上述方案综合考虑了功耗和时延的情况,优化了不同终端间的蓝牙自动重新连接的问题。但一定程度上,上述方案中的经典蓝牙自动连接仍存在时延问题,且功耗上还可以有优化的空间。
为了进一步优化上述蓝牙自动重新连接的问题,本发明实施例提供了一种蓝牙连接的方法。
如图3所示,本发明实施例提供的蓝牙连接方法具体包括:
S302,手机与手表间保持着经典蓝牙的已连接状态,并可通过该经典蓝牙连接进行相应的数据传输。
手机与手表已建立经典蓝牙连接时,可通过经典蓝牙连接相互传输数据。手机和手表可相互获取对方的连接状态和身份信息等。并且,手机与手表可分别记录经典蓝牙的连接时间,可记录连接中传递的某些数值,以及连接成功时使用的连接密钥(Link key)等等。
S304,手机与手表的经典蓝牙连接断开。
此处,手机与手表间连接的经典蓝牙断开可能是因为手机与手表间的距离超过蓝牙的有效距离,也可能是其他原因引起的断开,如手机或手表没电了,或其他环境因素等,此处不作限定。
手机与手表间的经典蓝牙断开时,手机和手表可分别记录本次经典蓝牙连接的断开时间。
S306,手表获取自己的蓝牙地址。
在手表与手机的经典蓝牙连接断开后,手表可获取自己的蓝牙地址,并将自己的蓝牙地址通过BLE广播消息进行广播。蓝牙地址可以是指蓝牙设备的多媒体接入控制(Media Access Control,MAC)地址,也可以是实现蓝牙连接的其他可接入地址。
S308,在手机与手表的经典蓝牙连接断开后,手机的应用处理器(Application Processor,AP)从手机里已记录的信息中获取该手表的蓝牙地址,发送给手机的蓝牙芯片。手机的蓝牙芯片预存AP发送的该手表的蓝牙 地址,并可将该蓝牙地址作为蓝牙芯片扫描过程的一个过滤条件。即手机的蓝牙芯片在搜索到广播消息后,需先判断广播消息中的蓝牙地址与预存的蓝牙地址是否匹配。AP将该蓝牙地址发送给蓝牙芯片后,AP与蓝牙相关的模块可进入休眠状态,以节省功率。
S310,手表进入广播状态,通过BLE广播消息将手表的蓝牙地址进行周期性的广播。
手表周期性发送BLE广播消息,其中BLE广播消息包含手表的蓝牙地址。可选的,手表进入广播状态时,手表的AP,或者AP的蓝牙模块可处于休眠状态。
可选的,手表发送BLE广播消息时,手表的经典蓝牙控制器可处于可连接状态,或者说是处于待连接的寻呼扫描(Page Scan)状态,以便于接收手机的经典蓝牙的连接请求。此处,经典蓝牙控制器是指实现经典蓝牙的控制模块。
在另一种可选的实施方式中,手表的经典蓝牙控制器也可周期性的处于休眠状态,进一步减少功率损耗。
可选的,手表的经典蓝牙控制器周期性的休眠的定时周期可与BLE广播消息的周期相应。即,手表的经典蓝牙控制器可在手表发送BLE广播消息时,处于待连接的扫描状态,并在该状态持续预设时间。可选的,手表的经典蓝牙控制器也可在手表发送BLE广播消息后间隔一段时间再处于待连接的扫描状态,该间隔的时间可以是经验值或实测值,主要可考虑BLE广播消息的发送时间、手机解析并匹配该BLE设备信息的时间以及触发AP发起经典蓝牙连接消息的时间等,以进一步优化经典蓝牙控制器的休眠时间,减少功率损耗。
S312,手机的蓝牙芯片进入搜索状态,接收BLE广播消息。
手机的蓝牙芯片进入搜索状态,或称为扫描状态,以接收手表发送的BLE的广播数据包(advertising packets)。
S314,可选的,手机的蓝牙芯片在接收到BLE广播消息时,测量该BLE广播消息的信号强度,当测量的该BLE广播消息的信号强度大于预设的信号强度值,获取该广播消息中的设备信息,否则,忽略该广播消息。
BLE可连接的有效距离与经典蓝牙可连接的有效距离不同。BLE和经典蓝牙的可连接有效距离与发送功率、设备特性、所处环境等因素相关。通常, BLE的可连接有效距离可以有几十米,可达100米;经典蓝牙的可连接有效距离可有几米、十几米和几十米不等。通过设置信号强度阈值,可以将BLE的可连接有效距离与经典蓝牙的可连接有效距离简单关联起来,从一定程度上保证后续蓝牙连接的成功率。并且,设置信号强度阈值也可以滤除相对较远距离的蓝牙连接,提高安全性。
该预设的信号强度值可以是信号强度的经验值;也可以是技术人员根据实测结果综合考虑功率因素等得到的信号强度值,也可以是用户根据具体需求设置的信号强度值,等等。预设的信号强度值的设置,可进一步保证后续经典蓝牙能有效连接和安全性。对该预设的信号强度值,本发明实施例不做具体限定。
可以理解的是,该步骤为实现该方案的优选步骤,而非必要步骤。该方案中也可通过其他方案来进一步保障后续经典蓝牙的有效连接,如:可以直接将同一终端的BLE的可连接有效距离和经典蓝牙的可连接有效距离进行关联,即将上述两者设置为相同或相差不大的值。
S316,手机的蓝牙芯片匹配BLE广播消息中的密文是否与预存的密文匹配。若该BLE广播消息中的密文与预存的密文匹配,则蓝牙芯片唤醒AP,否则,忽略该BLE广播消息。
优先的,手机判断BLE广播消息中的密文与预存的密文匹配时,手机不跟手表进行BLE连接,而是触发后续的经典蓝牙的连接。即整个蓝牙连接的过程,手机与手表间的BLE可不进行连接,这不仅可以节省资源,而且在经典蓝牙连接后,BLE还可以与其他的支持BLE的蓝牙设备进行连接通信,增加了终端间蓝牙连接的灵活性和多样性。
手机的蓝牙芯片可通过硬件中断来唤醒AP。手机可通过主控制器接口(Host controller interface,HCI)事件来获取该中断的类型,以进行后续的经典蓝牙连接操作。
S318,手机的AP被唤醒后,根据手表的蓝牙地址发送经典蓝牙连接请求。
手机获取手表的经典蓝牙的连接地址,向手表发送连接请求。手表若处于待连接状态,在接收到手机发送的连接请求后,可与手机建立经典蓝牙连接。
在判断接收到的BLE广播消息中的蓝牙地址与预存的蓝牙地址匹配时, 手机可停止搜索,或称为停止扫描。
手机可以在上述蓝牙地址匹配成功后,发起经典蓝牙的搜索,然后再连接。可选的,手机已接收手表的BLE广播数据包,并对广播数据包中的某些数据进行匹配。因此,手机与手表进行经典蓝牙连接时,也可以不用再建立搜索的物理信道(physical channel)进行经典蓝牙搜索,而直接发起经典蓝牙的连接请求,进入连接状态。
S320,手表在接收到手机发送的经典蓝牙连接请求后,停止广播,并与手机重新建立经典蓝牙连接。
手表在发送BLE广播消息时,手表的经典蓝牙控制器处于可连接状态。关于手表的经典蓝牙控制器的可连接状态可参见上述相关描述,此处不再赘述。
当手表接收到手机发送的经典蓝牙的连接请求后,响应手机的连接请求,与手机进行经典蓝牙的连接,建立连接的物理信道(physical channel)。
上述蓝牙连接的方案将BLE和经典蓝牙进行了有效结合,在前一次经典蓝牙连接断开后,手表通过BLE广播消息将可连接的蓝牙地址进行周期性地明文广播,手机从已记录的信息中获取蓝牙地址发给蓝牙芯片,作为对蓝牙广播消息进行扫描的过滤条件,当手机接收到BLE广播消息并匹配地址成功,则唤醒手机AP发起经典蓝牙的连接请求,重新与手表建立经典蓝牙连接进行通信。整个方案中,手机与手表的上一次经典蓝牙连接断开后,手表可以不间断的周期性发送BLE广播,以便于让手机及时发现手表的存在及连接状态,在低功耗的状态实现实时的经典蓝牙自动重连。
上述蓝牙连接的方案可以在低功耗的状态下实现经典蓝牙的实时回连。上述蓝牙方案中可以通过匹配地址和设置信号强度阈值等来提高蓝牙连接的安全性,不过蓝牙设备一直将自己的地址进行蓝牙广播,长时间暴露自己的身份,可能会增加被跟踪、攻击等风险。为了进一步保证BLE广播的安全性,在上述蓝牙连接方案的基础上,本发明实施例提供了另一种蓝牙连接的方法。
如图4所示,该方法是在图3方法基础上进行描述的方法,相同或相关的内容可参见图3方法的描述,如S402-S404,S412-S414,S418-S420,此处不再赘述。下述主要对步骤S406-S410以及S416进行描述。
S406,在手表与手机的蓝牙连接断开后,手表可生成一组加密报文,或 简称密文。
手表可通过预置的算法生成一组密文。该算法可以是手表预置的确定的一组生成密文的算法,该算法也可以是预置的多种生成密文的算法中的一种。若是蓝牙连接的双方有协定支持多种生成密文的算法,手表可在广播消息中指定相应的生成密文的相关信息。
S408,在手机与手表的蓝牙连接断开后,手机的应用处理器(Application Processor,AP)也可通过算法生成一组密文,发送给手机的蓝牙芯片,以作为蓝牙芯片扫描过程的一个过滤条件。AP将生成的密文发送给蓝牙芯片后,AP中与蓝牙相关的模块可进入休眠状态,以节省功率。
手机生成密文的算法是跟手表生成密文相同的算法,以确保两者生成的密文能匹配成功。若有双方协定多种生成密文的算法,可先根据不同的算法生成多个密文,或者在广播消息中获取相应的算法标识后生成密文再进行匹配。
手机的AP可以将密文发给蓝牙芯片进行存储。蓝牙芯片解析接收到的BLE广播消息后,可获取广播消息中手表生成的密文。蓝牙芯片可以将存储的密文与BLE广播消息中的密文进行匹配,若相同,则匹配成功,若不相同,则忽略该BLE广播消息。
手机蓝牙芯片匹配的密文可以是解析获取BLE广播消息中的密文后直接进行匹配,提供匹配的效率;也可以是将获取的该密文进行再次处理后进行匹配,如需将密文通过预设算法进行再次加密或解密后再进行匹配,以进一步提高安全性,对此本发明实施例不做限定。
可选的,上述方案也可以由手机的蓝牙芯片生成密文。
手机可以周期性更新生成的密文,改变扫描的内容。也即,密文可周期性地改变。可选的,手机和手表可间隔一段时间改变生成密文的方式或内容。例如:手机和手表可每隔15分钟重新生成一次密文,每隔15分钟生成一次密文可以是每隔15分钟改变一次密文的生成算法,也可以是每隔15分钟改变一次进行加密处理的数据,如进行加密的数据包括距离上一次断开的时间,那么每隔15分钟获取一次距离上一次断开的时间,这个时间本身就是在变化的,所以每隔15分钟生成一次密文的内容也是变化的。加密处理的数据不限于上述的距离上一次断开的时间,也可以是其他约定的数值。手机和手表周期性的改变广播和/或扫描的内容的方法,本发明实施例此处不做具 体限定。手机和手表周期性的改变广播和/或扫描的内容可以进一步提高安全性。
S410,手表进入广播状态,通过BLE广播消息将手表的密文进行周期性的广播。
手表周期性发送BLE广播消息,其中BLE广播消息包含密文。
可选的,手表可以将密文放入广播消息中的某一字段。例如,BLE广播消息可以广播蓝牙的不可解析私有地址,手表将生成的密文添加到BLE广播消息中标准未定义的字段进行广播,手机也可通过匹配BLE广播消息中的密文来识别手表。对于密文的生成和广播携带方式,可参见下述实施例的详细描述。其中,标准未定义的字段也可以称之为预留字段或可扩展字段等,此处不作限定。
步骤S410的其他相关内容可参见步骤S310的描述,此处不再赘述。
可选的,与手机周期性更新密文相对应,手表也可周期性的改变广播的内容。具体细节可参见步骤S408的描述,此处不再赘述。
S416,手机的蓝牙芯片匹配BLE广播消息中的密文是否与预存的密文匹配。
手机可解析BLE广播消息获取手表生成的密文。若手表通过私有地址发送密文,手机可解析私有地址的相应字段获取该密文。手机解析获取手表的密文后,将该密文与手机生成的密文进行匹配。若该BLE广播消息中的密文与预存的密文匹配,则蓝牙芯片唤醒AP,否则,忽略该BLE广播消息。
手机判断BLE广播消息中的密文与预存的密文匹配时,手机可以与手表进行BLE连接。优选的,手机判断BLE广播消息中的密文与预存的密文匹配时,手机可以不跟手表进行BLE连接,而直接触发后续的经典蓝牙的连接。
手机的蓝牙芯片可通过硬件中断来唤醒AP。手机可通过HCI事件来获取该中断的类型,以进行后续的经典蓝牙连接操作。
可以理解的是,图3所示方法中手表进行BLE广播中携带的蓝牙地址以及图4所示的方法中手表进行设备信息BLE广播中携带的密文,均可以称之为设备信息。手机的蓝牙芯片对设备信息进行匹配,成功后则唤醒AP并进行经典蓝牙的连接。可选的,该设备信息也可以既包括蓝牙地址,也包括密文。即手机既要对蓝牙地址进行匹配,也需要对密文进行匹配。可以理 解的是该设备信息也可以是其他形式,本发明实施例不作具体限定。
与图3所示的方法类似,图4所示的蓝牙连接的方案将BLE和经典蓝牙进行了有效结合,在前一次经典蓝牙连接断开后,手表通过BLE广播消息将生成的密文进行周期性地广播,手机通过同样的算法生成密文后发给蓝牙芯片,作为对蓝牙广播消息进行扫描的过滤条件。当手机接收到BLE广播消息并匹配密文成功,则唤醒手机AP发起经典蓝牙的连接请求,重新与手表建立经典蓝牙连接进行通信。整个方案中,手机与手表在上一次经典蓝牙连接断开后,手表可以不间断的周期性发送BLE广播,以便于让手机及时发现手表的存在及连接状态,在低功耗的状态实现实时的经典蓝牙自动重连,并且手表与手机分别生成密文,并对密文进行匹配成功后才进行经典蓝牙的连接,进一步提高了蓝牙连接的安全性。
基于上述图4的蓝牙连接方法,本发明实施例还提供了一种具体的生成密文和广播密文的方法。可以理解的是,该密文生成和广播方法只是一种示例,并不构成对本发明实施例的限制。另外,该密文的生成和广播方法也可不限于上述图3和图4所述的方法,例如,该密文生成和广播的方法不仅可用于双模蓝牙终端,包括但不限于图3和图4所述的方法;也可用于单模蓝牙终端,如应用于BLE广播和连接的过程。
当前的无线通信设备当中,基本都包含了MAC地址。MAC地址具有唯一性的特点,通常在网络通信当中,MAC地址作为设备符来采用。MAC地址大多是由设备的生产厂商来分配并且存储在设备当中。如果在网络当中有两个设备具有相同的MAC地址,那么就会产生网络通信的问题,所以设备的生产厂商在分配MAC地址的时候都非常小心,确保地址的唯一性。蓝牙设备也有自身的设备地址,在蓝牙的核心规范当中,通常称其为BD_ADDR(Bluetooth Device Address),BD_ADDR将会在蓝牙设备诸如连接和配对的过程当中起到设备识别的作用。对于蓝牙设备,可以使用公有地址(Public Device Address),也可以使用随机地址(Random Device Address)。其中,私有地址是随机地址中的一种。当前,BLE可支持私有地址的特性。
如图5所示,在检查到经典蓝牙连接断开后,手机和手表可分别获取连接的相同的公共属性和状态数据,即用于加密算法进行加密的数据502,通过预设的算法504进行加密,生成密文506。该预设的算法504可以是安全 哈希算法(Secure Hash Algorithm,SHA1),也可以是其他进行加密的算法,本发明实施例对此不做具体限定。由于手机和手表获取的是相同的公共属性和相同的状态数据,即进行算法加密的输入数据502是相同的,那么经过算法加密输出的密文506也会是一样的。公共属性可包括可连接地址和连接密钥等,状态数据可包括蓝牙连接的连接或断开时间、广播消息中传递的数值、连接后传递的数值等。可以理解的是,本发明实施例所述的公共属性和状态数据还可以是例举外的其他,此处不做具体限定。
可选的,用于算法加密的数据502可以包括但不限于下述几种:
1)本次连接的接入地址(access address)
接入地址可以是本次连接的广播接入地址,也可以是连接建立之后两个设备间使用的数据接入地址。此处的数据接入地址是随机值,不同的连接可以有不同的值。终端也可根据需要每次生成满足一定规则的不同的随机值。
2)经典蓝牙上次连接成功使用的连接密钥(Link key)
不同的终端间可以约定不同的连接密钥,相同终端每次的蓝牙连接的连接密钥也可以不同。用于算法加密的数据可以是上次连接成功使用的连接密钥,也可以是之前某一次连接成功使用的连接密钥。
3)上次蓝牙连接的连接或断开的时间或距离上次蓝牙断开的时间
手机和手表分别可记录上一次蓝牙连接断开的时间,不同终端或同一终端的每一次蓝牙连接断开的时间都会有所不同,因此该蓝牙断开的时间或距离上次蓝牙断开的时间也会有所不同,具有不确定性和随机性。可选的,手机和手表对上述时间的记录可能会存在一定的误差,手机和手表可以对上述时间进行一定的处理。例如:手机记录的距离上次蓝牙断开的时间为28分钟,手表记录为30分钟,手机和手表可以分别以30分钟为基准进行四舍五入,因此手机和手表处理后的距离上次蓝牙连接断开的时间就均为30分钟。可以理解的是,手机与手表还可以以其他方式进行处理,此处不做限定。
4)上次蓝牙连接中传递的数值
手机和手表的蓝牙已连接状态均可以传递数据进行通信。该传递的数值 可以是特意传递进行密文生成的数值,也可以是正常数据交互中约定的某一数值。
5)上次蓝牙连接断开之前通过广播消息传递的数值
上一次蓝牙连接断开之前,手机和手表可以通过广播消息发送和接收数据,与3)中的数值类似,可以是广播消息特意传递进行密文生成的数值,也可以是正常数据交互中约定的某一数值。
上述例举的可用于加密的数据只是一些简单的示例,加密的数据还可以包括其他的公共属性或状态数据。用于算法加密的数据可以是其中的一种或多种,连接的双方可以事先约定,也可以通过广播消息指定。
上述例举的可用于算法加密的数据的部分或全部都具有不固定性。每一次生成密文的用于加密的数据相互间独立,不具有规律性。这样,第三方终端不仅无法直接获取进行算法加密的数据都包括哪些,更不知道这些用于算法加密的数据的数值具体是多少。对于算法加密的数据的数值可能存在一定误差的数据,可以在前期对数据进行处理,加密生成唯一确定的密文,也可以设置允许存在的误差范围,生成一组密文的可匹配区间,对此本发明实施例不做具体限定。
手表可将生成的密文506放入BLE广播消息中标准未定义或预留的某一字段,如BLE广播消息中可扩展的AD结构508或者是BLE消息中标准定义的无效部分510,作为BLE广播消息的一部分。具体的,密文可以放入BLE广播消息中的厂商数据或业务数据(service data)部分,或者也可以是其他字段,本发明实施例不作具体限定。可以理解的是,手表将生成的密文放入BLE广播消息的某一标准未定义的可扩展字段是携带密文进行广播的一种实现方式。可选的,该密文也可放入地址字段,例如手表或手机地址中的可扩展字段,本发明对此不做具体限定。
如图6所示,本发明实施例还提供了一种终端的示意性框图,用以实现上述图3和图4所示的蓝牙连接的方法,以及图5所示的密文生成和广播密 文的方法。可以理解的是,图6所示的终端执行上述方法的具体实现细节可参考上述图3至图5中的相关描述,此处不再一一赘述。图3至图6中特征和技术效果均适用于该终端600。可以理解的是,图6所示的终端可以适用于蓝牙连接的第一终端和第二终端,即图3和图4中所示的手机和手表。
该终端600包括蓝牙低功耗BLE模块610,经典蓝牙模块620以及处理模块630。
其中,低功耗蓝牙模块610可用于接收和发送BLE广播消息。
经典蓝牙模块可用于接收和发送经典蓝牙的连接请求,并实现与其他终端间的经典蓝牙连接。
处理模块630可用于对蓝牙低功耗模块610和经典蓝牙模块620进行控制。具体可包括:是否使能(enable)蓝牙低功耗模块610和/或经典蓝牙模块630,是否发送和接收广播消息、连接请求等。处理模块630还可获取设备信息,如蓝牙地址。可选的,处理模块630还可生成密文,并对密文进行匹配。
具体的,终端600对应下述第二终端,具体可包括:
蓝牙低功耗模块610,可用于在第二终端与第一终端之间的经典蓝牙连接断开后,接收所述第一终端发送的BLE广播消息获取所述BLE广播消息中的设备信息,其中,所述第一终端与所述第二终端都支持蓝牙低功耗BLE和经典蓝牙,所述BLE广播消息包括设备信息;
处理模块630,可用于将所述设备信息与预存的设备信息进行匹配;
经典蓝牙模块620,若处理模块630将获取的所述设备信息与所述预存的设备信息匹配成功,可用于向所述第一终端发起经典蓝牙连接请求,以与所述第一终端建立经典蓝牙连接。
可选的,处理模块630,还可用于测量所述BLE广播消息的信号强度,并确定所述测量的信号强度大于所述第二终端预设的信号强度阈值。
可以理解的是,上述也可以由蓝牙低功耗模块610来测量所述BLE广播消息的信号强度。
可选的,所述处理模块630还可以生成并匹配密文。具体细节可参见上述实施例的描述,此处不再赘述。
具体的,终端600对应下述第一终端,具体可包括:
处理模块630,可用于获取或生成设备信息;
蓝牙低功耗模块610,可用于第一终端与第二终端之间的经典蓝牙连接断开后,所述第一终端发送BLE广播消息,其中,所述第一终端与所述第二终端都支持蓝牙低功耗BLE和经典蓝牙,所述BLE广播消息包括设备信息,以便于所述第二终端在接收到所述BLE广播消息后对所述设备信息进行匹配,并在匹配成功后发起经典蓝牙连接;
经典蓝牙模块620,可处于经典蓝牙的可连接状态,并接收所述第二终端的蓝牙连接请求;
经典蓝牙模块620,还可用于在接收所述第二终端的蓝牙连接请求后与所述第二终端建立经典蓝牙连接。
可选的,所述处理模块630还可以生成并匹配密文。具体细节可参见上述实施例的描述,此处不再赘述。
上述终端600可以在低功耗的状态实现实时的经典蓝牙自动重连。
本领域普通技术人员可知,本发明实施例的上述方法中的全部或部分步骤可以通过程序指令相关的硬件完成,该程序可以存储于一计算机可读存储介质中,该计算机可读存储介质如ROM、RAM和光盘等。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。

Claims (30)

  1. 一种蓝牙连接方法,其特征在于,包括:
    第一终端与第二终端之间的经典蓝牙连接断开后,所述第一终端发送BLE广播消息,其中,所述第一终端与所述第二终端都支持蓝牙低功耗BLE和经典蓝牙,所述BLE广播消息包括设备信息;
    所述第二终端接收所述BLE广播消息,并获取所述设备信息;
    所述第二终端将所述设备信息与预存的设备信息进行匹配;
    若所述第二终端获取的所述设备信息与所述预存的设备信息匹配成功,所述第二终端向所述第一终端发起经典蓝牙连接请求;
    所述第一终端与所述第二终端建立经典蓝牙连接。
  2. 根据权利要求1所述的方法,其特征在于,在所述第二终端向所述第一终端发起经典蓝牙连接请求之前,所述方法还包括:
    所述第二终端测量所述BLE广播消息的信号强度,并确定所述测量的信号强度大于所述第二终端预设的信号强度阈值。
  3. 根据权利要求1或2所述的方法,其特征在于,所述设备信息为所述第一终端的蓝牙地址;
    所述第二终端将所述设备信息与预存的设备信息进行匹配,具体为:所述第二终端将所述获取的所述第一终端的蓝牙地址与预存的蓝牙地址进行匹配。
  4. 根据权利要求1或2所述的方法,其特征在于,所述设备信息为所述第一终端生成的第一密文;
    所述第二终端将所述设备信息与预存的设备信息进行匹配,具体为:所述第二终端将获取的所述第一终端生成的第一密文与预存的所述第二终端生成的第二密文进行匹配。
  5. 根据权利要求4所述的方法,其特征在于,所述第一终端和所述第二终端获取相同的公共属性和状态数据,并通过相同的加密算法,生成所述第一密文和所述第二密文。
  6. 根据权利要求5所述的方法,其特征在于,所述公共属性和状态数据包括但不限于下述的一种或多种:本次连接的可连接地址、上次蓝牙连接断开的时间或距离上次蓝牙断开的时间、上次蓝牙连接中传递的数值、上次蓝牙连接断开之前通过广播消息传递的数值、经典蓝牙上次连接成功使用的 连接密钥。
  7. 根据权利要求4至6任一项所述的方法,其特征在于,所述第一终端周期性更新所述第一密文,所述第二终端周期性更新第二密文。
  8. 一种蓝牙连接方法,其特征在于,包括:
    第二终端与第一终端之间的经典蓝牙连接断开后,所述第二终端接收所述第一终端发送的BLE广播消息,其中,所述第一终端与所述第二终端都支持蓝牙低功耗BLE和经典蓝牙,所述BLE广播消息包括设备信息;
    所述第二终端获取所述BLE广播消息中的设备信息;
    所述第二终端将所述设备信息与预存的设备信息进行匹配;
    若所述第二终端获取的所述设备信息与所述预存的设备信息匹配成功,所述第二终端向所述第一终端发起经典蓝牙连接请求,以与所述第一终端建立经典蓝牙连接。
  9. 根据权利要求8所述的方法,其特征在于,在所述第二终端将所述设备信息与预存的设备信息进行匹配前,所述方法还包括:
    所述第二终端测量所述BLE广播消息的信号强度,并确定所述测量的信号强度大于所述第二终端预设的信号强度阈值。
  10. 根据权利要求8或9所述的方法,其特征在于,所述设备信息为所述第一终端的蓝牙地址;
    所述第二终端将所述设备信息与预存的设备信息进行匹配,具体为:所述第二终端将所述获取的所述第一终端的蓝牙地址与预存的蓝牙地址进行匹配。
  11. 根据权利要求8或9所述的方法,其特征在于,所述设备信息为所述第一终端生成的第一密文;
    在所述第二终端接收所述第一终端发送的BLE广播消息之前,所述方法还包括:
    所述第二终端通过与所述第一终端相同的加密算法,生成第二密文;
    所述第二终端将所述设备信息与预存的设备信息进行匹配,具体为:所述第二终端将获取的所述第一密文与预存的所述第二密文进行匹配。
  12. 根据权利要求11所述的方法,其特征在于,所述第二终端获取与所述第一终端进行蓝牙连接的相同的公共属性和状态数据,并将所述公共属性和状态数据通过加密算法生成所述第二密文。
  13. 根据权利要求12所述的方法,其特征在于,所述公共属性和状态数据包括下述的一种或多种:本次连接的可连接地址、上次蓝牙连接断开的时间或距离上次蓝牙断开的时间、上次蓝牙连接中传递的数值、上次蓝牙连接断开之前通过广播消息传递的数值、经典蓝牙上次连接成功使用的连接密钥。
  14. 一种蓝牙连接方法,其特征在于,包括:
    第一终端与第二终端之间的经典蓝牙连接断开后,所述第一终端发送BLE广播消息,其中,所述第一终端与所述第二终端都支持蓝牙低功耗BLE和经典蓝牙,所述BLE广播消息包括设备信息,以便于所述第二终端在接收到所述BLE广播消息后对所述设备信息进行匹配,并在匹配成功后发起经典蓝牙连接;
    所述第一终端处于经典蓝牙的可连接状态;
    所述第一终端接收所述第二终端的蓝牙连接请求;
    所述第一终端与所述第二终端建立经典蓝牙连接。
  15. 根据权利要求14,其特征在于,所述设备信息为所述第一终端的蓝牙地址。
  16. 根据权利要求14所述的方法,其特征在于,所述设备信息为所述第一终端生成的第一密文。
  17. 根据权利要求16所述的方法,其特征在于,所述第一终端获取与所述第二终端的蓝牙连接相关联的公共属性和状态数据,并通过加密算法,生成所述第一密文。
  18. 根据权利要求17所述的方法,其特征在于,所述公共属性和状态数据包括但不限于下述的一种或多种:本次连接的可连接地址、上次蓝牙连接断开的时间或距离上次蓝牙断开的时间、上次蓝牙连接中传递的数值、上次蓝牙连接断开之前通过广播消息传递的数值、经典蓝牙上次连接成功使用的连接密钥。
  19. 一种支持蓝牙低功耗BLE和经典蓝牙的终端,其特征在于,包括:一个或多个处理器,存储器以及总线,所述一个或多个处理器、所述存储器和所述显示屏通过所述总线通信;
    所述存储器用于存储指令;
    所述一个或多个处理器用于调用所述存储器中的指令执行以下步骤:
    接收第一终端发送的BLE广播消息,并获取所述BLE广播消息中的设备信息;
    将所述设备信息与预存的设备信息进行匹配;
    若获取的所述设备信息与所述预存的设备信息匹配成功,向所述第一终端发起经典蓝牙连接请求,以与所述第一终端建立经典蓝牙连接。
  20. 根据权利要求19所述的终端,其特征在于,在向所述第一终端发起经典蓝牙连接请求之前,所述一个或多个处理器还用于:
    测量所述BLE广播消息的信号强度,并确定所述测量的信号强度大于预设的信号强度阈值。
  21. 根据权利要求19或20所述的终端,其特征在于,所述设备信息为所述第一终端的蓝牙地址;
    所述一个或多个处理器具体用于:将所述获取的所述第一终端的蓝牙地址与预存的蓝牙地址进行匹配。
  22. 根据权利要求19或20所述的终端,其特征在于,所述设备信息为所述第一终端生成的第一密文;
    所述一个或多个处理器还具体用于:通过与所述第一终端相同的加密算法,生成第二密文;
    将获取的所述第一密文与预存的所述第二密文进行匹配。
  23. 根据权利要求22所述的终端,其特征在于,所述一个或多个处理器具体用于:
    获取与所述第一终端的蓝牙连接相关联的公共属性和状态数据,并将所述公共属性和状态数据通过所述加密算法生成所述第二密文。
  24. 根据权利要求23所述的终端,其特征在于,所述公共属性和状态数据包括下述的一种或多种:本次连接的可连接地址、上次蓝牙连接断开的时间或距离上次蓝牙断开的时间、上次蓝牙连接中传递的数值、上次蓝牙连接断开之前通过广播消息传递的数值、经典蓝牙上次连接成功使用的连接密钥。
  25. 一种支持蓝牙低功耗BLE和经典蓝牙的终端,其特征在于,包括:一个或多个处理器,存储器以及总线,所述一个或多个处理器、所述存储器和所述显示屏通过所述总线通信;
    所述存储器用于存储指令;
    所述一个或多个处理器用于调用所述存储器中的指令执行以下步骤:
    发送BLE广播消息,所述BLE广播消息包括设备信息,以便于所述第二终端在接收到所述BLE广播消息后对所述设备信息进行匹配,并在匹配成功后发起经典蓝牙连接;
    处于经典蓝牙的可连接状态;
    接收所述第二终端的蓝牙连接请求,并与所述第二终端建立经典蓝牙连接。
  26. 根据权利要求25所述的终端,其特征在于,所述设备信息为蓝牙地址。
  27. 根据权利要求25所述的终端,其特征在于,所述设备信息为生成的第一密文。
  28. 根据权利要求27所述的终端,其特征在于,所述一个或多个处理器具体用于:获取与所述第二终端的蓝牙连接相关联的公共属性和状态数据,并通过加密算法,生成所述第一密文。
  29. 根据权利要求28所述的终端,其特征在于,所述公共属性和状态数据包括但不限于下述的一种或多种:本次连接的可连接地址、上次蓝牙连接断开的时间或距离上次蓝牙断开的时间、上次蓝牙连接中传递的数值、上次蓝牙连接断开之前通过广播消息传递的数值、经典蓝牙上次连接成功使用的连接密钥。
  30. 一种蓝牙连接系统,其特征在于,包括:19~24任一项所述的终端以及25~29任一项所述的终端。
PCT/CN2016/087324 2016-06-27 2016-06-27 一种蓝牙连接的方法及终端 WO2018000134A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP16906538.0A EP3462802B1 (en) 2016-06-27 2016-06-27 Bluetooth connection method and terminal
PCT/CN2016/087324 WO2018000134A1 (zh) 2016-06-27 2016-06-27 一种蓝牙连接的方法及终端
US16/313,462 US10645559B2 (en) 2016-06-27 2016-06-27 Bluetooth connection method and terminal
CN201680087220.XA CN109417758B (zh) 2016-06-27 2016-06-27 一种蓝牙连接的方法及终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/087324 WO2018000134A1 (zh) 2016-06-27 2016-06-27 一种蓝牙连接的方法及终端

Publications (1)

Publication Number Publication Date
WO2018000134A1 true WO2018000134A1 (zh) 2018-01-04

Family

ID=60785666

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087324 WO2018000134A1 (zh) 2016-06-27 2016-06-27 一种蓝牙连接的方法及终端

Country Status (4)

Country Link
US (1) US10645559B2 (zh)
EP (1) EP3462802B1 (zh)
CN (1) CN109417758B (zh)
WO (1) WO2018000134A1 (zh)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618319A (zh) * 2019-01-02 2019-04-12 百度在线网络技术(北京)有限公司 通信连接建立方法、装置、电子设备及可读存储介质
CN110062366A (zh) * 2019-04-18 2019-07-26 深圳创维数字技术有限公司 蓝牙配对异常处理方法、设备、存储介质及装置
CN110072269A (zh) * 2019-04-01 2019-07-30 Oppo广东移动通信有限公司 扫描控制方法、装置、移动终端以及存储介质
CN110572387A (zh) * 2019-09-04 2019-12-13 大唐半导体科技有限公司 一种链路层处理方法
CN110933614A (zh) * 2019-10-12 2020-03-27 阿里巴巴集团控股有限公司 通信处理方法、装置及电子设备
CN110944312A (zh) * 2019-11-14 2020-03-31 合肥星空物联信息科技有限公司 一种利用音频数据进行双模蓝牙配对的方法及蓝牙装置
DE102018124734A1 (de) * 2018-10-08 2020-04-09 Bayerische Motoren Werke Aktiengesellschaft System zum Verbinden eines mobilen Geräts mit einem Kraftfahrzeug
WO2020077342A1 (en) 2018-10-12 2020-04-16 Systems And Software Enterprises, Llc Systems and methods for managing a plurality of short-range wireless connections within a vehicle
CN111026346A (zh) * 2019-12-10 2020-04-17 西安易朴通讯技术有限公司 一种表盘显示内容低功耗更新方法、设备及存储介质
WO2020166932A1 (en) 2019-02-12 2020-08-20 Samsung Electronics Co., Ltd. Method for sharing bluetooth communication information and electronic device therefor
CN112333679A (zh) * 2020-09-10 2021-02-05 深圳Tcl新技术有限公司 蓝牙自动连接方法、系统、设备及计算机可读存储介质
CN112352465A (zh) * 2018-06-21 2021-02-09 佳能株式会社 通信设备、通信设备的控制方法和程序
CN113225690A (zh) * 2020-01-21 2021-08-06 华为技术有限公司 蓝牙连接方法、系统和电子设备
CN113490192A (zh) * 2021-07-26 2021-10-08 深圳市元征未来汽车技术有限公司 蓝牙连接方法、装置、终端设备及可读存储介质
CN113891297A (zh) * 2021-05-31 2022-01-04 荣耀终端有限公司 控制蓝牙连接的方法及电子设备
CN113923641A (zh) * 2021-12-07 2022-01-11 荣耀终端有限公司 一种连接方法及装置
CN114257396A (zh) * 2021-11-03 2022-03-29 广东科学技术职业学院 基于地理空间位置的蓝牙广播加密方法、装置及介质
CN115065943A (zh) * 2022-08-16 2022-09-16 中航信移动科技有限公司 基于蓝牙在弱网场景中的图像位置确定方法、介质及设备
WO2023065813A1 (zh) * 2021-10-22 2023-04-27 华为技术有限公司 一种建立slb连接的方法、电子设备和通信系统
WO2023165418A1 (zh) * 2022-03-01 2023-09-07 维沃移动通信有限公司 蓝牙连接方法和蓝牙连接装置
WO2024012408A1 (zh) * 2022-07-12 2024-01-18 华为技术有限公司 一种实现蓝牙设备低功耗运行方法及相关装置
WO2024037500A1 (zh) * 2022-08-19 2024-02-22 华为技术有限公司 通信方法及相关装置

Families Citing this family (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180349945A1 (en) * 2017-06-06 2018-12-06 International Business Machines Corporation Dynamic selection of an advertisement to present to a user
US10820360B1 (en) * 2017-08-30 2020-10-27 Socket Mobile, Inc. Application-assisted friendly pairing
CN108924805B (zh) * 2018-07-13 2021-05-14 杭州网易云音乐科技有限公司 蓝牙连接方法、介质和第一、第二电子设备以及计算设备
CN109890022B (zh) * 2019-03-29 2023-12-08 努比亚技术有限公司 数据传输控制方法、移动终端及计算机可读存储介质
CN115580854B (zh) * 2019-04-16 2023-08-04 华为技术有限公司 蓝牙扫描方法和电子设备
CN112399390B (zh) 2019-08-14 2021-10-15 华为技术有限公司 一种蓝牙回连的方法及相关装置
KR20210020648A (ko) * 2019-08-16 2021-02-24 삼성전자주식회사 블루투스 네트워크 환경에서 사전 동작을 수행하기 위한 전자 장치 및 그에 관한 방법
CN110519737A (zh) * 2019-08-30 2019-11-29 南京爱沃客信息科技有限公司 一种蓝牙自动连接的方法、装置和系统
CN111436038B (zh) * 2019-10-23 2023-05-05 珠海市杰理科技股份有限公司 蓝牙连接方法及系统、蓝牙主、从设备连接方法及蓝牙主、从设备
CN110784859B (zh) * 2019-10-31 2023-04-28 出门问问信息科技有限公司 基于蓝牙低功耗ble的设备连接实现方法、智能配件及系统
US11871102B2 (en) * 2019-12-04 2024-01-09 LensLock, Inc. Method and system for managing a recording device
CN111246399B (zh) * 2020-02-18 2022-07-22 Oppo(重庆)智能科技有限公司 发现蓝牙设备的方法及相关产品
CN111294737B (zh) * 2020-02-28 2020-11-10 深圳市中科蓝讯科技股份有限公司 通过经典蓝牙生成和发射ble广播包的方法和系统
CN111586661B (zh) * 2020-05-11 2022-09-02 山东亚华电子股份有限公司 一种基于ble的自适应关联组网方法及设备
CN113691964B (zh) * 2020-05-19 2023-09-05 成都鼎桥通信技术有限公司 蓝牙设备的连接方法、装置和存储介质
CN111669739B (zh) * 2020-06-04 2023-08-04 北京万维智能技术有限公司 蓝牙ap自动注册设备方法、系统以及蓝牙ap
CN111757275B (zh) * 2020-06-05 2022-06-03 海尔优家智能科技(北京)有限公司 设备连接方法及装置、存储介质、电子设备
CN111711944A (zh) * 2020-06-15 2020-09-25 珠海美佳音科技有限公司 一种蓝牙电子设备和蓝牙连接系统
CN113840266B (zh) * 2020-06-24 2024-05-03 华为技术有限公司 蓝牙配对方法、装置、系统、电子设备和存储介质
CN113950128B (zh) * 2020-07-16 2024-05-31 珠海市杰理科技股份有限公司 Ble设备控制方法、装置、ble设备、芯片及存储介质
CN112437371B (zh) * 2020-08-11 2023-02-21 珠海市杰理科技股份有限公司 Ble链路的切换方法、设备、耳机对、芯片及介质
CN111954197A (zh) * 2020-08-21 2020-11-17 杭州安恒信息技术股份有限公司 一种经典蓝牙设备探测方法、装置、设备及可读存储介质
CN111935693B (zh) * 2020-08-26 2022-05-06 支付宝(杭州)信息技术有限公司 蓝牙设备连接方法和蓝牙设备
CN112258780B (zh) * 2020-09-28 2022-04-12 四川长虹网络科技有限责任公司 一种户外人员走失报警方法和系统
CN112188467B (zh) * 2020-09-29 2022-05-03 重庆邮电大学 一种基于用户属性的终端发现方法
CN114339698A (zh) * 2020-09-30 2022-04-12 华为技术有限公司 设备间触碰建立无线连接的方法、电子设备及芯片
CN112533184A (zh) * 2020-10-22 2021-03-19 智享众联科技有限公司 一种设备的连接方法及装置
CN112272417B (zh) * 2020-10-23 2022-09-30 海信视像科技股份有限公司 一种双蓝牙音响回连方法及显示设备
CN114679918A (zh) * 2020-10-26 2022-06-28 Oppo广东移动通信有限公司 一种建立广播同步的方法、电子设备及存储介质
CN112270450B (zh) * 2020-11-04 2021-07-23 江苏交控智慧城市技术有限公司 物联网支撑下的实时公交调度与预测系统
CN112738780B (zh) * 2020-12-28 2022-10-25 青岛海尔科技有限公司 测量参数的上报方法及装置、存储介质、电子装置
CN112788579A (zh) * 2020-12-31 2021-05-11 厦门亿联网络技术股份有限公司 一种快速配对双模蓝牙设备的方法及装置
CN112866928B (zh) * 2021-01-12 2022-10-28 刘盛荣 一种智能家具的控制方法、装置及智能家具
KR20220128169A (ko) * 2021-03-12 2022-09-20 삼성전자주식회사 전자 장치 및 그 분실 보고 방법
CN112907933A (zh) * 2021-03-15 2021-06-04 宁波三星医疗电气股份有限公司 一种电能表的抄表方法
CN113660650B (zh) * 2021-04-12 2023-01-10 荣耀终端有限公司 设备回连的方法及相关装置
CN113115291B (zh) * 2021-04-13 2021-11-26 深圳市康凯铭科技有限公司 一种基于低功耗蓝牙的蓝牙自动重连方法及系统
CN113825208B (zh) * 2021-09-30 2023-05-02 联想(北京)有限公司 一种信息处理方法和装置
CN114025339A (zh) * 2021-11-09 2022-02-08 展讯通信(上海)有限公司 数据传输方法、装置、芯片、芯片模组及电子设备
CN114339618B (zh) * 2021-12-16 2023-07-21 恒玄科技(上海)股份有限公司 广播控制方法、蓝牙音频系统和蓝牙音频设备
CN116266908A (zh) * 2021-12-17 2023-06-20 荣耀终端有限公司 一种蓝牙随机地址的生成方法及相关电子设备
CN114364002A (zh) * 2022-01-10 2022-04-15 广东乐心医疗电子股份有限公司 可穿戴设备的发射功率控制方法、装置及可穿戴设备
CN116489818A (zh) * 2022-01-14 2023-07-25 Oppo广东移动通信有限公司 设备连接方法、装置、设备存储介质及芯片
CN115278551B (zh) * 2022-06-14 2023-10-13 广东逸动科技有限公司 控制方法、远控端、智能终端、通信系统及存储介质
CN115499040B (zh) * 2022-09-09 2024-05-07 安克创新科技股份有限公司 蓝牙适配器及其连接方法
CN115514587B (zh) * 2022-09-20 2024-03-08 杭州萤石软件有限公司 一种通信设备、方法、电子设备及存储介质
CN115665713A (zh) * 2022-10-26 2023-01-31 歌尔科技有限公司 多设备的通信方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140018002A1 (en) * 2012-07-12 2014-01-16 Samsung Electronics Co., Ltd. Network, master, hub and method for providing a bluetooth infrastructure
CN104620514A (zh) * 2012-09-10 2015-05-13 三星电子株式会社 运行应用的方法和设备
CN105144757A (zh) * 2013-04-26 2015-12-09 三星电子株式会社 通信模式下的通信服务
CN105191172A (zh) * 2013-05-16 2015-12-23 三星电子株式会社 通信方法和装置
CN105450268A (zh) * 2015-12-02 2016-03-30 惠州Tcl移动通信有限公司 基于蓝牙的可穿戴设备与移动终端自动连接的方法及系统
CN105516896A (zh) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 一种可穿戴设备与移动终端的蓝牙互连方法及系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9641239B2 (en) * 2012-06-22 2017-05-02 Fitbit, Inc. Adaptive data transfer using bluetooth
KR102397285B1 (ko) * 2014-07-31 2022-05-12 엘지전자 주식회사 블루투스 통신을 지원하는 무선 통신 시스템에서 전자기기를 제어하기 위한 방법 및 장치
WO2016036139A2 (ko) * 2014-09-02 2016-03-10 엘지전자(주) 블루투스 le(low energy) 기술을 이용하여 디바이스를 제어하기 위한 방법 및 장치
CN104527567B (zh) 2014-12-12 2017-03-22 深圳楼兰辉煌科技有限公司 一种基于蓝牙ble的汽车智能钥匙系统及其使用方法
CN104993954B (zh) * 2015-06-24 2019-01-11 深圳市金正方科技股份有限公司 智能电表识别终端的方法及系统
CN104967971B (zh) * 2015-06-26 2018-04-27 飞天诚信科技股份有限公司 一种实现Android系统下蓝牙自动回连的方法
CN105338472B (zh) * 2015-09-29 2019-06-18 爱国者电子科技有限公司 无线路由设备、无线路由系统、通信方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140018002A1 (en) * 2012-07-12 2014-01-16 Samsung Electronics Co., Ltd. Network, master, hub and method for providing a bluetooth infrastructure
CN104620514A (zh) * 2012-09-10 2015-05-13 三星电子株式会社 运行应用的方法和设备
CN105144757A (zh) * 2013-04-26 2015-12-09 三星电子株式会社 通信模式下的通信服务
CN105191172A (zh) * 2013-05-16 2015-12-23 三星电子株式会社 通信方法和装置
CN105450268A (zh) * 2015-12-02 2016-03-30 惠州Tcl移动通信有限公司 基于蓝牙的可穿戴设备与移动终端自动连接的方法及系统
CN105516896A (zh) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 一种可穿戴设备与移动终端的蓝牙互连方法及系统

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112352465B (zh) * 2018-06-21 2024-04-05 佳能株式会社 通信设备、通信设备的控制方法和存储介质
CN112352465A (zh) * 2018-06-21 2021-02-09 佳能株式会社 通信设备、通信设备的控制方法和程序
US11496873B2 (en) 2018-10-08 2022-11-08 Bayerische Motoren Werke Aktiengesellschaft System for connecting a mobile device to a motor vehicle
DE102018124734A1 (de) * 2018-10-08 2020-04-09 Bayerische Motoren Werke Aktiengesellschaft System zum Verbinden eines mobilen Geräts mit einem Kraftfahrzeug
WO2020077342A1 (en) 2018-10-12 2020-04-16 Systems And Software Enterprises, Llc Systems and methods for managing a plurality of short-range wireless connections within a vehicle
EP3864870A4 (en) * 2018-10-12 2022-07-06 Systems and Software Enterprises, LLC SYSTEMS AND METHODS FOR MANAGING A VARIETY OF SHORT-RANGE WIRELESS CONNECTIONS IN A VEHICLE
CN109618319A (zh) * 2019-01-02 2019-04-12 百度在线网络技术(北京)有限公司 通信连接建立方法、装置、电子设备及可读存储介质
US11647111B2 (en) 2019-02-12 2023-05-09 Samsung Electronics Co., Ltd. Method for sharing Bluetooth communication information and electronic device therefor
WO2020166932A1 (en) 2019-02-12 2020-08-20 Samsung Electronics Co., Ltd. Method for sharing bluetooth communication information and electronic device therefor
KR20200098253A (ko) * 2019-02-12 2020-08-20 삼성전자주식회사 블루투스 통신 정보 공유 방법 및 전자 장치
US11025772B2 (en) 2019-02-12 2021-06-01 Samsung Electronics Co., Ltd. Method for sharing bluetooth communication information and electronic device therefor
EP3900415A4 (en) * 2019-02-12 2022-05-25 Samsung Electronics Co., Ltd. METHOD FOR SHARING BLUETOOTH COMMUNICATION INFORMATION, AND ASSOCIATED ELECTRONIC DEVICE
CN113412635A (zh) * 2019-02-12 2021-09-17 三星电子株式会社 共享蓝牙通信信息的方法及其电子设备
KR102613405B1 (ko) 2019-02-12 2023-12-14 삼성전자주식회사 블루투스 통신 정보 공유 방법 및 전자 장치
CN110072269A (zh) * 2019-04-01 2019-07-30 Oppo广东移动通信有限公司 扫描控制方法、装置、移动终端以及存储介质
CN110062366A (zh) * 2019-04-18 2019-07-26 深圳创维数字技术有限公司 蓝牙配对异常处理方法、设备、存储介质及装置
CN110572387A (zh) * 2019-09-04 2019-12-13 大唐半导体科技有限公司 一种链路层处理方法
CN110933614A (zh) * 2019-10-12 2020-03-27 阿里巴巴集团控股有限公司 通信处理方法、装置及电子设备
CN110944312B (zh) * 2019-11-14 2023-08-25 合肥星空物联信息科技有限公司 一种利用音频数据进行双模蓝牙配对的方法及蓝牙装置
CN110944312A (zh) * 2019-11-14 2020-03-31 合肥星空物联信息科技有限公司 一种利用音频数据进行双模蓝牙配对的方法及蓝牙装置
CN111026346A (zh) * 2019-12-10 2020-04-17 西安易朴通讯技术有限公司 一种表盘显示内容低功耗更新方法、设备及存储介质
CN111026346B (zh) * 2019-12-10 2024-01-12 西安易朴通讯技术有限公司 一种表盘显示内容低功耗更新方法、设备及存储介质
CN113225690B (zh) * 2020-01-21 2022-09-02 华为技术有限公司 蓝牙连接方法、系统和电子设备
CN113225690A (zh) * 2020-01-21 2021-08-06 华为技术有限公司 蓝牙连接方法、系统和电子设备
CN112333679B (zh) * 2020-09-10 2024-03-12 深圳Tcl新技术有限公司 蓝牙自动连接方法、系统、设备及计算机可读存储介质
CN112333679A (zh) * 2020-09-10 2021-02-05 深圳Tcl新技术有限公司 蓝牙自动连接方法、系统、设备及计算机可读存储介质
CN113891297A (zh) * 2021-05-31 2022-01-04 荣耀终端有限公司 控制蓝牙连接的方法及电子设备
CN113490192B (zh) * 2021-07-26 2024-04-02 深圳市元征科技股份有限公司 蓝牙连接方法、装置、终端设备及可读存储介质
CN113490192A (zh) * 2021-07-26 2021-10-08 深圳市元征未来汽车技术有限公司 蓝牙连接方法、装置、终端设备及可读存储介质
WO2023065813A1 (zh) * 2021-10-22 2023-04-27 华为技术有限公司 一种建立slb连接的方法、电子设备和通信系统
CN114257396A (zh) * 2021-11-03 2022-03-29 广东科学技术职业学院 基于地理空间位置的蓝牙广播加密方法、装置及介质
CN113923641A (zh) * 2021-12-07 2022-01-11 荣耀终端有限公司 一种连接方法及装置
WO2023165418A1 (zh) * 2022-03-01 2023-09-07 维沃移动通信有限公司 蓝牙连接方法和蓝牙连接装置
WO2024012408A1 (zh) * 2022-07-12 2024-01-18 华为技术有限公司 一种实现蓝牙设备低功耗运行方法及相关装置
CN115065943A (zh) * 2022-08-16 2022-09-16 中航信移动科技有限公司 基于蓝牙在弱网场景中的图像位置确定方法、介质及设备
CN115065943B (zh) * 2022-08-16 2022-11-04 中航信移动科技有限公司 基于蓝牙在弱网场景中的图像位置确定方法、介质及设备
WO2024037500A1 (zh) * 2022-08-19 2024-02-22 华为技术有限公司 通信方法及相关装置

Also Published As

Publication number Publication date
EP3462802A4 (en) 2019-06-12
EP3462802A1 (en) 2019-04-03
EP3462802B1 (en) 2020-06-24
CN109417758B (zh) 2021-01-15
US20190253857A1 (en) 2019-08-15
CN109417758A (zh) 2019-03-01
US10645559B2 (en) 2020-05-05

Similar Documents

Publication Publication Date Title
WO2018000134A1 (zh) 一种蓝牙连接的方法及终端
US10609646B2 (en) Intelligent management of a plurality of communications links
US10506504B2 (en) Discovery method and an electronic device thereof
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
WO2021036835A1 (zh) 一种蓝牙搜索方法、系统及相关装置
EP3893109B1 (en) Method and device for connecting bluetooth devices
CN111405681B (zh) Wi-Fi Aware的建链方法、系统、电子设备和存储介质
US11582815B2 (en) Electronic device for receiving data packet in Bluetooth network environment and method thereof
KR20200044505A (ko) 링크 공유를 지원하는 전자 장치 및 이를 위한 방법
JP2021530914A (ja) ページング指示方法、装置及びシステム
US20220256648A1 (en) Apparatus and method for performing data communication in nan protocol-based network environment
CN110809267A (zh) 一种设备连接方法、电子设备及计算机可读存储介质
KR20200052673A (ko) 무선 네트워크에서 근접한 장치들 간 통신 방법 및 장치
CN113170497A (zh) 用于调度其通信数据链路的电子装置和方法
CN111954123A (zh) 无线音频设备信息同步的方法、系统、介质及无线音频设备
TW201328398A (zh) 處理網路連線的方法及其電子裝置
WO2023134386A1 (zh) 设备连接方法、装置、设备存储介质及芯片
CN118139214A (zh) 一种用于设备的连接方法
CN116132963A (zh) 一种邻居发现方法和电子设备
CN113873626A (zh) 一种传输数据的方法、装置及介质

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2016906538

Country of ref document: EP

Effective date: 20181231