Device pairing method and system, master device, slave device, and storage medium

By using the master device to send broadcast frames in virtual reality technology and pairing responses based on the received signal strength indication information, the problem of cumbersome equipment pairing process is solved, and the rapid automatic pairing between the master device and the slave device is realized, improving the user experience .

CN114698062BActive Publication Date: 2024-12-17SUZHOU DUANYUN INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110007135.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-05
Publication Date
2024-12-17
Estimated Expiration
2041-01-05

AI Technical Summary

Technical Problem

In virtual reality technology, the pairing process between the master and slave devices is cumbersome, resulting in poor user experience.

Method used

The master device sends a broadcast frame on the pairing channel, including its information, and performs a pairing response based on the received signal strength indication information of the slave device, so as to realize rapid automatic pairing between the master device and the slave device.

Benefits of technology

It improves the pairing efficiency between the master and slave devices, improves the user experience, and makes the device pairing process easier and more efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114698062B_ABST
    Figure CN114698062B_ABST
Patent Text Reader

Abstract

The present application discloses a device pairing method and system, a master device, a slave device, and a storage medium, wherein the method comprises: the master device sends a broadcast frame on a pairing channel, wherein the broadcast frame includes information of the master device; the master device receives a first pairing request from a first slave device, wherein the first pairing request includes information of the first slave device, information of the master device, and received signal strength indication information; the master device sends a pairing response to the first slave device according to the received signal strength indication information. The present application realizes rapid and automatic pairing between the master device and the slave device by pairing the slave device with the master device according to the received signal strength indication information, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to but are not limited to the field of communication technology, and in particular, to a device pairing method and system, a master device, a slave device, and a storage medium. Background Art

[0002] Virtual Reality (VR) technology is an advanced, digital human-computer interface technology. Its characteristic is that it uses computers to create an artificial virtual environment that is mainly visual, including hearing and touch. People can perceive the virtual world created by computers through multiple sensory channels such as vision, hearing, and touch, and can also interact with the virtual world in the most natural way such as movement, voice, expression, gesture and sight, thus creating an immersive experience. Virtual reality technology is a comprehensive development of multiple technologies such as computer technology, sensor technology, human-computer interaction technology, and artificial intelligence technology. It has been applied in many fields such as military, medicine, education, entertainment, manufacturing, and engineering training. It is considered to be one of the important technologies that affect people's lives now and in the future.

[0003] In a positioning system using virtual reality technology, there is usually a master device and at least one slave device. Data needs to be transmitted between the devices that make up the positioning system, and pairing is required first. However, in the related art, the pairing process between the master device and the slave device is cumbersome and the user experience is poor. Summary of the invention

[0004] The embodiments of the present application provide a device pairing method and system, a master device, a slave device, and a storage medium, which can achieve rapid and automatic pairing between the master device and the slave device, thereby improving the user experience.

[0005] The present invention provides a device pairing method, which includes:

[0006] The master device sends a broadcast frame on a pairing channel, where the broadcast frame includes information of the master device;

[0007] The master device receives a first pairing request from a first slave device, where the first pairing request includes information about the first slave device, information about the master device, and received signal strength indication information;

[0008] The master device sends a pairing response to the first slave device according to the received signal strength indication information.

[0009] In an exemplary embodiment, the broadcast frame further includes information of one or more second slave devices that have been paired with the master device;

[0010] The method further comprises:

[0011] The master device receives a second pairing request from the second slave device, where the second pairing request includes information about the second slave device and information about the master device;

[0012] The master device sends a pairing response to the second slave device.

[0013] In an exemplary embodiment, the method further comprises:

[0014] The master device detects the number of currently connected slave devices;

[0015] When the number of currently connected slave devices reaches a preset connection number threshold, the sending of the broadcast frame is stopped.

[0016] In an exemplary embodiment, the master device sends a pairing response to the first slave device according to the received signal strength indication information, including any one of the following:

[0017] The master device detects whether the received signal strength indication is greater than or equal to a preset received signal strength indication threshold, and sends a pairing response to the first slave device when the received signal strength indication is greater than or equal to the preset received signal strength indication threshold; or,

[0018] The master device detects the distance between the first slave device and the master device according to the received signal strength indication information, and when the distance between the first slave device and the master device is less than or equal to a preset distance threshold, the master device sends a pairing response to the first slave device.

[0019] The present application also provides a device pairing method, the device pairing method comprising:

[0020] The slave device receives a broadcast frame of the master device on the pairing channel, wherein the broadcast frame includes information of the master device and received signal strength indication information;

[0021] The slave device sends a pairing request to the master device according to the received signal strength indication information;

[0022] The slave device receives a pairing response from the master device.

[0023] In an exemplary embodiment, the broadcast frame further includes information of one or more second slave devices paired with the master device;

[0024] The method further comprises:

[0025] The slave device detects whether its own information is the same as the information of the second slave device included in the broadcast frame;

[0026] When the slave device's own information is the same as the information of the second slave device included in the broadcast frame, the slave device sends a second pairing request, where the second pairing request includes the information of the slave device and the information of the master device;

[0027] The slave device receives a pairing response sent by the master device.

[0028] In an exemplary embodiment, when the self information is different from the information of the second slave device contained in the broadcast frame or the broadcast frame does not contain the information of the second slave device, the slave device sends a first pairing request based on the received signal strength indication information, and the first pairing request includes the information of the first slave device, the information of the master device and the received signal strength indication information.

[0029] An embodiment of the present application further provides a slave device, including a first processor and a first memory, wherein the first processor is used to execute a computer program stored in the first memory to implement the steps of the device pairing method as described above.

[0030] An embodiment of the present application further provides a main device, including a second processor and a second memory, wherein the second processor is used to execute a computer program stored in the second memory to implement the steps of the device pairing method as described above.

[0031] An embodiment of the present application also provides a device pairing system, comprising: at least one slave device as described above, and a master device as described above.

[0032] An embodiment of the present application further provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device pairing method as described in any one of the above are implemented.

[0033] The device pairing method and system, master device, slave device, and storage medium of the embodiments of the present application achieve rapid and automatic pairing between the master device and the slave device by pairing the slave device with the master device according to the received signal strength indication information, thereby improving the user experience.

[0034] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0036] Figure 1 A schematic diagram of a device pairing method according to an embodiment of the present application;

[0037] Figure 2 A schematic diagram of a flow chart of another device pairing method according to an embodiment of the present application;

[0038] Figure 3 A schematic diagram of the structure of a slave device according to an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the structure of a main device according to an embodiment of the present application;

[0040] Figure 5 A schematic diagram of the structure of a device pairing system according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0042] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0043] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0044] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.

[0045] like Figure 1 As shown, an embodiment of the present application provides a device pairing method, including steps 101 to 103.

[0046] Step 101: The master device sends a broadcast frame on a pairing channel. The broadcast frame includes information about the master device.

[0047] In an exemplary embodiment, the pairing system includes a master device and a slave device, and the master device and the slave device can communicate on a wireless communication channel.

[0048] The wireless communication channels in the embodiments of the present disclosure include, but are not limited to, 3G technology for cellular networks, Zigbee for Wireless Personal Area Network Communication Technologies (WPAN), Bluetooth or Ultra Wide Band (UWB) technology, IEEE 802.11 Wireless Local Area Network (WLAN), and Radio Frequency Identification (RFID) for wireless identification technology (e.g., Near Field Communication (NFC)).

[0049] In one exemplary embodiment, the host device may be a head mounted display.

[0050] In an exemplary embodiment, the slave device may be an interactive device such as a handle, a glove, a mouse, or a keyboard.

[0051] In this embodiment, the pairing channel refers to the communication channel used by the master device and the slave device when pairing. The pairing channel can be one or more pre-configured universal fixed frequencies. Taking the IEEE 802.11 wireless local area network (WLAN) as an example, the pairing channel can be configured as one or more fixed frequencies in the 2.4 GHz frequency band.

[0052] In an exemplary embodiment, the broadcast frame also includes information of one or more second slave devices that have been paired with the master device.

[0053] When the master device's memory stores information about a paired second slave device, the master device places the stored information about the second slave device in a broadcast frame and sends it, so that any slave device does not need to record any pairing information. Each time it is turned on, it receives the master device's broadcast frame on the pairing channel and obtains the current paired information from the broadcast frame.

[0054] In an exemplary embodiment, the information of the second slave device includes information such as an identification number (ID) of the second slave device and a device type of the second slave device.

[0055] In an exemplary embodiment, the master device may send a broadcast frame on the pairing channel at a predetermined period. The predetermined period is a set period, which may be set according to the possible response time of the slave device, such as 5 seconds, 10 seconds, etc.

[0056] Step 102: The master device receives a first pairing request from a first slave device, where the first pairing request includes information about the first slave device, information about the master device, and received signal strength indication information.

[0057] In this embodiment, the first slave device refers to a slave device that is not recorded in the paired devices of the master device before the master-slave device is connected. The second slave device refers to a slave device that is recorded in the paired devices of the master device before the master-slave device is connected.

[0058] Received Signal Strength Indication (RSSI) is an optional part of the wireless transmission layer and is used to determine the link quality. The RSSI value corresponds to the unit of decibel milliwatt (dBm), which represents the relative relationship between a certain power and 1mw. The specific calculation formula of the value x (dBm) and the power P (mw) is as follows:

[0059]

[0060] It can be seen that RSSI is not power, it is just an indication of signal strength.

[0061] In an exemplary embodiment, the received signal strength indication information included in the first pairing request may be RSSI information in a broadcast frame received by the first slave device from the master device. At this time, after the first slave device receives the broadcast frame sent by the master device on the pairing channel, the RSSI information in the broadcast frame is placed in the first pairing request and sent to the master device. The master device determines the distance between the two according to the RSSI information, and then decides whether to pair with the first slave device. At this time, the processing logic on the first slave device side can be simplified;

[0062] In another exemplary embodiment, the received signal strength indication information included in the first pairing request may also be the RSSI information of the first pairing request received by the master device from the first slave device. At this time, the first slave device determines the distance between the two based on the RSSI information in the broadcast frame, which is independent of the master device's determination of the distance between the two based on the RSSI information in the first pairing request, and does not affect each other, thereby avoiding the situation where the first slave device deceives the master device by generating RSSI information.

[0063] Step 103: The master device sends a pairing response to the first slave device according to the received signal strength indication information.

[0064] In an exemplary embodiment, step 103 specifically includes:

[0065] The master device detects the distance between the first slave device and the master device according to the received signal strength indication information, and sends a pairing response to the first slave device according to the distance between the first slave device and the master device.

[0066] In an exemplary embodiment, the master device estimates the distance d between the first slave device and the master device according to the wireless channel transmission model and the received RSSI value as:

[0067] ;d=10^((abs(RSSI)-A) / (10*n)) (1);

[0068] Where: d-calculated distance (m);

[0069] RSSI-received signal strength (negative value);

[0070] A-Signal strength when the transmitter and receiver are 1 meter apart (in dBm);

[0071] n-environmental attenuation factor.

[0072] In an exemplary embodiment, when the distance d between the first slave device and the master device is less than or equal to a preset distance threshold, the master device sends a pairing response to the first slave device;

[0073] When the distance d between the first slave device and the master device is greater than a preset distance threshold, the master device does not send a pairing response to the first slave device.

[0074] In another exemplary embodiment, when the distance d between the first slave device and the master device is less than or equal to a preset distance threshold, the master device sends a pairing success response to the first slave device;

[0075] When the distance d between the first slave device and the master device is greater than a preset distance threshold, the master device sends a pairing failure response to the first slave device.

[0076] In this embodiment, the preset distance threshold may be between 0 cm and 20 cm. The preset distance threshold is defined as the distance when the master device and the first slave device are very close to each other, so that when the user brings the master device and the slave device close enough, pairing can be achieved, thereby achieving the effect of "one touch to connect".

[0077] In another exemplary embodiment, step 103 specifically includes:

[0078] The master device detects whether the received signal strength indication in the first pairing request is greater than or equal to a preset received signal strength indication threshold;

[0079] If the received signal strength indication in the first pairing request is greater than or equal to a preset received signal strength indication threshold, sending a pairing response to the first slave device;

[0080] If the received signal strength indication in the first pairing request is less than a preset received signal strength indication threshold, no pairing response is sent to the first slave device.

[0081] In the embodiment of the present disclosure, according to the above formula (1) and the preset distance threshold of 0 to 20 cm, the value range of the preset received signal strength indication threshold can be reversely derived. The value range is also related to the values ​​of A and n in formula (1). Under different devices and different environmental conditions, the preset received signal strength indication threshold value is also different.

[0082] In yet another exemplary embodiment, step 103 specifically includes:

[0083] The master device detects whether the received signal strength indication in the first pairing request is greater than or equal to a preset received signal strength indication threshold;

[0084] If the received signal strength indication in the first pairing request is greater than or equal to a preset received signal strength indication threshold, sending a pairing success response to the first slave device;

[0085] If the received signal strength indication in the first pairing request is less than a preset received signal strength indication threshold, a pairing failure response is sent to the first slave device.

[0086] In an exemplary embodiment, when the broadcast frame further includes information of one or more second slave devices that have been paired with the master device, the method further includes:

[0087] The master device receives a second pairing request from a second slave device, where the second pairing request includes information about the second slave device and information about the master device;

[0088] The master device sends a pairing response to the second slave device.

[0089] In this embodiment, when the broadcast frame also includes information of one or more second slave devices that have been paired with the master device, after receiving the broadcast frame, the second slave device can directly send a second pairing request to the master device (because the master device no longer needs to pair with the second slave device based on the received signal strength indication information, the second pairing request may not include the received signal strength indication information at this time). After the master device sends the pairing response, the master device and the second slave device can be quickly and automatically paired.

[0090] In an exemplary embodiment, the method further comprises:

[0091] The master device records the first slave device as a paired device.

[0092] Since in the embodiment of the present disclosure, the first slave device refers to a slave device that has not been recorded in the paired devices of the master device before the master-slave device is connected this time, and the second slave device refers to a slave device that has been recorded in the paired devices of the master device before the master-slave device is connected this time, therefore, when the master device records the first slave device as a paired device, the first slave device will be transformed into the second slave device when it is connected next time, that is, it is no longer necessary to detect the received signal strength indication information in the broadcast frame, but can be paired directly with the master device based on the paired device information in the broadcast frame.

[0093] In an exemplary embodiment, the master device records the first slave device as a paired device, including:

[0094] When the number of currently paired devices is less than the preset maximum number of paired devices, the master device directly records the first slave device as a paired device;

[0095] When the number of currently paired devices is equal to the preset maximum pairing number, the master device erases one or more currently paired devices and records the first slave device as a paired device.

[0096] In an exemplary embodiment, the maximum number of paired devices recorded by the master device may be 2.

[0097] At this time, when the master device does not record any paired device information, or when the master device includes a paired device and the information of the paired device is different from that of the newly paired first slave device, the master device can directly add the newly paired first slave device to the paired devices; when the master device includes two paired devices and the information of the two paired devices is different from that of the newly paired first slave device and one or both of them have not established a connection with the master device, the master device can erase the information of one or two paired devices and then record the newly paired first slave device as a paired device.

[0098] In an exemplary embodiment, the method further comprises:

[0099] The master device detects the number of currently connected slave devices;

[0100] When the number of currently connected slave devices reaches the preset connection number threshold, stop sending broadcast frames.

[0101] In an exemplary embodiment, the preset connection quantity threshold may be 2. That is, when the number of currently connected slave devices reaches 2, the master device stops sending broadcast frames and completely switches to the communication channel.

[0102] In an exemplary embodiment, when the number of currently connected slave devices is greater than 0 and less than a preset connection number threshold (for example, when the number of currently connected slave devices is 1), the master device performs data communication with the connected slave devices on the communication channel, and continues to send broadcast frames on the pairing channel during the time gap of data interaction, waiting for pairing requests from other slave devices. When the number of currently connected slave devices reaches the preset connection number threshold, the master device no longer sends broadcast frames on the pairing channel.

[0103] In an exemplary embodiment, the communication channel may be a wireless channel with the best channel quality detected by the master device.

[0104] The 802.11 working group divides wireless network signals into two independent frequency bands, namely 2.4GHz and 5.0GHz. Each frequency band is divided into several channels, and each country formulates its own policies on how to use these frequency bands. For example, in China, the 2.4GHz frequency band is divided into 13 channels (because the distance between channels 1, 6 and 11 is far enough, they have become the three most commonly used channels that do not overlap and interfere with each other), and the 5.0GHz frequency band is divided into 4 channels.

[0105] Since the 802.11b / g WLAN standard uses the most commonly used 2.4GHz radio frequency band, in actual work and life, wireless routers will not only be interfered by WiFi co-frequency signals emitted by other wireless routers in the wireless signal coverage area, but also by non-WiFi signals emitted by devices such as microwave ovens, Bluetooth mobile phones or laptops in the same working frequency band. In an exemplary embodiment, the wireless router determines the channel quality of each wireless channel in the following manner:

[0106] On all wireless channels of the current working frequency band, the strength of the WiFi co-channel interference signal is detected. In an exemplary embodiment, on a wireless channel, detecting the strength of the WiFi co-channel interference signal includes: sending a probe request frame on the current channel, staying on the channel for a period of time, waiting to receive the probe response frame from other wireless routers, and when the probe response frame from other wireless routers is received, extracting the signal strength information from the received probe response frame, taking the sum of the signal strengths of all received probe response frames as the strength of the WiFi co-channel interference signal on the channel, and switching to the next wireless channel.

[0107] Detect the strength of non-WiFi interference signals of all wireless channels. In an exemplary embodiment, detecting the strength of non-WiFi interference signals of all wireless channels includes: starting a spectrum scanning mode, periodically scanning non-WiFi interference signals received by the wireless router in the entire working frequency band; extracting the strength of the non-WiFi interference signal corresponding to each channel from the received non-WiFi interference signals.

[0108] The strength of the non-WiFi interference signal on each channel is added to the strength of the WiFi co-channel interference signal to obtain the co-channel interference signal strength on each channel.

[0109] The channel with the smallest co-channel interference signal strength is regarded as the wireless channel with the best channel quality.

[0110] In an exemplary embodiment, the pairing response includes information of the master device and information of the slave device, and also includes any one or more of the following information: communication channel, communication address, and time synchronization information.

[0111] In an exemplary embodiment, the method further includes: the master device performing data communication with the first slave device on a communication channel.

[0112] In this embodiment, after the master device selects the wireless channel with the best channel quality as the currently used communication channel, it sends a pairing response containing the communication channel information to the slave device. After receiving the pairing response, the slave device switches to the communication channel. After that, the data transmission between the master and slave devices will be in the channel with the least wireless pressure at present, without interference from other devices and without other devices grabbing data transmission resources.

[0113] The device pairing method provided in this embodiment enables the master device to decide whether to establish pairing with the slave device according to the received signal strength indication information, thereby achieving rapid and automatic pairing between the master device and the slave device and improving the user experience.

[0114] like Figure 2 As shown, the embodiment of the present application also provides a device pairing method, including steps 201 to 203.

[0115] Step 201: The slave device receives a broadcast frame from the master device on a pairing channel. The broadcast frame includes information about the master device and received signal strength indication information.

[0116] In an exemplary embodiment, the broadcast frame further includes information of one or more second slave devices paired with the master device.

[0117] In an exemplary embodiment, the information of the second slave device includes information such as an identification number (ID) of the second slave device and a device type of the second slave device.

[0118] Step 202: The slave device sends a pairing request to the master device according to the received signal strength indication information.

[0119] In an exemplary embodiment, step 202 specifically includes:

[0120] The slave device detects the distance between the slave device and the master device according to the received signal strength indication information, and sends a pairing request to the master device according to the distance between the slave device and the master device.

[0121] In an exemplary embodiment, the slave device estimates the distance d between the slave device and the master device according to the wireless channel transmission model and the received RSSI value as:

[0122] ;d=10^((abs(RSSI)-A) / (10*n)) (1);

[0123] Where: d-calculated distance (m);

[0124] RSSI-received signal strength (negative value);

[0125] A-Signal strength when the transmitter and receiver are 1 meter apart (in dBm);

[0126] n-environmental attenuation factor.

[0127] When the distance d between the slave device and the master device is less than or equal to a preset distance threshold, the slave device sends a pairing request to the master device;

[0128] When the distance d between the slave device and the master device is greater than a preset distance threshold, the slave device does not send a pairing request to the master device.

[0129] In this embodiment, the preset distance threshold may be between 0 cm and 20 cm. The preset distance threshold is defined as the distance when the master device and the first slave device are very close to each other, so that when the user brings the master device and the slave device close enough, pairing can be achieved, thereby achieving the effect of "one touch to connect".

[0130] In another exemplary embodiment, step 202 specifically includes:

[0131] The slave device detects whether a received signal strength indication in the broadcast frame is greater than or equal to a preset received signal strength indication threshold;

[0132] If the received signal strength indication in the broadcast frame is greater than or equal to a preset received signal strength indication threshold, sending a pairing request to the master device;

[0133] If the received signal strength indication in the broadcast frame is less than a preset received signal strength indication threshold, no pairing request is sent to the master device.

[0134] Step 203: The slave device receives a pairing response from the master device.

[0135] In an exemplary embodiment, when the broadcast frame further includes information of one or more second slave devices paired with the master device, the method further includes:

[0136] The slave device detects whether its own information is the same as the information of the second slave device included in the broadcast frame;

[0137] When the own information is the same as the information of the second slave device included in the broadcast frame, the slave device sends a second pairing request, where the second pairing request includes the information of the slave device and the information of the master device;

[0138] The slave device receives the pairing response sent by the master device.

[0139] In this embodiment, when the broadcast frame also includes information of one or more second slave devices that have been paired with the master device, after receiving the broadcast frame, the second slave device can directly send a second pairing request to the master device (because the master device no longer needs to pair with the second slave device based on the received signal strength indication information, at this time, the second pairing request does not include the received signal strength indication information). After the master device sends the pairing response, the master device and the second slave device can be quickly and automatically paired.

[0140] When the own information is different from the information of the second slave device included in the broadcast frame or the broadcast frame does not include the information of the second slave device, the slave device can decide whether to send the first pairing request according to the received signal strength indication information in the broadcast frame. Here, the first pairing request includes the received signal strength indication information. The master device determines the distance between the master device and the slave device according to the received signal strength indication information in the first pairing request, and then decides whether to pair with the slave device. The specific process is referred to the aforementioned step 202, which will not be repeated here.

[0141] In an exemplary embodiment, the pairing response includes information of the master device and information of the slave device, and also includes any one or more of the following information: communication channel, communication address, and time synchronization information.

[0142] In an exemplary embodiment, the method further includes: the slave device performing data communication with the master device on a communication channel.

[0143] The device pairing method provided in this embodiment enables the slave device to decide whether to establish pairing with the master device according to the received signal strength indication information, thereby achieving rapid and automatic pairing between the master device and the slave device, thereby improving the user experience.

[0144] The present application embodiment also provides a slave device, such as Figure 3 As shown, the slave device 3 includes: a first memory 31 and a first processor 32. The first memory 31 stores a computer program. When the computer program in the first memory 31 is executed by the first processor 32, the device pairing method described in any of the above embodiments with the slave device as the execution subject is executed.

[0145] The present application also provides a main device, such as Figure 4 As shown, the main device 4 includes: a second memory 41 and a second processor 42. The second memory 41 stores a computer program. When the computer program in the second memory 41 is executed by the second processor 42, the device pairing method described in any of the above embodiments with the main device as the execution subject is executed.

[0146] The present application also provides a device pairing system. Figure 5 As shown, the device pairing system 5 includes: at least one slave device 51 as described in the above embodiment, and a master device 52 as described in the above embodiment.

[0147] An embodiment of the present application further provides a computer-readable storage medium, on which computer-executable commands are stored, and the computer-executable commands are used to execute the device pairing method provided in any of the above embodiments with the slave device as the execution subject.

[0148] An embodiment of the present application further provides a storage medium on which computer executable commands are stored. The computer executable commands are used to execute the device pairing method provided in any of the above embodiments with a master device or a slave device as the execution subject.

[0149] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A virtual reality VR device pairing method, characterized in that: include: The master device sends a broadcast frame on a pairing channel, where the broadcast frame includes information of the master device; The master device receives a first pairing request from a first slave device, where the first pairing request includes information about the first slave device, information about the master device, and received signal strength indication information; The master device sends a pairing response to the first slave device according to the received signal strength indication information; When the pairing response indicates that the pairing is successful, the pairing response includes information of the master device, information of the first slave device, and a communication channel; the communication channel is a wireless channel with the best channel quality detected by the master device; The master device performs data communication with the first slave device on the communication channel; The method further includes: the master device detecting the number of currently connected slave devices; when the number of currently connected slave devices is greater than 0 and less than a preset connection number threshold, the master device performs data communication with the connected slave devices on the communication channel, and continues to send broadcast frames on the pairing channel during the time gap of data interaction, waiting for pairing requests from other slave devices; When the master device receives a pairing request from another slave device as a second pairing request, it sends a pairing response to the other slave device to achieve a rapid and automatic pairing connection; wherein the broadcast frame also includes information of one or more second slave devices that have been paired with the master device, and the second pairing request includes information of the other slave devices and information of the master device.

2. The device pairing method according to claim 1, characterized in that: The other slave devices include a second slave device; The master device sends a pairing response to the second slave device.

3. The device pairing method according to claim 1, characterized in that: The method further comprises: When the number of currently connected slave devices reaches a preset connection number threshold, the sending of the broadcast frame is stopped.

4. The device pairing method according to claim 1, characterized in that: The master device sends a pairing response to the first slave device according to the received signal strength indication information, including any one of the following: The master device detects whether the received signal strength indication is greater than or equal to a preset received signal strength indication threshold, and sends a pairing response to the first slave device when the received signal strength indication is greater than or equal to the preset received signal strength indication threshold; or, The master device detects the distance between the first slave device and the master device according to the received signal strength indication information, and when the distance between the first slave device and the master device is less than or equal to a preset distance threshold, the master device sends a pairing response to the first slave device.

5. A device pairing method, characterized in that: include: The slave device receives a broadcast frame of the master device on the pairing channel, and when the broadcast frame includes information of the master device, the slave device sends a first pairing request to the master device according to received signal strength indication information of the broadcast frame, wherein the first pairing request includes information of the slave device, information of the master device, and received signal strength indication information; The slave device receives a pairing response from the master device, and when the pairing response indicates that the pairing is successful, the pairing response includes information of the master device, information of the slave device, and a communication channel; the communication channel is a wireless channel with the best channel quality detected by the master device; The slave device performs data communication with the master device on the communication channel; When the broadcast frame also includes information of one or more second slave devices paired with the master device, When the slave device determines that its own device information is the same as the information of the second slave device included in the broadcast frame, the slave device sends a second pairing request to the master device, where the second pairing request includes the information of the slave device and the information of the master device; The slave device receives the pairing response sent by the master device to achieve rapid and automatic pairing connection.

6. The device pairing method according to claim 5, characterized in that: When the broadcast frame includes information of one or more second slave devices paired with the master device, the broadcast frame is sent by the master device through the pairing channel during a time slot for data interaction with other connected slave devices during data communication on the communication channel.

7. The device pairing method according to claim 6, characterized in that: Also includes: When the slave device determines that its own device information is different from the information of the second slave device contained in the broadcast frame, the slave device sends a first pairing request according to the received signal strength indication information, and the first pairing request includes the information of the slave device, the information of the master device and the received signal strength indication information.

8. A slave device, characterized in that: The device comprises a first processor and a first memory, wherein the first processor is used to execute a computer program stored in the first memory to implement the steps of the device pairing method as claimed in any one of claims 5 to 7.

9. A master device, characterized in that: The device comprises a second processor and a second memory, wherein the second processor is used to execute a computer program stored in the second memory to implement the steps of the device pairing method according to any one of claims 1 to 4.

10. A device pairing system, characterized in that: include: At least one slave device as claimed in claim 8, and a master device as claimed in claim 9.

11. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the device pairing method according to any one of claims 1 to 4 or claims 5 to 7 are implemented.