Wireless pairing method, device, equipment and storage medium
Patent Information
- Application Number
- CN202211323452.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-10-27
AI Technical Summary
In the prior art, wireless pairing requires many user operations, resulting in low convenience.
After the wearable device is turned on, the distance to the target AR device is measured through the ranging device, and when the distance is less than the preset threshold, the identification code is displayed for the AR device to scan to achieve wireless pairing.
The user operation steps are simplified, the convenience of wireless pairing is improved, and the user avoids screening and clicking operations.
Smart Images

Figure CN115665657B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of short-range wireless connections, and in particular to a wireless pairing method, apparatus, device, and storage medium. Background Art
[0002] Currently, when Bluetooth-enabled devices need to establish a Bluetooth connection, after the user turns on the Bluetooth function on one of the devices, the current device will search for pairable devices within its vicinity. The search results are generally multiple, and include a wide variety of devices, such as watches, mobile phones, Bluetooth headsets, and other devices. The user views the search result list on the current device and filters out the devices to be paired from the result list. After the user filters, the user clicks on the current device to realize the Bluetooth connection between the current device and the filtered device. Some even require the user to enter the correct pairing password for successful pairing.
[0003] During the above-mentioned Bluetooth connection process, the user needs to filter and click from multiple candidate results, which requires many steps for the user to operate, and the pairing speed between devices is not high. That is, there is a problem in the prior art that the user operation is not convenient when performing wireless pairing.
[0004] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of the present invention is to provide a wireless pairing method, which aims to solve the problem in the prior art that the user operation is not convenient when performing wireless pairing.
[0006] To achieve the above objectives, the present application provides a wireless pairing method, which is applied to a wearable device in a wireless pairing system, wherein the wearable device is configured with a preset ranging device, and the wireless pairing system also includes an AR (Augmented Reality) device. The wireless pairing method includes:
[0007] After the wearable device is turned on, detect the wireless signal in the environment;
[0008] When there is no wireless pairing record, the distance between the device and the target AR device is measured by the distance measuring device, wherein the target AR device is the device with the strongest wireless signal;
[0009] If the distance is less than a preset distance threshold, a preset identification code containing wireless pairing information is displayed for scanning by the target AR device;
[0010] Upon receiving a pairing request initiated by the target AR device based on the identification code, a connection is established with the target AR device to achieve wireless pairing.
[0011] In a possible implementation of the present application, after the wearable device is powered on and the step of detecting wireless signals in the environment is performed, the following steps are included:
[0012] When there is a wireless pairing record, and the wireless pairing record records the detected wireless signal, the distance to the target AR device is measured by the distance measuring device, wherein the target AR device is the device corresponding to the currently detected wireless signal;
[0013] If the distance is less than the distance threshold, reconnect with the target AR device.
[0014] In a possible implementation of the present application, the wireless pairing method further includes:
[0015] After the wearable device is powered on, if it is detected that a preset button is triggered, the identification code is displayed for the target AR device to scan;
[0016] Upon receiving a pairing request initiated by the target AR device based on the identification code, a connection is established with the target AR device to achieve wireless pairing.
[0017] In one possible implementation of the present application, the wearable device is configured with different adjustment gears, and different adjustment gears correspond to different distance thresholds. If the distance is less than the preset distance threshold, the step of displaying a preset identification code containing wireless pairing information for scanning by the target AR device includes:
[0018] If the distance is less than the distance threshold corresponding to the current adjustment gear, the identification code is displayed for the target AR device to scan.
[0019] In a possible implementation of the present application, the wearable device is configured with a display device, and the step of displaying a preset identification code containing wireless pairing information for scanning by the target AR device if the distance is less than a preset distance threshold includes:
[0020] If the distance is less than a preset distance threshold, controlling the display device to a maximum screen brightness;
[0021] The identification code is displayed for scanning by the target AR device.
[0022] In one possible implementation of the present application, the identification code includes target service information and target verification information. Upon receiving a pairing request initiated by the target AR device based on the identification code, establishing a connection with the target AR device to achieve wireless pairing includes:
[0023] Upon receiving a pairing request initiated by the target AR device based on the identification code, detecting whether the service information corresponding to the pairing request is consistent with the target service information;
[0024] If they match, a link is established with the target AR device;
[0025] Sending the target verification information to the target AR device for verification, and upon receiving verification pass information sent by the target AR device, determining that wireless pairing is achieved;
[0026] When receiving verification failure information sent by the target AR device, the target verification information is sent to the target AR device for secondary verification until the number of verification failures received reaches a preset verification number threshold, and the wireless connection with the target AR device is disconnected.
[0027] In a possible implementation of the present application, after the step of establishing a connection with the target AR device to achieve wireless pairing upon receiving the pairing request initiated by the target AR device based on the identification code, the method further includes:
[0028] Display the wireless pairing result for user confirmation;
[0029] Acquiring operation information of the user based on the wireless pairing result, wherein the operation information includes change information of the target AR device and / or pairing cancellation information;
[0030] Execute the instruction corresponding to the operation information.
[0031] In addition, to achieve the above-mentioned purpose, the present application also provides a wireless pairing device, the device comprising:
[0032] The detection module is used to detect the wireless signal in the environment after the wearable device is turned on;
[0033] a distance measurement module, configured to measure the distance to a target AR device using the distance measurement device when no wireless pairing record exists, wherein the target AR device is the device with the strongest wireless signal;
[0034] A display module, configured to display a preset identification code containing wireless pairing information for scanning by the target AR device if the distance is less than a preset distance threshold;
[0035] The pairing module is configured to establish a connection with the target AR device to achieve wireless pairing upon receiving a pairing request initiated by the target AR device based on the identification code.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a wireless pairing device, which is a physical node device, and the wireless pairing device includes: a memory, a processor, and a wireless pairing program stored on the memory and runnable on the processor, and the processor executes the wireless pairing program to implement the steps of the wireless pairing method.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, on which a program for implementing the wireless pairing method is stored. When the wireless pairing program is executed by a processor, the steps of the wireless pairing method described above are implemented.
[0038] The present application provides a wireless pairing method, apparatus, device, and storage medium. Compared with the problem of low user convenience in wireless pairing in the prior art, in the present application, after the wearable device is turned on, it detects the wireless signal in the environment; when there is no wireless pairing record, the distance between the wearable device and the target AR device is measured by the distance measuring device, wherein the target AR device is the device with the strongest wireless signal; if the distance is less than a preset distance threshold, a preset identification code containing wireless pairing information is displayed for the target AR device to scan; when a pairing request is received from the target AR device based on the identification code, a connection is established with the target AR device to achieve wireless pairing. In the present application, the distance between the wearable device and the target AR device is measured by the distance measuring device, and when the distance is less than the distance threshold, the identification code for pairing is directly displayed. The user only needs to bring the target AR device close to the wearable device to scan the identification code to achieve wireless pairing. The user is spared from having to think about how to filter the devices to be paired and the user's click operation is avoided. The work of filtering the devices to be paired is replaced by the step of the wearable device detecting the strongest wireless signal, and the user's click operation is replaced by the step of the wearable device displaying the identification code. That is, the steps required for user operation during the wireless pairing process are simplified, and the convenience of user operation during wireless pairing is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a flowchart of the first embodiment of the wireless pairing method of the present application;
[0040] Figure 2 Schematic diagram of a wireless pairing device in a fourth embodiment of the wireless pairing method of the present application;
[0041] Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the fifth embodiment of the wireless pairing method of this application. DETAILED DESCRIPTION
[0042] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0043] It should be noted that, in this document, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0044] It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are used solely to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the term "if," as used herein, may be interpreted as "upon," "when," or "in response to a determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprising" and "including" indicate the presence of the recited features, steps, operations, elements, components, items, types, and / or groups, but do not preclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups. The terms "or," "and / or," "including at least one of the following," etc., as used herein, may be interpreted as inclusive, meaning any one or any combination. For example, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”; and for another example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0045] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order, and they can be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0046] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0047] It should be noted that in this article, step codes such as S10 and S20 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the order. When implementing the step, those skilled in the art may execute S20 first and then S10, etc., but these should all be within the scope of protection of this application.
[0048] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0049] In the subsequent description, the use of suffixes such as "module", "component" or "unit" to represent elements is only for the purpose of facilitating the description of the present application and has no specific meaning. Therefore, "module", "component" or "unit" can be used interchangeably.
[0050] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0051] Example 1
[0052] The present application embodiment provides a wireless pairing method. In the first embodiment of the wireless pairing method of the present application, referring to Figure 1 , applied to a wearable device in a wireless pairing system, the wearable device is configured with a preset distance measuring device, the wireless pairing system also includes an AR device, and the wireless pairing method includes:
[0053] Step S10: After the wearable device is powered on, the wearable device detects wireless signals in the environment.
[0054] Step S20: When there is no wireless pairing record, the distance between the target AR device and the target AR device is measured by the distance measuring device, wherein the target AR device is the device with the strongest wireless signal;
[0055] Step S30: If the distance is less than a preset distance threshold, a preset identification code including wireless pairing information is displayed for scanning by the target AR device;
[0056] Step S40: upon receiving a pairing request initiated by the target AR device based on the identification code, establishing a connection with the target AR device to achieve wireless pairing.
[0057] The application background of this implementation is: Currently, when wireless connection is required between devices, after the user turns on the wireless connection function on one of the devices, the current device will search for pairable devices within its vicinity. The search results are generally multiple, and include a wide variety of types, such as watches, mobile phones, Bluetooth headsets and other devices. The user views the search result list on the current device and filters out the devices to be paired from the result list. After the user filters, the user clicks on the current device to realize the wireless connection between the current device and the filtered device. Some even require the user to enter the correct pairing password for successful pairing. During the wireless connection process, the user needs to filter and click from multiple candidate results. There are many steps that the user needs to operate, and the speed of pairing between devices is not high. That is, when performing wireless pairing, the convenience of user operation is not high.
[0058] This embodiment aims to improve the convenience of user operation during wireless pairing.
[0059] As an example, the wearable device may be a wearable device with a display function, such as a smart watch or a smart bracelet.
[0060] As an example, the identification code may be a QR code or a barcode, which is not specifically limited here.
[0061] In this embodiment, the AR device refers to a device that uses AR technology to integrate virtual information with the real world.
[0062] As an example, the target AR device may be an AR device with an identification code scanning function, such as AR glasses and AR helmets.
[0063] In this embodiment, wireless signals can be divided into short-range wireless signals and long-range wireless signals based on their transmission distance. Short-range wireless signals include Bluetooth signals, NFC (Near Field Communication) signals, and Wi-Fi (Wireless Fidelity) signals. Long-range wireless signals include GPRS (General Packet Radio Service) signals.
[0064] As an example, the ranging device may be a device including a UWB (Ultra Wide Band) module.
[0065] As an example, consider a wearable device such as a smartwatch, and a wireless signal such as Bluetooth. When the user turns on the smartwatch, it detects Bluetooth signals in the environment. Multiple Bluetooth signals with varying signal strengths are detected. Since the closer the two devices are, the stronger the Bluetooth signal detected from the other device, the device with the strongest detected Bluetooth signal is the target AR device.
[0066] As an example, if the smart watch has not been paired with other devices, there is no pairing record in the smart watch. When there is no wireless pairing record, the distance to the target AR device is measured by a distance measuring device. Since it is based on the Bluetooth signal, the corresponding distance can be calculated according to the algorithm, but the accuracy of the distance is only at the meter level. The distance determined based on the Bluetooth signal is relatively rough. In this embodiment, a more accurate distance measuring tool is used, such as a UWB device. The distance to the target AR device is measured by the UWB device. If the distance is less than the preset distance threshold S, the preset identification code containing the wireless pairing information is displayed for the target AR device to scan.
[0067] As an example, if the distance is less than a distance threshold S, a QR code is displayed for the AR glasses to scan. The distance threshold allows the two parties to pair wirelessly at close range, ensuring that the AR glasses can scan the QR code. The user simply brings the AR glasses close to the smartwatch and aligns the AR glasses with the smartwatch to enable the AR glasses to scan the QR code. The AR glasses initiate a pairing request to the smartwatch based on the QR code. When the smartwatch receives the pairing request, it establishes a connection with the AR glasses to achieve wireless pairing.
[0068] The specific steps are as follows:
[0069] Step S10: After the wearable device is powered on, the wearable device detects wireless signals in the environment.
[0070] As an example, a user presses the power button of a smartwatch to turn on the smartwatch. After the smartwatch is turned on, it detects Bluetooth signals in its environment and obtains a Bluetooth signal list, where the Bluetooth signal list includes Bluetooth signal 1 of device 1, Bluetooth signal 2 of device 2, and Bluetooth signal 3 of device 3, and Bluetooth signal 3 has the strongest strength.
[0071] Step S20: When there is no wireless pairing record, the distance between the target AR device and the target AR device is measured by the distance measuring device, wherein the target AR device is the device with the strongest wireless signal;
[0072] In this embodiment, the intensity of Bluetooth signal 3 is the strongest, so it is determined that the distance to device 3 is the closest, and device 3 is the target AR device.
[0073] In this embodiment, when the smartwatch has not been wirelessly paired, that is, when there is no wireless pairing record, the distance between the smartwatch and device 3 is measured using a UWB device. In this embodiment, the UWB device is used for distance measurement rather than calculating the distance based on Bluetooth signals because the UWB device has higher ranging accuracy, even down to the centimeter level.
[0074] Step S30: If the distance is less than a preset distance threshold, a preset identification code including wireless pairing information is displayed for scanning by the target AR device;
[0075] As an example, the preset distance threshold S is 30 cm. When the distance to the target AR device is 30 cm, it is considered close and the QR code can be displayed and scanned. The QR code contains Bluetooth pairing information.
[0076] If the distance is less than 30 centimeters, a QR code is displayed. The user points the camera in the AR glasses at the QR code. After the AR glasses scan the QR code, a pairing request is initiated to the smart watch based on the QR code.
[0077] As an example, a smartwatch has different adjustment settings, each corresponding to a different distance threshold. For example, setting 1 corresponds to a distance threshold of 30 cm, while setting 2 corresponds to a distance threshold of 15 cm. If the current adjustment setting is 2 and the distance is less than 15 cm, a QR code is displayed for the AR glasses to scan.
[0078] As an example, the wearable device is equipped with a display device, such as a display screen. Since the brightness of the display screen itself affects the scanning effect, if the screen brightness is insufficient, there is a possibility of unsuccessful scanning. When displaying on the display screen, the brightness of the display screen is controlled to maximum brightness.
[0079] Step S40: upon receiving a pairing request initiated by the target AR device based on the identification code, establishing a connection with the target AR device to achieve wireless pairing.
[0080] As an example, the identification code includes target service information and target verification information. Step S40, upon receiving a pairing request initiated by the target AR device based on the identification code, establishes a connection with the target AR device to achieve wireless pairing, including steps S41 to S44:
[0081] Step S41: upon receiving a pairing request initiated by the target AR device based on the identification code, detecting whether the service information corresponding to the pairing request is consistent with the target service information;
[0082] In this embodiment, the service information corresponding to the pairing request is determined according to the pairing request, and the link is established only when the requested service information is consistent with the target service information.
[0083] Step S42: If they are consistent, a link is established with the target AR device;
[0084] As an example, if the service information corresponding to the pairing request is consistent with the target service information, a BLE (Bluetooth Low Energy) link is established with the AR glasses.
[0085] Step S43: Send the target verification information to the target AR device for verification. When verification passed information is received from the target AR device, wireless pairing is determined to be achieved.
[0086] As an example, after establishing a BLE link, the target Bluetooth verification information is sent to the AR glasses for verification. When the verification pass information sent by the AR glasses is received, it is determined that wireless pairing is achieved.
[0087] Step S44: When receiving verification failure information sent by the target AR device, the target verification information is sent to the target AR device for secondary verification until the number of verification failures received reaches a preset verification number threshold, and the wireless connection with the target AR device is disconnected.
[0088] As an example, when a verification failure message is received from the AR glasses, the target Bluetooth verification information is sent to the AR glasses for secondary verification. If a verification failure message is received, the target verification information continues to be sent until the number of verification failures received reaches a preset 5 times. It is then determined that pairing cannot be achieved and the wireless connection with the AR glasses is disconnected.
[0089] As an example, step S40, after the step of establishing a connection with the target AR device to achieve wireless pairing upon receiving a pairing request initiated by the target AR device based on the identification code, includes steps S51 to S53:
[0090] Step S51, displaying the wireless pairing result for user confirmation;
[0091] As an example, after successful wireless pairing, the current pairing result is displayed to the user for confirmation. The pairing result can be the Bluetooth name and Bluetooth address of the paired device.
[0092] Step S52: Acquire operation information of the user based on the wireless pairing result, wherein the operation information includes change information of the target AR device and / or pairing cancellation information;
[0093] As an example, after viewing the pairing results, the user wants to change the paired device from device 1 to device 2, and the user performs the operation of changing the paired device on the display interface of the smart watch.
[0094] As an example, after viewing the pairing results, the user temporarily cancels the pairing and performs the canceling operation on the display interface of the smart watch.
[0095] As an example, user operation information is obtained, where the operation information includes change information and / or pairing cancellation information.
[0096] Step S53: executing the instruction corresponding to the operation information.
[0097] As an example, if the user's change information is obtained, the instruction corresponding to the change information is executed based on the change information.
[0098] The present application provides a wireless pairing method, apparatus, device, and storage medium. Compared with the problem of low user convenience in wireless pairing in the prior art, in the present application, after the wearable device is turned on, it detects the wireless signal in the environment; when there is no wireless pairing record, the distance between the wearable device and the target AR device is measured by the distance measuring device, wherein the target AR device is the device with the strongest wireless signal; if the distance is less than a preset distance threshold, a preset identification code containing wireless pairing information is displayed for the target AR device to scan; when a pairing request is received from the target AR device based on the identification code, a connection is established with the target AR device to achieve wireless pairing. In the present application, the distance between the wearable device and the target AR device is measured by the distance measuring device, and when the distance is less than the distance threshold, the identification code for pairing is directly displayed. The user only needs to bring the target AR device close to the wearable device to scan the identification code to achieve wireless pairing. The user is spared from having to think about how to filter the devices to be paired and the user's click operation is avoided. The work of filtering the devices to be paired is replaced by the step of the wearable device detecting the strongest wireless signal, and the user's click operation is replaced by the step of the wearable device displaying the identification code. That is, the steps required for user operation during the wireless pairing process are simplified, and the convenience of user operation during wireless pairing is improved.
[0099] Example 2
[0100] Furthermore, based on the first embodiment of the present application, another embodiment of the present application is provided. In this embodiment, step S10, after the wearable device is powered on and detects the wireless signal in the environment, includes steps A1 and A2:
[0101] Step A1: When a wireless pairing record exists and the wireless pairing record records a detected wireless signal, the distance between the AR device and the target AR device is measured by the distance measuring device, wherein the target AR device is the device corresponding to the currently detected wireless signal;
[0102] For example, if a smartwatch has been paired before, a pairing record exists. After turning on the smartwatch to detect wireless signals in the environment, if the detected wireless signal has been paired before, the wireless pairing record will record the currently detected wireless signal, indicating that the smartwatch is being re-paired with the same target AR device.
[0103] For example, when re-pairing with the same target AR device, the distance between the target AR device and the target device only needs to be less than a preset distance threshold. If the distance is less than the distance threshold, wireless pairing is performed directly without re-scanning the identification code.
[0104] As an example, the device corresponding to the currently detected wireless signal is used as the target AR device.
[0105] As an example, when re-pairing with the same target AR device, the distance between the target AR device and the target AR device is measured through the UWB device.
[0106] Step A2: If the distance is less than the distance threshold, reconnect with the target AR device.
[0107] As an example, if the distance is less than the distance threshold, a wireless connection is directly re-established with the target AR device.
[0108] In this embodiment, when re-pairing with the same target AR device, if the distance to the target AR device is less than a preset distance threshold, wireless reconnection is performed directly without rescanning the identification code. This simplifies the user's operation by scanning the code and reconnecting directly based on distance. While ensuring pairing accuracy, it simplifies the user operation process, further improving the convenience of user operation during wireless pairing.
[0109] Example 3
[0110] Furthermore, based on all the above embodiments, another embodiment of the present application is provided. In this embodiment, the wireless pairing method further includes steps B1 and B2:
[0111] Step B1: After the wearable device is powered on, if it is detected that a preset button is triggered, the identification code is displayed for scanning by the target AR device;
[0112] Step B2: upon receiving a pairing request initiated by the target AR device based on the identification code, establishing a connection with the target AR device to achieve wireless pairing.
[0113] In this embodiment, the preset button is a trigger switch for displaying the identification code. When the button is pressed by the user, the identification code is directly displayed.
[0114] As an example, if the target AR device needs to be paired, the user only needs to press a preset button to trigger the display of an identification code for the target AR device to scan and pair.
[0115] For example, if you need to pair with another AR device (the device to be paired), and there is a pairing record in the wearable device, but no device to be paired is in the pairing record, you can trigger a button to directly display a QR code for the device to be paired to scan and achieve wireless pairing.
[0116] As an example, after the wearable device is powered on, if a button is detected to be pressed, a QR code is displayed for scanning by the target AR device, where the target AR device is the current device to be paired. Upon receiving a pairing request initiated by the target AR device based on the identification code, a connection is established with the target AR device to achieve wireless pairing.
[0117] As an example, pairing with another AR device can be accomplished not only by triggering the display of an identification code by pressing a button, but also by measuring the distance using a distance measuring device and comparing the distance obtained with a distance threshold. If the distance to the other AR device is less than the preset distance threshold, a QR code is displayed on the display for the other AR device to scan. After the other AR device scans the code, pairing begins.
[0118] In this embodiment, a preset button is used. When pressed, an identification code is directly displayed for scanning by the device to be paired, which can be another AR device. This allows wireless pairing of different AR devices, and the user operation process is simple: the user simply presses a preset button on the wearable device to trigger pairing. This further improves user convenience during wireless pairing.
[0119] Example 4
[0120] Furthermore, based on all the above embodiments, another embodiment of the present application is provided. In this embodiment, as Figure 2 , provides a wireless pairing device, the device comprising:
[0121] The detection module is used to detect the wireless signal in the environment after the wearable device is turned on;
[0122] a distance measurement module, configured to measure the distance to a target AR device using the distance measurement device when no wireless pairing record exists, wherein the target AR device is the device with the strongest wireless signal;
[0123] A display module, configured to display a preset identification code containing wireless pairing information for scanning by the target AR device if the distance is less than a preset distance threshold;
[0124] The pairing module is configured to establish a connection with the target AR device to achieve wireless pairing upon receiving a pairing request initiated by the target AR device based on the identification code.
[0125] In a possible implementation of the present application, after the step of detecting wireless signals in the environment after the wearable device is powered on, the apparatus includes:
[0126] a first ranging module configured to, when a wireless pairing record exists and the wireless pairing record records a detected wireless signal, measure the distance to the target AR device using the ranging device, wherein the target AR device is the device corresponding to the currently detected wireless signal;
[0127] A reconnection module is configured to reconnect with the target AR device if the distance is less than the distance threshold.
[0128] In a possible implementation of the present application, the wireless pairing method, the device further includes:
[0129] A first display module is configured to display the identification code for scanning by the target AR device if a preset button is detected to be triggered after the wearable device is powered on;
[0130] Upon receiving a pairing request initiated by the target AR device based on the identification code, a connection is established with the target AR device to achieve wireless pairing.
[0131] In one possible implementation of the present application, the wearable device is configured with different adjustment gears, and different adjustment gears correspond to different distance thresholds. If the distance is less than the preset distance threshold, a preset identification code containing wireless pairing information is displayed for scanning by the target AR device. The apparatus includes:
[0132] The second display module is configured to display the identification code for scanning by the target AR device if the distance is less than a distance threshold corresponding to the current adjustment gear.
[0133] In one possible implementation of the present application, the wearable device is configured with a display device, and the step of displaying a preset identification code containing wireless pairing information for scanning by the target AR device if the distance is less than a preset distance threshold includes:
[0134] a control module, configured to control the display device to a maximum screen brightness if the distance is less than a preset distance threshold;
[0135] The third display module is used to display the identification code for scanning by the target AR device.
[0136] In one possible implementation of the present application, the identification code includes target service information and target verification information. When receiving a pairing request initiated by the target AR device based on the identification code, the apparatus establishes a connection with the target AR device to achieve wireless pairing, and the apparatus includes:
[0137] a first detection module, configured to, upon receiving a pairing request initiated by the target AR device based on the identification code, detect whether the service information corresponding to the pairing request is consistent with the target service information;
[0138] A link establishment module, configured to establish a link with the target AR device if the two devices are consistent;
[0139] A first pairing module is configured to send the target verification information to the target AR device for verification, and upon receiving verification pass information sent by the target AR device, determine that wireless pairing is achieved;
[0140] The second pairing module is used to send the target verification information to the target AR device for secondary verification when receiving the verification failure information sent by the target AR device, until the number of verification failures received reaches a preset verification number threshold, and then disconnect the wireless connection with the target AR device.
[0141] In a possible implementation of the present application, after the step of establishing a connection with the target AR device to achieve wireless pairing upon receiving the pairing request initiated by the target AR device based on the identification code, the apparatus includes:
[0142] A fourth display module is used to display the wireless pairing result for user confirmation;
[0143] an acquisition module, configured to acquire operation information of the user based on the wireless pairing result, wherein the operation information includes change information of the target AR device and / or pairing cancellation information;
[0144] An execution module is used to execute the instructions corresponding to the operation information.
[0145] The specific implementation of the wireless pairing device of the present application is basically the same as the embodiments of the wireless pairing method described above, and will not be repeated here.
[0146] Example 5
[0147] Furthermore, based on all the above embodiments, another embodiment of the present application is provided. In this embodiment, a wireless pairing device is provided, which is a physical node device. The wireless pairing device includes: a memory, a processor, and a program stored on the memory for implementing the wireless pairing method. The memory is used to store the program for implementing the wireless pairing method; the processor is used to execute the program for implementing the wireless pairing method to implement the steps of the wireless pairing method in the above embodiment.
[0148] Reference Figure 2 , Figure 2It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0149] like Figure 2 As shown, the wireless pairing device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to implement communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory, such as a disk storage device. The memory 1005 may also be a storage device independent of the processor 1001.
[0150] In a possible implementation of the present application, the wireless pairing device may also include a network interface, an audio circuit, a display, a connecting cable, a sensor, an input module, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface, a Bluetooth interface), and the input module may optionally include a keyboard, a system soft keyboard, voice input, wireless receiving input, etc.
[0151] Those skilled in the art will appreciate that the structure of the wireless pairing device does not limit the wireless pairing device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0152] The memory, a computer storage medium, may include an operating system, an information exchange module, and a wireless pairing program. The operating system manages and controls the hardware and software resources of wireless pairing devices, supporting the wireless pairing program and other software and / or programs. The information exchange module facilitates communication between components within the memory, as well as with other hardware and software in the management system.
[0153] In the wireless pairing device, the processor is used to execute the wireless pairing program stored in the memory to implement the above-mentioned wireless pairing steps.
[0154] The specific implementation of the wireless pairing device of the present application is basically the same as the embodiments of the wireless pairing method described above, and will not be repeated here.
[0155] Example 6
[0156] An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of the wireless pairing method in the above embodiment.
[0157] The specific implementation of the storage medium of the present application is basically the same as the embodiments of the wireless pairing method described above, and will not be repeated here.
[0158] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0159] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0160] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM or RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0161] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A wireless pairing method, characterized in that: A wearable device used in a wireless pairing system, wherein the wearable device is configured with a preset distance measuring device, the wearable device is configured with different adjustment gears, and different adjustment gears correspond to different distance thresholds. The wireless pairing system also includes an AR device. The wireless pairing method includes: After the wearable device is turned on, detect the wireless signal in the environment; When there is no wireless pairing record, the distance between the device and the target AR device is measured by the distance measuring device, wherein the target AR device is the device with the strongest wireless signal; If the distance is less than the distance threshold corresponding to the currently adjusted gear, a preset identification code containing wireless pairing information is displayed for the target AR device to scan; Upon receiving a pairing request initiated by the target AR device based on the identification code, establishing a connection with the target AR device to achieve wireless pairing, wherein the identification code includes target service information and target verification information; The step of establishing a connection with the target AR device to achieve wireless pairing upon receiving a pairing request initiated by the target AR device based on the identification code includes: Upon receiving a pairing request initiated by the target AR device based on the identification code, detecting whether the service information corresponding to the pairing request is consistent with the target service information; If they match, a link is established with the target AR device; Sending the target verification information to the target AR device for verification, and upon receiving verification pass information sent by the target AR device, determining that wireless pairing is achieved; When receiving verification failure information sent by the target AR device, the target verification information is sent to the target AR device for secondary verification until the number of verification failures received reaches a preset verification number threshold, and the wireless connection with the target AR device is disconnected.
2. The wireless pairing method according to claim 1, wherein: After the wearable device is powered on and the step of detecting wireless signals in the environment is performed, the method further includes: When there is a wireless pairing record and the wireless pairing record contains a detected wireless signal, the distance to the target AR device is measured by the distance measuring device, wherein the target AR device is the device corresponding to the currently detected wireless signal; If the distance is less than the distance threshold, reconnect with the target AR device.
3. The wireless pairing method according to claim 1, wherein: The wireless pairing method further includes: After the wearable device is powered on, if it is detected that a preset button is triggered, the identification code is displayed for the target AR device to scan; Upon receiving a pairing request initiated by the target AR device based on the identification code, a connection is established with the target AR device to achieve wireless pairing.
4. The wireless pairing method according to claim 1, wherein: The wearable device is equipped with a display device, and the step of displaying a preset identification code containing wireless pairing information for scanning by the target AR device if the distance is less than a distance threshold corresponding to the current adjustment gear position includes: If the distance is less than the distance threshold corresponding to the current adjustment gear, controlling the display device to the maximum screen brightness; The identification code is displayed for scanning by the target AR device.
5. The wireless pairing method according to claim 1, wherein: After the step of establishing a connection with the target AR device to achieve wireless pairing upon receiving the pairing request initiated by the target AR device based on the identification code, the method further includes: Display the wireless pairing result for user confirmation; Acquiring operation information of the user based on the wireless pairing result, wherein the operation information includes change information of the target AR device and / or pairing cancellation information; Execute the instruction corresponding to the operation information.
6. A wireless pairing device, characterized in that: Wireless pairing device, including: A detection module, configured to detect wireless signals in the environment after the wearable device is powered on, wherein the wearable device is configured with different adjustment gears, each of which corresponds to a different distance threshold; A distance measurement module, configured to measure the distance to a target AR device using a distance measurement device when no wireless pairing record exists, wherein the target AR device is the device with the strongest wireless signal; A display module is configured to display a preset identification code containing wireless pairing information for scanning by the target AR device if the distance is less than a distance threshold corresponding to the current adjustment gear position; a pairing module, configured to establish a connection with the target AR device to achieve wireless pairing upon receiving a pairing request initiated by the target AR device based on the identification code, wherein the identification code includes target service information and target verification information; The pairing module is further configured to, upon receiving a pairing request initiated by the target AR device based on the identification code, detect whether the service information corresponding to the pairing request is consistent with the target service information; if they are consistent, establish a link with the target AR device; send the target verification information to the target AR device for verification, and upon receiving the verification success information sent by the target AR device, determine that wireless pairing is achieved; upon receiving the verification failure information sent by the target AR device, send the target verification information to the target AR device for secondary verification, until the number of verification failures received reaches a preset verification number threshold, and disconnect the wireless connection with the target AR device.
7. A wireless pairing device, characterized in that: The method comprises a memory, a processor and a wireless pairing program stored in the memory and executable on the processor, wherein the processor executes the wireless pairing program to implement the steps of the wireless pairing method according to any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium stores a program for implementing the wireless pairing method, and the program for implementing the wireless pairing method is executed by a processor to implement the steps of the wireless pairing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Service processing method, apparatus and device
CN108764392A
Wireless device connection method, mobile terminal and computer readable storage medium
CN110933772A