WO2019085351A1 - 无线连接方法及设备 - Google Patents

无线连接方法及设备 Download PDF

Info

Publication number
WO2019085351A1
WO2019085351A1 PCT/CN2018/077410 CN2018077410W WO2019085351A1 WO 2019085351 A1 WO2019085351 A1 WO 2019085351A1 CN 2018077410 W CN2018077410 W CN 2018077410W WO 2019085351 A1 WO2019085351 A1 WO 2019085351A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
direct connection
broadcast message
wifi direct
address
Prior art date
Application number
PCT/CN2018/077410
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 EP18874111.0A priority Critical patent/EP3706499A4/en
Publication of WO2019085351A1 publication Critical patent/WO2019085351A1/zh
Priority to US16/851,186 priority patent/US11330650B2/en

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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/02Data link layer protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • H04W76/16Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the embodiments of the present application relate to the field of the Miracast technology, and in particular, to a wireless connection method and device.
  • Miracast is a wireless interconnection technology based on the underlying technology of Wireless-Fidelity (WIFI), which realizes one-to-one device interconnection through WIFI direct connection protocol.
  • WIFI Wireless-Fidelity
  • the Miracast direct connection process between devices can be mainly divided into three phases: device discovery, service discovery, and group formation. After these three phases, the WIFI wireless connection as a backbone can be established to provide the sound to the upper layer.
  • the video application is used.
  • the embodiment of the present invention provides a wireless connection method and device, which are used to shorten the time of the WIFI direct connection and improve the direct connection efficiency.
  • a first aspect of the embodiments of the present application provides a wireless connection method, where the method includes:
  • the second device Sending, by the second device, the first Bluetooth message to the first device, where the first Bluetooth message includes a WIFI direct connection address of the second device;
  • the second device performs a WIFI direct connection operation according to the WIFI direct connection address of the first device and the WIFI direct connection address of the second device.
  • the second Bluetooth broadcast message further includes service setting information of the first device
  • the method further includes:
  • the first Bluetooth message is sent to the first device.
  • the second device sends a second Bluetooth message to the first device, where the second Bluetooth message includes a Bluetooth Media Access Control (MAC) address of the second device;
  • MAC Bluetooth Media Access Control
  • the second device receives a third Bluetooth broadcast message of the first device on an interface where the Bluetooth MAC address is located, where the third Bluetooth broadcast message includes a start time and a second channel pointer;
  • the second device When the start time arrives, the second device establishes a direct connection with the WIFI of the first device based on the channel pointed by the second channel pointer.
  • the method further includes:
  • the second device turns off the Bluetooth device.
  • a second aspect of the embodiments of the present application provides a wireless connection method, where the method includes:
  • the first device sends a first Bluetooth broadcast message, where the first Bluetooth broadcast message includes a first channel pointer;
  • the first device sends a second Bluetooth broadcast message on the channel pointed by the first channel pointer, where the second Bluetooth broadcast message includes a WIFI direct connection address of the first device;
  • the first device performs a WIFI direct connection operation according to the WIFI direct connection address of the second device and the WIFI direct connection address of the first device.
  • the second Bluetooth broadcast message further includes service setting information of the first device.
  • the method includes:
  • the first device sends a third Bluetooth broadcast message to the second device based on the Bluetooth MAC address, where the third Bluetooth broadcast message includes a start time and a second channel pointer, so that the second device is Upon reaching the start time, a direct connection to the WIFI of the first device is established based on a channel pointed by the second channel pointer.
  • the method further includes:
  • the first device turns off the Bluetooth device.
  • a third aspect of the embodiments of the present application provides a terminal device, where the device includes:
  • a first receiving module configured to receive a first Bluetooth broadcast message of the first device, where the first Bluetooth broadcast message includes a first channel pointer;
  • a second receiving module configured to receive, by using a channel pointed by the first channel pointer, a second Bluetooth broadcast message of the first device, where the second Bluetooth broadcast message includes a WIFI direct connection address of the first device;
  • a first sending module configured to send a first Bluetooth message to the first device, where the first Bluetooth message includes a WIFI direct connection address of the terminal device;
  • the direct connection module is configured to perform a WIFI direct connection operation according to the WIFI direct connection address of the first device and the WIFI direct connection address of the terminal device.
  • the second Bluetooth broadcast message further includes service setting information of the first device
  • the terminal device further includes:
  • a determining module configured to determine, according to the service setting information of the first device, whether to establish a direct connection between the terminal device and the first device after receiving the second Bluetooth broadcast message;
  • the first sending module is configured to send a first Bluetooth message to the first device when the determining module determines to establish a WIFI direct connection between the terminal device and the first device.
  • the direct connection module includes:
  • a sending submodule configured to send a second Bluetooth message to the first device, where the second Bluetooth message includes a Bluetooth MAC address of the terminal device;
  • a receiving submodule configured to receive, on an interface where the Bluetooth MAC address is located, a third Bluetooth broadcast message of the first device, where the third Bluetooth broadcast message includes a start time and a second channel pointer;
  • the direct connection establishing submodule is configured to establish, when the start time arrives, a WIFI direct connection between the first device and the terminal device based on a channel pointed by the second channel pointer.
  • the terminal device further includes:
  • a switch module configured to turn off the Bluetooth device of the terminal device.
  • a fourth aspect of the embodiments of the present application provides a terminal device, including:
  • a first sending module configured to send a first Bluetooth broadcast message, where the first Bluetooth broadcast message includes a first channel pointer
  • a second sending module configured to send a second Bluetooth broadcast message on the channel pointed by the first channel pointer, where the second Bluetooth broadcast message includes a WIFI direct connection address of the terminal device;
  • a first receiving module configured to receive a first Bluetooth message sent by the second device, where the first Bluetooth message includes a WIFI direct connection address of the second device;
  • the direct connection module is configured to perform a WIFI direct connection operation according to the WIFI direct connection address of the terminal device and the WIFI direct connection address of the second device.
  • the second Bluetooth broadcast message further includes that the second Bluetooth broadcast message further includes service setting information of the terminal device
  • the terminal device further includes:
  • a second receiving module configured to receive a second Bluetooth message sent by the second device, where the second Bluetooth message includes a Bluetooth MAC address of the second device;
  • a third sending module configured to send, according to the Bluetooth MAC address, a third Bluetooth broadcast message to the second device, where the third Bluetooth broadcast message includes a start time and a second channel pointer, so that the second When the device reaches the start time, the device establishes a direct connection with the WIFI of the terminal device based on the channel pointed by the second channel pointer.
  • the terminal device further includes:
  • a switch module configured to turn off the Bluetooth device of the terminal device.
  • a fifth aspect of the embodiments of the present application provides a terminal device, including: a memory and a processor, wherein the memory stores computer instructions, and the computer instructions are implemented by the processor to implement the method of the first aspect.
  • a sixth aspect of the embodiments of the present application provides a terminal device, including: a memory and a processor, wherein the memory stores computer instructions, and the computer instructions are implemented by the processor to implement the method of the second aspect.
  • FIG. 1 is a flowchart of a wireless connection method according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of an ADV_EXT_IND frame according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of an ADV_ADV_IND frame according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of an AUX_SCAN_REQ frame according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for performing step 104 according to an embodiment of the present application
  • FIG. 6 is a schematic structural diagram of an AUX_SCAN_REQ frame according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of an AUX_SCAN_RSP frame according to an embodiment of the present application.
  • FIG. 8 is a flowchart of a method for wireless connection according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • both devices In the related WIFI direct connection protocol, in both the device discovery and service discovery phases, both devices must perform time (100 milliseconds to 300 milliseconds) and frequency in the listening and searching state (1, 6, 11 Random switching of the channel). The purpose of the random switching is to prevent the other device from being able to switch to the correct frequency to search for the other device while listening.
  • this random handover method causes the device discovery and service discovery phase to take too long under a certain probability, which causes waste of time, and even the direct connection failure causes the direct connection failure.
  • the embodiment of the present application provides a wireless connection method.
  • the device discovery and service discovery in the WIFI direct connection process are implemented by using the Bluetooth broadcast message in the embodiment of the present application. Therefore, the first device and the second device are not required to search and monitor each other in a random manner on time and on the channel. Therefore, the time required for direct connection of the WIFI is shortened, the direct connection efficiency is improved, and the probability of direct connection failure caused by the direct connection timeout is reduced.
  • FIG. 1 it is a flowchart of a wireless connection method provided by an embodiment of the present application, where the method includes the following steps:
  • Step 101 The second device receives a first Bluetooth broadcast message of the first device, where the first Bluetooth broadcast message includes a first channel pointer.
  • the first device and the second device involved in this embodiment may be a terminal device such as a television, a mobile phone, a notebook computer, a digital camera, or the like, which has a low-power Bluetooth component and has a WIFI direct connection function.
  • the second device transmits the first Bluetooth broadcast message through the Bluetooth low energy component.
  • the first broadcast message carries at least a first channel pointer for indicating, on which channel the first device receives the second Bluetooth broadcast message, and optionally, the first flag bit, the flag bit is used to indicate the first Whether the device is a device for direct connection to WIFI.
  • the first Bluetooth broadcast message may be in the form of an ADV_EXT_IND frame, and in the ADV_EXT_IND frame shown in FIG. 2, the value of the second bit in the header (RFU field in the Bluetooth specification) is set.
  • the first device is a device directly connected to Miracast, and the thirteenth byte (also the RFU field) is set to be unique.
  • a specific value (such as 00101110 in Figure 2, but not limited to this value, can be set as needed) to identify that this is the ADV_EXT_IND frame sent by the first device, where the first channel pointer can be carried in Figure 2 "24 The position of the above byte" or the position of "12 bytes".
  • this is for illustrative purposes only and is not a limitation of the application.
  • Step 102 The second device receives a second Bluetooth broadcast message of the first device on a channel that is pointed by the first channel pointer, where the second Bluetooth broadcast message includes a WIFI direct connection address of the first device.
  • the sending manner of the second broadcast message in this embodiment includes the following:
  • the first device sends the second Bluetooth broadcast message at a preset time length after sending the first Bluetooth broadcast message to ensure that the second device has sufficient time to parse the first channel from the first Bluetooth broadcast message.
  • Pointer and prepare to receive the second Bluetooth broadcast message on the channel pointed by the first channel pointer, and improve the success rate of transmitting the second Bluetooth broadcast message.
  • the first device continuously sends the second Bluetooth broadcast message repeatedly after sending the first Bluetooth broadcast message, and stops sending after the preset time, thereby ensuring that the second device can successfully receive the second Bluetooth broadcast message.
  • the first device alternately transmits the first Bluetooth broadcast message and the second Bluetooth broadcast message to ensure that the second device can successfully receive the first Bluetooth broadcast message and the second Bluetooth broadcast message.
  • the second Bluetooth broadcast message necessarily includes the direct connection address of the WIFI of the first device, and optionally, the channel number and other service setting information (such as an audio format or a video format, etc.).
  • the channel number is a channel number that the first device intends to use during the group formation phase.
  • the second Bluetooth broadcast message may be in the form of an ADV_ADV_IND frame.
  • the first six bytes are the WIFI direct connection address of the first device, and the next byte is The first device formulates the used channel number (such as channel 11) in the group formation phase, and other bytes can load the WIFI direct connection service information to describe the service setting (such as audio format) of the first device.
  • this is for illustrative purposes only and is not a limitation of the application.
  • the second device in the embodiment may further determine, according to the service setting information carried in the second Bluetooth broadcast message, the first device after receiving the second Bluetooth broadcast message. Whether the data transmitted between the two is compatible, if it is compatible, it is determined that the WIFI is directly connected to the first device, and step 103 is performed. Otherwise, refuse to establish a direct connection with the first device.
  • Step 103 The second device sends a first Bluetooth message to the first device, where the first Bluetooth message includes a WIFI direct connection address of the second device.
  • the first Bluetooth message in this embodiment may be in the form of an AUX_SCAN_REQ frame.
  • the AUX_SCAN_REQ frame when the value of the third bit of the header in the AUX_SCAN_REQ frame (the RFU field in the Bluetooth specification) is a preset value ("1" in this example, the actual application can also Set to other values) indicates that the frame carries the WIFI direct connection address of the second device.
  • the first six bytes of the data (behind the header) are the WIFI direct connection address of the second device.
  • this is for illustrative purposes only and is not a limitation of the application.
  • the first device After receiving the first Bluetooth message, the first device identifies that the first Bluetooth message carries the WIFI direct connection address of the second device according to the third byte in the header. After parsing the WIFI direct connection address of the second device from the first Bluetooth message, the first device stores the WIFI direct connection address for use in the next group formation process.
  • Step 104 The second device performs a WIFI direct connection operation according to the WIFI direct connection address of the first device and the WIFI direct connection address of the second device.
  • the second device may establish a WIFI direct connection with the first device according to the preset channel, or may determine by using a negotiation manner. Used to establish a channel for WIFI direct connection.
  • FIG. 5 is a flowchart of a method for performing step 104 according to an embodiment of the present application. As shown in FIG. 5, step 104 may include the following steps:
  • Step 1041 The second device sends a second Bluetooth message to the first device, where the second Bluetooth message includes a Bluetooth MAC address of the second device.
  • the second Bluetooth message in this embodiment may be specifically in the form of an AUX_SCAN_REQ frame.
  • the AUX_SCAN_REQ frame when the value of the third byte of the header in the AUX_SCAN_REQ frame (RFU field) is a preset value ("0" in this example, it can be set to other values in the actual application).
  • the frame indicates that the frame carries the Bluetooth MAC address of the second device, and the first six bytes of the data (behind the header) are the Bluetooth MAC address of the second device.
  • this is for illustrative purposes only and is not a limitation of the application.
  • the first device After receiving the second Bluetooth message, the first device identifies that the first Bluetooth message carries the Bluetooth MAC address of the second device according to the third byte in the header. After parsing the Bluetooth MAC address of the second device from the second Bluetooth message, the first device stores the Bluetooth MAC address to construct a third Bluetooth broadcast message to be sent next.
  • the third Bluetooth message in this embodiment may be specifically an AUX_SCAN_RSP frame.
  • the AUX_SCAN_RSP frame in FIG. 7 necessarily includes a second channel pointer and a start time.
  • the AIFI_SCAN_RSP frame may further include a WIFI direct connection address of the first device, and other service setting information of the first device.
  • the start time is used to indicate when the second device starts the group forming procedure.
  • the second channel pointer is used to indicate the channel used when the group is established.
  • the first device After completing the sending of the third Bluetooth message, the first device turns off its Bluetooth device, enters the WIFI connection, and waits for the group formation procedure.
  • Step 1042 The second device receives a third Bluetooth broadcast message of the first device on an interface where the Bluetooth MAC address is located, where the third Bluetooth broadcast message includes a start time and a second channel pointer.
  • the second device turns off the Bluetooth device after receiving the third Bluetooth broadcast message.
  • the second device may display related information (such as a name and a WIFI address) of the first device to the user, when the user selects The Miracast direct connection between the first device and the second device is performed only when the first device performs the direct connection of the Miracast.
  • the step of displaying related information of the first device to the user may be omitted, and the second device directly establishes a direct connection between the first device and the second device. This embodiment is not specifically limited.
  • Step 1043 When the start time arrives, the second device establishes a direct connection with the WIFI of the first device based on the channel pointed by the second channel pointer.
  • the second device receives the first Bluetooth broadcast message including the first channel pointer sent by the first device, and receives the WIFI direct connection address of the first device sent by the first device on the channel pointed by the first channel pointer.
  • the second Bluetooth broadcast message sends a first Bluetooth message including the WIFI direct connection address of the second device to the first device, and performs a WIFI direct connection operation according to the WIFI direct connection address of the first device and its own WIFI direct connection address. . Since the device is used to implement device discovery and service discovery in the WIFI direct connection process through the Bluetooth broadcast message, the first device and the second device are not required to search and listen in a random manner in time and on the channel. The other party, thereby shortening the time required for the direct connection of the WIFI, improving the direct connection efficiency and reducing the probability of direct connection failure caused by the direct connection timeout.
  • FIG. 8 is a flowchart of a method for wireless connection according to an embodiment of the present application. As shown in FIG. 8, the method includes:
  • Step 801 The first device sends a first Bluetooth broadcast message, where the first Bluetooth broadcast message includes a first channel pointer.
  • the second Bluetooth broadcast message further includes service setting information of the first device.
  • Step 802 The first device sends a second Bluetooth broadcast message on the channel pointed by the first channel pointer, where the second Bluetooth broadcast message includes a WIFI direct connection address of the first device.
  • Step 803 The first device receives a first Bluetooth message sent by the second device, where the first Bluetooth message includes a WIFI direct connection address of the second device.
  • Step 804 The first device performs a WIFI direct connection operation according to the WIFI direct connection address of the second device and the WIFI direct connection address of the first device.
  • the method further includes: receiving, by the first device, the second device a second Bluetooth message, the second Bluetooth message includes a Bluetooth MAC address of the second device; the first device sends a third Bluetooth broadcast message to the second device based on the Bluetooth MAC address, the third Bluetooth The broadcast message includes a start time and a second channel pointer to enable the second device to establish a direct connection with the WIFI of the first device based on a channel pointed by the second channel pointer when the second device is reached.
  • the method further includes: the first device turns off its Bluetooth device.
  • FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. As shown in FIG. 9, the device includes:
  • the first receiving module 11 is configured to receive a first Bluetooth broadcast message of the first device, where the first Bluetooth broadcast message includes a first channel pointer;
  • the second receiving module 12 is configured to receive, by using the channel pointed by the first channel pointer, the second Bluetooth broadcast message of the first device, where the second Bluetooth broadcast message includes a WIFI direct connection address of the first device;
  • the first sending module 13 is configured to send a first Bluetooth message to the first device, where the first Bluetooth message includes a WIFI direct connection address of the terminal device;
  • the direct connection module 14 is configured to perform a WIFI direct connection operation according to the WIFI direct connection address of the first device and the WIFI direct connection address of the terminal device.
  • the second Bluetooth broadcast message further includes service setting information of the first device
  • the terminal device further includes:
  • a judging module configured to determine, according to service setting information of the first device, whether data transmitted between the terminal device and the first device is compatible after receiving the second broadcast message, and if yes, determine to establish Direct connection between the terminal device and the first device;
  • the first sending module 13 is configured to send a first Bluetooth message to the first device when the determining module determines to establish a WIFI direct connection between the terminal device and the first device.
  • the terminal device provided by this embodiment can perform the technical solution of the embodiment of FIG. 1 , and the specific implementation manner and the beneficial effects are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. As shown in FIG. 10, on the basis of the embodiment of FIG. 9, the direct connection module 14 includes:
  • a sending sub-module 141 configured to send a second Bluetooth message to the first device, where the second Bluetooth message includes a Bluetooth MAC address of the terminal device;
  • the receiving sub-module 142 is configured to receive, by the interface where the Bluetooth MAC address is located, a third Bluetooth broadcast message of the first device, where the third Bluetooth broadcast message includes a start time and a second channel pointer;
  • the direct connection establishing sub-module 143 is configured to establish a WIFI direct connection between the first device and the terminal device based on a channel pointed by the second channel pointer when the start time arrives.
  • the terminal device further includes:
  • the switch module 15 is configured to close the Bluetooth device of the terminal device.
  • the terminal device provided by this embodiment can perform the technical solution of the embodiment of FIG. 5, and the specific implementation manner and the beneficial effects are similar, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. As shown in FIG. 11, the device includes:
  • the first sending module 21 is configured to send a first Bluetooth broadcast message, where the first Bluetooth broadcast message includes a first channel pointer;
  • the second sending module 22 is configured to send a second Bluetooth broadcast message on the channel pointed by the first channel pointer, where the second Bluetooth broadcast message includes a WIFI direct connection address of the terminal device;
  • the first receiving module 23 is configured to receive a first Bluetooth message sent by the second device, where the first Bluetooth message includes a WIFI direct connection address of the second device;
  • the direct connection module 24 is configured to perform a WIFI direct connection operation according to the WIFI direct connection address of the terminal device and the WIFI direct connection address of the second device.
  • the second Bluetooth broadcast message further includes service setting information of the terminal device.
  • the terminal device further includes:
  • a second receiving module configured to receive a second Bluetooth message sent by the second device, where the second Bluetooth message includes a Bluetooth MAC address of the second device;
  • a third sending module configured to send, according to the Bluetooth MAC address, a third Bluetooth broadcast message to the second device, where the third Bluetooth broadcast message includes a start time and a second channel pointer, so that the second When the device reaches the start time, the device establishes a direct connection with the WIFI of the terminal device based on the channel pointed by the second channel pointer.
  • the terminal device further includes:
  • a switch module configured to turn off the Bluetooth device of the terminal device.
  • the terminal device provided by this embodiment can perform the technical solution of the embodiment of FIG. 8 , and the specific implementation manner and the beneficial effects are similar, and details are not described herein again.
  • FIG. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device of this embodiment may include: a memory 1201, a processor 1202, and a communication interface 1203.
  • the memory 1201 is configured to store a program.
  • the program may include program code, where the program code is Includes computer instructions.
  • the memory 1201 may include a random access memory (RAM), and may also include a non-volatile memory such as at least one disk storage.
  • the processor 1202 is configured to execute the program stored in the memory 1201, and is used to perform the technical solution provided by the method embodiment of the present invention.
  • the implementation principle and technical effects are similar. For example, refer to the method embodiment shown in FIG. 1 or FIG. I won't go into details here.
  • the above device may be disposed in the terminal device, and the functions of the above respective modules in the above device may be implemented by the processor 1202.
  • the above components communicate via one or more buses. It will be understood by those skilled in the art that the structure of the terminal device shown in FIG. 12 does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may include more or more than the illustration. There are few parts, or some parts are combined, or different parts are arranged.
  • a non-transitory computer readable storage medium when an instruction in the storage medium is executed by a processor of a terminal device, enables the terminal device to perform the following method:
  • the terminal device sends a first Bluetooth message to the first device, where the first Bluetooth message includes a WIFI direct connection address of the terminal device;
  • the terminal device performs a WIFI direct connection operation according to the WIFI direct connection address of the first device and the WIFI direct connection address of the terminal device.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • Each functional unit in the embodiment of the present application may be integrated into one processing module, or may be physically existed separately for each unit, or two or more units may be integrated into one module.
  • the aforementioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the aforementioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本申请实施例提供一种无线连接方法及设备,其中,该方法包括:第二设备接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;在第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的 WIFI 直连地址;向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括第二设备的 WIFI 直连地址;根据所述第一设备的 WIFI 直连地址和其自身的 WIFI 直连地址执行WIFI 直连操作。本申请实施例提供的方法及设备,能够缩短 WIFI 直连的用时,提高直连效率。

Description

无线连接方法及设备
相关申请交叉引用
本申请要求于2017年10月31日提交中国专利局、申请号为201711048126.6、发明名称为“无线连接方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及Miracast技术领域,尤其涉及一种无线连接方法及设备。
背景技术
Miracast是一种基于无线保真(Wireless-Fidelity,简称WIFI)底层技术,通过WIFI直连协议实现一对一设备互联的无线互联技术。在相关技术中,设备之间的Miracast直连过程主要可以分为三个阶段:设备发现、服务发现和群体形成,经过这三个阶段后才能建立作为骨干的WIFI无线连接从而提供给上层的音视频应用进行使用。
发明内容
本申请实施例提供一种无线连接方法及设备,用以缩短WIFI直连的用时,提高直连效率。
本申请实施例第一方面提供一种无线连接方法,该方法包括:
第二设备接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
所述第二设备在第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的WIFI直连地址;
所述第二设备向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括第二设备的WIFI直连地址;
所述第二设备根据所述第一设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作。
可选地,所述第二蓝牙广播消息还包括所述第一设备的服务设置信息;
所述第二设备在所述第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息之后,还包括:
基于所述第一设备的服务设置信息,判断是否与所述第一设备建立WIFI直连;
其中,若判断与所述第一设备建立WIFI直连,则向所述第一设备发送第一蓝牙消息。
可选地,
所述第二设备根据所述第一设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作,包括:
所述第二设备向所述第一设备发送第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙媒体访问控制(MAC)地址;
所述第二设备在所述蓝牙MAC地址所在的接口上接收所述第一设备的第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针;
在所述起始时间到达时,所述第二设备基于所述第二信道指针指向的信道建立与所述第一设备的WIFI直连。
可选地,所述第二设备在接收到所述第一设备的第三蓝牙广播消息之后,所述方法还包括:
所述第二设备关闭蓝牙设备。
本申请实施例第二方面提供一种无线连接方法,该方法包括:
第一设备发送第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
所述第一设备在所述第一信道指针指向的信道上发送第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的WIFI直连地址;
所述第一设备接收第二设备发送的第一蓝牙消息,所述第一蓝牙消息包括第二设备的WIFI直连地址;
所述第一设备根据所述第二设备的WIFI直连地址和所述第一设备的WIFI直连地址执行WIFI直连操作。
可选地,所述第二蓝牙广播消息还包括第一设备的服务设置信息。
可选地,
所述第一设备根据所述第二设备的WIFI直连地址和所述第一设备的WIFI直连地址执行WIFI直连操作之前,所述方法包括:
所述第一设备接收所述第二设备发送的第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙MAC地址;
所述第一设备基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针,以使所述第二设备在到达所述起始时间时,基于所述第二信道指针指向的信道建立与所述第一设备的WIFI直连。
可选地,所述第一设备基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息之后,所述方法还包括:
所述第一设备关闭蓝牙设备。
本申请实施例第三方面提供一种终端设备,该设备包括:
第一接收模块,用于接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
第二接收模块,用于在第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的WIFI直连地址;
第一发送模块,用于向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括所述终端设备的WIFI直连地址;
直连模块,用于根据所述第一设备的WIFI直连地址和所述所述终端设备的WIFI直连地址执行WIFI直连操作。
可选地,所述第二蓝牙广播消息还包括所述第一设备的服务设置信息;
所述终端设备还包括:
判断模块,用于在接收到所述第二蓝牙广播消息之后,基于所述第一设备的服务设置信息,判断是否建立所述终端设备与所述第一设备之间的建立WIFI直连;
所述第一发送模块,用于在所述判断模块判断建立所述终端设备与所述第一设备之间的WIFI直连时,向所述第一设备发送第一蓝牙消息。
可选地,所述直连模块,包括:
发送子模块,用于向所述第一设备发送第二蓝牙消息,所述第二蓝牙消息包括所述终端设备的蓝牙MAC地址;
接收子模块,用于在所述蓝牙MAC地址所在的接口上接收所述第一设备的第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针;
直连建立子模块,用于在所述起始时间到达时,基于所述第二信道指针指向的信道建立所述第一设备和所述终端设备的WIFI直连。
可选地,所述终端设备还包括:
开关模块,用于关闭所述终端设备的蓝牙设备。
本申请实施例第四方面提供一种终端设备,包括:
第一发送模块,用于发送第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
第二发送模块,用于在所述第一信道指针指向的信道上发送第二蓝牙广播消息,所述第二蓝牙广播消息包括所述终端设备的WIFI直连地址;
第一接收模块,用于接收第二设备发送的第一蓝牙消息,所述第一蓝牙消息包括第二设备的WIFI直连地址;
直连模块,用于根据所述终端设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作。
可选地,所述第二蓝牙广播消息还包括所述第二蓝牙广播消息还包括所述终端设备的服务设置信息
可选地,所述终端设备还包括:
第二接收模块,用于接收所述第二设备发送的第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙MAC地址;
第三发送模块,用于基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针,以使所述第二设备在到达所述起始时间时,基于所述第二信道指针指向的信道建立与所述终端设备的WIFI直连。
可选地,所述终端设备还包括:
开关模块,用于关闭所述终端设备的蓝牙设备。
本申请实施例第五方面提供一种终端设备,包括:存储器和处理器,其中,所述存储器存储有计算机指令,所述计算机指令被所述处理器执行时实现第一方面所述的方法。
本申请实施例第六方面提供一种终端设备,包括:存储器和处理器,其中,所述存储器存储有计算机指令,所述计算机指令被所述处理器执行时实现第二方面所述的方法。
附图说明
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种无线连接方法的流程图;
图2为本申请实施例提供的一种ADV_EXT_IND帧的结构示意图;
图3为本申请实施例提供的一种ADV_ADV_IND帧的结构示意图;
图4为本申请实施例提供的一种AUX_SCAN_REQ帧的结构示意图;
图5为本申请实施例提供的步骤104的执行方式流程图;
图6为本申请实施例提供的一种AUX_SCAN_REQ帧的结构示意图;
图7为本申请实施例提供的AUX_SCAN_RSP帧的结构示意图;
图8为本申请实施例提供的一种无线连接方法的流程图;
图9为本申请实施例提供的一种终端设备的结构示意图;
图10为本申请实施例提供的一种终端设备的结构示意图;
图11为本申请实施例提供的一种终端设备的结构示意图;
图12为本申请实施例提供的一种终端设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤的过程或结构的装置不必限于清楚地列出的那些结构或步骤而是可包括没有清楚地列出的或对于这些过程或装置固有的其它步骤或结构。
在相关的WIFI直连协议中,在设备发现和服务发现两个阶段,两方设备都必须在监听和搜索状态中进行时间上(100毫秒到300毫秒)和频率上(1,6,11三个信道)的随机切换,随机切换的目的是为了不让一方设备在监听的时候,另一方设备一直无法切换到正确的频率上进行搜索找到对方设备。然而这种随机切换方式,在一定的概率之下会造成设备发现和服务发现阶段花费时间过长,从而造成时间的浪费,甚至因为直连超时导致直连失败的问题。
本申请实施例提供一种无线连接方法。由于本申请实施例通过蓝牙广播消息来实现WIFI直连过程中的设备发现和服务发现,因此,不需要第一设备和第二设备在时间上和信道上通过随机切换的方式来搜索和监听对方,从而缩短了WIFI直连所需的时间,提高 了直连效率,降低了由直连超时导致的直连失败的概率。如图1所示,为本申请实施例提供的一种无线连接方法的流程图,该方法包括如下步骤:
步骤101、第二设备接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针。
本实施例中涉及的第一设备和第二设备可以是诸如电视、手机、笔记本电脑、数码相机等内置有低功耗蓝牙组件,具备WIFI直连功能的终端设备。
在启动蓝牙功能并进入等待连接页面后,第二设备通过低功耗蓝牙组件发送第一蓝牙广播消息。第一广播消息中至少携带有用于指示第一设备在哪一个信道上接收第二蓝牙广播消息的第一信道指针,可选的,还可以携带第一标志位,该标志位用于表示第一设备是否是用于WIFI直连的设备。示例的,本实施例中第一蓝牙广播消息可以为ADV_EXT_IND帧的形式,在图2所示的ADV_EXT_IND帧中,设定标头中第二个Bit(在蓝牙规范中为RFU栏位)的值为预设数值时(本示例中为“1”,实际应用中还可以设置为其他数值),第一设备为Miracast直连的设备,第十三字节(也是RFU栏位)设定为唯一特定的数值(例如图2中的00101110,但不局限于此数值,可根据需要进行设置)以识别这是第一设备发出的ADV_EXT_IND帧,其中第一信道指针可以携带在图2中“24个以上字节”的位置上或者“12字节”的位置上。当然此处仅为示例说明而不是对本申请的唯一限定。
步骤102、第二设备在第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的WIFI直连地址。
可选的,本实施例中第二广播消息的发送方式包括如下几种:
在一种实施方式中,第一设备在发送第一蓝牙广播消息之后间隔预设时间长度发送第二蓝牙广播消息,以确保第二设备有足够时间从第一蓝牙广播消息中解析出第一信道指针,并做好在第一信道指针所指向的信道上接收第二蓝牙广播消息的准备,提高传输第二蓝牙广播消息的成功率。
在另一种实施方式中,第一设备在发送第一蓝牙广播消息之后持续重复发送第二蓝牙广播消息,直到预设时间之后停止发送,从而确保第二设备能够成功接收到第二蓝牙广播消息。
在又一种实施方式中,第一设备交替发送第一蓝牙广播消息和第二蓝牙广播消息,以确保第二设备能够成功接收到第一蓝牙广播消息和第二蓝牙广播消息。
本实施例中,第二蓝牙广播消息必要的包括第一设备的WIFI的直连地址,可选的,还可以包括信道号和其它的服务设置信息(比如音频格式或视频格式等)。其中,该信道 号为第一设备在群组形成阶段拟定使用的信道号。示例的,本实施例中第二蓝牙广播消息可以为ADV_ADV_IND帧的形式,在图3所示的ADV_ADV_IND帧中,前六个字节为第一设备的WIFI直连地址,接下来一个字节是第一设备在群组形成阶段拟定使用的信道号(如信道11),其他的字节可加载WIFI直连服务信息,用以描述第一设备的服务设置(如音频格式)。当然这里仅为示例说明,而不是对本申请的唯一限定。
可选的,为了避免出现兼容性的问题,本实施例第二设备在接收到第二蓝牙广播消息之后,还可以基于第二蓝牙广播消息中携带的服务设置信息,判断其与第一设备之间传输的数据是否兼容,若兼容则判断与第一设备建立WIFI直连,并执行步骤103。否则,拒绝与第一设备建立直连。
步骤103、第二设备向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括所述第二设备的WIFI直连地址。
示例的,本实施例中第一蓝牙消息可以为AUX_SCAN_REQ帧的形式。如图4所示的AUX_SCAN_REQ帧,当AUX_SCAN_REQ帧中标头的第三个Bit(在蓝牙规范中为RFU栏位)的值为预设数值时(本示例中为“1”,实际应用中还可以设置为其他数值)表示该帧中携带的是第二设备的WIFI直连地址,此时数据(标头后)的前六个字节为第二设备的WIFI直连地址。当然此处仅为示例说明而不是对本申请的唯一限定。
当第一设备接收到第一蓝牙消息之后,根据标头中的第三个字节识别第一蓝牙消息中携带有第二设备的WIFI直连地址。第一设备从第一蓝牙消息解析出第二设备的WIFI直连地址后,对该WIFI直连地址进行存储用以在接下来的群体形成过程中使用。
步骤104、第二设备根据所述第一设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作。
本实施例中,第二设备在将第一蓝牙消息发送给第一设备之后,第二设备可以根据预先设定的信道建立与第一设备之间的WIFI直连,也可以通过协商的方式确定用于建立WIFI直连的信道。
示例的,图5为本申请实施例提供的步骤104的执行方式流程图,如图5所示,步骤104可以包括如下步骤:
步骤1041、第二设备向所述第一设备发送第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙MAC地址。
示例的,本实施例中第二蓝牙消息可以被具体为AUX_SCAN_REQ帧的形式。如图6所示的AUX_SCAN_REQ帧,当AUX_SCAN_REQ帧中标头的第三个字节的值(RFU栏 位)为预设值时(本示例中为“0”,实际应用中还可以设置为其他数值)表示该帧中携带的是第二设备的蓝牙MAC地址,此时数据(标头后)的前六个字节为第二设备的蓝牙MAC地址。当然此处仅为示例说明而不是对本申请的唯一限定。
当第一设备接收到第二蓝牙消息之后,根据标头中的第三个字节识别第一蓝牙消息中携带有第二设备的蓝牙MAC地址。第一设备从第二蓝牙消息解析出第二设备的蓝牙MAC地址后,对该蓝牙MAC地址进行存储用以构建接下来要发送的第三蓝牙广播消息。
示例的,本实施例中第三蓝牙消息可以被具体为AUX_SCAN_RSP帧。如图7所示,在图7中AUX_SCAN_RSP帧必要的包括第二信道指针和起始时间,可选的,还可以包括第一设备的WIFI直连地址,以及第一设备的其它服务设置信息。其中,起始时间用于指示第二设备在何时启动群组形成程序。第二信道指针用于指示群组建立时使用的信道。
第一设备在完成发送第三蓝牙消息后即关闭其蓝牙设备,进入WIFI连接,等待群组形成程序。
当然前述示例仅为示例说明而不是对发明的唯一限定。
步骤1042、第二设备在所述蓝牙MAC地址所在的接口上接收所述第一设备的第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针。
本实施例中,第二设备在接收到第三蓝牙广播消息之后即关闭其蓝牙设备,此时第二设备可以将第一设备的相关信息(比如名称和WIFI地址)显示给用户,当用户选择第一设备进行Miracast直连时才执行第一设备和第二设备之间的Miracast直连。当然实际应用中,也可以省略向用户显示第一设备的相关信息的步骤,而是由第二设备直接建立第一设备和第二设备之间的Miracast直连。本实施例中不对其做具体的限定。
步骤1043、在所述起始时间到达时,第二设备基于所述第二信道指针指向的信道建立与所述第一设备的WIFI直连。
本实施例,第二设备通过接收第一设备发送的包括第一信道指针的第一蓝牙广播消息,在第一信道指针指向的信道上接收第一设备发送的包含第一设备的WIFI直连地址的第二蓝牙广播消息,向第一设备发送包含第二设备的WIFI直连地址的第一蓝牙消息,并根据第一设备的WIFI直连地址和其自身的WIFI直连地址执行WIFI直连操作。由于本实施例是通过蓝牙广播消息来实现WIFI直连过程中的设备发现和服务发现的,因此,不需要第一设备和第二设备在时间上和信道上通过随机切换的方式来搜索和监听对方,从而缩短了WIFI直连所需的时间,提高了直连效率,降低了由直连超时导致的直连失败的概率。
图8为本申请实施例提供的一种无线连接方法的流程图,如图8所示,该方法包括:
步骤801、第一设备发送第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针。
可选的,本实施例中,所述第二蓝牙广播消息还包括第一设备的服务设置信息。
步骤802、第一设备在所述第一信道指针指向的信道上发送第二蓝牙广播消息,所述第二蓝牙广播消息包括第一设备的WIFI直连地址。
步骤803、第一设备接收第二设备发送的第一蓝牙消息,所述第一蓝牙消息包括第二设备的WIFI直连地址。
步骤804、第一设备根据所述第二设备的WIFI直连地址和所述第一设备的WIFI直连地址执行WIFI直连操作。
可选的,在第一设备根据所述第二设备的WIFI直连地址和其自身的WIFI直连地址执行WIFI直连操作之前,该方法还包括:第一设备接收所述第二设备发送的第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙MAC地址;第一设备基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针,以使所述第二设备在到达所述起始时间时,基于所述第二信道指针指向的信道建立与所述第一设备的WIFI直连。
所述第一设备基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息之后,该方法还包括:所述第一设备关闭其蓝牙设备。
本实施例提供的方法其执行方式和有益效果与图1实施例类似,在这里不再赘述。
图9为本申请实施例提供的一种终端设备的结构示意图,如图9所示,该设备包括:
第一接收模块11,用于接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
第二接收模块12,用于在第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的WIFI直连地址;
第一发送模块13,用于向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括所述终端设备的WIFI直连地址;
直连模块14,用于根据所述第一设备的WIFI直连地址和所述终端设备的WIFI直连地址执行WIFI直连操作。
可选的,所述第二蓝牙广播消息还包括所述第一设备的服务设置信息;
所述终端设备还包括:
判断模块,用于在接收到所述第二广播消息之后,基于所述第一设备的服务设置信息,判断所述终端设备与第一设备之间传输的数据是否兼容,若兼容,则判断建立所述终端设备与所述第一设备之间的WIFI直连;
所述第一发送模块13,用于在所述判断模块判断建立所述终端设备与所述第一设备之间的WIFI直连时,向所述第一设备发送第一蓝牙消息。
本实施例提供的终端设备能够执行图1实施例的技术方案,其具体执行方式和有益效果类似,在这里不再赘述。
图10为本申请实施例提供的一种终端设备的结构示意图,如图10所示,在图9实施例的基础上,所述直连模块14,包括:
发送子模块141,用于向所述第一设备发送第二蓝牙消息,所述第二蓝牙消息包括所述终端设备的蓝牙MAC地址;
接收子模块142,用于在所述蓝牙MAC地址所在的接口上接收所述第一设备的第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针;
直连建立子模块143,用于在所述起始时间到达时,基于所述第二信道指针指向的信道建立所述第一设备和所述终端设备的WIFI直连。
所述终端设备还包括:
开关模块15,用于关闭所述终端设备的蓝牙设备。
本实施例提供的终端设备能够执行图5实施例的技术方案,其具体执行方式和有益效果类似,在这里不再赘述。
图11为本申请实施例提供的一种终端设备的结构示意图,如图11所示,该设备包括:
第一发送模块21,用于发送第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
第二发送模块22,用于在所述第一信道指针指向的信道上发送第二蓝牙广播消息,所述第二蓝牙广播消息包括所述终端设备的WIFI直连地址;
第一接收模块23,用于接收第二设备发送的第一蓝牙消息,所述第一蓝牙消息包括第二设备的WIFI直连地址;
直连模块24,用于根据所述终端设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作。
可选的,所述第二蓝牙广播消息还包括所述终端设备的服务设置信息。
可选的,所述终端设备还包括:
第二接收模块,用于接收所述第二设备发送的第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙MAC地址;
第三发送模块,用于基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针,以使所述第二设备在到达所述起始时间时,基于所述第二信道指针指向的信道建立与所述终端设备的WIFI直连。
可选的,所述终端设备还包括:
开关模块,用于关闭所述终端设备的蓝牙设备。
本实施例提供的终端设备能够执行图8实施例的技术方案,其具体执行方式和有益效果类似,在这里不再赘述。
图12为本申请实施例提供的一种终端设备的结构示意图。如图12所示,本实施例的终端设备,可以包括:存储器1201、处理器1202和通信接口1203;其中,存储器1201,用于存储程序;具体地,程序可以包括程序代码,所述程序代码包括计算机指令。存储器1201可能包含随机存取存储器(random access memory,简称RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
处理器1202,用于执行存储器1201存储的程序,用于执行本发明方法实施例所提供的技术方案,其实现原理和技术效果类似,可参考图1或图8所示的方法实施例,此处不再赘述。
上述装置可以设置在终端设备中,上述装置中的上述各个模块的功能可以通过处理器1202实现。
上述部件通过一条或多条总线进行通信。本领域技术人员可以理解,图12中示出的终端设备的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
一种非易失性计算机可读存储介质,当该存储介质中的指令由终端设备的处理器执行时,使得终端设备能够执行如下方法:
终端设备接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
终端设备在第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的WIFI直连地址;
终端设备向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括终端设备的WIFI直连地址;
终端设备根据所述第一设备的WIFI直连地址和所述终端设备的WIFI直连地址执行WIFI直连操作。
最后需要说明的是,本领域普通技术人员可以理解前述实施例方法中的全部或者部分流程,是可以通过计算机程序来指令相关的硬件完成,所述的程序可存储于一计算机可读存储介质中,该程序在执行时,可包括如前述各方法的实施例的流程。其中,所述的存储介质可以为磁盘、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
本申请实施例中的各个功能单元可以集成在一个处理模块中,也可以是各个单元单独的物理存在,也可以两个或两个以上单元集成在一个模块中。前述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现,并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中。前述提到的存储介质可以是只读存储器、磁盘或光盘等。
以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (12)

  1. 一种无线连接方法,其特征在于,包括:
    第二设备接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
    所述第二设备在所述第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的无线保真(WIFI)直连地址;
    所述第二设备向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括所述第二设备的WIFI直连地址;
    所述第二设备根据所述第一设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作。
  2. 根据权利要求1所述的方法,其特征在于,所述第二蓝牙广播消息还包括所述第一设备的服务设置信息;
    所述第二设备在所述第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息之后,还包括:基于所述第一设备的服务设置信息,判断是否与所述第一设备建立WIFI直连;
    其中,若判断与所述第一设备建立WIFI直连,则向所述第一设备发送所述第一蓝牙消息。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二设备根据所述第一设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作,包括:
    所述第二设备向所述第一设备发送第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙媒体访问控制(MAC)地址;
    所述第二设备在所述蓝牙MAC地址所在的接口上接收所述第一设备的第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针;
    在所述起始时间到达时,所述第二设备基于所述第二信道指针指向的信道建立与所述第一设备的WIFI直连。
  4. 一种无线连接方法,其特征在于,包括:
    第一设备发送第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
    所述第一设备在所述第一信道指针指向的信道上发送第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的无线保真(WIFI)直连地址;
    所述第一设备接收第二设备发送的第一蓝牙消息,所述第一蓝牙消息包括第二设备的WIFI直连地址;
    所述第一设备根据所述第二设备的WIFI直连地址和所述第一设备的WIFI直连地址执行WIFI直连操作。
  5. 根据权利要求4所述的方法,其特征在于,所述第一设备根据所述第二设备的WIFI直连地址和所述第一设备的WIFI直连地址执行WIFI直连操作之前,所述方法包括:
    所述第一设备接收所述第二设备发送的第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙媒体访问控制(MAC)地址;
    所述第一设备基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针,以使所述第二设备在到达所述起始时间时,基于所述第二信道指针指向的信道建立与所述第一设备的WIFI直连。
  6. 一种终端设备,其特征在于,包括:
    第一接收模块,用于接收第一设备的第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
    第二接收模块,用于在第一信道指针指向的信道上接收所述第一设备的第二蓝牙广播消息,所述第二蓝牙广播消息包括所述第一设备的无线保真(WIFI)直连地址;
    第一发送模块,用于向所述第一设备发送第一蓝牙消息,所述第一蓝牙消息包括所述终端设备的WIFI直连地址;
    直连模块,用于根据所述第一设备的WIFI直连地址和所述终端设备的WIFI直连地址执行WIFI直连操作。
  7. 根据权利要求6所述的终端设备,其特征在于,所述第二蓝牙广播消息还包括所述第一设备的服务设置信息;
    所述终端设备还包括:
    判断模块,用于在接收到所述第二蓝牙广播消息之后,基于所述第一设备的服务设置信息,判断所述终端设备与第一设备之间传输的数据是否兼容,若兼容,则判断建立所述终端设备与所述第一设备之间的WIFI直连;
    所述第一发送模块,用于在所述判断模块判断建立所述终端设备与所述第一设备之间的WIFI直连时,向所述第一设备发送第一蓝牙消息。
  8. 根据权利要求6或7所述的终端设备,其特征在于,所述直连模块,包括:
    发送子模块,用于向所述第一设备发送第二蓝牙消息,所述第二蓝牙消息包括所述终端设备的蓝牙MAC地址;
    接收子模块,用于在所述蓝牙MAC地址所在的接口上接收所述第一设备的第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针;
    直连建立子模块,用于在所述起始时间到达时,基于所述第二信道指针指向的信道建立所述第一设备和所述终端设备的WIFI直连。
  9. 一种终端设备,其特征在于,包括:
    第一发送模块,用于发送第一蓝牙广播消息,所述第一蓝牙广播消息包括第一信道指针;
    第二发送模块,用于在所述第一信道指针指向的信道上发送第二蓝牙广播消息,所述第二蓝牙广播消息包括所述终端设备的无线保真(WIFI)直连地址;
    第一接收模块,用于接收第二设备发送的第一蓝牙消息,所述第一蓝牙消息包括第二设备的WIFI直连地址;
    直连模块,用于根据所述终端设备的WIFI直连地址和所述第二设备的WIFI直连地址执行WIFI直连操作。
  10. 根据权利要求9所述的终端设备,其特征在于,所述终端设备还包括:
    第二接收模块,用于接收所述第二设备发送的第二蓝牙消息,所述第二蓝牙消息包括所述第二设备的蓝牙媒体访问控制(MAC)地址;
    第三发送模块,用于基于所述蓝牙MAC地址,向所述第二设备发送第三蓝牙广播消息,所述第三蓝牙广播消息包括起始时间和第二信道指针,以使所述第二设备在到达所述起始时间时,基于所述第二信道指针指向的信道建立与所述终端设备的WIFI直连。
  11. 一种终端设备,包括存储器和处理器,其中,所述存储器存储有计算机指令,所述计算机指令被所述处理器执行时实现权利要求1至3所述的方法。
  12. 一种终端设备,包括存储器和处理器,其中,所述存储器存储有计算机指令,所述计算机指令被所述处理器执行时实现权利要求4和5所述的方法。
PCT/CN2018/077410 2017-10-31 2018-02-27 无线连接方法及设备 WO2019085351A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18874111.0A EP3706499A4 (en) 2017-10-31 2018-02-27 WIRELESS CONNECTION PROCESS AND DEVICE
US16/851,186 US11330650B2 (en) 2017-10-31 2020-04-17 Wireless connection method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711048126.6A CN107864469B (zh) 2017-10-31 2017-10-31 无线连接方法及设备
CN201711048126.6 2017-10-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/851,186 Continuation US11330650B2 (en) 2017-10-31 2020-04-17 Wireless connection method and device

Publications (1)

Publication Number Publication Date
WO2019085351A1 true WO2019085351A1 (zh) 2019-05-09

Family

ID=61697107

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077410 WO2019085351A1 (zh) 2017-10-31 2018-02-27 无线连接方法及设备

Country Status (4)

Country Link
US (1) US11330650B2 (zh)
EP (1) EP3706499A4 (zh)
CN (1) CN107864469B (zh)
WO (1) WO2019085351A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996404A (zh) * 2019-12-16 2020-04-10 联想(北京)有限公司 用于建立无线连接的方法、装置及系统
CN111970676A (zh) * 2019-05-20 2020-11-20 北京小米移动软件有限公司 WiFi热点接入方法、装置、设备及存储介质
WO2024065418A1 (zh) * 2022-09-29 2024-04-04 哲库科技(上海)有限公司 数据传输方法、装置、设备、介质和程序产品

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI666889B (zh) 2018-05-18 2019-07-21 瑞昱半導體股份有限公司 藍牙通信系統及相關的傳送端藍牙裝置與接收端藍牙裝置
CN108777861A (zh) * 2018-05-30 2018-11-09 西安航天寰星电子科技有限公司 快速建立通信连接及高速数据传输的方法、芯片
CN111163497B (zh) * 2019-12-19 2022-08-16 展讯通信(上海)有限公司 通信设备、系统及信道切换方法
CN112654020B (zh) 2020-12-15 2023-03-28 阿波罗智联(北京)科技有限公司 建立无线连接的方法、装置、设备及存储介质
CN114679708A (zh) * 2020-12-25 2022-06-28 华为技术有限公司 通信方法、系统及电子设备
CN112929862B (zh) * 2021-02-04 2023-04-25 青岛海信传媒网络技术有限公司 基于蓝牙Beacon协议的设备连接方法
CN113518408A (zh) * 2021-04-19 2021-10-19 Tcl通讯(宁波)有限公司 WiFi单信道扫描方法、装置、终端设备及存储介质
CN113316130A (zh) * 2021-05-20 2021-08-27 Tcl通讯(宁波)有限公司 一种WiFi地址传递方法、装置、移动终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202461A (zh) * 2014-08-11 2014-12-10 苏州易动智能科技有限公司 一种连接智能手机功能同步化的汽车音响系统
CN104657099A (zh) * 2015-01-15 2015-05-27 小米科技有限责任公司 屏幕投射方法、装置及系统
CN105144757A (zh) * 2013-04-26 2015-12-09 三星电子株式会社 通信模式下的通信服务
US20170223485A1 (en) * 2014-05-02 2017-08-03 Qualcomm Incorporated Methods and apparatus for integrating bluetooth devices into neighbor aware networks
CN107079256A (zh) * 2016-12-30 2017-08-18 深圳市大疆灵眸科技有限公司 用于自动配对的方法和设备

Family Cites Families (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9712486B2 (en) * 2006-09-25 2017-07-18 Weaved, Inc. Techniques for the deployment and management of network connected devices
US8045922B2 (en) * 2007-11-23 2011-10-25 Texas Instruments Incorporated Apparatus for and method of bluetooth and wireless local area network coexistence using a single antenna in a collocated device
US20090180451A1 (en) * 2008-01-10 2009-07-16 Comsys Communication & Signal Processing Ltd. Apparatus for and method of coordinating transmission and reception opportunities in a communications device incorporating multiple radios
US8493992B2 (en) * 2010-02-04 2013-07-23 Texas Instruments Incorporated Interrelated WiFi and USB protocols and other application framework processes, circuits and systems
US9055020B2 (en) * 2010-09-27 2015-06-09 Nokia Technologies Oy Method and apparatus for sharing user information
US8880663B2 (en) * 2010-09-27 2014-11-04 Nokia Corporation Method and apparatus for sharing user information
US11451618B2 (en) * 2014-05-15 2022-09-20 Universal Electronics Inc. Universal voice assistant
US20130201316A1 (en) * 2012-01-09 2013-08-08 May Patents Ltd. System and method for server based control
US10075334B1 (en) * 2012-04-11 2018-09-11 Google Llc Systems and methods for commissioning a smart hub device
US9191874B2 (en) * 2012-12-31 2015-11-17 Ipass Inc. Advanced network characterization and migration
US9319828B2 (en) * 2013-06-24 2016-04-19 Csr Technology Inc. Wireless communication methods and devices
US10015720B2 (en) * 2014-03-14 2018-07-03 GoTenna, Inc. System and method for digital communication between computing devices
US9998437B2 (en) * 2015-02-04 2018-06-12 Belkin International Inc. Key exchange through a trusted proxy
US10560975B2 (en) * 2014-04-16 2020-02-11 Belkin International, Inc. Discovery of connected devices to determine control capabilities and meta-information
US9426118B2 (en) * 2014-10-28 2016-08-23 Belkin International Inc. Remote grant of network access
US9531601B2 (en) * 2014-04-16 2016-12-27 Belkin International Inc. Modular interface framework for network devices
US9647888B2 (en) * 2014-05-30 2017-05-09 Belkin International Inc. Network addressable appliance interface device
JP6118457B2 (ja) * 2014-05-05 2017-04-19 ▲華▼▲為▼終端有限公司Huawei Device Co., Ltd. Wi−Fiネットワーク接続方法、Wi−Fiコントローラ及びWi−Fi装置
US9924513B2 (en) * 2014-07-23 2018-03-20 Belkin International Inc. Band-switching operations in a mesh network environment
KR20150138735A (ko) * 2014-06-02 2015-12-10 삼성전자주식회사 전자 장치의 비콘 부가 서비스 방법 및 그 전자 장치
US10142444B2 (en) * 2014-07-01 2018-11-27 Trinity Mobile Networks, Inc. Methods, devices, and systems for implementing centralized hybrid wireless self-organizing networks
WO2016017908A1 (ko) * 2014-07-31 2016-02-04 엘지전자(주) 블루투스 통신을 지원하는 무선 통신 시스템에서 전자기기를 제어하기 위한 방법 및 장치
WO2016017907A1 (ko) * 2014-07-31 2016-02-04 엘지전자(주) 블루투스 통신을 지원하는 무선 통신 시스템에서 전자기기를 제어하기 위한 방법 및 장치
US9489787B1 (en) * 2014-08-08 2016-11-08 Live Nation Entertainment, Inc. Short-range device communications for secured resource access
US20160050589A1 (en) * 2014-08-13 2016-02-18 Samsung Electronics Co., Ltd. Ambient network sensing and handoff for device optimization in heterogeneous networks
US11190374B2 (en) * 2017-08-28 2021-11-30 Bright Data Ltd. System and method for improving content fetching by selecting tunnel devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105144757A (zh) * 2013-04-26 2015-12-09 三星电子株式会社 通信模式下的通信服务
US20170223485A1 (en) * 2014-05-02 2017-08-03 Qualcomm Incorporated Methods and apparatus for integrating bluetooth devices into neighbor aware networks
CN104202461A (zh) * 2014-08-11 2014-12-10 苏州易动智能科技有限公司 一种连接智能手机功能同步化的汽车音响系统
CN104657099A (zh) * 2015-01-15 2015-05-27 小米科技有限责任公司 屏幕投射方法、装置及系统
CN107079256A (zh) * 2016-12-30 2017-08-18 深圳市大疆灵眸科技有限公司 用于自动配对的方法和设备

Non-Patent Citations (1)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970676A (zh) * 2019-05-20 2020-11-20 北京小米移动软件有限公司 WiFi热点接入方法、装置、设备及存储介质
CN111970676B (zh) * 2019-05-20 2023-07-18 北京小米移动软件有限公司 WiFi热点接入方法、装置、设备及存储介质
CN110996404A (zh) * 2019-12-16 2020-04-10 联想(北京)有限公司 用于建立无线连接的方法、装置及系统
CN110996404B (zh) * 2019-12-16 2022-06-28 联想(北京)有限公司 用于建立无线连接的方法、装置及系统
WO2024065418A1 (zh) * 2022-09-29 2024-04-04 哲库科技(上海)有限公司 数据传输方法、装置、设备、介质和程序产品

Also Published As

Publication number Publication date
US20200245386A1 (en) 2020-07-30
EP3706499A4 (en) 2020-12-23
EP3706499A1 (en) 2020-09-09
US11330650B2 (en) 2022-05-10
CN107864469B (zh) 2020-05-05
CN107864469A (zh) 2018-03-30

Similar Documents

Publication Publication Date Title
WO2019085351A1 (zh) 无线连接方法及设备
US10506420B2 (en) Methods, systems, and devices for enabling multiple radio assisted discovery
US20220256626A1 (en) Device Control Method and Terminal
WO2020134720A1 (zh) 数据传输控制方法及相关产品
RU2666621C1 (ru) Процессор связи, способ реализации VoLTE, мобильный терминал, карта данных
EP2640100A1 (en) Method and apparatus for providing an enhanced wi-fi display session in a wi-fi display network
US9032029B2 (en) Communication hub for presenting audio-visual data from electronic devices and method of providing and using the same
US20090061850A1 (en) Cordless phone system with data retrieving capability using wireless technology
WO2014166243A1 (zh) 一种多终端多声道独立播放方法及装置
US9826021B2 (en) Communication apparatus and method for controlling the same
CN108848360B (zh) 智能投影仪、投屏控制方法及相关产品
WO2016173251A1 (zh) 一种连接Wi-Fi网络的方法、无线音箱及终端
WO2021238404A1 (zh) 数据卡的切换方法、装置、终端及存储介质
CN110650408A (zh) 一种耳机及防丢方法、系统、计算机可读存储介质
WO2014110855A1 (zh) 一种数据传输的方法及终端
WO2021138914A1 (zh) 传输数据的指示方法、装置、通信设备及存储介质
WO2023109205A1 (zh) 呼叫接收方法和通信装置
CN109618319A (zh) 通信连接建立方法、装置、电子设备及可读存储介质
CN111010693A (zh) 一种提供无线保真WiFi网络接入服务的方法及电子设备
WO2022111316A1 (zh) 通信方法、装置及设备
WO2022082451A1 (zh) 连接建立方法、装置、通信设备和存储介质
US11758594B2 (en) Communication apparatus, method of controlling the same, and storage medium
US10959146B2 (en) Communication apparatus, external apparatus, control method for communication apparatus, control method for external apparatus, and non-transitory computer-readable storage medium
US20120058795A1 (en) Method and system for providing emergency service
CN105682002A (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: 18874111

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

Country of ref document: EP

Effective date: 20200602