CN112491473A - Method and system for establishing wireless communication connection - Google Patents
Method and system for establishing wireless communication connection Download PDFInfo
- Publication number
- CN112491473A CN112491473A CN202011485748.7A CN202011485748A CN112491473A CN 112491473 A CN112491473 A CN 112491473A CN 202011485748 A CN202011485748 A CN 202011485748A CN 112491473 A CN112491473 A CN 112491473A
- Authority
- CN
- China
- Prior art keywords
- wireless communication
- communication connection
- establishing
- slave device
- target
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0869—Network architectures or network communication protocols for network security for authentication of entities for achieving mutual authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Power Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
- Optical Communication System (AREA)
Abstract
The method and the system for establishing the wireless communication connection provided by the specification enable the main device and the target slave device to be close to each other, carry out short-distance communication between the main device and the target slave device through optical signals by arranging the optical transmitting module and the optical receiving module on the main device and the slave device to transmit authentication data for identity verification, confirm the target slave device to be connected from a plurality of slave devices through the authentication data, and simultaneously reduce the device cost and simply and quickly establish the wireless communication connection. The user only needs to enable the main device and the target slave device to be close to each other, the main device can identify the target slave device from the multiple slave devices, manual selection of the user is not needed in the whole process, and user experience is improved.
Description
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and system for establishing a wireless communication connection.
Background
With the rapid development of information technology, intelligent terminals are more and more popular, and the intelligent terminals can be generally connected with various intelligent devices through short-distance wireless communication technologies such as bluetooth to perform remote control and interaction. All dispose bluetooth module on general intelligent terminal, intelligent terminal can establish through bluetooth module and the intelligent equipment that supports bluetooth function and be connected, communicates. However, because there are too many bluetooth devices around the user, when the connection is established between the smart terminal and the bluetooth device, it is troublesome to find the bluetooth device to be connected from the multiple bluetooth lists, and there may be a case of misconnection.
Therefore, it is desirable to provide a method and system for establishing a wireless communication connection that is low in cost, simple in operation, and capable of establishing a connection quickly.
Disclosure of Invention
The present specification provides a method and system for establishing a wireless communication connection that is low cost, simple to operate, and capable of quickly establishing a connection.
In a first aspect, the present specification provides a method for establishing a wireless communication connection, applied to a master device, including: transmitting an optical signal to within a preset range around the master device, the optical signal including authentication data and being identifiable by a target slave device located within the preset range; receiving at least one broadcast data transmitted from at least one slave device; determining target broadcast data from the at least one broadcast data, the target broadcast data including the authentication data; and establishing the wireless communication connection with the target slave device that transmitted the target broadcast data.
In some embodiments, the wireless communication connection comprises a bluetooth communication connection.
In some embodiments, the emitting the optical signal to a preset range around the master device includes: initiating the wireless communication connection and generating the authentication data; and generating the light signal corresponding to the authentication data based on a preset encoding rule and transmitting the light signal to the preset range, wherein the encoding rule comprises encoding at least one of illumination, color, frequency and flicker frequency of the light signal based on the authentication data.
In some embodiments, the determining target broadcast data from the at least one broadcast data comprises: and matching the authentication data with the at least one piece of broadcast data, and determining the broadcast data comprising the authentication data as the target broadcast data.
In some embodiments, each of the at least one broadcast data includes a device identification of a corresponding slave device, the target broadcast data further includes a device identification of the target slave device, the establishing the wireless communication connection with the target slave device that transmitted the target broadcast data includes: determining a device identification of the target slave device based on the target broadcast data; and sending a connection request to the target slave device based on the device identification of the target slave device, the wireless communication connection being established with the target slave device.
In a second aspect, the present specification provides a system for establishing a wireless communication connection, comprising a master device, the master device comprising: the wireless communication device comprises an optical transmitting module, a wireless communication module, at least one storage medium and at least one processor, wherein the optical transmitting module is used for transmitting optical signals to the preset range of the main device; the wireless communication module is used for establishing the wireless communication connection with the slave equipment; the at least one storage medium stores at least one set of instructions for establishing the wireless communication connection; and the at least one processor is in communication connection with the optical transmitting module, the wireless communication module and the at least one storage medium, wherein when the system for establishing wireless communication connection is operated, the at least one processor reads the at least one instruction set and executes the method for establishing wireless communication connection according to the first aspect of the specification according to the instruction of the at least one instruction set.
In a third aspect, the present specification provides a method for establishing a wireless communication connection, applied to a target slave device, including: receiving an optical signal emitted by a main device to a surrounding preset range, and determining authentication data in the optical signal; broadcasting target broadcast data externally, wherein the target broadcast data comprises the authentication data, and the target broadcast data can be received by the main equipment; and receiving a connection request sent by the main equipment, and establishing the wireless communication connection with the main equipment.
In some embodiments, the target slave device is located within the preset range of the master device.
In some embodiments, the wireless communication connection comprises a bluetooth communication connection.
In some embodiments, the target slave device comprises a light receiving module for receiving the light signal, the light receiving module comprising at least one of a photosensor and a camera.
In some embodiments, the light signal is generated by the master device based on a preset encoding rule, the light signal corresponding to the authentication data, the encoding rule including encoding at least one of an illumination, a color, a frequency, and a flicker frequency of the light signal based on the authentication data.
In some embodiments, the determining authentication data in the optical signal comprises: and analyzing the optical signal based on a preset decoding rule and determining the authentication data, wherein the decoding rule corresponds to the encoding rule and comprises analyzing the optical signal based on at least one of illumination, color, frequency and flicker frequency of the optical signal.
In some embodiments, the target broadcast data further comprises a device identification of the target slave device.
In a fourth aspect, the present specification provides a system for establishing a wireless communication connection, comprising a target slave device comprising: the wireless communication device comprises a light receiving module, a wireless communication module, at least one storage medium and at least one processor, wherein the light receiving module is used for receiving a light signal; the wireless communication module is used for establishing the wireless communication connection with the main equipment; the at least one storage medium stores at least one set of instructions for establishing the wireless communication connection; and the at least one processor is in communication connection with the light receiving module, the wireless communication module and the at least one storage medium, wherein when the system for establishing wireless communication connection is operated, the at least one processor reads the at least one instruction set and executes the method for establishing wireless communication connection according to the third aspect of the specification according to the instruction of the at least one instruction set.
In a fifth aspect, the present specification provides a method for establishing a wireless communication connection, applied to a master device, including: receiving an optical signal emitted by a target slave device to a preset range around, and determining authentication data in the optical signal; receiving at least one broadcast data transmitted from at least one slave device; determining target broadcast data from the at least one broadcast data, the target broadcast data including the authentication data; and establishing the wireless communication connection with a target slave device that transmits the target broadcast data.
In some embodiments, the wireless communication connection comprises a bluetooth communication connection.
In some embodiments, the master device is located within the preset range of the target slave device.
In some embodiments, the master device includes a light receiving module to receive the light signal, the light receiving module including at least one of a photosensor and a camera.
In some embodiments, the light signal is generated by the target slave device based on a preset encoding rule, the light signal corresponds to the authentication data, and the encoding rule includes encoding at least one of an illumination, a color, a frequency, and a flicker frequency of the light signal based on the authentication data.
In some embodiments, the determining authentication data in the optical signal comprises: and analyzing the optical signal based on a preset decoding rule and determining the authentication data, wherein the decoding rule corresponds to the encoding rule and comprises analyzing the optical signal based on at least one of illumination, color, frequency and flicker frequency of the optical signal.
In some embodiments, the determining target broadcast data from the at least one broadcast data comprises: and matching the authentication data with the at least one piece of broadcast data, and determining the broadcast data comprising the authentication data as the target broadcast data.
In some embodiments, each of the at least one broadcast data includes a device identification of a corresponding slave device, the target broadcast data includes a device identification of the target slave device, and the establishing the wireless communication connection with the target slave device that transmitted the target broadcast data includes: determining a device identification of the target slave device based on the target broadcast data; and sending a connection request to the target slave device based on the device identification of the target slave device, the wireless communication connection being established with the target slave device.
A sixth mimicry, the present specification provides a system for establishing a wireless communication connection, comprising a host device, the host device comprising: the wireless communication device comprises a light receiving module, a wireless communication module, at least one storage medium and at least one processor, wherein the light receiving module is used for receiving a light signal; the wireless communication module is used for establishing the wireless communication connection with a target slave device; the at least one storage medium stores at least one set of instructions for establishing the wireless communication connection; the at least one processor is communicatively connected to the light receiving module, the wireless communication module, and the at least one storage medium, wherein when the system for establishing wireless communication connection is running, the at least one processor reads the at least one instruction set and executes the method for establishing wireless communication connection according to the fifth aspect of the present specification according to the instruction of the at least one instruction set.
In a seventh aspect, the present specification provides a method for establishing a wireless communication connection, applied to a target slave device, including: transmitting an optical signal to a preset range around the target slave device, the optical signal including authentication data and being recognizable by a master device located within the preset range; broadcasting target broadcast data externally, wherein the target broadcast data comprises the authentication data, and the target broadcast data can be received by the main equipment; and receiving a connection request sent by the main equipment, and establishing the wireless communication connection with the main equipment.
In some embodiments, the wireless communication connection comprises a bluetooth communication connection.
In some embodiments, the emitting the optical signal to the target within a preset range around the slave device includes: initiating the wireless communication connection and generating the authentication data; and generating the light signal corresponding to the authentication data based on a preset encoding rule and transmitting the light signal to the preset range, wherein the encoding rule comprises encoding at least one of illumination, color, frequency and flicker frequency of the light signal based on the authentication data.
In some embodiments, the target broadcast data further comprises a device identification of the target slave device.
In an eighth aspect, the present specification provides a system for establishing a wireless communication connection, comprising a target slave device, the target slave device comprising: the device comprises an optical transmission module, a wireless communication module, at least one storage medium and at least one processor, wherein the optical transmission module is used for transmitting optical signals to the target slave device within a preset range; the wireless communication module is used for establishing the wireless communication connection with the main equipment; the at least one storage medium stores at least one set of instructions for establishing the wireless communication connection; the at least one processor is communicatively connected to the optical transmitting module, the wireless communication module, and the at least one storage medium, wherein when the system for establishing wireless communication connection is operated, the at least one processor reads the at least one instruction set and executes the method for establishing wireless communication connection according to the seventh aspect of the present specification according to the instruction of the at least one instruction set.
As can be seen from the above technical solutions, in the method and system for establishing a wireless communication connection provided in this specification, the master device and the target slave device are brought close to each other, and short-range communication is performed between the master device and the target slave device through an optical signal, so as to transfer authentication data for authentication. The method and the system can be used for transmitting the optical signal carrying the authentication data by the main equipment and receiving and identifying the optical signal by the target slave equipment in a short distance, and can also be used for transmitting the optical signal carrying the authentication data by the target slave equipment and receiving and identifying the optical signal by the main equipment in a short distance. The target broadcast data transmitted by the target slave equipment to the outside comprises the authentication data, and the master equipment selects the target slave equipment comprising the authentication data from the scanned plurality of slave equipment to establish wireless communication connection. The method and the system can be used for carrying out short-range communication through optical signals by arranging the optical transmitting module and the optical receiving module on the master device and the slave device so as to transfer authentication data, confirming target slave devices to be connected from a plurality of slave devices through the authentication data, and simply and quickly establishing wireless communication connection while reducing the device cost. The user only needs to enable the main device and the target slave device to be close to each other, the main device can identify the target slave device from the multiple slave devices, manual selection of the user is not needed in the whole process, and user experience is improved.
Additional features of the method and system for establishing a wireless communication connection provided by the present specification will be set forth in part in the description which follows. The following numerical and exemplary descriptions will be readily apparent to those of ordinary skill in the art in view of the description. The inventive aspects of the method and system for establishing a wireless communication connection provided by the present specification can be fully explained by the practice or use of the methods, apparatus and combinations described in the detailed examples below.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating an application scenario of a system for establishing a wireless communication connection according to an embodiment of the present specification;
FIG. 2 illustrates an apparatus diagram of a host device provided in accordance with an embodiment of the present description;
FIG. 3 illustrates a device diagram of a target slave device provided in accordance with an embodiment of the present description;
fig. 4 is a flow chart illustrating a method for establishing a wireless communication connection provided in accordance with an embodiment of the present description; and
fig. 5 is a flow chart illustrating another method for establishing a wireless communication connection provided in accordance with an embodiment of the present disclosure.
Detailed Description
The following description is presented to enable any person skilled in the art to make and use the present description, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present description. Thus, the present description is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the claims.
The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting. For example, as used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "includes," and/or "including," when used in this specification, are intended to specify the presence of stated integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
These and other features of the present specification, as well as the operation and function of the elements of the structure related thereto, and the combination of parts and economies of manufacture, may be particularly improved upon in view of the following description. Reference is made to the accompanying drawings, all of which form a part of this specification. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the specification. It should also be understood that the drawings are not drawn to scale.
The flow diagrams used in this specification illustrate the operation of system implementations according to some embodiments of the specification. It should be clearly understood that the operations of the flow diagrams may be performed out of order. Rather, the operations may be performed in reverse order or simultaneously. In addition, one or more other operations may be added to the flowchart. One or more operations may be removed from the flowchart.
The present specification provides a method and a system for establishing a wireless communication connection, in which an optical transmitting module and an optical receiving module are provided on a master device and a slave device, and near field communication is performed by optical signals to transfer authentication data, thereby helping the master device quickly determine a slave device having the same authentication data as the master device as a target slave device to be connected from among a plurality of slave devices, thereby establishing a wireless communication connection. The light emitting module and the light receiving module in the method and the system have low cost and small volume, are easy to integrate with an intelligent terminal or intelligent equipment, and are easier to popularize. In addition, according to the method and the system, the connection can be automatically established only by enabling the user to approach the master device and the target slave device, manual operation of the user is not needed, operation is convenient and fast, and user experience is greatly improved.
Fig. 1 is a schematic diagram illustrating an application scenario of a system 001 (hereinafter, referred to as system 001) for establishing a wireless communication connection according to an embodiment of the present disclosure. As shown in fig. 1, a system 001 for establishing a wireless communication connection (hereinafter, referred to as system 001) may include a master device 200 and at least one slave device 300. The system 001 can be applied to any scene requiring establishing wireless communication connection, for example, the connection between an intelligent electronic device and a smart phone, for example, the connection between an electronic scale, a bluetooth sound box, a wireless earphone, etc., the connection between a wireless mouse, a wireless keyboard, etc. and a computer, even the connection between a smart phone and other smart phones, etc. For convenience of presentation, in the following description of the present specification, a connection scenario between the smart electronic device and the smart phone will be described as an example.
The wireless Communication may be a short-range wireless Communication mode, such as bluetooth Communication, WiFi Communication, Near Field Communication (NFC), or ZigBee Communication. Accordingly, the module for implementing the short-range wireless communication may be embodied as a bluetooth module, a WiFi module, an NFC module, or a ZigBee module, etc. For convenience of illustration, the wireless communication will be described as bluetooth communication in this specification.
The master device 200 may be a device that actively establishes the wireless communication connection. The master device 200 may store data or instructions for performing the methods of establishing a wireless communication connection described herein and may execute or be used to execute the data and/or instructions. The main device 200 may include a hardware device having a data information processing function and a program necessary for driving the hardware device to operate. Of course, the main device 200 may be only a hardware device having a data processing capability, or only a program running in a hardware device. In some embodiments, the master device 200 may include a smart mobile device, a smart home device, a smart wearable device, a built-in device of a motor vehicle, or the like, or any combination thereof. In some embodiments, the smart mobile device may include a smartphone, a tablet, a laptop, a personal digital assistant, a gaming device, a navigation device, and the like, or any combination thereof. In some embodiments, the smart home device may include a smart television, a desktop computer, or the like, or any combination thereof. In some embodiments, the smart wearable device may include a smart helmet, smart glasses, such as a virtual reality helmet, virtual reality glasses, a virtual reality patch, an augmented reality helmet, augmented reality glasses, an augmented reality patch, or the like, or any combination thereof. In some embodiments, the built-in devices in the motor vehicle may include an on-board computer, an on-board television, and the like.
The slave device 300 may be any device that can establish the wireless communication connection with the master device 200. The slave device 300 may store data or instructions for performing the methods of establishing a wireless communication connection described herein and may execute or be used to execute the data and/or instructions. The slave device 300 may include a hardware device having a data information processing function and a program necessary for driving the hardware device to operate. Of course, the slave device 300 may be only a hardware device having a data processing capability, or only a program running in a hardware device. In some embodiments, the slave device 300 may be any electronic device having the wireless communication connection function. Taking the wireless communication as bluetooth communication as an example, the slave device 300 may be any bluetooth device having a bluetooth connection function, such as a smart mobile device, a smart home device, a smart wearable device, a built-in device of a motor vehicle, or the like, or any combination thereof. At least one slave device 300 may be one slave device 300, or may be a plurality of slave devices 300. The at least one slave device 300 includes a target slave device 302. The target slave device 302 may be a device to which the master device 200 is to connect.
Taking bluetooth connection as an example, the master device 200 needs to first initialize a connection procedure, if the device identification of the target slave device 302 to which it is to connect is known, establish a connection through a paging procedure; if the device identity of the target slave device 302 to be connected is not known, the devices in its surroundings are found by means of an inquiry/scanning procedure, whereby the device identity of at least one slave device 300 is obtained, from which the target slave device 302 is determined, and the connection is established by means of a paging procedure.
As shown in fig. 1, the master device 200 may find at least one slave device 300 in the surrounding through a query/scan process, and the master device 200 needs to determine a target slave device 302 to be connected and a device identity of the target slave device 302 from the at least one slave device 300 to establish the wireless communication connection with the target slave device 302. In order to determine the target slave device 302, the master device 200 and the target slave device 302 may approach each other, make the distance between the master device 200 and the target slave device 302 within a preset range, and perform short-range wireless communication with the target slave device 302 through an optical signal; the optical signal carries data information, the master device 200 and the target slave device 302 are close to each other, and the data information is transmitted through the optical signal to confirm the identity of each other, so that the target slave device 302 is confirmed from at least one slave device 300, and the wireless communication connection is established with the target slave device 302. The dotted line shown in fig. 1 may be the preset range.
Fig. 2 shows a device schematic of a master device 200. The master device 200 may perform the method of establishing a wireless communication connection described herein. The method of establishing a wireless communication connection is described elsewhere in this specification.
As shown in fig. 2, the master device 200 may include at least one storage medium 230 and at least one processor 220. In some embodiments, master device 200 may also include a wireless communication module 250 and an internal communication bus 210. In some embodiments, the master device 200 may also include a light emitting module 240. In some embodiments, the main device 200 may further include a light receiving module 280.
The internal communication bus 210 may connect various system components including the storage medium 230, the processor 220, the light emitting module 240, the light receiving module 280, and the wireless communication module 250.
The wireless communication module 250 is used for wireless communication with other electronic devices including the same wireless communication module, such as the slave device 300. The wireless communication may be bluetooth communication, the wireless communication module 250 may be a bluetooth module, and the host device 200 may wirelessly communicate with other electronic devices having the bluetooth module. Similarly, when the wireless communication connection is a WiFi connection, the wireless communication module 250 may be a WiFi module, and the main device 200 may wirelessly communicate with other electronic devices having the WiFi module.
In some embodiments, the master device 200 may also include a light emitting module 240. The light emitting module 240 may be used to emit a light signal into a preset range of the master device 200. The optical signal may be used for near field communication between the master device 200 and the target slave device 302. The optical signal may carry different data information. The optical signals corresponding to different data information are different. For example, at least one of the illumination, color, frequency and flashing frequency of the light signals corresponding to different data information is different. That is, the master device 200 may encode at least one of the illuminance, the color, the frequency and the flicker frequency of the light signal, and emit different light signals to the outside through the light emitting module 240 to transfer different data information.
The effective range of the optical signal emitted by the optical emitting module 240 is the preset range. The preset range may be an effective range in which the optical signal performs near field communication. The preset range can be set or changed. For example, the predetermined range may be 5cm, 10cm, 20cm, and may be even longer or shorter. When the target slave device 302 is within the preset range of the master device 200, the target slave device 302 may receive the optical signal and may parse out the data information carried in the optical signal.
The encoding rule of the optical signal and/or the corresponding relationship between the optical signal and the data information may be stored in the main device 200 in advance, so that the main device 200 may control the optical signal emitted by the optical emitting module 240 according to the data information. The target slave device 302 may store a decoding rule of the optical signal and/or a corresponding relationship between the optical signal and data information in advance. The decoding rule corresponds to the encoding rule, so that the target slave device 302 can decode the optical signal after receiving the optical signal to obtain the data information corresponding to the optical signal.
The light emitting module 240 may be an LED lamp, and when the host device 200 is a smartphone or a tablet computer, the light emitting module 240 may also be a flash of the host device 200, and the like. The light emitting module 240 may be any device capable of emitting light, and the description is not limited thereto.
In some embodiments, the main device 200 may further include a light receiving module 280. The light receiving module 280 may be configured to receive the light signal emitted by the target slave device 302 within the preset range of the target slave device 302. The optical signal emitted by the target slave device 302 within the preset range of the target slave device 302 substantially coincides with the optical signal emitted by the master device 200 within the preset range of the master device 200. The optical signal may carry different data information. The optical signals corresponding to different data information are different. For example, at least one of the illumination, color, frequency and flashing frequency of the light signals corresponding to different data information is different.
The main device 200 may store a decoding rule of the optical signal and/or a corresponding relationship between the optical signal and data information in advance, so that the main device 200 may decode the received optical signal to obtain the data information carried in the optical signal. The decoding rule pre-stored in the master device 200 may correspond to the encoding rule pre-stored in the target slave device 302, so that the master device 200 can decode the optical signal after receiving the optical signal to obtain the data information corresponding to the optical signal.
The light receiving module 280 may be a photoelectric sensor, and when the host device 200 is a smart phone or a tablet computer, the light receiving module 280 may also be a camera on the host device 200, and so on. The light receiving module 280 may be any device that can receive a light signal and convert the light signal into an electrical signal, which is not limited in this specification.
The at least one processor 220 may be communicatively coupled to at least one storage medium 230 and a wireless communication module 250 via an internal communication bus 210. The at least one processor 220 is configured to execute the at least one instruction set. When the system 001 is operating, the at least one processor 220 reads the at least one instruction set to perform the method for establishing a wireless communication connection as provided herein. The processor 220 may perform all the steps involved in the method of establishing a wireless communication connection. Processor 220 may be in the form of one or more processors, and in some embodiments, processor 220 may include one or more hardware processors, such as microcontrollers, microprocessors, Reduced Instruction Set Computers (RISC), Application Specific Integrated Circuits (ASICs), application specific instruction set processors (ASIPs), Central Processing Units (CPUs), Graphics Processing Units (GPUs), Physical Processing Units (PPUs), microcontroller units, Digital Signal Processors (DSPs), Field Programmable Gate Arrays (FPGAs), Advanced RISC Machines (ARM), Programmable Logic Devices (PLDs), any circuit or processor capable of executing one or more functions, or the like, or any combination thereof. For illustrative purposes only, only one processor 220 is depicted in the master device 200 in this specification. However, it should be noted that the main device 200 may also include multiple processors 220, and thus, the operations and/or method steps disclosed in this specification may be performed by one processor as described in this specification, or may be performed by a combination of multiple processors. For example, if in this description the processor 220 of the main device 200 performs steps a and B, it should be understood that steps a and B may also be performed jointly or separately by two different processors 220 (e.g., a first processor performing step a, a second processor performing step B, or both a first and a second processor performing steps a and B).
Fig. 3 shows a device schematic of a target slave device 302. The target slave device 302 may perform the methods of establishing a wireless communication connection described herein. The method of establishing a wireless communication connection is described elsewhere in this specification.
As shown in fig. 3, target slave device 302 may include at least one storage medium 330 and at least one processor 320. In some embodiments, the target slave device 302 may also include a wireless communication module 350 and an internal communication bus 310. In some embodiments, the target slave device 302 may also include a light emitting module 340. In some embodiments, the target slave device 302 may also include a light receiving module 380.
The internal communication bus 310 may connect the various system components including the storage medium 330, the processor 320, the optical transmit module 340, the optical receive module 380, and the wireless communication module 350.
The wireless communication module 350 is used for wireless communication with other electronic devices including the same wireless communication module, such as the main device 200. The wireless communication may be a bluetooth communication, the wireless communication module 350 may be a bluetooth module, and the target slave device 302 may wirelessly communicate with other electronic devices having the bluetooth module. Likewise, when the wireless communication connection is a WiFi connection, the wireless communication module 350 may be a WiFi module, and the target slave device 302 may wirelessly communicate with other electronic devices having the WiFi module.
In order to realize the wireless communication connection between the target slave device 302 and the master device 200, the target slave device 302 and the master device 200 should be equipped with a wireless communication module corresponding to the wireless communication. For example, when the wireless communication connection is a bluetooth communication connection, the wireless communication module 250 and the wireless communication module 350 are bluetooth modules; also, when the wireless communication connection is a WiFi connection, the wireless communication modules 250 and 350 are WiFi modules, and so on.
In some embodiments, the target slave device 302 may also include a light emitting module 340. The light emitting module 340 may be used to emit a light signal into a preset range of the target slave device 302. The optical signal may be used for near field communication between the target slave device 302 and the master device 200. The optical signal may carry different data information. The optical signals corresponding to different data information are different. For example, at least one of the illumination, color, frequency and flashing frequency of the light signals corresponding to different data information is different. That is, the target slave device 302 may encode at least one of the illumination, color, frequency, and flashing frequency of the light signal, and emit different light signals to the outside through the light emitting module 340 to transfer different data information.
The effective range of the optical signal emitted by the optical emitting module 340 is the preset range. The preset range can be set or changed. For example, the predetermined range may be 5cm, 10cm, 20cm, and may be even longer or shorter. When the master device 200 is within the preset range of the target slave device 302, the master device 200 may receive the optical signal and may analyze data information carried in the optical signal.
The target slave device 302 may store the encoding rule of the optical signal and/or the corresponding relationship between the optical signal and the data information in advance, so that the target slave device 302 may control the optical signal emitted by the optical emitting module 340 according to the data information. The master device 200 may store a decoding rule of the optical signal and/or a correspondence relationship between the optical signal and the data information in advance. The decoding rule corresponds to the encoding rule, so that the master device 200 can decode the optical signal after receiving the optical signal to obtain the data information corresponding to the optical signal.
The light emitting module 340 may be an LED lamp, when the target slave device 302 is a smartphone or a tablet computer, the light emitting module 340 may also be a flash of the target slave device 302, and so on. The light emitting module 340 may be any device capable of emitting light, and the description is not limited thereto.
In some embodiments, the target slave device 302 may also include a light receiving module 380. The light receiving module 380 may be configured to receive the light signal emitted by the main device 200 within the preset range of the main device 200. The optical signal may carry different data information. The optical signals corresponding to different data information are different. For example, at least one of the illumination, color, frequency and flashing frequency of the light signals corresponding to different data information is different.
The target slave device 302 may store a decoding rule of the optical signal and/or a corresponding relationship between the optical signal and data information in advance, so that the target slave device 302 may decode the received optical signal to obtain the data information carried in the optical signal. The decoding rule pre-stored in the target slave device 302 may correspond to the encoding rule pre-stored in the master device 200, so that the target slave device 302 can decode the optical signal after receiving the optical signal to obtain the data information corresponding to the optical signal.
The light receiving module 380 may be a photoelectric sensor, when the target slave device 302 is a smartphone or a tablet computer, the light receiving module 380 may also be a camera on the target slave device 302, and so on. The light receiving module 380 may be any device that can receive a light signal and convert the light signal into an electrical signal, which is not limited in this specification.
The at least one processor 320 may be communicatively coupled to the at least one storage medium 330 and the wireless communication module 350 via the internal communication bus 310. The at least one processor 320 is configured to execute the at least one instruction set. When the system 001 is operating, the at least one processor 320 reads the at least one instruction set to perform the method for establishing a wireless communication connection as provided herein. Processor 320 may perform all of the steps included in the method of establishing a wireless communication connection. Processor 320 may be in the form of one or more processors, and in some embodiments, processor 320 may include one or more hardware processors, such as microcontrollers, microprocessors, Reduced Instruction Set Computers (RISC), Application Specific Integrated Circuits (ASICs), application specific instruction set processors (ASIPs), Central Processing Units (CPUs), Graphics Processing Units (GPUs), Physical Processing Units (PPUs), microcontroller units, Digital Signal Processors (DSPs), Field Programmable Gate Arrays (FPGAs), Advanced RISC Machines (ARM), Programmable Logic Devices (PLDs), any circuit or processor capable of executing one or more functions, or the like, or any combination thereof. For illustrative purposes only, only one processor 320 is depicted in the target slave device 302 in this description. It should be noted, however, that the target slave device 302 may also include multiple processors 320, and thus, the operations and/or method steps disclosed herein may be performed by one processor as described herein, or may be performed by a combination of multiple processors. For example, if in this description the processor 320 of the target slave device 302 performs steps a and B, it should be understood that steps a and B may also be performed jointly or separately by two different processors 320 (e.g., a first processor performing step a, a second processor performing step B, or both a first and second processor performing steps a and B).
It should be noted that the device schematic shown in fig. 3 may also be used for the slave device 300.
As described above, the master device 200 and the target slave device 302 perform near field communication by optical signals, and transmit data information to acquire identity information of both devices. Specifically, the master device 200 may transmit the optical signal and the target slave device 302 may receive and recognize the optical signal, or the target slave device 302 may transmit the optical signal and the master device 200 may receive and recognize the optical signal.
Fig. 4 shows a flowchart of a method P100 for establishing a wireless communication connection according to an embodiment of the present description. The method P100 for establishing a wireless communication connection is applied to the system 001 for establishing a wireless communication connection. The system 001 for establishing a wireless communication connection may perform the method P100 for establishing a wireless communication connection provided in this specification. Specifically, the master device 200 and the target slave device 302 may read an instruction set stored in their local storage media and then execute the method P100 for establishing a wireless communication connection provided in this specification according to the specification of the instruction set. In the method P100 shown in fig. 4, the optical signal is transmitted by the master device 200, received and recognized by the target slave device 302. The method P100 may comprise:
s120: the master device 200 emits the optical signal to the preset range around the master device 200.
Specifically, step S120 may be performed by the processor 220 of the main device 200. As described above, the optical signal may carry data information, and the data information may be transmitted between the master device 200 and the target slave device 302 through the optical signal, so as to obtain identity information of both parties. In particular, the data information may be authentication data. The authentication data may be randomly generated data by the master device 200 for authenticating the target slave device 302. The target slave device 302 may recognize the authentication data and transmit to the master device 200, and the master device 200 may determine the target slave device 302 from the at least one slave device 300 according to the authentication data. The authentication data may be random numbers, random words, etc. The authentication data may also be a device identifier of the master device 200, and the target slave device 302 may obtain the device identifier of the master device 200 from the optical signal, thereby confirming the identity of the master device 200.
Step S120 may include:
s122: the master device 200 initiates the wireless communication connection and generates the authentication data.
Specifically, the master device 200 may initiate the wireless communication connection under a preset operation. The master device 200 may have a bluetooth connected switch. The preset operation may be to turn on a switch of the bluetooth connection. For example, when the master device 200 is a smart phone, the preset operation may be an operation in which the user enters a bluetooth setting of the master device 200 and opens a bluetooth connection. When the main device 200 is another electronic device, the preset operation may be that the user turns on a bluetooth switch or a bluetooth switch button of the main device 200, or the like.
S124: the master device 200 generates the optical signal corresponding to the authentication data based on a preset encoding rule and transmits the optical signal to the preset range.
Specifically, the master device 200 may store the encoding rule and/or the corresponding relationship between the optical signal and the authentication data in advance. Wherein the encoding rule may include encoding at least one of an illumination, a color, a frequency, and a flicker frequency of the light signal based on the authentication data. The master device 200 may obtain encoded data of the optical signal corresponding to the authentication data according to the encoding rule and/or the corresponding relationship between the optical signal and the authentication data, send the encoded data of the optical signal to the optical transmitting module 240, and generate the optical signal according to the encoded data of the optical signal by the optical transmitting module 240 to transmit the optical signal to the preset range.
S130: the target slave device 302 receives an optical signal emitted by the master device 200 to a preset range around, and determines authentication data in the optical signal.
The target slave device 302 is the device to which the master device 200 is to connect. The user may bring the target slave device 302 close to the master device 200 such that the target slave device 302 is within the preset range of the master device 200. The target slave device 302 is within the preset range of the master device 200 to receive the optical signal. The authentication data in the optical signal is identifiable by a target slave device 302 located within the preset range. The optical signal may be received by the optical receiving module 380 of the target slave device 302. Specifically, the target slave device 302 may initiate the wireless communication connection under a preset operation. The target slave device 302 may have a bluetooth connected switch. The preset operation may be to turn on a switch of the bluetooth connection. For example, when the target slave device 302 is a smart phone, the preset operation may be an operation in which the user enters a bluetooth setting of the target slave device 302 and opens a bluetooth connection. When the target slave device 302 is another electronic device, the preset operation may be that the user turns on a bluetooth switch or a bluetooth switch button of the target slave device 3020, or the like.
After the target slave device 302 starts the wireless communication connection, the light receiving module 380 of the target slave device 302 starts to receive the light signal. Specifically, step S130 may be: the target slave device 302 parses the optical signal based on a preset decoding rule, determining the authentication data. The target slave device 302 may store the decoding rule and/or the corresponding relationship between the optical signal and the authentication data in advance. The decoding rule corresponds to the encoding rule. The decoding rule may include parsing the light signal based on at least one of an illumination, a color, a frequency, and a flicker frequency of the light signal. The target slave device 302 may decode the received optical signal according to the decoding rule and/or the correspondence between the optical signal and the authentication data.
It should be noted that the optical signal is only generated within a preset range, and the optical signal can be received and identified only when the target slave device 302 is within the preset range. When the preset range is exceeded, the optical signal is invalid or attenuated, and correct authentication data cannot be identified. The light receiving module 380 of the target slave device 302 may face the light emitting module 240 of the master device 200 to ensure that the transmission of the optical signal is not obstructed.
S140: the target slave device 302 broadcasts the target broadcast data to the outside. Wherein the target broadcast data includes the authentication data.
The target broadcast data may be a directional broadcast or a non-directional broadcast. The target broadcast data can be received by the master device 200. The target broadcast data may include not only the authentication data but also a device identification of the target slave device 302. When the device identification of the master device 200 is included in the authentication data, the target broadcast data may be a directed broadcast transmitted to the master device 200. When the authentication data does not include the device identifier of the master device 200, but only includes random data for identity authentication, the target broadcast data may be an undirected broadcast carrying the random number.
The directed broadcast is a broadcast directed to a specific application or device, and the type of directed broadcast is for establishing a connection as quickly as possible. Such a message contains two addresses (the addresses are device identifications): the address of the broadcaster and the address of the originator. After receiving the directional broadcast message sent to the initiator, the initiator can immediately send a connection request as a response. The directional broadcast event must be repeated every 3.75 ms. This requirement allows the scanning device to scan only 3.75ms for messages to the targeted broadcasting device. Such a fast transmission would flood the broadcast channel with messages, which would result in other devices in the area not being able to broadcast to the originator.
The non-directed broadcast may include broadcast data and scan response data indicating that the current device may accept connection requests from any device.
S150: the master device 200 receives at least one broadcast data transmitted from at least one slave device 300.
The master device 200 may actively query and scan the surrounding slave devices 300. Each slave device 300 of at least one slave device 300 around the master device 200 may transmit broadcast data to the outside. The at least one slave device 300 corresponds to at least one broadcast data. Each of the at least one broadcast data may include therein a device identification of the corresponding slave device 300. The broadcast data may be non-directional broadcast data. Wherein the at least one slave device 300 may comprise a target slave device 302. The target broadcast data is included in the at least one broadcast data.
S160: the master device 200 determines target broadcast data from the at least one broadcast data.
When the device identifier of the master device 200 is included in the authentication data, the target broadcast data may be directional broadcast data for the master device 200, and at this time, the master device 200 can only receive the target broadcast data sent by the target slave device 302. And the main equipment determines the received broadcast data as the target broadcast data.
When the authentication data does not include the device identifier of the master device 200, but only includes random data for identity authentication, the target broadcast data may be an undirected broadcast carrying the random number. At this time, the master device 200 may receive at least one broadcast data transmitted from all of the at least one slave devices 300 around. The master device 200 may parse the at least one broadcast data, match the authentication data with the at least one broadcast data, and determine that the broadcast data including the authentication data is the target broadcast data.
S180: the master device 200 establishes the wireless communication connection with the target slave device 302 that transmitted the target broadcast data.
Step S180 may include:
s182: the master device 200 determines a device identification of the target slave device 302 based on the target broadcast data. As previously described, the device identification of the target slave device 302 is included in the target broadcast data.
S184: the master device 200 sends a connection request to the target slave device 302 based on the device identification of the target slave device 302, the target slave device 302 receives the connection request sent by the master device 200, and the master device 200 establishes the wireless communication connection with the target slave device 302.
After the master device 200 establishes the wireless communication connection with the target slave device 302, the master device 200 stores the device identifier of the target slave device 302, and the target slave device 302 stores the device identifier of the master device 200. The master device 200 and the target slave device 302 may then automatically connect.
Fig. 5 shows a flowchart of another method P200 for establishing a wireless communication connection provided according to an embodiment of the present description. The method P200 for establishing a wireless communication connection is applied to the system 001 for establishing a wireless communication connection. The system 001 for establishing a wireless communication connection may perform the method P200 for establishing a wireless communication connection provided in this specification. Specifically, the master device 200 and the target slave device 302 may read an instruction set stored in their local storage media and then execute the method P200 for establishing a wireless communication connection provided in this specification according to the specification of the instruction set. In method P200 shown in fig. 5, the optical signal is transmitted by the target slave device 302, received and recognized by the master device 200. The method P200 may comprise:
s220: the target slave device 302 emits an optical signal into a preset range around the target slave device 302.
In particular, step S220 may be performed by the processor 320 of the target slave device 302. As described above, the optical signal may carry data information, and the data information may be transmitted between the master device 200 and the target slave device 302 through the optical signal, so as to obtain identity information of both parties. In particular, the data information may be authentication data. The authentication data may be data randomly generated by the target slave device 302 for authenticating the master device 200. The master device 200 may identify the authentication data. The target slave device 302 may determine the target slave device 302 from the at least one slave device 300 based on the authentication data. The authentication data may be random numbers, random words, etc. The authentication data may also be the device identification of the target slave device 302, and the master device 200 may obtain the device identification of the target slave device 302 from the optical signal, thereby confirming the identity of the target slave device 302.
Step S220 may include:
s222: the target slave device 302 initiates the wireless communication connection and generates the authentication data.
The manner in which the target slave device 302 initiates the wireless communication connection may be the same as that described in the foregoing step S130, and is not described herein again.
S224: the target slave device 302 generates the optical signal corresponding to the authentication data based on a preset encoding rule and transmits the optical signal to the preset range.
Specifically, the target slave device 302 may store the encoding rule and/or the corresponding relationship between the optical signal and the authentication data in advance. Wherein the encoding rule may include encoding at least one of an illumination, a color, a frequency, and a flicker frequency of the light signal based on the authentication data. The target slave device 302 may obtain encoded data of the optical signal corresponding to the authentication data according to the encoding rule and/or the corresponding relationship between the optical signal and the authentication data, send the encoded data of the optical signal to the optical transmitting module 340, and generate the optical signal according to the encoded data of the optical signal by the optical transmitting module 340 to transmit the optical signal within the preset range.
S230: the master device 200 receives an optical signal emitted by the target slave device 302 to within a preset range of the surroundings, and determines authentication data in the optical signal.
The master device 200 is located within the preset range of the target slave device 302 to receive the optical signal. The authentication data in the optical signal can be recognized by the master device 200 located within the preset range. The light receiving module 280 of the main device 200 may receive the light signal. Specifically, the master device 200 may initiate the wireless communication connection under a preset operation. The manner in which the master device 200 initiates the wireless communication connection may be the same as that described in step S122, and is not described herein again.
After the main device 200 starts the wireless communication connection, the light receiving module 280 of the main device 200 starts to receive the light signal. Specifically, step S230 may be: the master device 200 analyzes the optical signal based on a preset decoding rule, and determines the authentication data. The master device 200 may store the decoding rule and/or the corresponding relationship between the optical signal and the authentication data in advance. The decoding rule corresponds to the encoding rule. The decoding rule may include parsing the light signal based on at least one of an illumination, a color, a frequency, and a flicker frequency of the light signal. The master device 200 may decode the received optical signal according to the decoding rule and/or the corresponding relationship between the optical signal and the authentication data.
It should be noted that the optical signal is only generated within a preset range, and the optical signal can be received and identified only when the main device 200 is within the preset range. When the preset range is exceeded, the optical signal is invalid or attenuated, and correct authentication data cannot be identified. The light receiving module 280 of the master device 200 may face the light emitting module 340 of the target slave device 302 to ensure that the transmission of the light signal is not obstructed.
S240: the target slave device 302 broadcasts the target broadcast data to the outside. Wherein the target broadcast data includes the authentication data.
The target broadcast data may be a non-directional broadcast. The target broadcast data can be received by the master device 200. The target broadcast data may include not only the authentication data but also a device identification of the target slave device 302.
S250: the master device 200 receives at least one broadcast data transmitted from at least one slave device 300.
The master device 200 may actively query and scan the surrounding slave devices 300. Each slave device 300 of at least one slave device 300 around the master device 200 may transmit broadcast data to the outside. The at least one slave device 300 corresponds to at least one broadcast data. Each of the at least one broadcast data may include therein a device identification of the corresponding slave device 300. The broadcast data may be non-directional broadcast data. Wherein the at least one slave device 300 may comprise a target slave device 302. The target broadcast data is included in the at least one broadcast data.
S260: the master device 200 determines target broadcast data from the at least one broadcast data.
The master device 200 may parse the at least one broadcast data, match the authentication data with the at least one broadcast data, and determine that the broadcast data including the authentication data is the target broadcast data.
When the device identifier of the target slave device 302 is included in the authentication data, the master device 200 may match the device identifier of the target slave device 302 identified from the optical signal with the at least one piece of broadcast data, and determine the broadcast data including the same device identifier as the target broadcast data. When the authentication data does not include the device identifier of the target slave device 302 and includes only random data for identity authentication, the master device 200 may match the random data identified from the optical signal with at least one piece of broadcast data, and determine the broadcast data containing the same random data as the target broadcast data.
S280: the master device 200 establishes the wireless communication connection with the target slave device 302 that transmitted the target broadcast data.
Step S280 may include:
s282: the master device 200 determines a device identification of the target slave device 302 based on the target broadcast data. As previously described, the device identification of the target slave device 302 is included in the target broadcast data.
S284: the master device 200 sends a connection request to the target slave device 302 based on the device identification of the target slave device 302, the target slave device 302 receives the connection request sent by the master device 200, and the master device 200 establishes the wireless communication connection with the target slave device 302.
After the master device 200 establishes the wireless communication connection with the target slave device 302, the master device 200 stores the device identifier of the target slave device 302, and the target slave device 302 stores the device identifier of the master device 200. The master device 200 and the target slave device 302 may then automatically connect.
In summary, the master device 200 in the method P100, the method P200, and the system 001 may transmit the optical signal carrying the authentication data within a preset range; when the target slave device 302 approaches the master device 200 to the preset range, the target slave device 302 can receive the optical signal and correctly identify the optical signal, and identify authentication data therein, so as to perform identity authentication; the master device 200 may identify a target slave device 302 from the at least one slave device 300 based on the authentication data and establish the wireless communication connection. The method P100 may be implemented by providing the optical transmitting module 240 on the master device 200 and the optical receiving module 380 on the target slave device 302, so that the master device 200 and the target slave device 302 may perform near field communication to transfer authentication data and obtain identity information of each other, thereby helping the master device 200 to quickly identify the target slave device 302 and conveniently and quickly establish the wireless communication connection. The method P200 may be implemented by providing the optical transmitting module 340 on the target slave device 302 and providing the optical receiving module 280 on the master device 200, so that the master device 200 and the target slave device 302 may perform short-range communication to transfer authentication data and obtain identity information of each other, thereby helping the master device 200 to quickly identify the target slave device 302 and conveniently and quickly establish the wireless communication connection. The user only needs to approach the master device 200 and the target slave device 302, the wireless communication connection can be automatically established, manual operation and selection of the user are not needed in the whole process, and the user experience is improved. And the light emitting module 240, the light emitting module 340, the light receiving module 280 and the light receiving module 380 have lower cost and smaller volume, have small influence on the structure of the original equipment and are easier to popularize. When the main device 200 is a smart device such as a smart phone or a tablet computer, the light emitting module 240 may be a flash lamp provided on the main device 200, and the light receiving module 280 may be a camera provided on the main device 200, so that the light emitting module 240 and the light receiving module 280 are not required to be additionally added, that is, the cost is not required to be increased. When the target slave device 302 is a smart device such as a smart phone or a tablet computer, the light emitting module 340 may be a flash lamp of the target slave device 302, and the light receiving module 380 may be a camera of the target slave device 302, so that the light emitting module 340 and the light receiving module 380 do not need to be additionally added, that is, the cost does not need to be increased.
Another aspect of the present description provides a non-transitory storage medium storing at least one set of executable instructions for establishing a wireless communication connection, which when executed by a processor, direct the processor to perform the steps of methods P100 and/or P200 for establishing a wireless communication connection described herein. In some possible implementations, various aspects of the description may also be implemented in the form of a program product including program code. When the program product is run on the master device 200 and/or the target slave device 302, the program code is configured to cause the master device 200 and/or the target slave device 302 to perform the method P100 and/or P200 steps of establishing a wireless communication connection described herein. A program product for implementing the above-described method may employ a portable compact disc read only memory (CD-ROM) including program code and may be run on the master device 200 and/or the target slave device 302. However, the program product of the present specification is not so limited, and in this specification, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system (e.g., processor 320 and/or processor 220). The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations for this specification may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the master device 200 and/or the target slave device 302, partly on the master device 200 and/or the target slave device 302, as a stand-alone software package, partly on the master device 200 and/or the target slave device 302, partly on a remote computing device, or entirely on the remote computing device.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In conclusion, upon reading the present detailed disclosure, those skilled in the art will appreciate that the foregoing detailed disclosure can be presented by way of example only, and not limitation. Those skilled in the art will appreciate that the present specification contemplates various reasonable variations, enhancements and modifications to the embodiments, even though not explicitly described herein. Such alterations, improvements, and modifications are intended to be suggested by this specification, and are within the spirit and scope of the exemplary embodiments of this specification.
Furthermore, certain terminology has been used in this specification to describe embodiments of the specification. For example, "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various portions of this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined as suitable in one or more embodiments of the specification.
It should be appreciated that in the foregoing description of embodiments of the specification, various features are grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the specification, for the purpose of aiding in the understanding of one feature. This is not to be taken as an admission that any of the features are required in combination, and it is fully possible for one skilled in the art to extract some of the features as separate embodiments when reading this specification. That is, embodiments in this specification may also be understood as an integration of a plurality of sub-embodiments. And each sub-embodiment described herein is equally applicable to less than all features of a single foregoing disclosed embodiment.
Each patent, patent application, publication of a patent application, and other material, such as articles, books, descriptions, publications, documents, articles, and the like, cited herein is hereby incorporated by reference. All matters hithertofore set forth herein except as related to any prosecution history, may be inconsistent or conflicting with this document or any prosecution history which may have a limiting effect on the broadest scope of the claims. Now or later associated with this document. For example, if there is any inconsistency or conflict in the description, definition, and/or use of terms associated with any of the included materials with respect to the terms, descriptions, definitions, and/or uses associated with this document, the terms in this document are used.
Finally, it should be understood that the embodiments of the application disclosed herein are illustrative of the principles of the embodiments of the present specification. Other modified embodiments are also within the scope of this description. Accordingly, the disclosed embodiments are to be considered in all respects as illustrative and not restrictive. Those skilled in the art may implement the applications in this specification in alternative configurations according to the embodiments in this specification. Therefore, the embodiments of the present description are not limited to the embodiments described precisely in the application.
Claims (28)
1. A method for establishing wireless communication connection is applied to a main device and comprises the following steps:
transmitting an optical signal to within a preset range around the master device, the optical signal including authentication data and being identifiable by a target slave device located within the preset range;
receiving at least one broadcast data transmitted from at least one slave device;
determining target broadcast data from the at least one broadcast data, the target broadcast data including the authentication data; and
establishing the wireless communication connection with the target slave device that transmitted the target broadcast data.
2. A method of establishing a wireless communication connection as defined in claim 1, wherein the wireless communication connection comprises a bluetooth communication connection.
3. The method of establishing a wireless communication connection according to claim 1, wherein said transmitting an optical signal to a preset range around the master device comprises:
initiating the wireless communication connection and generating the authentication data; and
and generating the light signal corresponding to the authentication data based on a preset coding rule and transmitting the light signal to the preset range, wherein the coding rule comprises coding at least one of illumination, color, frequency and flicker frequency of the light signal based on the authentication data.
4. The method of establishing a wireless communication connection as recited in claim 1, wherein said determining target broadcast data from the at least one broadcast data comprises:
and matching the authentication data with the at least one piece of broadcast data, and determining the broadcast data comprising the authentication data as the target broadcast data.
5. The method of establishing a wireless communication connection as recited in claim 1, wherein each of the at least one broadcast data includes a device identification of a corresponding slave device, the target broadcast data further includes a device identification of the target slave device, the establishing the wireless communication connection with the target slave device that transmitted the target broadcast data includes:
determining a device identification of the target slave device based on the target broadcast data; and
sending a connection request to the target slave device based on the device identification of the target slave device, the wireless communication connection being established with the target slave device.
6. A system for establishing a wireless communication connection, comprising a master device, the master device comprising:
the light emitting module is used for emitting light signals to the preset range of the main equipment;
a wireless communication module for establishing the wireless communication connection with a slave device;
at least one storage medium storing at least one set of instructions for establishing the wireless communication connection; and
at least one processor in communication with the optical transmit module, the wireless communication module, and the at least one storage medium,
wherein, when the system for establishing wireless communication connection is running, the at least one processor reads the at least one instruction set and executes the method for establishing wireless communication connection according to any one of claims 1-5 according to the indication of the at least one instruction set.
7. A method for establishing wireless communication connection, which is applied to a target slave device, comprises the following steps:
receiving an optical signal emitted by a main device to a surrounding preset range, and determining authentication data in the optical signal;
broadcasting target broadcast data externally, wherein the target broadcast data comprises the authentication data, and the target broadcast data can be received by the main equipment; and
and receiving a connection request sent by the main equipment, and establishing the wireless communication connection with the main equipment.
8. The method of establishing a wireless communication connection as recited in claim 7, wherein the target slave device is located within the preset range of the master device.
9. A method of establishing a wireless communication connection as defined in claim 7, wherein the wireless communication connection comprises a bluetooth communication connection.
10. The method of establishing a wireless communication connection as recited in claim 7, wherein the target slave device includes a light receiving module for receiving the optical signal, the light receiving module including at least one of a photosensor and a camera.
11. The method of establishing a wireless communication connection according to claim 7, wherein the light signal is generated by the master device based on a preset encoding rule, the light signal corresponding to the authentication data, the encoding rule including encoding at least one of a luminance, a color, a frequency, and a flicker frequency of the light signal based on the authentication data.
12. The method of establishing a wireless communication connection of claim 11, wherein the determining authentication data in the optical signal comprises:
and analyzing the optical signal based on a preset decoding rule and determining the authentication data, wherein the decoding rule corresponds to the encoding rule and comprises analyzing the optical signal based on at least one of illumination, color, frequency and flicker frequency of the optical signal.
13. The method of establishing a wireless communication connection of claim 7, wherein the target broadcast data further comprises a device identification of the target slave device.
14. A system for establishing a wireless communication connection, comprising a target slave device, the target slave device comprising:
the optical receiving module is used for receiving optical signals;
the wireless communication module is used for establishing the wireless communication connection with the main equipment;
at least one storage medium storing at least one set of instructions for establishing the wireless communication connection; and
at least one processor in communication with the light receiving module, the wireless communication module, and the at least one storage medium,
wherein, when the system for establishing a wireless communication connection is running, the at least one processor reads the at least one instruction set and executes the method for establishing a wireless communication connection according to any one of claims 7-13 according to the indication of the at least one instruction set.
15. A method for establishing wireless communication connection is applied to a main device and comprises the following steps:
receiving an optical signal emitted by a target slave device to a preset range around, and determining authentication data in the optical signal;
receiving at least one broadcast data transmitted from at least one slave device;
determining target broadcast data from the at least one broadcast data, the target broadcast data including the authentication data; and
establishing the wireless communication connection with a target slave device that transmits the target broadcast data.
16. A method of establishing a wireless communication connection as defined in claim 15, wherein the wireless communication connection comprises a bluetooth communication connection.
17. A method of establishing a wireless communication connection as defined in claim 15, wherein the master device is located within the preset range of the target slave device.
18. The method of establishing a wireless communication connection of claim 15, wherein the master device comprises a light receiving module for receiving the optical signal, the light receiving module comprising at least one of a photosensor and a camera.
19. The method of establishing a wireless communication connection as recited in claim 15, wherein the light signal is generated for the target slave device based on a preset encoding rule, the light signal corresponding to the authentication data, the encoding rule including encoding at least one of illumination, color, frequency, and flicker frequency of the light signal based on the authentication data.
20. The method of establishing a wireless communication connection of claim 19, wherein the determining authentication data in the optical signal comprises:
and analyzing the optical signal based on a preset decoding rule and determining the authentication data, wherein the decoding rule corresponds to the encoding rule and comprises analyzing the optical signal based on at least one of illumination, color, frequency and flicker frequency of the optical signal.
21. The method of establishing a wireless communication connection as recited in claim 15, wherein said determining target broadcast data from the at least one broadcast data comprises:
and matching the authentication data with the at least one piece of broadcast data, and determining the broadcast data comprising the authentication data as the target broadcast data.
22. The method of establishing a wireless communication connection as recited in claim 15, wherein each of the at least one broadcast data includes a device identification of a corresponding slave device, the target broadcast data includes a device identification of the target slave device, and the establishing the wireless communication connection with the target slave device that transmitted the target broadcast data includes:
determining a device identification of the target slave device based on the target broadcast data; and
sending a connection request to the target slave device based on the device identification of the target slave device, the wireless communication connection being established with the target slave device.
23. A system for establishing a wireless communication connection, comprising a master device, the master device comprising:
the optical receiving module is used for receiving optical signals;
a wireless communication module for establishing the wireless communication connection with a target slave device;
at least one storage medium storing at least one set of instructions for establishing the wireless communication connection; and
at least one processor in communication with the light receiving module, the wireless communication module, and the at least one storage medium,
wherein, when the system for establishing a wireless communication connection is running, the at least one processor reads the at least one instruction set and performs the method for establishing a wireless communication connection according to any one of claims 15-22 according to the indication of the at least one instruction set.
24. A method for establishing wireless communication connection, which is applied to a target slave device, comprises the following steps:
transmitting an optical signal to a preset range around the target slave device, the optical signal including authentication data and being recognizable by a master device located within the preset range;
broadcasting target broadcast data externally, wherein the target broadcast data comprises the authentication data, and the target broadcast data can be received by the main equipment; and
and receiving a connection request sent by the main equipment, and establishing the wireless communication connection with the main equipment.
25. A method of establishing a wireless communication connection as defined in claim 24, wherein the wireless communication connection comprises a bluetooth communication connection.
26. The method of establishing a wireless communication connection as claimed in claim 24, wherein said transmitting optical signals to a preset range around the target slave device comprises:
initiating the wireless communication connection and generating the authentication data; and
and generating the light signal corresponding to the authentication data based on a preset coding rule and transmitting the light signal to the preset range, wherein the coding rule comprises coding at least one of illumination, color, frequency and flicker frequency of the light signal based on the authentication data.
27. A method of establishing a wireless communication connection as defined in claim 24, wherein the target broadcast data further comprises a device identification of the target slave device.
28. A system for establishing a wireless communication connection, comprising a target slave device, the target slave device comprising:
the light emitting module is used for emitting a light signal to the preset range of the target slave device;
the wireless communication module is used for establishing the wireless communication connection with the main equipment;
at least one storage medium storing at least one set of instructions for establishing the wireless communication connection; and
at least one processor in communication with the optical transmit module, the wireless communication module, and the at least one storage medium,
wherein when the system for establishing a wireless communication connection is running, the at least one processor reads the at least one instruction set and performs the method for establishing a wireless communication connection according to any one of claims 24-27 according to the indication of the at least one instruction set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011485748.7A CN112491473B (en) | 2020-12-16 | 2020-12-16 | Method and system for establishing wireless communication connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011485748.7A CN112491473B (en) | 2020-12-16 | 2020-12-16 | Method and system for establishing wireless communication connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112491473A true CN112491473A (en) | 2021-03-12 |
CN112491473B CN112491473B (en) | 2022-03-18 |
Family
ID=74918113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011485748.7A Active CN112491473B (en) | 2020-12-16 | 2020-12-16 | Method and system for establishing wireless communication connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112491473B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113709737A (en) * | 2021-08-24 | 2021-11-26 | 深圳艾创力科技有限公司 | Voice communication method and device based on TWS Bluetooth headset |
CN115134782A (en) * | 2021-03-25 | 2022-09-30 | 广东美的制冷设备有限公司 | Air conditioner, communication method thereof, communication system and computer readable storage medium |
CN115378612A (en) * | 2022-08-23 | 2022-11-22 | 中国电信股份有限公司 | Collaborative authentication method and device, electronic equipment and storage medium |
WO2023040727A1 (en) * | 2021-09-16 | 2023-03-23 | 华为技术有限公司 | Method for establishing device connection and electronic device |
WO2023206495A1 (en) * | 2022-04-29 | 2023-11-02 | 时代电服科技有限公司 | Wireless connection method and apparatus for battery management device, and battery management device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1981183A2 (en) * | 2007-04-09 | 2008-10-15 | Ajang Bahar | Devices, systems and methods for ad hoc wireless communication |
US20180227052A1 (en) * | 2015-09-30 | 2018-08-09 | Yuyang Dnu Co., Ltd. | Apparatus and method for registering visible light communication device and combining visible light communication signal and wireless communication signal |
CN109167770A (en) * | 2018-08-21 | 2019-01-08 | 北京小米移动软件有限公司 | Export method, networking method, device and the storage medium of networking certification information |
CN109688570A (en) * | 2018-12-20 | 2019-04-26 | 惠州Tcl移动通信有限公司 | Bluetooth connecting method, system and storage medium |
CN109842960A (en) * | 2017-09-18 | 2019-06-04 | 北京小米移动软件有限公司 | Connect method for building up and device |
CN110856113A (en) * | 2019-11-21 | 2020-02-28 | 刘占飞 | Method, device and system for searching and identifying nearby equipment |
WO2020191570A1 (en) * | 2019-03-25 | 2020-10-01 | 华为技术有限公司 | Method for establishing wireless communication connection, and related devices |
EP3743840A1 (en) * | 2018-02-06 | 2020-12-02 | Bystamp | Secure authentication device using light and radio signals |
-
2020
- 2020-12-16 CN CN202011485748.7A patent/CN112491473B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1981183A2 (en) * | 2007-04-09 | 2008-10-15 | Ajang Bahar | Devices, systems and methods for ad hoc wireless communication |
US20180227052A1 (en) * | 2015-09-30 | 2018-08-09 | Yuyang Dnu Co., Ltd. | Apparatus and method for registering visible light communication device and combining visible light communication signal and wireless communication signal |
CN109842960A (en) * | 2017-09-18 | 2019-06-04 | 北京小米移动软件有限公司 | Connect method for building up and device |
EP3743840A1 (en) * | 2018-02-06 | 2020-12-02 | Bystamp | Secure authentication device using light and radio signals |
CN109167770A (en) * | 2018-08-21 | 2019-01-08 | 北京小米移动软件有限公司 | Export method, networking method, device and the storage medium of networking certification information |
CN109688570A (en) * | 2018-12-20 | 2019-04-26 | 惠州Tcl移动通信有限公司 | Bluetooth connecting method, system and storage medium |
WO2020191570A1 (en) * | 2019-03-25 | 2020-10-01 | 华为技术有限公司 | Method for establishing wireless communication connection, and related devices |
CN110856113A (en) * | 2019-11-21 | 2020-02-28 | 刘占飞 | Method, device and system for searching and identifying nearby equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115134782A (en) * | 2021-03-25 | 2022-09-30 | 广东美的制冷设备有限公司 | Air conditioner, communication method thereof, communication system and computer readable storage medium |
CN113709737A (en) * | 2021-08-24 | 2021-11-26 | 深圳艾创力科技有限公司 | Voice communication method and device based on TWS Bluetooth headset |
CN113709737B (en) * | 2021-08-24 | 2024-01-26 | 深圳艾创力科技有限公司 | Voice communication method and device based on TWS Bluetooth headset |
WO2023040727A1 (en) * | 2021-09-16 | 2023-03-23 | 华为技术有限公司 | Method for establishing device connection and electronic device |
WO2023206495A1 (en) * | 2022-04-29 | 2023-11-02 | 时代电服科技有限公司 | Wireless connection method and apparatus for battery management device, and battery management device |
CN115378612A (en) * | 2022-08-23 | 2022-11-22 | 中国电信股份有限公司 | Collaborative authentication method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112491473B (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112491473B (en) | Method and system for establishing wireless communication connection | |
US11659626B2 (en) | Apparatus and method for communicating by using Bluetooth low energy | |
CN109257722B (en) | Electronic device for communicating with external electronic device and control method thereof | |
CN104137480B (en) | Sensor-based configuration and control to network equipment | |
KR102479642B1 (en) | an electronic device connected to an external electronic device using TDLS(tunneled direct link setup) session defined in the IEEE 802.11 standard | |
US10674439B2 (en) | Method and apparatus for communication in wireless communication system | |
CN108650671B (en) | Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection | |
US11190923B2 (en) | Method for transmitting data based on multiple communication schemes and electronic device supporting same | |
WO2019015266A1 (en) | Bluetooth device pairing method and system | |
CN104918209A (en) | Mobile terminal and communication method thereof | |
KR20210127388A (en) | Apparatus and method for wireless connection between electronic devices | |
US20210045073A1 (en) | Electronic device for performing device-to-device communication and method therefor | |
US20200404477A1 (en) | Device and method for transmitting signals in plurality of frequency bands | |
US20200359431A1 (en) | Communication system, mobile terminal, and in-vehicle apparatus | |
US9883330B2 (en) | Device pairing using a secure zone | |
US11770693B2 (en) | Electronic device for setting address information and method for operating same | |
KR20220096725A (en) | Electronic device performing wireless communication with accessary device and operating method thereof | |
CN105573926A (en) | Information processing method and electronic devices | |
KR102719962B1 (en) | Method for establishing bluetooth communication connection and electronic device thereof | |
KR20240031821A (en) | Electronic device, method, and non-transitory computer readable storage medium processing advertising packet broadcasted from external electronic device in wireless environment | |
US12035444B2 (en) | Causing a lighting device to visually indicate whether it can be commissioned using a particular wireless technology | |
CN114257904B (en) | Communication method, communication system, TWS earphone and charging box | |
WO2024098912A1 (en) | Communication method, terminal device, and communication system | |
CN116321051A (en) | Execution method and execution system of vehicle situation mode | |
CN115086370A (en) | Internet of things equipment binding method, device, equipment, storage medium and product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |