WO2021077830A1 - 蓝牙通信方法和具有蓝牙通信功能的装置及设备 - Google Patents

蓝牙通信方法和具有蓝牙通信功能的装置及设备 Download PDF

Info

Publication number
WO2021077830A1
WO2021077830A1 PCT/CN2020/104073 CN2020104073W WO2021077830A1 WO 2021077830 A1 WO2021077830 A1 WO 2021077830A1 CN 2020104073 W CN2020104073 W CN 2020104073W WO 2021077830 A1 WO2021077830 A1 WO 2021077830A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
bluetooth connection
slave device
identification information
user equipment
Prior art date
Application number
PCT/CN2020/104073
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 华为技术有限公司
Publication of WO2021077830A1 publication Critical patent/WO2021077830A1/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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • One or more embodiments of the present application generally relate to the field of Bluetooth communication of electronic devices, and specifically relate to a Bluetooth communication method and devices and devices with Bluetooth communication functions.
  • Bluetooth is one of the most commonly used methods of short-distance communication. With the development of technology, more and more Bluetooth devices appear in people's daily life. How can different Bluetooth devices be easily integrated? Fast pairing is an important problem we want to solve.
  • the device that needs Bluetooth connection must be within the distance range that Bluetooth communication can support, and the connection operation must be performed on two devices, so it is not very convenient and convenient for devices with inconvenient human-computer interaction. Quickly complete the Bluetooth pairing connection.
  • the prior art connection method cannot support the Bluetooth pairing and connection of two devices without a screen (lack of human-machine exchange capability).
  • Some embodiments of the present application provide a Bluetooth communication method and a device and device with Bluetooth communication function.
  • the following describes the application from multiple aspects, and the implementations and beneficial effects of the following multiple aspects can be referred to each other.
  • the TV wants to establish a Bluetooth connection with a wireless headset
  • a human-computer interaction controller such as a remote control on the Bluetooth discovery interface of the TV
  • initiate a Bluetooth connection request and then establish a connection with the wireless headset Bluetooth connection.
  • human-computer interaction devices such as remote controls
  • the Bluetooth setting interface has a deeper directory level, and users Generally, it is not possible to call out the interface with only one or two keystrokes, and the use of the remote control adds to the inconvenience. The above situations make it impossible for the user to quickly complete the Bluetooth pairing connection of the two devices.
  • the embodiments of the present application provide a Bluetooth communication method, which is used for a third-party control device, by determining on the control device at least two terminal devices to be connected by Bluetooth, and Determine which of the at least two terminal devices is the master device that initiates the Bluetooth connection, and the corresponding slave device connected to the master device. Subsequently, the control device sends Bluetooth connection control information to the master device.
  • the Bluetooth connection control information includes identification information of the slave device and instruction information instructing the master device to perform the Bluetooth connection with the slave device.
  • the user inputs an instruction to connect at least two terminal devices to Bluetooth connection through the user interface of the control device, and designates at least one of the at least two terminal devices as the master device and assigns the at least two terminal devices to the master device.
  • the third device by using the third device to complete the Bluetooth pairing or connection of the other two Bluetooth devices, it is possible to solve the Bluetooth pairing and connection between the two devices that require complicated operations, and further, the present application
  • the technical solution can solve the pairing and connection between multiple screenless Bluetooth devices.
  • the TV wants to establish a Bluetooth connection with a wireless headset that has not started Bluetooth broadcasting/scanning or is outside the Bluetooth scanning range of the TV, it is currently impossible to achieve in the prior art.
  • the slave device may be the terminal device that has previously established a Bluetooth connection with the control device, and the identification information of the device is stored in the control device.
  • the control device will save the Bluetooth configuration information of the wireless headset, and display the wireless headset on the control device, even if the wireless headset does not turn on Bluetooth broadcasting/scanning or on the TV. Outside the scanning range, the user can pre-pair the wireless headset, so that when the wireless headset is scanned by the TV, the Bluetooth connection between the TV and the wireless headset can be quickly completed.
  • the embodiments of the present application provide a Bluetooth communication method, which is used for a terminal device that initiates a Bluetooth connection, and the terminal device broadcasts via Bluetooth to receive control information from the control device.
  • the control information may instruct the terminal device as the master device to perform a Bluetooth connection with at least one other terminal device, and the other terminal devices as the slave device, and the control information also includes identification information of the slave device.
  • the terminal device will determine whether to send a Bluetooth connection request to the slave device based on the above information.
  • the master device needs to determine whether the slave device has sent Bluetooth broadcast information to the master device.
  • the master device since the slave device has turned on Bluetooth broadcast/scanning, the master device has obtained the slave device. The identification information of the device, then the identification information of the slave device obtained from the control device and the identification information sent by the slave device will match. In this case, the master device sends a Bluetooth connection request to the slave device.
  • the main device may also confirm whether to send the request to the user through its own human-computer interaction interface, and determine whether to send the request according to the user's input.
  • the master device since the master device has not received the Bluetooth broadcast information from the slave device, the identification information of the slave device sent by the control device will not have matching information in the Bluetooth discovery list of the master device. At this time, the master device will Save the identification information of the slave device sent by the control device.
  • the identification information of the slave device saved in the master device will match the identification information sent by the slave device.
  • the master device sends a Bluetooth connection request to the slave device.
  • the present application provides a Bluetooth communication device for controlling equipment.
  • the device includes: a control module for determining that at least two terminal devices are connected by Bluetooth; and for determining that the at least two terminal devices are At least one terminal device is used as the master device of the Bluetooth connection and at least another terminal device of the at least two terminal devices is used as the slave device of the Bluetooth connection, wherein the master device is used to initiate the Bluetooth connection; And a communication module, configured to send Bluetooth connection control information to the master device through Bluetooth broadcasting, where the Bluetooth connection control information includes identification information of the slave device.
  • the present application provides a Bluetooth communication device for terminal equipment.
  • the device includes: a communication module for receiving control information from a control device through Bluetooth broadcasting, wherein the control information includes instructions for the terminal device As the master device, it performs a Bluetooth connection with at least one other terminal device, where the at least one other terminal device serves as a slave device, and the control information also includes the first identification information of the slave device; the control module is used to determine whether to The slave device initiates a Bluetooth connection request.
  • the present application provides a computer-readable storage medium, which may be non-volatile.
  • the storage medium contains instructions that, after being executed, implement the method described in any one of the foregoing aspects or implementation manners.
  • the present application provides a Bluetooth communication device, which includes a memory and a processor, where the memory is used to store instructions executed by one or more processors of the Bluetooth communication device; the processor is used to execute instructions in the memory After the instruction is executed, the method described in any one of the foregoing aspects or implementation manners is implemented.
  • the effects of this application include, but are not limited to:
  • the third device By using the third device to complete the Bluetooth pairing or connection of the other two Bluetooth devices, it can solve the problem of Bluetooth pairing and connection between two devices that require complicated operations. Furthermore, the technical solution of the present application can solve multiple screenless Bluetooth devices. Pairing and connection between devices. In addition, the technical solution of the present application adopts a new technical method, and can quickly complete the pairing connection to one or more Bluetooth devices not nearby without relying on cloud accounts, server synchronization and other cumbersome operations or slow processes.
  • Fig. 1 shows a schematic diagram of modules of an exemplary Bluetooth communication system having a Bluetooth communication device according to an exemplary embodiment of the present application.
  • Figures 2a-2d show exemplary schematic diagrams of a Bluetooth setting interface of a smart phone according to an exemplary embodiment of the present application.
  • Fig. 3 shows a schematic flowchart of a Bluetooth communication method of an exemplary Bluetooth communication system according to an embodiment of the present application.
  • Fig. 4 shows a schematic flowchart of a Bluetooth communication method of an exemplary Bluetooth communication system according to another embodiment of the present application.
  • Fig. 5 shows a schematic flowchart of a Bluetooth communication method according to another embodiment of the present application.
  • Fig. 6 shows a schematic flowchart of a Bluetooth communication method according to another embodiment of the present application.
  • Fig. 7 shows a schematic diagram of modules of a Bluetooth communication device according to an embodiment of the present application.
  • module or unit may refer to or include an application specific integrated circuit (ASIC), an electronic circuit, a processor (shared, dedicated or group) that executes one or more software or firmware programs, and/or Memory (shared, dedicated or group), combinational logic circuit, and/or other suitable components that provide the described functions, or may be an application specific integrated circuit (ASIC), electronic circuit, executing one or more software or firmware
  • ASIC application specific integrated circuit
  • the program is part of the processor (shared, dedicated or group) and/or memory (shared, dedicated or group), combinational logic circuit, and/or other suitable components that provide the described functions.
  • Fig. 1 is a schematic diagram of modules of an exemplary Bluetooth communication system according to an embodiment of the present application.
  • the exemplary Bluetooth communication system 1 includes a plurality of user equipment 10, 12, 14, 16, wherein the user equipment includes, but is not limited to, laptop devices, desktop computers, handheld PCs, personal digital assistants, embedded processors, digital Signal processor (Digital Signal Processor, referred to as DSP), graphics equipment, video game equipment, set-top boxes, microcontrollers, cellular phones, portable media players, handheld devices, wearable devices (for example, display glasses or goggles, head wear Head-Mounted Display (HMD), watches, head-mounted devices, armbands, jewelry, etc.), virtual reality (Virtual Reality, VR) and/or augmented reality (Augment Reality, AR) devices, Internet of Things (Internet of Things, IoT) equipment, industrial control equipment, in-vehicle infotainment equipment, streaming media client equipment, e-book reading equipment, POS machines, control systems for electric vehicles, and various other electronic equipment.
  • the user equipment 10-16 may include one or more (only one is shown in the figure) control modules 101-161, and the processors 101-161 may include, but are not limited to, a central processing unit (CPU) , Graphics processor GPU (Graphics Processing Unit), digital signal processor DSP, microprocessor MCU (Micro-programmed Control Unit), AI (Artificial Intelligence) processor or programmable logic device FPGA (Field Programmable Gate Array), etc. Processing module or processing circuit.
  • the processors 101-161 may be configured to execute one or more of the various embodiments described below.
  • control modules 101-161 may run the operating system of the user equipment 10-16, for example, Android, iOS, Windows OS, Linux, and Hongmeng operating systems.
  • the processors 101-161 may run specific application programs.
  • the communication modules 103-163 may be configured to communicate via Bluetooth and Bluetooth Low Energy (BLE). Compared with classic Bluetooth, BLE aims to significantly reduce power consumption and cost while maintaining a communication range similar to classic Bluetooth.
  • the communication module can also be configured or additionally configured to communicate via Wi-Fi or WLAN (such as 802.11), or via various other wireless communication technologies-these technologies include, but are not limited to, Long Term Evolution (LTE), LTE Advanced (LTE -A), Global System for Mobile Communications (GSM), Wideband Code Division Multiple Access (WCDMA), CDMA2000, etc.
  • LTE Long Term Evolution
  • LTE -A LTE Advanced
  • GSM Global System for Mobile Communications
  • WCDMA Wideband Code Division Multiple Access
  • CDMA2000 Code Division Multiple Access
  • the user equipment 10 further includes an I/O interface 105.
  • the I/O interface 105 may include any one or more of a variety of input and/or output interfaces, such as a display screen or a touch screen. , Buttons, etc.
  • the user equipment 10 displays various graphical user interfaces through a touch screen, such as a Bluetooth setting interface, and the user can configure multiple Bluetooth devices on the Bluetooth setting interface through the touch screen.
  • the user equipment 12-16 may be implemented in the system 1 in a variety of different ways.
  • one or more user equipment 12-16 may also include an I/O interface (not shown).
  • the I/O interface may include any one or more of a variety of input and/or output interfaces, such as display screens, touch screens, buttons, switches, dials, speakers, microphones, and so on. This application does not specifically limit whether each user equipment 12-16 has an I/O interface and the types of these I/O interfaces.
  • the user equipment 10-14 may include any component shown in FIG. 1, or may not include one or more components shown in FIG. 1, or may include other components not shown in FIG.
  • Bluetooth has the full range of its ordinary meaning, and includes at least any of the various implementations of the existing Bluetooth standard, including Bluetooth Low Energy (BLE), including future implementations of the Bluetooth standard, and so on.
  • BLE Bluetooth Low Energy
  • the Bluetooth connection includes a Bluetooth connection based on the Bluetooth protocol 4.x, such as 4.2, or includes a Bluetooth connection based on the Bluetooth protocol 5.x, such as 5.0.
  • the Bluetooth connection may also include Bluetooth Low Energy (BLE).
  • the user equipment 10 is such as a smart phone, a smart watch, a tablet computer, a computer, etc.
  • the user equipment 12-16 may be respectively wireless earplugs (ear canal type), Wireless keyboards, wireless touchpads, wireless headsets, televisions or speakers and/or smart phones, smart watches, tablets, computers, wireless game controllers, game control hubs, etc.
  • the user equipment 10 can be connected to any of various types of user equipment 12-16 through various wireless connection modes supported by the I/O interface 105, the user equipment 10 is shown It can be connected with the above-mentioned multiple user equipment 12-16 Bluetooth. That is, in an exemplary scenario, each user device 10-16 starts Bluetooth advertising and scanning respectively, and each device can discover each other through Bluetooth.
  • the user equipment 10 is a smart phone
  • the user equipment 12 is a television
  • the user equipment 14 is a wireless headset
  • the user equipment 16 is a laptop computer.
  • Each user equipment 10-16 starts Bluetooth broadcasting and scanning, so that each user equipment 10-16 can discover each other through Bluetooth scanning.
  • At least one of the user equipment 12-16 starts Bluetooth broadcasting and scanning, and at least another of the user equipment 12-16 does not start Bluetooth broadcasting, or although Bluetooth broadcasting is started, It is out of the range that can be scanned by other user equipment's Bluetooth, that is, the device cannot be discovered by other user equipment's Bluetooth, and the device has been connected with user equipment 10 via Bluetooth, that is, the user equipment 10 has saved the configuration of the Bluetooth connection with the device information.
  • the user equipment 10 is a smart phone
  • the user equipment 12 is a television
  • the user equipment 14 is a wireless headset
  • the user equipment 16 is a laptop computer.
  • the wireless headset as the user equipment 14 does not start Bluetooth broadcast/discovery, or the user equipment 14 starts Bluetooth broadcast/discovery, but it is outside the Bluetooth scanning range of other user equipment 10, 12, and 16 and cannot be Other user equipment discovery.
  • the wireless headset (user equipment 14) has been paired and connected with the user equipment 10 (smartphone) via Bluetooth. Therefore, the user equipment 10 saves the Bluetooth connection configuration information of the user equipment 14, for example, in the Bluetooth setting interface of the user equipment 10 It shows that the paired user equipment 14 is currently in an unconnected state.
  • the TV wants to establish a Bluetooth connection with the wireless headset (user equipment 14)
  • it can generally be controlled by man-machine interaction such as a remote control on the Bluetooth discovery interface of the TV.
  • the device selects the wireless headset, initiates a Bluetooth connection request, and then establishes a Bluetooth connection with the wireless headset.
  • human-computer interaction devices such as remote controls to complete the above operations.
  • the Bluetooth setting interface has a deeper directory level, and users Generally, it is not possible to call out the interface with only one or two keystrokes, and the use of the remote control adds inconvenience. The above situations make it impossible for the user to quickly complete the Bluetooth pairing connection of the two devices.
  • the TV (user equipment 12) wants to establish a Bluetooth connection with a wireless headset (user equipment 14) that has not started Bluetooth broadcasting/scanning or is outside the Bluetooth scanning range of the TV, the existing technology is currently Unachievable.
  • the user equipment 10 such as a smart phone, smart watch, or tablet computer, can be used to help the user to solve the above problem by using high-efficiency human-computer interaction devices that are often accompanied by the user.
  • the Bluetooth setting interface 2 includes a nearby device list 21, and the accessory device list 21 includes a direct connection option 211 and an interconnection option 212.
  • the interconnection option 212 also includes a device name list 213, and Each device name corresponds to the selection box 214, the master device block 215, the slave device block 216, and the connection button 217, respectively.
  • FIGS. 2b and 2d are respectively in the exemplary embodiment of the present application, at least those that need Bluetooth connection have been selected.
  • FIGS. 2a-2d only show schematic diagrams of Bluetooth interconnection for a master device and a slave device
  • the drawings of this application are only used as examples for describing the implementation manners.
  • the number is not specifically limited.
  • a wireless headset that supports multi-point Bluetooth connections can be connected to two other Bluetooth devices at the same time.
  • FIG. 3 shows a flowchart of an example method 300 of Bluetooth communication according to some embodiments for the first scenario.
  • the method 300 is implemented on an electronic device, for example, implemented on a user device as shown in FIG. 1.
  • some or all of the method 300 is implemented on the user equipment 10, the user equipment 12, and/or the user equipment 14 as shown in FIG. 1.
  • different components of user equipment 10, user equipment 12, and/or user equipment 14 implement different blocks or other parts of method 300.
  • 301 the user equipment 10 discovers other user equipment 12-16 nearby through Bluetooth scanning, and 302: obtains the identification information of the user equipment 12-16, and displays it through the device name list 213 as shown in Figure 2a These devices.
  • the user specifies the master device and the slave device by sequentially selecting user devices 12 and 14. For example, as shown in Figures 2a-2b, the user device 12 selected first appears in the master device as the master device. In the device block 215, it is used to initiate the Bluetooth connection request, and the later selected user device 14 appears in the slave device block 216 as a slave device for receiving the Bluetooth connection request.
  • the user equipment 10 sends Bluetooth connection control information to the master device (user equipment 12) through Bluetooth broadcasting. This operation is completed by the user clicking the connection button 217 shown in FIG. 2.
  • the Bluetooth connection control information includes identification information of the slave device, such as the MAC address of the slave device (user equipment 14), and also includes indication information for indicating the user equipment 12 as the master device.
  • the control information may be broadcast to the user equipment 12 via BLE.
  • the user equipment 12 After the user equipment 12 receives the Bluetooth connection control information from the user equipment 10 through Bluetooth broadcasting, the user equipment 12 can obtain the instruction information from the control information. According to the instruction information, the user equipment 12 determines that it will act as the master device to initiate Bluetooth to the slave device. Connection request. In addition, the user equipment 12 also obtains the MAC address of the slave device of the Bluetooth connection request from the control information.
  • the user equipment 12 can directly initiate a Bluetooth connection request to the user equipment 14 according to the control information.
  • the user equipment 12 can 306: The interface displays Bluetooth connection confirmation information to the user. After the user confirms the information, the user equipment 12 can initiate a Bluetooth connection request to the user equipment 14.
  • a human-computer interaction interface such as a graphical user interface
  • the user equipment 12 may initiate a Bluetooth connection request to the user equipment 14 . After that, a Bluetooth connection is established between the user equipment 12 and the user equipment 14.
  • the user equipment 12 after the user equipment 12 establishes a Bluetooth connection with the user equipment 14, 308: the user equipment 12 sends to the user equipment 10 the result information of whether the Bluetooth connection is successfully established.
  • the user equipment 10 receives the result information.
  • the user equipment 10 displays to the user a message that the user equipment 12 and the user equipment 14 are successfully connected.
  • the user equipment 12 and the user equipment 14 are stored as a common pairing group, and displayed as a record in the interconnection option 212 of the user equipment 10 for the convenience of the user. Make a fast Bluetooth connection between the two devices.
  • the Bluetooth pairing and connection between two devices that require complex operations can be solved, and further, the pairing between multiple screenless Bluetooth devices can be solved ,connection.
  • FIG. 4 shows a flowchart of an example method 400 of Bluetooth communication according to some embodiments for the first scenario.
  • the method 400 is implemented on an electronic device, for example, on a user device as shown in FIG. 1.
  • some or all of the method 400 is implemented on the user equipment 10, the user equipment 12, and/or the user equipment 14 as shown in FIG. 1.
  • different components of user equipment 10, user equipment 12, and/or user equipment 14 implement different blocks or other parts of method 400.
  • a paired device list 20 is added to the Bluetooth device interface 2, which includes a paired device name list 201 and a selection box 202 corresponding to the device names.
  • the Bluetooth device interface 2 includes a paired device name list 201 and a selection box 202 corresponding to the device names.
  • the user equipment 10 discovers other nearby user equipment 12 and 16 through Bluetooth scanning
  • 402 obtains identification information of the user equipment 12 and 16 and displays these devices through the device name list 213 shown in FIG. 2c.
  • the user opens the Bluetooth setting interface 2 of the user equipment 10, and can see nearby Bluetooth devices (ie, the user equipment 12 and the user equipment 16).
  • the Bluetooth setting interface 2 will also be displayed to the user The Bluetooth device (user device 14) that has been paired with the user device 10, but the user device 14 does not turn on Bluetooth broadcasting/scanning at this time, or is not nearby.
  • the user equipment 10 can save the Bluetooth configuration information of the user equipment 14 during the Bluetooth connection with the user equipment 14 before, including the identification information of the user equipment 14. Therefore, the user equipment 14 is not displayed in the device name list 213, but is displayed in the paired device name list 201 under the paired device list 20.
  • the 403 Determine to connect at least two terminal devices to Bluetooth. Specifically referring to FIG. 2d, the user selects the selection boxes 214 and 202 corresponding to the user equipment 12 and the user equipment 14 to instruct the user equipment 10 to connect the user equipment 12 and the user equipment 14 via Bluetooth.
  • the user equipment 14 is temporarily unable to make a Bluetooth connection.
  • the user equipment 12 will be automatically designated as the master device of the Bluetooth connection for initiating the Bluetooth connection request, and the user equipment 14 Correspondingly, it is designated as a slave device for receiving Bluetooth connection requests.
  • the user equipment 10 sends Bluetooth connection control information to the master device (user equipment 12) through Bluetooth broadcasting. This operation is completed after the user clicks the connection button 217 shown in FIG. 2d.
  • the Bluetooth connection control information includes the identification information of the slave device and the instruction information for indicating the user device 12 as the master device.
  • the identification information of the slave device comes from the Bluetooth configuration information of the user device 14 saved by the user device 10 during the previous Bluetooth connection with the user device 14, rather than from the user device 14 to the user device 12. Bluetooth radio.
  • the user equipment 12 After the user equipment 12 receives the Bluetooth connection control information from the user equipment 10 through Bluetooth broadcasting, the user equipment 12 can obtain the instruction information from the control information. According to the instruction information, the user equipment 12 determines that it will act as the master device to initiate Bluetooth to the slave device. Connection request. In addition, the user equipment 12 also obtains the MAC address of the slave device of the Bluetooth connection request from the control information.
  • the user equipment 12 matches the MAC address of the user equipment 14 with the device address in the Bluetooth discovery list of the user equipment 12 to determine 406 whether the identification information from the control device matches the identification information of the slave device. Since the user equipment 12 has not received the Bluetooth broadcast information of the user equipment 14, the MAC address of the user equipment 14 is not included in the Bluetooth discovery list of the user equipment 12, and the matching result is no. At this time, the user equipment 12 will 407: store the MAC address of the user equipment 14 (sent by the user equipment 10). As an example, the MAC address of the user equipment 14 may be stored in a configuration file with readable permissions for the Bluetooth protocol.
  • 408 When the user device 12 receives the user 14's Bluetooth broadcast signal, for example, when the user device 14 near the user device 12 turns on Bluetooth broadcasting/scanning, or has turned on Bluetooth broadcasting The user equipment 14 enters the distance range of the Bluetooth scanning of the user equipment 12. At this time, 409: The user equipment 12 can compare the MAC address carried in the Bluetooth broadcast information of the user equipment 14 with the MAC address of the user equipment 14 stored in the device of the user equipment 12 (sent by the user equipment 10).
  • 410 display the Bluetooth connection confirmation message to the user on the graphical user interface of the user equipment 12, and after the user confirms the information, 411: the user equipment 12 initiates a Bluetooth connection request to the user equipment 14.
  • 411 the user equipment 12 initiates a Bluetooth connection request to the user equipment 14. After that, a Bluetooth connection is established between the user equipment 12 and the user equipment 14.
  • the user equipment 12 after the user equipment 12 establishes a Bluetooth connection with the user equipment 14, 412: the user equipment 12 sends to the user equipment 10 result information of whether the Bluetooth connection is successfully established.
  • the user equipment 10 receives the result information.
  • the user equipment 10 displays to the user a message that the user equipment 12 and the user equipment 14 are successfully connected. Additionally or alternatively, after the user equipment 10 receives the result message, the user equipment 12 and the user equipment 14 are stored as a common pairing group, and displayed as a record in the interconnection option 212 of the user equipment 10 for the convenience of the user. Make a fast Bluetooth connection between the two devices.
  • the technical solution of the present application adopts new technical methods, and can quickly complete the pairing and connection of one or more Bluetooth devices that are not nearby without relying on cloud accounts, server synchronization and other cumbersome operations or slow processes.
  • the Bluetooth communication method is described below with reference to FIG. 5.
  • the method 500 is implemented on an electronic device, for example, on a user device as shown in FIG. 1.
  • some or all of the method 500 is implemented on the user equipment 10, the user equipment 12, and/or the user equipment 14 as shown in FIG. 1.
  • different components of user equipment 10, user equipment 12, and/or user equipment 14 implement different blocks or other parts of method 500.
  • an instruction to designate at least one terminal device of the at least two terminal devices as a master device and designate at least another terminal device as a slave device is obtained.
  • Bluetooth connection control information is sent to the master device through Bluetooth broadcast.
  • the user inputs the instructions in the blocks 501 and 502 through the user interface of the control device. Through these instructions, it is determined that the at least two terminal devices will be connected via Bluetooth, and that at least one of the at least two terminal devices is determined As the master device of the Bluetooth connection and at least another terminal device of the at least two terminal devices as the slave device of the Bluetooth connection, the master device is used to initiate the Bluetooth connection.
  • the slave device is a terminal device that has previously established a Bluetooth connection with the control device, and the control device stores identification information of the at least another terminal device.
  • the Bluetooth connection control information includes identification information of the slave device.
  • the identification information includes the address of the slave device.
  • the Bluetooth connection control information further includes indication information that instructs the master device to perform a Bluetooth connection with the slave device.
  • the control device to complete the Bluetooth pairing or connection of the other two Bluetooth devices, the Bluetooth pairing and connection between two devices that require complicated operations are solved, and further, the technical solution of the present application can solve the problem Pairing and connection between multiple bluetooth devices without a screen.
  • the technical solution of the present application adopts a new technical method, and can quickly complete the pairing connection to one or more Bluetooth devices not nearby without relying on cloud accounts, server synchronization and other cumbersome operations or slow processes.
  • FIG. 6 shows a flowchart of an example method 600 of Bluetooth communication according to some embodiments.
  • the method 600 is implemented on an electronic device, for example, on a user device as shown in FIG. 1.
  • some or all of the method 600 is implemented on the user equipment 10, the user equipment 12, and/or the user equipment 14 as shown in FIG. 1.
  • different components of user equipment 10, user equipment 12, and/or user equipment 14 implement different blocks or other parts of method 600.
  • the following methods are described by taking the user equipment 12 as a terminal device as an example.
  • control information from the control device is received through Bluetooth broadcasting.
  • the control information includes instructing the terminal device as a master device to perform a Bluetooth connection with at least one other terminal device, wherein at least one other terminal device is a slave device, and the control information is also Including the first identification information of the slave device.
  • the master device stores the first identification information. This shows that the master device has not received the Bluetooth broadcast information from the slave device.
  • the master device After the slave device sends out the Bluetooth broadcast signal, the master device receives the second identification information from the slave device via Bluetooth broadcast in block 604. Upon receiving the information sent by the slave device, in block 605, the master device determines whether the first identification information matches the second identification information from the slave device. At this time, the first identification information saved by the master device will match the second identification information sent by the slave device, because both identification information includes the MAC address of the slave device.
  • the user can determine whether to initiate a Bluetooth connection request to the slave device through an input on the screen of the master device.
  • a Bluetooth connection request is sent to the slave device.
  • the master device will send the result information of the Bluetooth connection to the control device in block 608.
  • the first identification information of the slave device includes the address of the slave device.
  • the second identification information of the slave device includes the address of the slave device.
  • the Bluetooth connection of multiple terminal devices can be completed quickly.
  • the technical solution of the present application can also quickly complete the pairing and connection of the terminal device to one or more Bluetooth devices that are not nearby without resorting to cloud accounts, server synchronization and other cumbersome operations or slow processes.
  • the device 700 may include one or more processors 702, a system control logic 708 connected to at least one of the processors 702, a system memory 704 connected to the system control logic 708, and a nonvolatile memory connected to the system control logic 708. NVM 706, and a network interface 710 connected to the system control logic 708.
  • the processor 702 may include one or more single-core or multi-core processors.
  • the processor 702 may include any combination of a general-purpose processor and a special-purpose processor (for example, a graphics processor, an application processor, a baseband processor, etc.).
  • the processor 702 may be configured to execute one or more embodiments according to the various embodiments shown in FIGS. 3-6.
  • system control logic 708 may include any suitable interface controller to provide any suitable interface to at least one of the processors 702 and/or any suitable device or component in communication with the system control logic 708.
  • system control logic 708 may include one or more memory controllers to provide an interface to the system memory 704.
  • the system memory 704 can be used to load and store data and/or instructions.
  • the memory 704 of the device 700 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
  • DRAM dynamic random access memory
  • the NVM/memory 706 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • the NVM/memory 706 may include any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as HDD (Hard Disk Drive, hard disk drive), CD (Compact Disc , At least one of an optical disc drive and a DVD (Digital Versatile Disc, digital versatile disc) drive.
  • the NVM/memory 706 may include a part of storage resources installed on the device of the device 700, or it may be accessed by the device, but not necessarily a part of the device.
  • the NVM/storage 706 can be accessed through the network via the network interface 710.
  • system memory 704 and the NVM/memory 706 may respectively include: a temporary copy and a permanent copy of the instruction 720.
  • the instructions 720 may include instructions that, when executed by at least one of the processors 702, cause the device 700 to implement the method shown in FIGS. 3-4.
  • the instructions 720, hardware, firmware, and/or software components thereof may additionally/alternatively be placed in the system control logic 708, the network interface 710, and/or the processor 702.
  • the network interface 710 may include a transceiver, which is used to provide a radio interface for the device 700 to communicate with any other suitable devices (such as a front-end module, an antenna, etc.) through one or more networks.
  • the network interface 710 may be integrated with other components of the device 700.
  • the network interface 710 may be integrated in at least one of the processor 702, the system memory 704, the NVM/storage 706, and a firmware device (not shown) with instructions.
  • the processor 702 executes the When instructed, the device 700 implements one or more of the various embodiments shown in FIGS. 3-6.
  • Communication module is used to provide a radio interface for the device 700 to communicate with any other suitable devices (such as a front-end module, an antenna, etc.) through one or more networks.
  • the network interface 710 may be integrated with other components of the device 700.
  • the network interface 710 may be integrated in at least one of the processor 702, the system memory 704, the NVM/storage 706, and a firmware device (not shown
  • the network interface 710 may further include any suitable hardware and/or firmware to provide a multiple input multiple output radio interface.
  • the network interface 710 may be a network adapter, a wireless network adapter, a telephone modem, and/or a wireless modem.
  • At least one of the processors 702 may be packaged with the logic of one or more controllers for the system control logic 708 to form a system in package (SiP). In one embodiment, at least one of the processors 702 may be integrated on the same die with the logic of one or more controllers for the system control logic 708 to form a system on chip (SoC).
  • SiP system in package
  • SoC system on chip
  • the device 700 may further include: an input/output (I/O) device 712.
  • the I/O device 712 may include a user interface to enable a user to interact with the device 700; the design of the peripheral component interface enables the peripheral components to also interact with the device 700.
  • the device 700 further includes a sensor for determining at least one of environmental conditions and location information related to the device 700.
  • the user interface may include, but is not limited to, a display (e.g., liquid crystal display, touch screen display, etc.), speakers, microphones, one or more cameras (e.g., still image cameras and/or video cameras), flashlights (e.g., LED flash) and keyboard.
  • a display e.g., liquid crystal display, touch screen display, etc.
  • speakers e.g., speakers, microphones, one or more cameras (e.g., still image cameras and/or video cameras), flashlights (e.g., LED flash) and keyboard.
  • the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.
  • the sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units.
  • the positioning unit may also be part of or interact with the network interface 910 to communicate with components of the positioning network (eg, global positioning system (GPS) satellites).
  • GPS global positioning system
  • Program code can be applied to input instructions to perform the functions described in this article and generate output information.
  • the output information can be applied to one or more output devices in a known manner.
  • a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • the program code can be implemented in a high-level programming language or an object-oriented programming language to communicate with the processing system.
  • assembly language or machine language can also be used to implement the program code.
  • the mechanisms described in this article are not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
  • IP cores can be stored on a tangible computer-readable storage medium and provided to multiple customers or production facilities to be loaded into the manufacturing machine that actually manufactures the logic or processor.
  • the instruction converter can be used to convert instructions from the source instruction set to the target instruction set.
  • the instruction converter may transform (for example, use static binary transformation, dynamic binary transformation including dynamic compilation), deform, emulate, or otherwise convert instructions into one or more other instructions to be processed by the core.
  • the instruction converter can be implemented by software, hardware, firmware, or a combination thereof.
  • the instruction converter can be on the processor, off the processor, or part on the processor and part off the processor.
  • a Bluetooth communication method for controlling equipment which includes:
  • At least one terminal device of the at least two terminal devices serves as the master device of the Bluetooth connection and at least another terminal device of the at least two terminal devices serves as the slave device of the Bluetooth connection, wherein the master The device is used to initiate the Bluetooth connection;
  • Bluetooth broadcasting send Bluetooth connection control information to the master device, where the Bluetooth connection control information includes the identification information of the slave device.
  • determining at least another terminal device of the at least two terminal devices as the slave device of the Bluetooth connection further includes:
  • At least another terminal device of the at least two terminal devices has established a Bluetooth connection with the control device and the control device stores identification information of the at least another terminal device.
  • the Bluetooth connection control information further includes instruction information for instructing the master device to perform the Bluetooth connection with the slave device.
  • a Bluetooth communication method for terminal equipment wherein the method includes:
  • control information from a control device through Bluetooth broadcasting, where the control information includes instructions to the terminal device as a master device to perform a Bluetooth connection with at least one other terminal device, wherein the at least one other terminal device acts as a slave device, and The control information also includes the first identification information of the slave device;
  • the second identification information of the slave device is received from the slave device through Bluetooth broadcasting.
  • determining whether to initiate a Bluetooth connection request to the slave device further includes:
  • a Bluetooth communication device for controlling equipment wherein the device includes:
  • the control module is used to determine that at least two terminal devices are to be connected by Bluetooth; and used to determine that at least one of the at least two terminal devices is used as the master device of the Bluetooth connection and among the at least two terminal devices At least another terminal device of which serves as a slave device of the Bluetooth connection, wherein the master device is used to initiate the Bluetooth connection;
  • the communication module is configured to send Bluetooth connection control information to the master device through Bluetooth broadcasting, where the Bluetooth connection control information includes identification information of the slave device.
  • control module further comprises:
  • control module further comprises:
  • determining that at least another terminal device of the at least two terminal devices is the slave device of the Bluetooth connection further comprises:
  • At least another terminal device of the at least two terminal devices has established a Bluetooth connection with the control device and the control device stores identification information of the at least another terminal device.
  • Bluetooth connection control information further includes indication information that instructs the master device to perform the Bluetooth connection with the slave device.
  • the communication module further comprises: receiving result information of the Bluetooth connection from the master device.
  • a Bluetooth communication device for terminal equipment wherein the device includes:
  • the communication module is configured to receive control information from a control device via Bluetooth broadcasting, where the control information includes instructions to the terminal device as a master device to establish a Bluetooth connection with at least one other terminal device, wherein the at least one other terminal device acts as A slave device, and the control information also includes first identification information of the slave device;
  • the control module is used to determine whether to initiate a Bluetooth connection request to the slave device.
  • the communication module further comprises:
  • the second identification information of the slave device is received from the slave device through Bluetooth broadcasting.
  • determining whether to initiate a Bluetooth connection request to the slave device further includes:
  • the communication module further comprises: sending result information of the Bluetooth connection to the control device.
  • a computer-readable storage medium wherein an instruction is stored on the computer-readable storage medium, and when the instruction is executed on a computer, the computer executes the Bluetooth described in any one of the embodiments 1-17. Communication method.

Abstract

本申请提供了一种蓝牙通信方法和具有蓝牙通信功能的装置和设备,该方法包括:确定将至少两个终端设备进行蓝牙连接;确定至少两个终端设备中的至少一个终端设备作为蓝牙连接的主设备和至少两个终端设备中的至少另一个终端设备作为蓝牙连接的从设备,其中主设备用于发起蓝牙连接;和通过蓝牙广播,向主设备发送蓝牙连接控制信息,其中蓝牙连接控制信息包括从设备的标识信息。本申请可以解决在两个需要复杂操作的设备间的蓝牙配对、连接,还可以解决多个无屏幕蓝牙设备之间的配对、连接,并且,不借助云端账号、服务器同步等操作繁琐或流程较慢的方式,能够快速地完成对一个或多个不在附近的蓝牙设备的配对连接。

Description

蓝牙通信方法和具有蓝牙通信功能的装置及设备 技术领域
本申请的一个或多个实施例通常涉及电子设备的蓝牙通信领域,具体涉及一种蓝牙通信方法和具有蓝牙通信功能的装置和设备。
背景技术
蓝牙(Bluetooth,简称BT)是短距通信最常用的方式之一,而随着科技的发展,在人们的日常生活中出现了越来越多的蓝牙设备,如何能够方便地将不同的蓝牙设备快速的配对使用是我们要解决的重要问题。
现有技术中,通常当用户需要将两个蓝牙配对时,需要在其中一个设备上发现另一个处于配对模式的蓝牙设备,并在该设备的界面上选中另一个设备进行配对。例如,常见的场景为在手机的蓝牙设置界面,从界面中的蓝牙设备列表中选择需要已发现的需要配对的蓝牙设备。
根据上述场景,通常需要蓝牙连接的设备必须在蓝牙通信可支持的距离范围内,而且连接的操作必须在两台设备上进行,那么对于人机交互不方便的设备来说,并不能很方便和快速的完成蓝牙配对连接。此外,更进一步地来说,现有技术的连接方式无法支持两个无屏幕(缺乏人机交换能力)的设备的蓝牙配对及连接。
发明内容
本申请的一些实施方式提供了一种蓝牙通信方法和具有蓝牙通信功能的装置和设备。以下从多个方面介绍本申请,以下多个方面的实施方式和有益效果可互相参考。
现有方案中,假如电视机要与无线耳机建立蓝牙连接,一般可以在电视机的蓝牙发现界面通过遥控器等人机交互控制器选择该无线耳机,发起蓝牙连接请求,然后与该无线耳机建立蓝牙连接。但是,在目前,使用诸如遥控器的人机交互设备来完成上述操作,对用户来说并不方便,可以理解,对于例如电视机的电子产品来说,蓝牙设置界面的目录层级较深,用户一般无法只通过一次或两次按键就能够呼出该界面,而且使用遥控器更增加了不便。上述这些情况使得用户无法快速的完成两个设备的蓝牙配对连接。
为了应对上述场景,第一方面,本申请的实施方式提供了一种蓝牙通信方法,该方法用于第三方控制设备,通过在该控制设备上确定要进行蓝牙连接的至少两个终端设备,以及确定至少两个终端设备中哪个设备作为发起蓝牙连接的主设备,以及与主设备连接的相应的从设备。随后,控制设备向主设备发送蓝牙连接控制 信息,蓝牙连接控制信息包括从设备的标识信息以及指示主设备与从设备进行所述蓝牙连接的指示信息。
在一些实施方式中,用户通过控制设备的用户界面输入将至少两个终端设备进行蓝牙连接的指令,以及将至少两个终端设备中的至少一个终端设备指定为主设备和将所述至少两个终端设备中的所述至少另一个终端设备指定为所述从设备的指令。例如,用户通过在用户界面上点选相应设备名称完成指令的发送。
由此根据本申请的实施方式,通过利用第三个设备完成另外两个蓝牙设备的蓝牙配对或连接,可以解决在两个需要复杂操作的设备间的蓝牙配对、连接,并且进一步地,本申请的技术方案可以解决多个无屏幕蓝牙设备之间的配对、连接。
在另一种场景中,假如电视机要与没有启动蓝牙广播/扫描或者在电视机的蓝牙扫描范围之外的无线耳机建立蓝牙连接,现有技术目前是无法实现的。
针对上述场景,在一些实施方式中,从设备可以是先前与所述控制设备建立过蓝牙连接的所述终端设备,该设备的标识信息保存在控制设备中。这样,如果无线耳机先前与控制设备蓝牙配对过,那么控制设备会保存该无线耳机的蓝牙配置信息,通过在控制设备显示该无线耳机,即便该无线耳机没有开启蓝牙广播/扫描或在电视机的扫描范围之外,用户都可以对该无线耳机进行预配对,这样当该无线耳机被电视机扫描到时,就可以快速地完成电视机和无线耳机的蓝牙连接。
通过上述技术手段,不借助云端账号、服务器同步等操作繁琐或流程较慢的方式,就能够快速地完成对一个或多个不在附近的蓝牙设备的配对连接。
第二方面,本申请的实施方式提供了一种蓝牙通信方法,该方法用于发起蓝牙连接的终端设备,终端设备通过蓝牙广播,接收来自控制设备的控制信息。该控制信息可以指示终端设备作为主设备与至少一个其他终端设备进行蓝牙连接,其他终端设备作为从设备,并且控制信息中还包括从设备的标识信息。
终端设备会根据上述这些信息确定是否向从设备发送蓝牙连接请求。
考虑到上述描述的不同场景,主设备需要确定从设备是否已经发送过蓝牙广播信息给主设备,在上述第一种场景中,由于从设备已开启蓝牙广播/扫描,因此主设备已经获得了从设备的标识信息,那么,从控制设备获得的该从设备的标识信息与从设备发送的标识信息将匹配,在这种情况下,主设备向从设备发送蓝牙连接请求。
在一种实施方式中,主设备还可以通过自身的人机交互界面向用户确认是否发送请求,并根据用户的输入,确定是否发送请求。
在上述第二种场景中,由于主设备没有收到从设备的蓝牙广播信息,那么控制设备发送的从设备的标识信息在主设备的蓝牙发现列表中将没有匹配信息,这时,主设备会保存控制设备发送的从设备的标识信息。
当从设备向主设备发送蓝牙广播信息后,主设备中保存的从设备的标识信息会与从设备发送的标识信息匹配,在这种情况下,主设备向从设备发送蓝牙连接请求。
由此,根据上述技术方案,可以解决多个无屏幕终端设备之间的配对、连接, 还可以不借助云端账号、服务器同步等操作繁琐或流程较慢的方式,能够快速地完成对一个或多个不在附近的蓝牙设备的配对连接。
第三方面,本申请提供了一种蓝牙通信装置,用于控制设备,装置包括:控制模块,用于确定将至少两个终端设备进行蓝牙连接;以及用于确定所述至少两个终端设备中的至少一个终端设备作为所述蓝牙连接的主设备和所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备,其中所述主设备用于发起所述蓝牙连接;和通信模块,用于通过蓝牙广播,向所述主设备发送蓝牙连接控制信息,其中所述蓝牙连接控制信息包括所述从设备的标识信息。
第四方面,本申请提供了一种蓝牙通信装置,用于终端设备,装置包括:通信模块,用于通过蓝牙广播,接收来自控制设备的控制信息,其中所述控制信息包括指示所述终端设备作为主设备与至少一个其他终端设备进行蓝牙连接,其中所述至少一个其他终端设备作为从设备,并且所述控制信息还包括所述从设备的第一标识信息;控制模块,用于确定是否向所述从设备发起蓝牙连接请求。
第五方面,本申请提供了一种计算机可读存储介质,该存储介质可以是非易失性的。该存储介质中包含指令,该指令在执行后实施如前述任意一个方面或实施方式所描述的方法。
第六方面,本申请提供了一种蓝牙通信设备,该设备包括存储器和处理器,其中,存储器用于存储蓝牙通信设备的一个或多个处理器执行的指令;处理器用于执行存储器中的指令,指令在执行后实施如前述任意一个方面或实施方式所描述的方法。
本申请根据本申请的一些方面,其效果包括,但不局限于:
通过利用第三个设备完成另外两个蓝牙设备的蓝牙配对或连接,解决在两个需要复杂操作的设备间的蓝牙配对、连接,并且进一步地,本申请的技术方案可以解决多个无屏幕蓝牙设备之间的配对、连接。此外,本申请的技术方案采用新的技术方法,不借助云端账号、服务器同步等操作繁琐或流程较慢的方式,能够快速地完成对一个或多个不在附近的蓝牙设备的配对连接。
附图说明
图1示出了根据本申请示意性的实施例的具有蓝牙通信装置的示例蓝牙通信系统的模块示意图。
图2a-2d示出了根据本申请示意性的实施例的一种智能手机的蓝牙设置界面的示例性示意图。
图3示出了根据本申请实施例的示例蓝牙通信系统的蓝牙通信方法的流程示意图。
图4示出根据本申请另一个实施例的示例蓝牙通信系统的蓝牙通信方法的流程示意图。
图5示出根据本申请另一个实施例的蓝牙通信方法的流程示意图。
图6示出根据本申请另一个实施例的蓝牙通信方法的流程示意图。
图7示出了根据本申请实施例的蓝牙通信设备的模块示意图。
具体实施方式
为使本申请实施例的目的和技术方案更加清楚,下面将结合本申请实施例的附图,对本申请实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于所描述的本申请的实施例,本领域普通技术人员在无需创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。
如本文所使用的,术语“模块或单元”可以指或者包括专用集成电路(ASIC)、电子电路、执行一个或多个软件或固件程序的处理器(共享的、专用的或组)和/或存储器(共享的、专用的或组)、组合逻辑电路、和/或提供所描述的功能的其他合适的组件,或者可以是专用集成电路(ASIC)、电子电路、执行一个或多个软件或固件程序的处理器(共享的、专用的或组)和/或存储器(共享的、专用的或组)、组合逻辑电路、和/或提供所描述的功能的其他合适的组件的一部分。
图1是根据本申请实施方式的示例蓝牙通信系统的模块示意图。示例性蓝牙通信系统1包括多个用户设备10、12、14、16,其中,用户设备包括但不局限于,膝上型设备、台式机、手持PC、个人数字助理、嵌入式处理器、数字信号处理器(Digital Signal Processor,简称DSP)、图形设备、视频游戏设备、机顶盒、微控制器、蜂窝电话、便携式媒体播放器、手持设备、可穿戴设备(例如,显示眼镜或护目镜,头戴式显示器(Head-Mounted Display,简称HMD),手表,头戴设备,臂带,珠宝等),虚拟现实(Virtual Reality,简称VR)和/或增强现实(Augment Reality,简称AR)设备,物联网(Internet of Things,IoT)设备,工业控制设备,车载信息娱乐设备,流媒体客户端设备,电子书阅读设备,POS机,电动车辆的控制系统,以及各种其他电子设备。一般地,能够包含本文中所公开的处理器和/或其它执行逻辑的多个装置和电子设备一般都是合适的。
如图1所示,用户设备10-16可以包括一个或多个(图中仅示出一个)控制模块101-161,处理器101-161可以包括但不限于中央处理器CPU(Central Processing Unit)、图像处理器GPU(Graphics Processing Unit)、数字信号处理器DSP、微处理器MCU(Micro-programmed Control Unit)、AI(Artificial Intelligence)处理器或可编程逻辑器件FPGA(Field Programmable Gate Array)等的处理模块或处理电路。在本文的实施例中,处理器101-161可以被配置为执行下文描述的各种实施例的一个或多个实施例。
在一种可能的实施方式中,控制模块101-161可以运行用户设备10-16的操作系统,例如,Android、iOS、Windows OS、Liunix和鸿蒙操作系统等。在另一些可能的实施方式中,处理器101-161可以运行特定的应用程序。
通信模块103-163可以配置为经由蓝牙以及蓝牙低功耗(BLE)通信。与经典蓝牙相比,BLE旨在显著减小功率消耗和成本,同时维持与经典蓝牙类似的通信 范围。通信模块还可以配置为或附加地配置为经由Wi-Fi或WLAN(例如802.11)通信,或经由各种其它无线通信技术通信——这些技术包括但不限于长期演进(LTE)、高级LTE(LTE-A)、全球移动通信系统(GSM)、宽带码分多址(WCDMA)、CDMA2000等等。
参考图1,在一些实施方式中,用户设备10进一步包括I/O接口105,I/O接口105可以包括任何的多种输入和/或输出接口中的一个或多个,诸如显示屏、触摸屏、按钮等等。在本申请的一个实施方式中,用户设备10通过触摸屏显示各种图形用户界面,例如:蓝牙设置界面,用户可以通过触摸屏在蓝牙设置界面对多个蓝牙设备进行配置。
根据本申请的其他实施方式,用户设备12-16可以通过多种不同方式在系统1中实施,例如,一个或多个用户设备12-16也可以包括I/O接口(未示出),它们的I/O接口可以包括任何的多种输入和/或输出接口中的一个或多个,诸如显示屏、触摸屏、按钮、开关、拨号盘、扬声器、麦克风等等。对于各个用户设备12-16中是否具有I/O接口,以及这些I/O接口的种类,本申请在此不做具体限定。此外,用户设备10-14中可以包括图1中所示的任一部件,或者不包括图1中所示的一个或多个部件,或者可以包括图1中未示出的其他部件。
如图1所示,在图1的示例性方案中,各个用户设备之间可以通过蓝牙相互通信。术语“蓝牙”具有其普通含义的全部范围,并且至少包括现有蓝牙标准的各种实施中的任一种,包括蓝牙低功耗(BLE),包括蓝牙标准的未来实施等。例如,蓝牙连接包括基于蓝牙协议4.x,例如4.2的蓝牙连接或者包括基于蓝牙协议5.x,例如5.0的蓝牙连接。此外,蓝牙连接还可以包括蓝牙低功耗(BLE)。
根据本申请的一个示例性的实施场景,例如,用户设备10诸如是智能手机、智能手表、平板电脑、计算机等,相应地,用户设备12-16可以分别诸如是无线耳塞(耳道式)、无线键盘、无线触控板、无线头戴式耳机、电视机或扬声器和/或智能手机、智能手表、平板电脑、计算机、无线游戏控制器、游戏控制中枢等。在图1所示的示例中,尽管用户设备10可以通过I/O接口105支持的各种无线连接方式连接到各种类型的用户设备12-16中的任一种,但是用户设备10被示出为可以与上述多个用户设备12-16蓝牙连接。也就是说,在示例性的场景中,各个用户设备10-16分别启动蓝牙广播(Advertising)和扫描(scanning),各个设备可通过蓝牙发现彼此。
以一个可能的示例为例,假设,用户设备10为智能手机、用户设备12为电视机、用户设备14为无线耳机以及用户设备16为膝上型计算机。每个用户设备10-16启动蓝牙广播和扫描,这样,各个用户设备10-16通过蓝牙扫描可以发现彼此。
根据本申请的另一个可能的示例性的实施场景,用户设备12-16中的至少一个启动蓝牙广播和扫描,用户设备12-16中的至少另一个未启动蓝牙广播,或虽然启动蓝牙广播但处在可被其他用户设备蓝牙扫描的距离之外,即该设备无法被其他用户设备蓝牙发现,同时该设备曾与用户设备10蓝牙连接,即用户设备10 保存有与该设备的蓝牙连接的配置信息。
以另一个可能的示例为例,同样假设用户设备10为智能手机、用户设备12为电视机、用户设备14为无线耳机以及用户设备16为膝上型计算机。在本示例中,作为用户设备14的无线耳机没有启动蓝牙广播/发现,或者用户设备14开启了蓝牙广播/发现,但是它在其他用户设备10、12、16的蓝牙扫描范围之外,无法被其他用户设备发现。同时,该无线耳机(用户设备14)曾经与用户设备10(智能手机)蓝牙配对连接,因此,用户设备10中保存有用户设备14的蓝牙连接配置信息,例如,在用户设备10的蓝牙设置界面中显示已配对的用户设备14当前处于未连接的状态。
现有方案中,对于上述第一种场景,假如电视机(用户设备12)要与无线耳机(用户设备14)建立蓝牙连接,一般可以在电视机的蓝牙发现界面通过遥控器等人机交互控制器选择该无线耳机,发起蓝牙连接请求,然后与该无线耳机建立蓝牙连接。但是,在目前,使用诸如遥控器的人机交互设备来完成上述操作,对用户来说并不方便,可以理解,对于例如电视机的电子产品来说,蓝牙设置界面的目录层级较深,用户一般无法只通过一次或两次按键就能够呼出该界面,而且使用遥控器更增加了不便。上述这些情况使得用户无法快速的完成两个设备的蓝牙配对连接。
对于上述第二种场景,假如电视机(用户设备12)要与没有启动蓝牙广播/扫描或者在电视机的蓝牙扫描范围之外的无线耳机(用户设备14)建立蓝牙连接,现有技术目前是无法实现的。
针对上述情况,根据本申请的实施方式,可以利用用户设备10,诸如智能手机、智能手表或平板电脑等的常伴用户身边的高效率人机交互设备帮助用户解决上述问题。
图2a-2d示出了用户设备10为智能手机时蓝牙设置界面的示例性示意图。如图2a-2d所示,蓝牙设置界面2中包括附近设备列表21,在附件设备列表21中包括直连选项211、互连选项212,其中互连选项212内还包括设备名称列表213、与每个设备名称分别对应的选择框214、主设备块215、从设备块216以及连接按键217。
其中,图2a和2c分别表示还未选择需要蓝牙连接的用户设备时蓝牙设置界面2的示意图,图2b和2d分别是在本申请的示例性的实施方式中,已选定需要蓝牙连接的至少两个用户设备后的蓝牙设置界面2的示意图。
可以理解,虽然图2a-2d中仅示出了针对一个主设备和一个从设备进行蓝牙互连的示意图,但是本申请的附图仅作为描述实施方式的举例,本申请对主/从设备的数量并不做具体限定,例如,在用户设备支持多点蓝牙连接情况下,诸如,支持多点蓝牙连接的一个无线耳机可以同时与其他两个蓝牙设备连接。
以下参考图2a-2b描述图3所示的本申请的一种实施方式。图3示出了针对第一种场景,根据一些实施方式的蓝牙通信的示例方法300的流程图。在一些实施方式中,方法300例如在电子设备上实施,例如,如图1所示的用户设备上实 施。在一些实施方式中,方法300中的一些或全部在如图1中所示的用户设备10、用户设备12和/或用户设备14上实施。在一些实施方式中,用户设备10、用户设备12和/或用户设备14的不同组件实施方法300的不同块或其他部分。
如图3所示,301:用户设备10通过蓝牙扫描发现附近的其他用户设备12-16,以及302:获得用户设备12-16的标识信息,并通过如图2a所示的设备名称列表213显示这些设备。
303:确定将至少两个终端设备进行蓝牙连接。参考图2b,用户通过选择每个设备名称分别对应的选择框214,指示用户设备10将用户设备12和用户设备14进行蓝牙连接。
304:确定蓝牙连接的主设备和从设备。在一个可选的示例中,用户通过对用户设备12和14进行先后选择来指定主设备和从设备,例如,如图2a-2b所示,先被选择的用户设备12作为主设备出现在主设备块215中,用于发起该蓝牙连接的请求,后选择的用户设备14作为从设备出现在从设备块216中,用于接收蓝牙连接请求。
之后,305:用户设备10通过蓝牙广播向主设备(用户设备12)发送蓝牙连接控制信息。该操作通过用户点击图2中所示连接按键217完成。根据本申请的实施方式,蓝牙连接控制信息中包括从设备的标识信息,例如从设备(用户设备14)的MAC地址,以及还包括用于指示用户设备12为主设备的指示信息。在可选的示例中,该控制信息可以通过BLE广播发送给用户设备12。
当用户设备12通过蓝牙广播接收到来自用户设备10的蓝牙连接控制信息后,用户设备12可以从控制信息中获得指示信息,根据指示信息,用户设备12确定自身将作为主设备向从设备发起蓝牙连接请求。此外,用户设备12从控制信息中还获得该蓝牙连接请求的从设备的MAC地址。
针对上述第一种场景,由于用户设备10-16之间已通过蓝牙扫描发现彼此,因此,307:用户设备12可以根据控制信息直接向用户设备14发起蓝牙连接请求。
可选地或替代地,如果用户设备12也具备诸如图形用户界面的人机交互接口,用户设备12从控制信息获得指示信息和从设备的MAC地址后,可以306:在用户设备12的图像用户界面向用户显示蓝牙连接确认信息,在用户确认该信息后,用户设备12可以向用户设备14发起蓝牙连接请求。
在另一种实施方式中,如果用户设备12是具有有限的人机交互能力的设备或不具备人机交互能力的设备,诸如是无屏幕设备,用户设备12可以向用户设备14发起蓝牙连接请求。之后,在用户设备12与用户设备14建立蓝牙连接。
根据本申请的另一个可选的实施方式,在用户设备12与用户设备14建立蓝牙连接之后,308:用户设备12向用户设备10发送该蓝牙连接是否建立成功的结果信息。
309:用户设备10接收该结果信息。在一个可选的示例中,用户设备10向用户显示用户设备12和用户设备14成功连接的消息。附加地或替代地,用户设 备10接收该结果消息后,将用户设备12与用户设备14作为一个常用配对组进行存储,并作为一条记录显示在用户设备10的互连选项212内,方便用户之后进行两个设备的快速蓝牙连接。
通过利用第三个设备完成另外两个蓝牙设备的蓝牙配对或连接,解决在两个需要复杂操作的设备间的蓝牙配对、连接,并且进一步地,可以解决多个无屏幕蓝牙设备之间的配对、连接。
以下参考图2c-2d描述图4所示的可用于上述第二种场景的蓝牙通信方法。图4示出了针对第一种场景,根据一些实施方式的蓝牙通信的示例方法400的流程图。在一些实施方式中,方法400例如在电子设备上实施,例如,如图1所示的用户设备上实施。在一些实施方式中,方法400中的一些或全部在如图1中所示的用户设备10、用户设备12和/或用户设备14上实施。在一些实施方式中,用户设备10、用户设备12和/或用户设备14的不同组件实施方法400的不同块或其他部分。
在图2c中,与图2a相比,蓝牙设备界面2中增加已配对设备列表20,其中包括已配对设备名称列表201和与设备名称分别对应的选择框202。对于图2c-2d中其他部分的描述可以参考图2a-2b的相关说明,在此不再赘述。
在图4中,对于具有与图3中所示的功能相同的块,在此不再赘述。以下将详细描述与示例方法300不同的块或部分。
401:用户设备10通过蓝牙扫描发现附近的其他用户设备12和16,以及402:获得用户设备12和16的标识信息,并通过图2c中所示的设备名称列表213显示这些设备。
具体地,如图2c所示,用户打开用户设备10的蓝牙设置界面2,可以看到附近的蓝牙设备(即,用户设备12和用户设备16),此外,蓝牙设置界面2还会向用户显示已经和用户设备10配对过的蓝牙设备(用户设备14),但此时用户设备14没有开启蓝牙广播/扫描,或者不在附近。
此外,由于用户设备10在先前与用户设备14进行蓝牙连接时可以保存用户设备14的蓝牙配置信息,其中包括用户设备14的标识信息。因此,用户设备14不会显示在设备名称列表213中,而是显示在已配对设备列表20下的已配对设备名称列表201中。
403:确定将至少两个终端设备进行蓝牙连接。具体参考图2d,用户通过选择用户设备12和用户设备14对应的选择框214和202,指示用户设备10将用户设备12和用户设备14进行蓝牙连接。
404:确定蓝牙连接的主设备和从设备。根据上述情况,用于用户设备14暂时无法进行蓝牙连接,在一个可选的示例中,用户设备12将自动被指定为蓝牙连接的主设备,用于发起该蓝牙连接的请求,而用户设备14相应地被指定为从设备,用于接收蓝牙连接请求。
之后,405:用户设备10通过蓝牙广播向主设备(用户设备12)发送蓝牙连接控制信息。该操作在用户点击图2d所示的连接按键217后完成,根据本申 请的实施方式,蓝牙连接控制信息中包括从设备的标识信息和用于指示用户设备12为主设备的指示信息。根据上述描述的场景,从设备(用户设备14)的标识信息来自用户设备10在先前与用户设备14进行蓝牙连接时保存的用户设备14的蓝牙配置信息,而非来自用户设备14向用户设备12的蓝牙广播。
当用户设备12通过蓝牙广播接收到来自用户设备10的蓝牙连接控制信息后,用户设备12可以从控制信息中获得指示信息,根据指示信息,用户设备12确定自身将作为主设备向从设备发起蓝牙连接请求。此外,用户设备12从控制信息中还获得该蓝牙连接请求的从设备的MAC地址。
用户设备12将用户设备14的MAC地址与用户设备12的蓝牙发现列表中的设备地址进行匹配,用于确定406:来自控制设备的标识信息与=从设备的标识信息是否匹配。由于用户设备12并未接收到用户设备14的蓝牙广播信息,因此用户设备12的蓝牙发现列表中并没有用户设备14的MAC地址,进而,匹配结果为否。这时,用户设备12将407:存储用户设备14的MAC地址(由用户设备10发送)。作为一个示例,用户设备14的MAC地址可以保存在蓝牙协议可读权限的配置文件中。
随后,根据本实施方式所描述的场景,408:在用户设备12接收到用户14的蓝牙广播信号,例如,在用户设备12附近的用户设备14开启蓝牙广播/扫描时,或者已开启蓝牙广播的用户设备14进入用户设备12的蓝牙扫描的距离范围内。此时,409:用户设备12可以将用户设备14的蓝牙广播信息中携带的MAC地址与保存在用户设备12的设备中的用户设备14的MAC地址(由用户设备10发送)进行对比,如果这两个地址彼此匹配,则410:在用户设备12的图像用户界面向用户显示蓝牙连接确认信息,在用户确认该信息后,411:用户设备12向用户设备14发起蓝牙连接请求。在可选的实施方式中,如果上述两个地址彼此匹配,则可以直接411:用户设备12向用户设备14发起蓝牙连接请求。之后,在用户设备12与用户设备14建立蓝牙连接。
根据本申请的另一个可选的实施方式,在用户设备12与用户设备14建立蓝牙连接之后,412:用户设备12向用户设备10发送该蓝牙连接是否建立成功的结果信息。
随后413:用户设备10接收该结果信息。在一个可选的示例中,用户设备10向用户显示用户设备12和用户设备14成功连接的消息。附加地或替代地,用户设备10接收该结果消息后,将用户设备12与用户设备14作为一个常用配对组进行存储,并作为一条记录显示在用户设备10的互连选项212内,方便用户之后进行两个设备的快速蓝牙连接。
根据本申请的实施方式,通过利用第三个设备完成另外两个蓝牙设备的蓝牙配对或连接,解决在两个需要复杂操作的设备间的蓝牙配对、连接,并且进一步地,本申请的技术方案可以解决多个无屏幕蓝牙设备之间的配对、连接。此外,本申请的技术方案采用新的技术方法,不借助云端账号、服务器同步等操作繁琐或流程较慢的方式,能够快速地完成对一个或多个不在附近的蓝牙设备的配对连 接。
以下参考图5描述根据一些实施方式的蓝牙通信方法。在一些实施方式中,方法500例如在电子设备上实施,例如,如图1所示的用户设备上实施。在一些实施方式中,方法500中的一些或全部在如图1中所示的用户设备10、用户设备12和/或用户设备14上实施。在一些实施方式中,用户设备10、用户设备12和/或用户设备14的不同组件实施方法500的不同块或其他部分。
对于上述系统实施方式中未描述的内容,可以参见下述方法实施方式;同样地,对于方法实施方式中未描述的内容,可参见上述系统实施方式。
根据本申请的前述各部分,以用户设备10作为控制设备为例,描述下述方法。
在块501中,获取将至少两个终端设备进行蓝牙连接的指令。
在块502中,获取将至少两个终端设备中的至少一个终端设备指定为主设备和将至少另一个终端设备指定为从设备的指令。
在块503中,通过蓝牙广播,向主设备发送蓝牙连接控制信息。
在块504中,接收来自主设备的蓝牙连接的结果信息。
在块505中,显示蓝牙连接的结果信息。
在一些实施方式中,用户通过控制设备的用户界面输入块501和502中的指令,通过这些指令,确定将至少两个终端设备进行蓝牙连接,以及确定至少两个终端设备中的至少一个终端设备作为蓝牙连接的主设备和至少两个终端设备中的至少另一个终端设备作为蓝牙连接的从设备,其中主设备用于发起蓝牙连接。
在一些实施方式中,从设备为先前与控制设备建立过蓝牙连接的终端设备,而且且所述控制设备存储有所述至少另一个终端设备的标识信息。
在一些实施方式中,蓝牙连接控制信息包括从设备的标识信息。
在一些实施方式中,标识信息包括从设备的地址。
在一些实施方式中,蓝牙连接控制信息还包括指示主设备与从设备进行蓝牙连接的指示信息。
根据本申请的实施方式,通过利用控制设备完成另外两个蓝牙设备的蓝牙配对或连接,解决在两个需要复杂操作的设备间的蓝牙配对、连接,并且进一步地,本申请的技术方案可以解决多个无屏幕蓝牙设备之间的配对、连接。此外,本申请的技术方案采用新的技术方法,不借助云端账号、服务器同步等操作繁琐或流程较慢的方式,能够快速地完成对一个或多个不在附近的蓝牙设备的配对连接。
图6示出了根据一些实施方式的蓝牙通信的示例方法600的流程图。在一些实施方式中,方法600例如在电子设备上实施,例如,如图1所示的用户设备上实施。在一些实施方式中,方法600中的一些或全部在如图1中所示的用户设备10、用户设备12和/或用户设备14上实施。在一些实施方式中,用户设备10、用户设备12和/或用户设备14的不同组件实施方法600的不同块或其他部分。
对于上述系统实施方式中未描述的内容,可以参见下述方法实施方式;同样地,对于方法实施方式中未描述的内容,可参见上述系统实施方式。
根据本申请的前述各部分,以用户设备12作为终端设备为例,描述下述方法。
在块601中,通过蓝牙广播,接收来自控制设备的控制信息,控制信息包括指示终端设备作为主设备与至少一个其他终端设备进行蓝牙连接,其中至少一个其他终端设备作为从设备,并且控制信息还包括从设备的第一标识信息。
在块602中,确定终端设备是否接收到从设备发送的第二标识信息。
在没有接收从设备发送的信息的情况下,在块603中,主设备存储第一标识信息。这说明主设备还没有接收过从设备的蓝牙广播信息。
当从设备发出蓝牙广播信号后,主设备在块604中,通过蓝牙广播,接收来自从设备的第二标识信息。在接收到从设备发送的信息下,在块605主设备会确定第一标识信息与来自从设备的第二标识信息是否匹配。此时,主设备保存的第一标识信息会与从设备发送的第二标识信息匹配,因为,两个标识信息都包括从设备的MAC地址。
在一些实施方式中,在块606用户可以通过主设备的屏幕的输入,确定是否向从设备发起蓝牙连接请求。
在块607中,向从设备发送蓝牙连接请求。
在一些实施方式中,主设备会在608块向控制设备发送蓝牙连接的结果信息。
在一些实施方式中,从设备的第一标识信息包括从设备的地址。
在一些实施方式中,从设备的第二标识信息包括从设备的地址。
采用本申请的实施方式,即便终端设备缺乏人机交互接口或者蓝牙连接的设置流程复杂,也能够快速完成多个终端设备的蓝牙连接。此外,本申请的技术方案还能够不借助云端账号、服务器同步等操作繁琐或流程较慢的方式,能够快速地完成终端设备对一个或多个不在附近的蓝牙设备的配对连接。
通信模块通信模块通信模块通信模块通信模块
现在参考图7,所示为根据本申请的一个实施例的蓝牙通信设备700的框图。设备700可以包括可以包括一个或多个处理器702,与处理器702中的至少一个连接的系统控制逻辑708,与系统控制逻辑708连接的系统内存704,与系统控制逻辑708连接的非易失性存储器(NVM)706,以及与系统控制逻辑708连接的网络接口710。
处理器702可以包括一个或多个单核或多核处理器。处理器702可以包括通用处理器和专用处理器(例如,图形处理器,应用处理器,基带处理器等)的任何组合。在本文的实施例中,处理器702可以被配置为执行根据如图3-6所示的各种实施例的一个或多个实施例。
在一些实施例中,系统控制逻辑708可以包括任意合适的接口控制器,以向处理器702中的至少一个和/或与系统控制逻辑708通信的任意合适的设备或组件提供任意合适的接口。
在一些实施例中,系统控制逻辑708可以包括一个或多个存储器控制器,以提供连接到系统内存704的接口。系统内存704可以用于加载以及存储数据和/ 或指令。在一些实施例中设备700的内存704可以包括任意合适的易失性存储器,例如合适的动态随机存取存储器(DRAM)。
NVM/存储器706可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性的计算机可读介质。在一些实施例中,NVM/存储器706可以包括闪存等任意合适的非易失性存储器和/或任意合适的非易失性存储设备,例如HDD(Hard Disk Drive,硬盘驱动器),CD(Compact Disc,光盘)驱动器,DVD(Digital Versatile Disc,数字通用光盘)驱动器中的至少一个。
NVM/存储器706可以包括安装在设备700的装置上的一部分存储资源,或者它可以由设备访问,但不一定是设备的一部分。例如,可以经由网络接口710通过网络访问NVM/存储706。
特别地,系统内存704和NVM/存储器706可以分别包括:指令720的暂时副本和永久副本。指令720可以包括:由处理器702中的至少一个执行时导致设备700实施如图3-4所示的方法的指令。在一些实施例中,指令720、硬件、固件和/或其软件组件可另外地/替代地置于系统控制逻辑708,网络接口710和/或处理器702中。
网络接口710可以包括收发器,用于为设备700提供无线电接口,进而通过一个或多个网络与任意其他合适的设备(如前端模块,天线等)进行通信。在一些实施例中,网络接口710可以集成于设备700的其他组件。例如,网络接口710可以集成于处理器702的,系统内存704,NVM/存储器706,和具有指令的固件设备(未示出)中的至少一种,当处理器702中的至少一个执行所述指令时,设备700实现图3-6所示的各种实施例的一个或多个实施例。通信模块
网络接口710可以进一步包括任意合适的硬件和/或固件,以提供多输入多输出无线电接口。例如,网络接口710可以是网络适配器,无线网络适配器,电话调制解调器和/或无线调制解调器。
在一个实施例中,处理器702中的至少一个可以与用于系统控制逻辑708的一个或多个控制器的逻辑封装在一起,以形成系统封装(SiP)。在一个实施例中,处理器702中的至少一个可以与用于系统控制逻辑708的一个或多个控制器的逻辑集成在同一管芯上,以形成片上系统(SoC)。
设备700可以进一步包括:输入/输出(I/O)设备712。I/O设备712可以包括用户界面,使得用户能够与设备700进行交互;外围组件接口的设计使得外围组件也能够与设备700交互。在一些实施例中,设备700还包括传感器,用于确定与设备700相关的环境条件和位置信息的至少一种。
在一些实施例中,用户界面可包括但不限于显示器(例如,液晶显示器,触摸屏显示器等),扬声器,麦克风,一个或多个相机(例如,静止图像照相机和/或摄像机),手电筒(例如,发光二极管闪光灯)和键盘。
在一些实施例中,外围组件接口可以包括但不限于非易失性存储器端口、音频插孔和电源接口。
在一些实施例中,传感器可包括但不限于陀螺仪传感器,加速度计,近程传 感器,环境光线传感器和定位单元。定位单元还可以是网络接口910的一部分或与网络接口910交互,以与定位网络的组件(例如,全球定位系统(GPS)卫星)进行通信。
本申请的各方法实施方式均可以以软件、磁件、固件等方式实现。
可将程序代码应用于输入指令,以执行本文描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(DSP)、微控制器、专用集成电路(ASIC)或微处理器之类的处理器的任何系统。
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本文中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。
至少一个实施例的一个或多个方面可以由存储在计算机可读存储介质上的表示性指令来实现,指令表示处理器中的各种逻辑,指令在被机器读取时使得该机器制作用于执行本文所述的技术的逻辑。被称为“IP核”的这些表示可以被存储在有形的计算机可读存储介质上,并被提供给多个客户或生产设施以加载到实际制造该逻辑或处理器的制造机器中。
在一些情况下,指令转换器可用来将指令从源指令集转换至目标指令集。例如,指令转换器可以变换(例如使用静态二进制变换、包括动态编译的动态二进制变换)、变形、仿真或以其它方式将指令转换成将由核来处理的一个或多个其它指令。指令转换器可以用软件、硬件、固件、或其组合实现。指令转换器可以在处理器上、在处理器外、或者部分在处理器上且部分在处理器外。
结合以上,本申请还提供如下的实施例:
1.一种蓝牙通信方法,用于控制设备,其中,包括:
确定将至少两个终端设备进行蓝牙连接;
确定所述至少两个终端设备中的至少一个终端设备作为所述蓝牙连接的主设备和所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备,其中所述主设备用于发起所述蓝牙连接;和
通过蓝牙广播,向所述主设备发送蓝牙连接控制信息,其中所述蓝牙连接控制信息包括所述从设备的标识信息。
2.如实施例1所述的方法,其中,所述从设备的标识信息包括所述从设备的地址。
3.如实施例1所述的方法,其中,所述方法还包括:
获取将所述至少两个终端设备进行所述蓝牙连接的指令。
4.如实施例1所述的方法,其中,所述方法还包括:
获取将所述至少两个终端设备中的所述至少一个终端设备指定为所述主设备和将所述至少两个终端设备中的所述至少另一个终端设备指定为所述从设备的指令。
5.如实施例3或4所述的方法,其中,所述指令是用户通过所述控制设备的用户界面输入的。
6.如实施例1所述的方法,其中,确定所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备还包括:
确定所述至少两个终端设备中的至少另一个终端设备与所述控制设备建立过蓝牙连接且所述控制设备存储有所述至少另一个终端设备的标识信息。
7.如实施例1所述的方法,其中,所述蓝牙连接控制信息还包括指示所述主设备与所述从设备进行所述蓝牙连接的指示信息。
8.如实施例1所述的方法,其中,所述方法还包括:接收来自所述主设备的所述蓝牙连接的结果信息。
9.如实施例1-8中任一项所述的方法,其中,所述蓝牙连接根据蓝牙协议建立。
10.一种蓝牙通信方法,用于终端设备,其中,所述方法包括:
通过蓝牙广播,接收来自控制设备的控制信息,其中所述控制信息包括指示所述终端设备作为主设备与至少一个其他终端设备进行蓝牙连接,其中所述至少一个其他终端设备作为从设备,并且所述控制信息还包括所述从设备的第一标识信息;
确定是否向所述从设备发起蓝牙连接请求。
11.如实施例10所述的方法,其中,所述从设备的所述第一标识信息包括所述从设备的地址。
12.如实施例10所述的方法,其中,所述方法还包括:
通过蓝牙广播,从所述从设备接收所述从设备的第二标识信息。
13.如实施例12所述的方法,其中,所述从设备的所述第二标识信息包括所述从设备的地址。
14.如实施例10所述的方法,其中,所述确定是否向所述从设备发起所述蓝牙连接请求,还包括:
根据用户通过所述主设备的屏幕的输入,确定是否向所述从设备发起蓝牙连接请求。
15.如实施例10所述的方法,其中,所述确定是否向所述从设备发起所述蓝牙连接请求,还包括:
确定是否从所述从设备接收到所述从设备的第二标识信息;
在未接收到所述第二标识信息的情况下,将所述第一标识信息存储在所述主设备;
在接收到所述第二标识信息的情况下,根据来自所述控制设备的所述第一标识信息与来自所述从设备的所述第二标识信息是否匹配,确定是否向所述从设备发起蓝牙连接请求。
16.如实施例15所述的方法,其中,根据所述第一标识信息与所述第二标识信息是否匹配,确定是否向所述从设备发起蓝牙连接请求还包括:
在匹配的情况下,向所述从设备发起所述蓝牙连接请求。
17.如实施例10所述的方法,其中,所述方法还包括:向所述控制设备发送所述蓝牙连接的结果信息。
18.一种蓝牙通信装置,用于控制设备,其中,所述装置包括:
控制模块,用于确定将至少两个终端设备进行蓝牙连接;以及用于确定所述至少两个终端设备中的至少一个终端设备作为所述蓝牙连接的主设备和所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备,其中所述主设备用于发起所述蓝牙连接;和
通信模块,用于通过蓝牙广播,向所述主设备发送蓝牙连接控制信息,其中所述蓝牙连接控制信息包括所述从设备的标识信息。
19.如实施例18所述的装置,其中,所述从设备的标识信息包括所述从设备的地址。
20.如实施例18所述的装置,其中,所述控制模块还包括:
获取将所述至少两个终端设备进行所述蓝牙连接的指令。
21.如实施例18所述的装置,其中,所述控制模块还包括:
获取将所述至少两个终端设备中的所述至少一个终端设备指定为所述主设备和将所述至少两个终端设备中的所述至少另一个终端设备指定为所述从设备的指令。
22.如实施例20或21所述的装置,其中,所述指令是用户通过所述控制设备的用户界面输入的。
23.如实施例18所述的装置,其中,确定所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备还包括:
确定所述至少两个终端设备中的至少另一个终端设备与所述控制设备建立过蓝牙连接且所述控制设备存储有所述至少另一个终端设备的标识信息。
24.如实施例18所述的装置,其中,所述蓝牙连接控制信息还包括指示所述主设备与所述从设备进行所述蓝牙连接的指示信息。
25.如实施例18所述的装置,其中,所述通信模块还包括:接收来自所述主设备的所述蓝牙连接的结果信息。
26.如实施例18-25中任一项所述的装置,其中,所述蓝牙连接根据蓝牙协议建立。
27.一种蓝牙通信装置,用于终端设备,其中,所述装置包括:
通信模块,用于通过蓝牙广播,接收来自控制设备的控制信息,其中所述控制信息包括指示所述终端设备作为主设备与至少一个其他终端设备进行蓝牙连接,其中所述至少一个其他终端设备作为从设备,并且所述控制信息还包括所述从设备的第一标识信息;
控制模块,用于确定是否向所述从设备发起蓝牙连接请求。
28.如实施例27所述的装置,其中,所述从设备的所述第一标识信息包括所述从设备的地址。
29.如实施例27所述的装置,其中,所述通信模块还包括:
通过蓝牙广播,从所述从设备接收所述从设备的第二标识信息。
30.如实施例29所述的装置,其中,所述从设备的所述第二标识信息包括所述从设备的地址。
31.如实施例27所述的装置,其中,所述确定是否向所述从设备发起所述蓝牙连接请求,还包括:
根据用户通过所述主设备的屏幕的输入,确定是否向所述从设备发起蓝牙连接请求。
32.如实施例27所述的装置,其中,所述确定是否向所述从设备发起所述蓝牙连接请求,还包括:
确定是否从所述从设备接收到所述从设备的第二标识信息;
在未接收到所述第二标识信息的情况下,将所述第一标识信息存储在所述主设备;
在接收到所述第二标识信息的情况下,根据所述第一标识信息与所述第二标识信息是否匹配,确定是否向所述从设备发起蓝牙连接请求。
33.如实施例32所述的装置,其中,根据所述第一标识信息与所述第二标识信息是否匹配,确定是否向所述从设备发起蓝牙连接请求还包括:
在匹配的情况下,向所述从设备发起所述蓝牙连接请求。
34.如实施例27所述的装置,其中,所述通信模块还包括:向所述控制设备发送所述蓝牙连接的结果信息。
35.一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有指令,该指令在计算机上执行时使所述计算机执行如实施例1-17中任一项所述的蓝牙通信方法。
36.一种电子设备,其中,所述电子设备包括:
存储器;
处理器;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令;当所述指令被所述处理器执行时,执行如实施例1-9中任一项所述的蓝牙通信方法。
37.一种电子设备,其中,所述电子设备包括:
存储器;
处理器;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令;当所述指令被所述处理器执行时,执行如实施例10-17中任一项所述的蓝牙通信方法。

Claims (20)

  1. 一种蓝牙通信方法,用于控制设备,其特征在于,包括:
    确定将至少两个终端设备进行蓝牙连接;
    确定所述至少两个终端设备中的至少一个终端设备作为所述蓝牙连接的主设备和所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备,其中所述主设备用于发起所述蓝牙连接;和
    通过蓝牙广播,向所述主设备发送蓝牙连接控制信息,其中所述蓝牙连接控制信息包括所述从设备的标识信息。
  2. 如权利要求1所述的方法,其特征在于,所述从设备的标识信息包括所述从设备的地址。
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    获取将所述至少两个终端设备进行所述蓝牙连接的指令。
  4. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    获取将所述至少两个终端设备中的所述至少一个终端设备指定为所述主设备和将所述至少两个终端设备中的所述至少另一个终端设备指定为所述从设备的指令。
  5. 如权利要求3或4所述的方法,其特征在于,所述指令是用户通过所述控制设备的用户界面输入的。
  6. 如权利要求1所述的方法,其特征在于,确定所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备还包括:
    确定所述至少两个终端设备中的至少另一个终端设备与所述控制设备建立过蓝牙连接且所述控制设备存储有所述至少另一个终端设备的标识信息。
  7. 如权利要求1所述的方法,其特征在于,所述蓝牙连接控制信息还包括指示所述主设备与所述从设备进行所述蓝牙连接的指示信息。
  8. 如权利要求1-7中任一项所述的方法,其特征在于,所述蓝牙连接根据蓝牙协议建立。
  9. 一种蓝牙通信方法,用于终端设备,其特征在于,所述方法包括:
    通过蓝牙广播,接收来自控制设备的控制信息,其中所述控制信息包括指示所述终端设备作为主设备与至少一个其他终端设备进行蓝牙连接,其中所述至少一个其他终端设备作为从设备,并且所述控制信息还包括所述从设备的第一标识信息;
    确定是否向所述从设备发起蓝牙连接请求。
  10. 如权利要求9所述的方法,其特征在于,所述从设备的所述第一标识信息包括所述从设备的地址。
  11. 如权利要求9所述的方法,其特征在于,所述方法还包括:
    通过蓝牙广播,从所述从设备接收所述从设备的第二标识信息。
  12. 如权利要求11所述的方法,其特征在于,所述从设备的所述第二标识信息包括所述从设备的地址。
  13. 如权利要求9所述的方法,其特征在于,所述确定是否向所述从设备发起所述蓝牙连接请求,还包括:
    根据用户通过所述主设备的屏幕的输入,确定是否向所述从设备发起蓝牙连接请求。
  14. 如权利要求9所述的方法,其特征在于,所述确定是否向所述从设备发起所述蓝牙连接请求,还包括:
    确定是否从所述从设备接收到所述从设备的第二标识信息;
    在未接收到所述第二标识信息的情况下,将所述第一标识信息存储在所述主设备;
    在接收到所述第二标识信息的情况下,根据所述第一标识信息与所述第二标识信息是否匹配,确定是否向所述从设备发起蓝牙连接请求。
  15. 如权利要求14所述的方法,其特征在于,根据所述第一标识信息与所述第二标识信息是否匹配,确定是否向所述从设备发起蓝牙连接请求还包括:
    在匹配的情况下,向所述从设备发起所述蓝牙连接请求。
  16. 一种蓝牙通信装置,用于控制设备,其特征在于,所述装置包括:
    控制模块,用于确定将至少两个终端设备进行蓝牙连接;以及用于确定所述至少两个终端设备中的至少一个终端设备作为所述蓝牙连接的主设备和所述至少两个终端设备中的至少另一个终端设备作为所述蓝牙连接的从设备,其中所述主设备用于发起所述蓝牙连接;和
    通信模块,用于通过蓝牙广播,向所述主设备发送蓝牙连接控制信息,其中所述蓝牙连接控制信息包括所述从设备的标识信息。
  17. 一种蓝牙通信装置,用于终端设备,其特征在于,所述装置包括:
    通信模块,用于通过蓝牙广播,接收来自控制设备的控制信息,其中所述控制信息包括指示所述终端设备作为主设备与至少一个其他终端设备进行蓝牙连接,其中所述至少一个其他终端设备作为从设备,并且所述控制信息还包括所述从设备的第一标识信息;
    控制模块,用于确定是否向所述从设备发起蓝牙连接请求。
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有指令,该指令在计算机上执行时使所述计算机执行如权利要求1-15中任一项所述的蓝牙通信方法。
  19. 一种电子设备,其特征在于,所述电子设备包括:
    存储器;
    处理器;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器 中,所述一个或多个计算机程序包括指令;当所述指令被所述处理器执行时,执行如权利要求1-8中任一项所述的蓝牙通信方法。
  20. 一种电子设备,其特征在于,所述电子设备包括:
    存储器;
    处理器;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令;当所述指令被所述处理器执行时,执行如权利要求9-15中任一项所述的蓝牙通信方法。
PCT/CN2020/104073 2019-10-25 2020-07-24 蓝牙通信方法和具有蓝牙通信功能的装置及设备 WO2021077830A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911025228.5A CN110753334A (zh) 2019-10-25 2019-10-25 蓝牙通信方法和具有蓝牙通信功能的装置及设备
CN201911025228.5 2019-10-25

Publications (1)

Publication Number Publication Date
WO2021077830A1 true WO2021077830A1 (zh) 2021-04-29

Family

ID=69280024

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104073 WO2021077830A1 (zh) 2019-10-25 2020-07-24 蓝牙通信方法和具有蓝牙通信功能的装置及设备

Country Status (2)

Country Link
CN (1) CN110753334A (zh)
WO (1) WO2021077830A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753334A (zh) * 2019-10-25 2020-02-04 华为技术有限公司 蓝牙通信方法和具有蓝牙通信功能的装置及设备
CN113382393B (zh) * 2020-02-25 2024-05-03 炬芯科技股份有限公司 蓝牙连接方法、装置、存储介质及电子设备
CN113453207B (zh) * 2021-06-21 2024-03-22 青岛海尔科技有限公司 身份类型确定方法、装置、存储介质及电子装置
CN113473434A (zh) * 2021-08-17 2021-10-01 杭州涂鸦信息技术有限公司 蓝牙连接方法、装置、计算机设备和计算机可读存储介质
CN113825105B (zh) * 2021-09-26 2023-03-07 深圳市芯中芯科技有限公司 一种基于蓝牙广播的一拖多组网音箱控制系统及方法
CN116137094A (zh) * 2021-11-18 2023-05-19 中兴通讯股份有限公司 蓝牙设备的管理方法、装置、存储介质及终端设备
CN114916091A (zh) * 2022-04-20 2022-08-16 Oppo广东移动通信有限公司 设备互联方法、装置、电子设备及存储介质
CN115022391B (zh) * 2022-06-17 2024-05-03 Oppo广东移动通信有限公司 蓝牙设备的服务发现方法、装置、终端设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068041A1 (en) * 2012-09-06 2014-03-06 Eric T. Obligacion Team processing using dynamic licenses
CN103716072A (zh) * 2013-12-20 2014-04-09 天地融科技股份有限公司 蓝牙设备连接方法、主蓝牙设备和从蓝牙设备
CN104038263A (zh) * 2014-06-18 2014-09-10 小米科技有限责任公司 建立蓝牙连接的方法和装置
CN109219028A (zh) * 2018-09-05 2019-01-15 北京字节跳动网络技术有限公司 基于云端的等价设备蓝牙通信方法和装置
CN109547388A (zh) * 2017-07-25 2019-03-29 上海掌门科技有限公司 设备连接方法及装置
CN110753334A (zh) * 2019-10-25 2020-02-04 华为技术有限公司 蓝牙通信方法和具有蓝牙通信功能的装置及设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516975B (zh) * 2015-11-26 2019-05-07 上海科勒电子科技有限公司 无线连接的方法、主设备、从设备及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068041A1 (en) * 2012-09-06 2014-03-06 Eric T. Obligacion Team processing using dynamic licenses
CN103716072A (zh) * 2013-12-20 2014-04-09 天地融科技股份有限公司 蓝牙设备连接方法、主蓝牙设备和从蓝牙设备
CN104038263A (zh) * 2014-06-18 2014-09-10 小米科技有限责任公司 建立蓝牙连接的方法和装置
CN109547388A (zh) * 2017-07-25 2019-03-29 上海掌门科技有限公司 设备连接方法及装置
CN109219028A (zh) * 2018-09-05 2019-01-15 北京字节跳动网络技术有限公司 基于云端的等价设备蓝牙通信方法和装置
CN110753334A (zh) * 2019-10-25 2020-02-04 华为技术有限公司 蓝牙通信方法和具有蓝牙通信功能的装置及设备

Also Published As

Publication number Publication date
CN110753334A (zh) 2020-02-04

Similar Documents

Publication Publication Date Title
WO2021077830A1 (zh) 蓝牙通信方法和具有蓝牙通信功能的装置及设备
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US11818420B2 (en) Cross-device content projection method and electronic device
WO2020244495A1 (zh) 一种投屏显示方法及电子设备
WO2020200127A1 (zh) 业务连接建立方法、蓝牙主设备、芯片及蓝牙系统
KR101901720B1 (ko) 더미 장치와의 연동 방법 및 그 전자 장치
JP7389264B2 (ja) 無線通信方法及び無線通信機能を有する装置
EP3893109B1 (en) Method and device for connecting bluetooth devices
US11350200B2 (en) Wireless audio source switching
WO2019090726A1 (zh) 选择蓝牙设备的方法、终端和系统
CN110622123A (zh) 一种显示方法及装置
WO2022089271A1 (zh) 无线投屏方法、移动设备及计算机可读存储介质
US20150065053A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
KR102335903B1 (ko) 전자 장치들 간에 통신 방법 및 장치
WO2020010676A1 (zh) 蓝牙配对方法及系统
JP2023506936A (ja) マルチ画面共働方法およびシステム、ならびに電子デバイス
WO2022116974A1 (zh) 接入方法、系统及电子设备
CN110650408A (zh) 一种耳机及防丢方法、系统、计算机可读存储介质
CN116095881A (zh) 一种多设备协同方法、电子设备及相关产品
WO2022262387A1 (zh) 音量管理的方法及电子设备
KR20200052673A (ko) 무선 네트워크에서 근접한 장치들 간 통신 방법 및 장치
KR20180121178A (ko) 무선 연결을 위한 방법 및 그 전자 장치
EP3700169A1 (en) Electronic device for communicating with external electronic device
WO2024082906A1 (zh) 信息获取方法、装置、蓝牙设备、终端设备及存储介质
JP7018110B1 (ja) モバイル機器ドック

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20879886

Country of ref document: EP

Kind code of ref document: A1