Bluetooth pairing methods and electronic devices

By receiving light signals and increasing Bluetooth output power, the problem of low pairing efficiency caused by weak Bluetooth signals was solved, resulting in a faster pairing process and a better user experience.

CN114245359BActive Publication Date: 2026-03-10SHANGHAI CHUANGGONG COMM TECH
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

When a terminal device scans for multiple Bluetooth devices, the target Bluetooth device may have a weak Bluetooth signal due to low battery or different user holding methods, making it impossible for the user to discover the target device in time, thus reducing Bluetooth pairing efficiency and user experience.

Method used

By receiving and analyzing the optical signal sent by the second pairing terminal, if a Bluetooth pairing request is included, the Bluetooth output power of the first pairing terminal is increased so that it is displayed more prominently on the display interface of the second pairing terminal, making it easier for the user to discover and pair it.

Benefits of technology

It improves the efficiency of Bluetooth pairing, saves pairing time, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114245359B_ABST
    Figure CN114245359B_ABST
Patent Text Reader

Abstract

This application provides a Bluetooth pairing method and an electronic device. The method involves receiving a first optical signal sent by a second pairing terminal and parsing the first optical signal to obtain first parsing information. If the first parsing information includes a first Bluetooth pairing request, the Bluetooth output power of the first pairing terminal is increased. A pairing result is received from the second pairing terminal, whereby the second pairing terminal performs Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal. The technical solution provided by this application can increase the Bluetooth output power of the first pairing terminal based on the first Bluetooth pairing request in the received first optical signal, making it easier for users to select the first pairing terminal. This effectively shortens the Bluetooth pairing time, improves the efficiency of Bluetooth pairing, and enhances the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and more particularly to a Bluetooth pairing method and an electronic device. Background Technology

[0002] With the development of internet technology, the types of terminal devices are increasing. For example, smart wearable devices can collect, record, and analyze users' health data such as pulse and steps in real time, and send the data to mobile phones, tablets, and other terminal devices wirelessly. Establishing a wireless transmission channel is required for wireless data transmission between two terminal devices.

[0003] Currently, two terminal devices can establish a wireless transmission channel through Bluetooth pairing. When pairing via Bluetooth, the terminal device, such as a mobile phone, needs to scan for nearby Bluetooth devices, such as wearable devices. The terminal device will then display the device identifiers and signal strengths of the scanned Bluetooth devices according to their Bluetooth signal strengths. This allows the terminal device to identify the Bluetooth device with the preset device identifier or the strongest Bluetooth signal as the target Bluetooth device and pair with it. Once pairing is successful, a wireless transmission channel will be established.

[0004] However, when a terminal device scans for multiple Bluetooth devices, the target Bluetooth device may reduce its transmission power due to low battery, or the way the user holds the terminal device may affect the Bluetooth signal strength of the Bluetooth device in a certain direction, resulting in a weaker Bluetooth signal. This would cause the target Bluetooth device to appear behind other Bluetooth devices on the terminal device, making it difficult for the user to discover the target Bluetooth device in time. Consequently, the pairing efficiency between the terminal device and the Bluetooth device is low, thus reducing the user experience. Summary of the Invention

[0005] This application provides a Bluetooth pairing method and an electronic device. By increasing the Bluetooth output power of the first pairing terminal, the user can discover the first pairing terminal on the second pairing terminal, thereby improving the user experience.

[0006] In a first aspect, embodiments of this application provide a Bluetooth pairing method applied to a first pairing terminal, the Bluetooth pairing method comprising:

[0007] The system receives a first optical signal sent by a second paired terminal and parses the first optical signal to obtain first parsing information.

[0008] If the first parsed information includes a first Bluetooth pairing request, then increase the Bluetooth output power of the first paired terminal.

[0009] The system receives a pairing result sent by the second pairing terminal, which is sent by the second pairing terminal after performing Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal.

[0010] Optionally, the step of parsing the first optical signal to obtain first parsing information includes:

[0011] The first optical signal is converted into an electrical signal, and the electrical signal is then converted from analog to digital to obtain the first parsed information.

[0012] Optionally, increasing the Bluetooth output power of the first paired terminal includes:

[0013] Determine the intensity information of the first optical signal.

[0014] Based on the intensity information, an adjustment value for the Bluetooth output power is determined, and the adjustment value is negatively correlated with the intensity information.

[0015] Increase the Bluetooth output power of the first paired terminal according to the adjustment value.

[0016] Optionally, after receiving the pairing result sent by the second pairing terminal, the method further includes:

[0017] Restore the Bluetooth output power of the first paired terminal.

[0018] Secondly, embodiments of this application provide a Bluetooth pairing method applied to a second pairing terminal, the Bluetooth pairing method comprising:

[0019] Receive a first Bluetooth pairing request and convert the first Bluetooth pairing request into a first light signal.

[0020] The second paired terminal is controlled to output the first optical signal, and the first optical signal is used to instruct the first paired terminal that receives the first optical signal to increase the Bluetooth output power of the first paired terminal.

[0021] Control the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing.

[0022] Send the pairing result to the first pairing terminal.

[0023] Optionally, controlling the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing includes:

[0024] Display a list of pairable terminals, where multiple terminals are sorted in descending order of Bluetooth output power.

[0025] In response to a selection instruction that selects the first paired terminal from the plurality of terminals, the second paired terminal and the first paired terminal are controlled to perform Bluetooth pairing.

[0026] Thirdly, embodiments of this application provide a Bluetooth pairing method applied to a first pairing terminal, the Bluetooth pairing method comprising:

[0027] Received a second Bluetooth pairing request.

[0028] The pairing information of the first paired terminal and the second Bluetooth pairing request are converted into a second optical signal.

[0029] The first pairing terminal is controlled to output the second optical signal, and the first optical signal is used to instruct the second pairing terminal that receives the second optical signal to perform Bluetooth pairing with the first pairing terminal.

[0030] Receive the pairing result sent by the second pairing terminal indicating successful pairing.

[0031] Fourthly, embodiments of this application provide a Bluetooth pairing method applied to a second pairing terminal, the Bluetooth pairing method comprising:

[0032] The system receives the second optical signal sent by the first paired terminal and parses the second optical signal to obtain the second parsed information.

[0033] If the second parsed information includes a second Bluetooth pairing request, then the pairing information is obtained from the second parsed information.

[0034] Based on the pairing information, control the second pairing terminal and the first pairing terminal to perform Bluetooth pairing.

[0035] Send a successful pairing result to the first pairing terminal.

[0036] Optionally, the pairing information includes either the device identifier or the IP address of the first paired terminal.

[0037] Fifthly, embodiments of this application provide a Bluetooth pairing device, the Bluetooth pairing device comprising:

[0038] The parsing module is used to receive the first optical signal sent by the second paired terminal and parse the first optical signal to obtain the first parsing information;

[0039] The processing module is used to increase the Bluetooth output power of the first pairing terminal when the first parsed information includes a first Bluetooth pairing request;

[0040] The receiving module is used to receive the pairing result sent by the second pairing terminal, wherein the pairing result is sent by the second pairing terminal after performing Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal.

[0041] Optionally, the parsing module is specifically used to convert the first optical signal into an electrical signal, perform analog-to-digital conversion on the electrical signal, and obtain the first parsing information.

[0042] Optionally, the processing module is specifically used to determine the intensity information of the first optical signal; determine an adjustment value for the Bluetooth output power based on the intensity information, wherein the adjustment value is negatively correlated with the intensity information; and increase the Bluetooth output power of the first paired terminal according to the adjustment value.

[0043] Optionally, the device further includes a recovery module for restoring the Bluetooth output power of the first paired terminal.

[0044] Sixthly, embodiments of this application provide a Bluetooth pairing device, the Bluetooth pairing device comprising:

[0045] The receiving module is used to receive a first Bluetooth pairing request and convert the first Bluetooth pairing request into a first optical signal.

[0046] The output module is used to control the second paired terminal to output the first optical signal, and the first optical signal is used to instruct the first paired terminal that receives the first optical signal to increase the Bluetooth output power of the first paired terminal.

[0047] A pairing module is used to control the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing.

[0048] The sending module is used to send the pairing result to the first pairing terminal.

[0049] Optionally, the pairing module is specifically used to display a list of pairable terminals, wherein the multiple terminals in the list are sorted in descending order of Bluetooth output power; in response to a selection command to select the first pairing terminal from the multiple terminals, the module controls the second pairing terminal and the first pairing terminal to perform Bluetooth pairing.

[0050] Seventhly, embodiments of this application provide a Bluetooth pairing device, the Bluetooth pairing device comprising:

[0051] The receiving module is used to receive a second Bluetooth pairing request.

[0052] The conversion module is used to convert the pairing information of the first pairing terminal and the second Bluetooth pairing request into a second optical signal.

[0053] The control module is used to control the first pairing terminal to output the second optical signal, and the first optical signal is used to instruct the second pairing terminal that receives the second optical signal to perform Bluetooth pairing with the first pairing terminal.

[0054] The receiving module is also used to receive the pairing result sent by the second pairing terminal indicating successful pairing.

[0055] Eighthly, embodiments of this application provide a Bluetooth pairing device, the Bluetooth pairing device comprising:

[0056] The parsing module is used to receive the second optical signal sent by the first paired terminal and parse the second optical signal to obtain the second parsing information.

[0057] The acquisition module is used to acquire pairing information from the second parsing information when the second parsing information includes a second Bluetooth pairing request.

[0058] The pairing module is used to control the second pairing terminal and the first pairing terminal to perform Bluetooth pairing based on the pairing information.

[0059] The sending module is used to send a successful pairing result to the first pairing terminal.

[0060] Optionally, the pairing information includes either the device identifier or the IP address of the first paired terminal.

[0061] In a ninth aspect, embodiments of this application also provide an electronic device, the electronic device comprising: a processor, and a memory communicatively connected to the processor;

[0062] The memory stores computer-executed instructions;

[0063] The processor executes computer execution instructions stored in the memory to implement the Bluetooth pairing method described in any possible implementation of the first aspect above.

[0064] In a tenth aspect, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the Bluetooth pairing method described in any possible implementation of the first aspect.

[0065] Eleventhly, embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the Bluetooth pairing method described in any possible implementation of the first aspect.

[0066] Therefore, this application provides a Bluetooth pairing method and an electronic device. The method involves receiving a first optical signal sent by a second pairing terminal and parsing the first optical signal to obtain first parsing information. If the first parsing information includes a first Bluetooth pairing request, the Bluetooth output power of the first pairing terminal is increased. The method also involves receiving a pairing result sent by the second pairing terminal, which is sent after Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal. The technical solution provided by this application allows the first pairing terminal to increase its Bluetooth output power according to the first Bluetooth pairing request in the received first optical signal, enabling the second pairing terminal to scan for and locate the first pairing terminal via Bluetooth. This effectively saves the time required for Bluetooth pairing, improves Bluetooth pairing efficiency, and enhances the user experience. Attached Figure Description

[0067] Figure 1 This is a schematic diagram illustrating an application scenario of a Bluetooth pairing method provided in an embodiment of this application;

[0068] Figure 2 A schematic flowchart illustrating a Bluetooth pairing method applied to a first pairing terminal, provided as an embodiment of this application;

[0069] Figure 3 A schematic flowchart illustrating a Bluetooth pairing method applied to a second pairing terminal, provided as an embodiment of this application;

[0070] Figure 4 A schematic diagram illustrating a Bluetooth pairing method for transmitting optical signals via a mobile phone, provided in an embodiment of this application.

[0071] Figure 5 A schematic diagram illustrating the signal transmission and reception process provided in an embodiment of this application;

[0072] Figure 6 A flowchart illustrating another Bluetooth pairing method applied to a first pairing terminal, provided as an embodiment of this application;

[0073] Figure 7 A flowchart illustrating another Bluetooth pairing method applied to a second pairing terminal, provided as an embodiment of this application;

[0074] Figure 8 A schematic diagram illustrating a Bluetooth pairing method for transmitting optical signals using a smartwatch, provided in an embodiment of this application.

[0075] Figure 9 This is a schematic diagram of the structure of a Bluetooth pairing device according to an embodiment of this application.

[0076] Figure 10 This is a schematic diagram of a second embodiment of a Bluetooth pairing device provided in this application.

[0077] Figure 11 This is a schematic diagram of the structure of a Bluetooth pairing device according to a third embodiment of this application.

[0078] Figure 12 This is a schematic diagram of a fourth embodiment of a Bluetooth pairing device provided in this application.

[0079] Figure 13 This is a schematic diagram of an electronic device structure provided in this application.

[0080] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0081] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0082] In the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0083] The technical solution provided in this application can be applied to scenarios involving terminal device pairing, particularly Bluetooth pairing between terminal devices. Two terminal devices can establish a wireless transmission channel through Bluetooth pairing, thereby sending control commands or transmitting data via the wireless transmission channel, making data transmission between terminal devices more convenient.

[0084] Currently, when two terminal devices are pairing via Bluetooth, they can scan for nearby Bluetooth devices, such as wearable devices, using mobile phones or other Bluetooth-enabled devices. The scanned devices are then displayed on the terminal device according to their Bluetooth signal strength, showing both the device name and signal strength. Users can then select a preset device name or the Bluetooth device with the strongest signal strength to pair with the device displayed on their terminal device. After successful pairing, a wireless transmission channel is established, enabling the terminal device to interact with the Bluetooth device wirelessly.

[0085] However, when the terminal device scans for multiple Bluetooth devices in the vicinity, the Bluetooth device the user wants to connect to might reduce its transmission power due to low battery, or the way the user holds the terminal device might affect the received Bluetooth signal strength in a certain direction, potentially resulting in a weak Bluetooth signal from the user's intended Bluetooth device. In other words, the Bluetooth device the user wants to connect to might appear behind other Bluetooth devices on the terminal device's display, making it difficult for the user to discover the target Bluetooth device in a timely manner, leading to low pairing efficiency. Furthermore, if the user sets the device to connect to the Bluetooth device with the strongest signal strength, it might cause incorrect connection attempts, thus degrading the user experience.

[0086] To address the poor user experience caused by weak Bluetooth signal strength (low Bluetooth output power) in Bluetooth devices, and considering that all terminal devices can emit light signals, visible light can be used for communication. The second pairing terminal sends a light signal to the first pairing terminal. Based on the received light signal, the second pairing terminal increases its Bluetooth output power, causing it to appear more prominently on the first pairing terminal's display. This makes it easier for the user to find the first pairing terminal and quickly pair with it, saving pairing time and improving the user experience.

[0087] For example, the first pairing terminal and the second pairing terminal may include terminal devices such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., which have optical signal transmission and reception functions and Bluetooth pairing functions. This application embodiment does not specifically limit the first pairing terminal and the second pairing terminal.

[0088] Figure 1 This is a schematic diagram illustrating an application scenario of a Bluetooth pairing method provided in an embodiment of this application. According to... Figure 1As shown, after receiving the optical signal sent by the second pairing terminal 102, the first pairing terminal 101 can parse and process the optical signal to determine whether it contains a Bluetooth pairing request. If the optical signal contains a Bluetooth pairing request, it means that the second pairing terminal 102 requests to pair with the first pairing terminal 101 via Bluetooth. At this time, the first pairing terminal 101 can increase its Bluetooth output power, so that when the second pairing terminal 102 displays the pairing terminals it can scan on the display interface according to its Bluetooth output power, the first pairing terminal 101 will be placed at the top of the display list. This makes it easier for the user to find the first pairing terminal 101 and control the second pairing terminal 102 to pair with it, saving Bluetooth pairing time and thus improving the user experience.

[0089] For example, visible light communication uses light pulses to wirelessly transmit information, encoding information in light at different rates. For instance, an LED on represents 1, and off represents 0; information can be transmitted through rapid switching. Because the human eye does not notice rapid changes in light intensity, the technical solution provided in this application will not cause any impact on the user when transmitting light signals.

[0090] The Bluetooth pairing method provided in this application will now be described in detail through specific embodiments. It is understood that these specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0091] For example, the Bluetooth pairing method provided in this application can be applied to a first pairing terminal or a second pairing terminal, and the embodiments of this application do not limit it in any way. Figure 2 This is a flowchart illustrating a Bluetooth pairing method applied to a first pairing terminal, provided as an embodiment of this application. The Bluetooth pairing method can be executed by software and / or hardware devices. For example, the hardware device can be a Bluetooth pairing device, which can be a terminal or a processing chip within the terminal. For an example, please refer to [link to example]. Figure 2 As shown, the Bluetooth pairing method may include:

[0092] S201. Receive the first optical signal sent by the second paired terminal, and parse the first optical signal to obtain the first parsing information.

[0093] For example, when receiving a second paired terminal, the first optical signal can be received through the optical sensor in the second paired terminal. This application embodiment does not specifically limit the specific receiving method.

[0094] For example, when parsing the first optical signal to obtain the first parsed information, the first optical signal can be converted into an electrical signal, and the electrical signal can be converted from analog to digital to obtain the first parsed information. It is understood that the first parsed information can be a pulse signal. This application embodiment only uses a pulse signal as an example for illustration, but it does not mean that the embodiments of this application are limited to this.

[0095] In this embodiment of the application, by parsing the first optical signal to obtain the first parsing information, the first pairing device can quickly determine the content requested by the second pairing terminal based on the optical signal, thereby further improving the efficiency of Bluetooth pairing.

[0096] S202. If the first parsed information includes a first Bluetooth pairing request, then increase the Bluetooth output power of the first paired terminal.

[0097] For example, when increasing the Bluetooth output power of the first paired terminal, there are two possible implementation methods:

[0098] In one possible implementation, the intensity information of the first optical signal can be determined first; based on the intensity information, an adjustment value for the Bluetooth output power can be determined, where the adjustment value is negatively correlated with the intensity information; and the Bluetooth output power of the first paired terminal can be increased according to the adjustment value. This application does not specifically limit the negative correlation between the adjustment value and the intensity information in its embodiments.

[0099] It is understandable that the adjustment value is negatively correlated with the intensity information. That is, the lower the intensity of the first light signal received by the first paired terminal, the higher the value of its adjusted Bluetooth output power. This allows the intensity of the first light signal to be reduced when the Bluetooth output power is increased, thereby effectively saving the power consumed by the second paired terminal in sending the first light signal.

[0100] In another possible implementation, if the first parsed information includes a first Bluetooth pairing request, then the Bluetooth output power of the first pairing terminal is adjusted to the maximum Bluetooth output power that the first pairing terminal can output. This application embodiment does not specifically limit the maximum Bluetooth output power.

[0101] In this embodiment, based on the intensity information of the received first optical signal, the Bluetooth output power of the first pairing terminal is increased, enabling the second pairing terminal to quickly scan the first pairing terminal and display it at the top of the Bluetooth list. This avoids the first pairing terminal reducing its Bluetooth output power due to low battery, causing it to be displayed at the bottom of the second pairing terminal's Bluetooth list, preventing the user from noticing the problem with the first pairing terminal in time. This saves the time required for Bluetooth pairing and improves the user experience.

[0102] S203. Receive the pairing result sent by the second pairing terminal. The pairing result is sent by the second pairing terminal after Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal.

[0103] For example, after receiving the pairing result from the second paired terminal, the Bluetooth output power of the first paired terminal can be restored.

[0104] In this embodiment, since a higher Bluetooth output power consumes more power from the first paired terminal, restoring the Bluetooth output power of the first paired terminal can effectively save power and extend its usage time.

[0105] Therefore, the Bluetooth pairing method provided in this application embodiment receives a first optical signal sent by a second pairing terminal, parses the first optical signal to obtain first parsing information; if the first parsing information includes a first Bluetooth pairing request, the Bluetooth output power of the first pairing terminal is increased; and the pairing result sent by the second pairing terminal is received, which is sent by the second pairing terminal after Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal. The technical solution provided in this application embodiment increases the Bluetooth output power of the first pairing terminal based on the first Bluetooth pairing request in the first optical signal sent by the second pairing terminal, so that when the first pairing terminal is displayed on the display interface of the second pairing terminal, it can be displayed in a more prominent position, making it easier for the user to select the first pairing terminal, saving the time required for Bluetooth pairing, and improving the user experience.

[0106] Based on the above embodiments, the embodiments of this application can also be applied to a second pairing terminal. Below, the Bluetooth pairing method provided in the embodiments of this application will be described in detail for use with a second pairing terminal. Specifically, please refer to... Figure 3 As shown, Figure 3 This is a flowchart illustrating a Bluetooth pairing method applied to a second pairing terminal, provided as an embodiment of this application. This Bluetooth pairing method can be executed by software and / or hardware devices. For example, the hardware device can be a Bluetooth pairing device, which can be a terminal or a processing chip within the terminal. For an example, please refer to [link to example]. Figure 3 As shown, the Bluetooth pairing method may include:

[0107] S301. Receive the first Bluetooth pairing request and convert the first Bluetooth pairing request into a first light signal.

[0108] For example, the first Bluetooth pairing request received can be sent based on an operation instruction input by the user to send pairing request information. It is understood that the operation instruction could be to enable the Bluetooth search function, or for the user to select the first paired terminal from a previously paired list, or other methods. This application embodiment only uses the above methods as examples for illustration, but does not mean that this application embodiment is limited to this.

[0109] For example, the first Bluetooth pairing request can be a pulse signal or other forms, and this application embodiment does not limit this. It is understood that when converting the first Bluetooth pairing request into a first optical signal, the voltage of the second pairing terminal can be modulated according to the first Bluetooth pairing request to convert the first Bluetooth pairing request into a first optical signal.

[0110] S302. Control the second pairing terminal to output a first optical signal. The first optical signal is used to instruct the first pairing terminal that receives the first optical signal to increase the Bluetooth output power of the first pairing terminal.

[0111] For example, when controlling the second paired terminal to output the first optical signal, the output can be achieved by controlling the hardware in the second paired terminal that can output optical signals. For instance, if the second paired terminal is a mobile phone, the optical signal can be output through the flash LED installed on the mobile phone. This application only uses the flash LED as an example for illustration, but it does not mean that the embodiments of this application are limited to this.

[0112] S303: Control the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing.

[0113] For example, when controlling the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing, a list of pairable terminals can be displayed on the second pairing terminal, and the multiple terminals in the list are sorted in descending order of Bluetooth output power; in response to the selection command to select the first pairing terminal from the multiple terminals, the second pairing terminal and the first pairing terminal are controlled to perform Bluetooth pairing.

[0114] As described in the above embodiments, the first pairing terminal increases its Bluetooth output power based on the received first optical signal. Therefore, when the first pairing terminal is displayed in the list of pairable terminals of the second pairing terminal, it is displayed at the beginning of the list, so that the user can quickly see the first pairing terminal.

[0115] For example, the list of pairable terminals may include the device identifier and Bluetooth output power of the pairable terminals. The selection instruction for choosing the first pairable terminal from multiple terminals can be that the user clicks on the device identifier of the first pairable terminal among the device identifiers of multiple pairable terminals in the list of pairable terminals to select the first pairable terminal.

[0116] For example, when controlling the second pairing terminal and the first pairing terminal to perform Bluetooth pairing, you can directly pair with the first pairing terminal after selecting the first pairing terminal, or you can select the control displayed on the second pairing terminal to confirm Bluetooth pairing after selecting the first pairing terminal, and pair with the first pairing terminal when the user clicks the control to confirm Bluetooth pairing.

[0117] In this embodiment, by displaying multiple terminals in the pairable list in descending order of Bluetooth output power on the second pairing terminal, the first pairing terminal with increased Bluetooth output power can be displayed at the top of the pairable list, making it easier for the user to select the first pairing terminal, thus shortening the Bluetooth pairing time and improving the user experience.

[0118] S304. Send the pairing result to the first paired terminal.

[0119] For example, according to the steps described above, a successful pairing result can be sent to the first paired terminal when the user clicks the device identifier of the first paired terminal in the pairable list, or clicks the control to confirm Bluetooth pairing.

[0120] Therefore, the Bluetooth pairing method provided in this application, when applied to a second pairing terminal, involves receiving a first Bluetooth pairing request and converting it into a first optical signal; controlling the second pairing terminal to output the first optical signal, which instructs the first pairing terminal receiving the first optical signal to increase its Bluetooth output power; controlling the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing; and sending the pairing result to the first pairing terminal. By sending an optical signal to increase the Bluetooth output power of the first pairing terminal, the user can quickly and accurately select the first pairing terminal for Bluetooth pairing, improving the efficiency of Bluetooth pairing and thus enhancing the user experience.

[0121] To facilitate connection to the Bluetooth pairing method provided in this application embodiment, the following will use a smartwatch as the first pairing terminal and a mobile phone as the second pairing terminal as an example to describe the Bluetooth pairing method provided in this application embodiment in detail. For details, please refer to [link to relevant documentation]. Figure 4 As shown, Figure 4 This is a schematic diagram illustrating a Bluetooth pairing method for transmitting optical signals via a mobile phone, as provided in an embodiment of this application.

[0122] For example, a smartwatch may include an integrated LED light, optical sensor, intelligent information processing module (MCU), and wireless communication module. The smartwatch can record and analyze the user's pulse in different scenarios such as daily work, study, exercise, and sleep using photoplethysmography (PPG). It can also record and analyze data such as blood oxygenation, and transmit the recorded and analyzed data to a mobile phone via a wireless transmission channel, allowing the user to connect with their health in real time and receive certain prompts or guidance. Therefore, visible light wireless communication can be achieved through the flash on the mobile phone and the optical sensor on the smartwatch.

[0123] according to Figure 4 It is known that you can point the phone's flash at the smartwatch's display screen, i.e., the optical sensor, so that the light signal sent by the phone's flash can be received by the smartwatch's optical sensor.

[0124] Example, Figure 5 This is a schematic diagram illustrating the signal transmission and reception process provided in an embodiment of this application. According to... Figure 5 As shown, the mobile phone can convert the first Bluetooth pairing request into a first electrical signal, and then convert the first electrical signal into a first optical signal. The converted first optical signal is emitted by the flash on the mobile phone. When the optical sensor of the smartwatch receives the first optical signal emitted by the flash of the mobile phone, it analyzes the first optical signal and converts it into an electrical signal through an A / D converter. The analyzed electrical signal then identifies the first Bluetooth pairing request carried in the analyzed electrical signal. Based on the first Bluetooth pairing request, the smartwatch controls its Bluetooth output power to be adjusted to the highest level within a preset time, so that the smartwatch can be displayed at the beginning of the Bluetooth device list on the mobile phone.

[0125] It is understood that the preset time can be a set time or the time corresponding to a successful pairing; this application embodiment does not specifically limit this.

[0126] In summary, the technical solution provided in this application utilizes the existing flash of the mobile phone and the optical sensor of the smartwatch to enable the mobile phone and the smartwatch to send Bluetooth pairing requests one-to-one. By increasing the Bluetooth output power of the smartwatch, the smartwatch is made easier to find, making Bluetooth pairing more targeted and improving the convenience of the Bluetooth pairing method, thereby enhancing the user experience.

[0127] Since both the first and second pairing terminals can send and receive optical signals, and the above embodiment describes the Bluetooth pairing method provided in this application by having the first pairing terminal receive optical signals and the second pairing terminal send optical signals. The following description will focus on the first pairing terminal outputting optical signals. For details, please refer to... Figure 6 As shown, Figure 6 This is a flowchart illustrating another Bluetooth pairing method applied to a first pairing terminal, provided as an embodiment of this application. According to... Figure 6 As shown, the Bluetooth pairing method includes:

[0128] S601, Receive the second Bluetooth pairing request.

[0129] For example, the second Bluetooth pairing request is used to indicate that the first pairing terminal requests to pair with the second pairing terminal via Bluetooth.

[0130] S602, convert the pairing information of the first paired terminal and the second Bluetooth pairing request into a second optical signal.

[0131] For example, the pairing information of the first pairing terminal may include the device identifier, IP address, or other information of the first pairing terminal, so as to enable successful Bluetooth pairing with the second pairing terminal. This application embodiment does not specifically limit the pairing information.

[0132] S603. Control the first pairing terminal to output a second optical signal. The first optical signal is used to instruct the second pairing terminal that receives the second optical signal to perform Bluetooth pairing with the first pairing terminal.

[0133] S604. Receive the pairing result sent by the second pairing terminal indicating successful pairing.

[0134] Therefore, the technical solution provided in this application, when applied to a first pairing terminal, can receive a second Bluetooth pairing request; convert the pairing information of the first pairing terminal and the second Bluetooth pairing request into a second optical signal; control the first pairing terminal to output the second optical signal, whereby the first optical signal is used to instruct the second pairing terminal that it receives the second optical signal to pair with the first pairing terminal via Bluetooth; and receive a successful pairing result sent by the second pairing terminal. This allows the first pairing terminal to receive the successful pairing result sent by the second pairing terminal after outputting the second optical signal, enabling it to directly pair with the second pairing terminal, thus improving the efficiency of Bluetooth pairing and enhancing the user experience.

[0135] For example, according to the above embodiment, when the first pairing terminal sends an optical signal, the Bluetooth pairing method is applied to the second pairing terminal. Figure 7 As shown, Figure 7This is a flowchart illustrating another Bluetooth pairing method applied to a second pairing terminal, provided as an embodiment of this application. According to... Figure 7 As shown, the Bluetooth pairing method includes:

[0136] S701. Receive the second optical signal sent by the first paired terminal, and parse the second optical signal to obtain the second parsing information.

[0137] For example, the process of parsing the second optical signal can be referred to the process of parsing the first optical signal, and will not be repeated here in the embodiments of this application.

[0138] S702. If the second parsing information includes a second Bluetooth pairing request, then obtain the pairing information from the second parsing information.

[0139] For example, pairing information may include either the device identifier or IP address of the first pairing terminal, so that the second pairing terminal can pair with the first pairing terminal via Bluetooth based on the pairing information. This application embodiment does not specifically limit the pairing information.

[0140] S703. Based on the pairing information, control the second pairing terminal and the first pairing terminal to perform Bluetooth pairing.

[0141] For example, when controlling the second paired terminal and the first paired terminal to perform Bluetooth pairing, there are two possible implementation methods:

[0142] In one possible implementation, when obtaining pairing information, the device identifier of the first pairing terminal, such as the name of the first pairing terminal, and whether to confirm the Bluetooth connection with the first pairing terminal can be displayed on the display interface of the second pairing terminal. Upon receiving a user-input confirmation command to initiate Bluetooth pairing, the second pairing terminal and the first pairing terminal are controlled to perform Bluetooth pairing. For example, a control for clicking "Confirm Bluetooth Pairing" on the display interface can be used to input a confirmation command for Bluetooth pairing.

[0143] In another possible implementation, when obtaining pairing information, the second pairing terminal and the first pairing terminal can be directly controlled to pair via Bluetooth based on the pairing information, without requiring any user input.

[0144] S704. Send the pairing result of successful pairing to the first paired terminal.

[0145] When controlling the second pairing terminal to pair with the first pairing terminal via Bluetooth, a pairing result indicating successful pairing can be sent to the first pairing terminal.

[0146] The technical solution provided in this application, when applied to a second pairing terminal, receives a second optical signal sent by a first pairing terminal and parses the second optical signal to obtain second parsing information. If the second parsing information includes a second Bluetooth pairing request, pairing information is obtained from the second parsing information. Based on the pairing information, the second pairing terminal and the first pairing terminal are controlled to perform Bluetooth pairing. A successful pairing result is sent to the first pairing terminal. Therefore, the technical solution provided in this application enables the second pairing terminal to directly pair with the first pairing terminal when it receives an optical signal sent by the first pairing terminal, without requiring the user to select from the list of pairable terminals on the second pairing terminal. This saves Bluetooth pairing time, effectively improves Bluetooth pairing efficiency, makes Bluetooth pairing more convenient, and thus enhances the user experience.

[0147] For example, according to the above embodiments, assuming the first pairing terminal is a smartwatch and the second pairing terminal is a mobile phone, the Bluetooth pairing method provided in this application embodiment can be found in [reference needed]. Figure 8 As shown, Figure 8 This is a schematic diagram illustrating a Bluetooth pairing method for a smartwatch to send light signals, as provided in an embodiment of this application.

[0148] according to Figure 8 As shown, point the smartwatch's LED light at the phone's optical sensor, i.e., the ambient light sensor. The user can then operate the smartwatch through its display to receive a second Bluetooth pairing request and control the smartwatch to enter Bluetooth pairing mode.

[0149] For example, a smartwatch can modulate an electrical signal containing pairing information, the smartwatch's IP address or device code, onto an LED light, causing the LED light to emit a second light signal. The ambient light sensor on the phone receives the second light signal sent by the smartwatch, converts it into an electrical signal, demodulates the pairing information, and controls the phone to directly pair with the smartwatch via Bluetooth.

[0150] In summary, the Bluetooth pairing method provided in this application utilizes the existing ambient light sensor of the mobile phone and the LED light on the smartwatch, enabling the smartwatch and mobile phone to emit light signals one-to-one, thus achieving the transmission of pairing information via optical signals and resulting in high pairing accuracy. Furthermore, the high accuracy of optical modulation communication ensures high reliability of Bluetooth pairing, enabling automatic pairing via optical signals without requiring additional user intervention, thereby improving the user experience.

[0151] Figure 9 This is a schematic diagram of a Bluetooth pairing device according to an embodiment of this application. For example, please refer to [link to example diagram]. Figure 9 As shown, the Bluetooth pairing device 90 may include:

[0152] The parsing module 901 is used to receive the first optical signal sent by the second paired terminal and parse the first optical signal to obtain the first parsing information;

[0153] The processing module 902 is used to increase the Bluetooth output power of the first pairing terminal when the first parsed information includes the first Bluetooth pairing request;

[0154] The receiving module 903 is used to receive the pairing result sent by the second pairing terminal. The pairing result is sent by the second pairing terminal after Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal.

[0155] Optionally, the parsing module 901 is specifically used to convert the first optical signal into an electrical signal, perform analog-to-digital conversion on the electrical signal, and obtain the first parsing information.

[0156] Optionally, the processing module 902 is specifically used to determine the intensity information of the first optical signal; determine an adjustment value for the Bluetooth output power based on the intensity information, wherein the adjustment value is negatively correlated with the intensity information; and increase the Bluetooth output power of the first paired terminal according to the adjustment value.

[0157] Optionally, the device also includes a recovery module 904 for restoring the Bluetooth output power of the first paired terminal.

[0158] The Bluetooth pairing device provided in this application embodiment can execute the technical solution of the Bluetooth pairing method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the Bluetooth pairing method. Please refer to the implementation principle and beneficial effects of the Bluetooth pairing method. It will not be repeated here.

[0159] Figure 10 This is a schematic diagram of a second embodiment of a Bluetooth pairing device provided in this application. For example, please refer to [link / reference]. Figure 10 As shown, the Bluetooth pairing device 100 may include:

[0160] The receiving module 1001 is used to receive a first Bluetooth pairing request and convert the first Bluetooth pairing request into a first optical signal.

[0161] The output module 1002 is used to control the second paired terminal to output a first optical signal. The first optical signal is used to instruct the first paired terminal that receives the first optical signal to increase the Bluetooth output power of the first paired terminal.

[0162] Pairing module 1003 is used to control the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing;

[0163] The sending module 1004 is used to send the pairing result to the first pairing terminal.

[0164] Optionally, the pairing module 1003 is specifically used to display a list of pairable terminals, wherein multiple terminals in the list are sorted in descending order of Bluetooth output power; in response to a selection command to select a first pairing terminal from multiple terminals, it controls a second pairing terminal to pair with the first pairing terminal via Bluetooth.

[0165] The Bluetooth pairing device provided in this application embodiment can execute the technical solution of the Bluetooth pairing method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the Bluetooth pairing method. Please refer to the implementation principle and beneficial effects of the Bluetooth pairing method. It will not be repeated here.

[0166] Figure 11 This is a schematic diagram of a Bluetooth pairing device according to a third embodiment of this application. For example, please refer to [link to example diagram]. Figure 11 As shown, the Bluetooth pairing device 110 may include:

[0167] The receiving module 1101 is used to receive a second Bluetooth pairing request.

[0168] The conversion module 1102 is used to convert the pairing information of the first pairing terminal and the second Bluetooth pairing request into a second optical signal.

[0169] The control module 1103 is used to control the first pairing terminal to output a second optical signal. The first optical signal is used to instruct the second pairing terminal that receives the second optical signal to perform Bluetooth pairing with the first pairing terminal.

[0170] The receiving module 1101 is also used to receive the pairing result of successful pairing sent by the second pairing terminal.

[0171] The Bluetooth pairing device provided in this application embodiment can execute the technical solution of the Bluetooth pairing method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the Bluetooth pairing method. Please refer to the implementation principle and beneficial effects of the Bluetooth pairing method. It will not be repeated here.

[0172] Figure 12 This is a schematic diagram of a fourth embodiment of a Bluetooth pairing device provided in this application. For example, please refer to [link / reference]. Figure 12 As shown, the Bluetooth pairing device 120 may include:

[0173] The parsing module 1201 is used to receive the second optical signal sent by the first paired terminal and parse the second optical signal to obtain the second parsing information.

[0174] The acquisition module 1202 is used to acquire pairing information from the second parsing information when the second parsing information includes a second Bluetooth pairing request.

[0175] The pairing module 1203 is used to control the second pairing terminal and the first pairing terminal to perform Bluetooth pairing based on the pairing information.

[0176] The sending module 1204 is used to send the pairing result of successful pairing to the first pairing terminal.

[0177] Optionally, the pairing information includes either the device identifier or the IP address of the first paired terminal.

[0178] The Bluetooth pairing device provided in this application embodiment can execute the technical solution of the Bluetooth pairing method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the Bluetooth pairing method. Please refer to the implementation principle and beneficial effects of the Bluetooth pairing method. It will not be repeated here.

[0179] Figure 13 This is a schematic diagram of an electronic device structure provided in this application. Figure 13 As shown, the electronic device 1300 may include at least one processor 1301 and a memory 1302.

[0180] The memory 1302 is used to store programs. Specifically, the program may include program code, which includes computer operation instructions.

[0181] The memory 1302 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0182] The processor 1301 executes computer execution instructions stored in the memory 1302 to implement the Bluetooth pairing method described in the foregoing method embodiments. The processor 1301 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. Specifically, when implementing the Bluetooth pairing method described in the foregoing method embodiments, the electronic device may be, for example, a terminal, a server, or other electronic device with processing capabilities.

[0183] Optionally, the electronic device 1300 may also include a communication interface 1303. In specific implementations, if the communication interface 1303, memory 1302, and processor 1301 are implemented independently, they can be interconnected via a bus to complete communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc., but this does not imply that there is only one bus or one type of bus.

[0184] Optionally, in a specific implementation, if the communication interface 1303, memory 1302 and processor 1301 are integrated on a single chip, then the communication interface 1303, memory 1302 and processor 1301 can communicate through an internal interface.

[0185] This application also provides a computer-readable storage medium, which may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Specifically, the computer-readable storage medium stores program instructions, which are used in the methods described in the above embodiments.

[0186] This application also provides a program product including executable instructions stored in a readable storage medium. At least one processor of an electronic device can read the executable instructions from the readable storage medium, and the at least one processor executes the executable instructions to cause the electronic device to implement the Bluetooth pairing methods provided in the various embodiments described above.

[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A Bluetooth pairing method, characterized by, Applied to a first pairing terminal, the method comprises: receiving a first optical signal sent by a second pairing terminal, and parsing the first optical signal to obtain first parsing information; if the first parsing information includes a first Bluetooth pairing request, determining intensity information of the first optical signal; determining an adjustment value of Bluetooth output power according to the intensity information; increasing the Bluetooth output power of the first pairing terminal according to the adjustment value, so that the second pairing terminal can scan the first pairing terminal; receiving a pairing result sent by the second pairing terminal, the pairing result being sent by the second pairing terminal after Bluetooth pairing based on the increased Bluetooth output power of the first pairing terminal.

2. The method of claim 1, wherein, The parsing of the first optical signal to obtain the first parsing information comprises: converting the first optical signal into an electrical signal, and performing analog-to-digital conversion on the electrical signal to obtain the first parsing information.

3. The method according to claim 1 or 2, characterized in that, The adjustment value is negatively correlated with the intensity information.

4. The method according to claim 1 or 2, characterized in that, After receiving the pairing result sent by the second pairing terminal, the method further comprises: restoring the Bluetooth output power of the first pairing terminal.

5. The method of claim 1, wherein, The method further comprises: receiving a second Bluetooth pairing request; converting pairing information of the first pairing terminal and the second Bluetooth pairing request into a second optical signal; controlling the first pairing terminal to output the second optical signal, the second optical signal being used to instruct the second pairing terminal receiving the second optical signal to perform Bluetooth pairing with the first pairing terminal; receiving a pairing success pairing result sent by the second pairing terminal.

6. A Bluetooth pairing method, characterized by, Applied to a second pairing terminal, the method comprises: receiving a first Bluetooth pairing request, and converting the first Bluetooth pairing request into a first optical signal; controlling the second pairing terminal to output the first optical signal, the first optical signal being used to instruct a first pairing terminal receiving the first optical signal to increase the Bluetooth output power of the first pairing terminal, so that the second pairing terminal can scan the first pairing terminal; controlling the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing; sending a pairing result to the first pairing terminal.

7. The method of claim 6, wherein, The controlling of the second pairing terminal and the first pairing terminal with increased Bluetooth output power to perform Bluetooth pairing comprises: displaying a list of pairable terminals, a plurality of terminals in the list of pairable terminals being sorted in descending order of Bluetooth output power; in response to a selection instruction of selecting the first pairing terminal from the plurality of terminals, controlling the second pairing terminal and the first pairing terminal to perform Bluetooth pairing.

8. The method of claim 6, wherein, The method further comprises: receiving a second optical signal sent by a first pairing terminal, and parsing the second optical signal to obtain second parsing information; if the second parsing information includes a second Bluetooth pairing request, obtaining pairing information from the second parsing information; controlling the second pairing terminal and the first pairing terminal to perform Bluetooth pairing according to the pairing information; sending a pairing success pairing result to the first pairing terminal.

9. The method of claim 8, wherein, The pairing information includes any one of a device identifier and an IP address of the first pairing terminal.

10. An electronic device, comprising: Comprising: a processor, and a memory connected to the processor in communication; the memory storing computer-executable instructions; the processor executing the computer-executable instructions stored by the memory to implement the method of any one of claims 1-9.

Citation Information

Patent Citations

  • Method and device for laser-assisted document transmission

    CN102684748A

  • Method for quick Bluetooth matching

    CN106888055A

  • Intelligent household electrical appliance, intelligent control equipment and Bluetooth pairing system and method

    CN109981426A

  • Bluetooth pairing control method and device, Bluetooth remote controller and household appliance

    CN113570841A