Bluetooth connection method, electronic equipment, remote controller and storage medium

By exchanging Bluetooth scanning and button indication information between electronic devices and remote controls, the problem of Bluetooth connection uncertainty in multi-device environments is solved, enabling a more accurate and predictable pairing process.

CN121056846APending Publication Date: 2025-12-02SHENZHEN SKYWORTH DISPLAY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511277464.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-08
Publication Date
2025-12-02

AI Technical Summary

Technical Problem

In multi-device environments, conventional Bluetooth pairing mechanisms make it difficult for users to actively specify the target device, leading to uncertainty in connection results and misconnection issues.

Method used

The electronic device sends a Bluetooth scan request to the remote control. The remote control generates a response carrying a pairing identifier. The electronic device outputs button indication information to guide the user to trigger a specific button. The remote control responds after receiving the target button indication and establishes a Bluetooth connection.

Benefits of technology

It improves the accuracy and predictability of Bluetooth pairing, avoiding misconnection of devices due to differences in signal strength and response timing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121056846A_ABST
    Figure CN121056846A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth connection method, electronic equipment, a remote controller and a storage medium, and belongs to the technical field of intelligent equipment. The Bluetooth connection method is applied to the electronic equipment and comprises the following steps: sending a Bluetooth scanning request to a remote controller; according to a received Bluetooth scanning response sent by the remote controller, determining a pairing identifier associated with the home terminal, the Bluetooth scanning response being generated by the remote controller in response to the Bluetooth scanning request; outputting remote controller key indication information corresponding to the pairing identifier; sending a Bluetooth connection request to a remote controller; and under the condition that a Bluetooth connection response sent by the remote controller in response to the Bluetooth connection request is received, Bluetooth connection with the remote controller is established, the Bluetooth connection response is generated by triggering a target key of the remote controller, and the target key is a key indicated by the remote controller key indication information. According to the method and the device, the accuracy and predictability of Bluetooth pairing are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart device technology, and in particular to a Bluetooth connection method, electronic device, remote control and storage medium. Background Technology

[0002] With the widespread adoption of smart TVs, smart speakers, smart home control centers, and other smart terminal devices, users' demand for convenient human-computer interaction methods is increasing daily. Remote controls, as the primary input control device, widely employ Bluetooth Low Energy (BLE) technology to achieve wireless connectivity with display devices or other slave devices. BLE technology boasts advantages such as low power consumption, low cost, and stable connection, making it the mainstream wireless communication solution for remote control devices.

[0003] In real-world scenarios, users often have multiple Bluetooth-enabled slave devices in their homes (such as multiple smart TVs, projectors, and audio systems), while users typically only have one remote control. When this remote enters pairing mode, it may be scanned and attempted to connect by multiple slave devices simultaneously. Conventional Bluetooth pairing mechanisms rely on broadcasting, scanning, and automatic connection processes between devices. Users cannot actively specify the target device during the pairing phase, leading to pairing results that may not match the user's intentions, resulting in an unpredictable connection outcome. Summary of the Invention

[0004] The main objective of this application is to provide a Bluetooth connection method, electronic device, remote control, and storage medium. This application effectively solves the problem of Bluetooth connection failure caused by simultaneous reconnection when multiple devices are connected via Bluetooth.

[0005] To achieve the above objectives, this application provides a Bluetooth connection method, which is applied to an electronic device and includes the following steps: Send a Bluetooth scan request to the remote control; Based on the received Bluetooth scan response sent by the remote controller, a pairing identifier associated with this device is determined, wherein the Bluetooth scan response is generated by the remote controller in response to the Bluetooth scan request; Output the remote control button indication information corresponding to the pairing identifier; Send a Bluetooth connection request to the remote control; Upon receiving a Bluetooth connection response sent by the remote control in response to the Bluetooth connection request, a Bluetooth connection is established with the remote control, wherein the Bluetooth connection response is generated by triggering a target button on the remote control, and the target button is the button indicated by the button indication information of the remote control.

[0006] In one embodiment, the step of outputting the remote control button indication information corresponding to the pairing identifier includes: Based on the Bluetooth scan response, determine the device identification information of the remote control; If the device identification information meets the preset identification conditions, the remote control button indication information corresponding to the pairing identifier is output.

[0007] In one embodiment, the device identification information includes: an identity identifier; the identification conditions include: the identity identifier meets preset identifier matching conditions; and the step of outputting the remote control button indication information corresponding to the pairing identifier includes: If the identity identifier meets the identifier matching condition, output the remote control button indication information corresponding to the pairing identifier.

[0008] In one embodiment, the device identification information includes signal strength, the identification condition includes signal strength greater than a preset strength threshold, and the step of outputting the remote control button indication information corresponding to the pairing identifier includes: When the signal strength is greater than the strength threshold, the remote control button indication information corresponding to the pairing identifier is output.

[0009] In one embodiment, the step of outputting the remote control button indication information corresponding to the pairing identifier includes: The remote control button indication information corresponding to the pairing identifier is displayed on the associated display screen; And / or, play the remote control button indication information corresponding to the pairing identifier through the associated audio playback device.

[0010] In one embodiment, the step of sending a Bluetooth scan request to the remote control includes: Enable Bluetooth scanning function; If a scannable broadcast packet is detected, a Bluetooth scan request is sent to the remote control that sent the scannable broadcast packet, wherein the scannable broadcast packet is generated by triggering the Bluetooth pairing button on the remote control.

[0011] To achieve the above objectives, this application also provides a Bluetooth connection method, which is applied to a remote control, and the method includes the following steps: In response to a Bluetooth scan request sent by an electronic device, a Bluetooth scan response is generated, wherein the Bluetooth scan response encapsulates a pairing identifier associated with the electronic device; Send the Bluetooth scan response to the electronic device so that the electronic device outputs the remote control button indication information corresponding to the pairing identifier; In response to a key press operation, the target identifier corresponding to the triggered key is determined from the pairing identifiers; In response to a Bluetooth connection request sent by a target device associated with the target identifier, a Bluetooth connection response is generated and sent to the target device to establish a Bluetooth connection with the target device.

[0012] In one embodiment, the step of generating a Bluetooth scan response in response to a Bluetooth scan request sent by an electronic device includes: Based on the device address of the electronic device that sent the Bluetooth scan request, a pairing identifier associated with the device address is generated; Generate a Bluetooth scan response encapsulated with the pairing identifier.

[0013] This application also provides an electronic device, which includes: a memory, a processor, and a Bluetooth connection program stored in the memory and executable on the processor, wherein the Bluetooth connection program is configured to implement the steps of the Bluetooth connection method described above.

[0014] This application also provides a remote control, which includes: a memory, a processor, and a Bluetooth connection program stored in the memory and executable on the processor. The Bluetooth connection program is configured to implement the steps of the Bluetooth connection method described above.

[0015] This application embodiment also provides a storage medium, which is a computer-readable storage medium, and stores a Bluetooth connection program on the computer-readable storage medium. The Bluetooth connection program is executed by a processor to implement the steps of the Bluetooth connection method described above.

[0016] This application discloses a Bluetooth connection method. An electronic device sends a Bluetooth scan request to a remote control intended for connection. The remote control responds to the scan request by generating a Bluetooth scan response carrying a pairing identifier associated with the electronic device and sending it to the electronic device. The electronic device then outputs remote control button indication information corresponding to the pairing identifier, guiding the user to actively trigger a specific button to complete pairing. The electronic device then sends a Bluetooth connection request to the remote control. The remote control only responds when the target button indicated by the triggered button indication information is pressed, thereby achieving a Bluetooth connection between the electronic device and the remote control. Through the above-described scheme of this application embodiment, the user's operational intent is clearly mapped to the device, avoiding misconnections caused by differences in signal strength and response timing during conventional pairing processes, significantly improving the accuracy and predictability of Bluetooth pairing. Attached Figure Description

[0017] Figure 1 A flowchart illustrating the embodiments related to the Bluetooth connection method of this application is provided. Figure 1 ; Figure 2 This is a schematic diagram illustrating a scenario of Bluetooth connection between a remote control and an electronic device involved in the Bluetooth connection method of this application. Figure 3 A flowchart illustrating the embodiments related to the Bluetooth connection method of this application is provided. Figure 2 ; Figure 4 A flowchart illustrating the embodiments related to the Bluetooth connection method of this application is provided. Figure 3 Figure 5 This is a schematic diagram of the electronic device structure involved in the Bluetooth connection method of this application embodiment; Figure 6 This is a schematic diagram of the remote control structure involved in the Bluetooth connection method of this application embodiment.

[0018] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0019] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0020] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0021] In conventional technologies, users often have multiple Bluetooth-enabled slave devices in their homes (such as multiple smart TVs, projectors, and audio systems), while users typically only have one remote control. When this remote control enters pairing mode, it may be scanned and attempted to connect by multiple slave devices simultaneously. Conventional Bluetooth pairing mechanisms rely on broadcasting, scanning, and automatic connection processes between devices. Users cannot actively specify the target device during the pairing phase, leading to pairing results that may not match the user's intentions, resulting in unpredictable connection outcomes.

[0022] This application provides a solution where an electronic device sends a Bluetooth scan request to a remote control to be connected. The remote control responds to the Bluetooth scan request by generating a Bluetooth scan response carrying a pairing identifier associated with the electronic device and sending it to the electronic device. The electronic device then outputs remote control button indication information corresponding to the pairing identifier, guiding the user to actively trigger a specific button to complete pairing. The electronic device then sends a Bluetooth connection request to the remote control, which only responds when the target button indicated by the triggered button indication information is pressed, thus achieving a Bluetooth connection between the electronic device and the remote control. This solution explicitly maps the user's operational intent to the device, avoiding misconnections caused by differences in signal strength and response timing during conventional pairing processes, significantly improving the accuracy and predictability of Bluetooth pairing.

[0023] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the Bluetooth connection method of this application.

[0024] It should be noted that the Bluetooth connection method is applied to electronic devices with Bluetooth communication capabilities. In a Bluetooth connection, the electronic device can act as the connection initiator (master device) or the responder (slave device), specifically including devices such as televisions, stereos, air conditioners, computers, mobile phones, and tablets. This embodiment does not impose any limitations on this. The Bluetooth connection method includes: Step A10: Send a Bluetooth scan request to the remote control; In one feasible embodiment, the electronic device can enable Bluetooth functionality by enabling the Bluetooth module and send a Bluetooth scan request to the remote control.

[0025] A Bluetooth scan request, or SCAN_REQ (Scan Request), is a control message in the Bluetooth Low Energy (BLE) protocol designed to obtain more device information.

[0026] A remote control can be a standalone physical device with multiple universal function buttons, or it can be a device that sends control commands by adding corresponding hardware and software modules to existing devices (such as mobile phones, watches, headphones, power banks, tablets, etc.).

[0027] For example, by adding corresponding software and hardware modules to a mobile phone, virtual buttons are generated in the mobile phone and become the remote control in the embodiments of this application.

[0028] Optionally, the buttons on the remote control can be either virtual buttons or physical buttons.

[0029] Optionally, the electronic device can send a Bluetooth scan request to one or more remote controls.

[0030] Step A20: Determine the pairing identifier associated with this device based on the received Bluetooth scan response sent by the remote control, wherein the Bluetooth scan response is generated by the remote control in response to the Bluetooth scan request; In one feasible embodiment, the remote controller can respond to a received Bluetooth scan request, generate a corresponding Bluetooth scan response, and send it back to the electronic device. The Bluetooth scan response generated by the remote controller encapsulates a pairing identifier, which is associated with the electronic device. The electronic device can then determine that the remote controller is the one that generated the pairing identifier based on the received Bluetooth scan response sent by the remote controller.

[0031] Bluetooth scan response refers to SCAN_RSP (Scan Response), a data packet in the BLE protocol. It is a reply from the broadcast device (i.e., remote control) to the scan device (i.e., electronic device) to the SCAN_REQ sent by the scanning device, and is used to return additional broadcast information.

[0032] The pairing identifier can be an ID (Identifier), which is a number or code assigned by the remote control to uniquely distinguish each electronic device in a multi-device environment, thereby guiding the user to confirm the pairing intention through button operation.

[0033] Optionally, a pairing identifier can be associated with an electronic device and a remote control. The pairing identifier clearly identifies the remote control that generated the pairing identifier and the electronic device that receives it.

[0034] Optionally, the electronic device may receive Bluetooth scan responses from one or more remote controls and other Bluetooth devices. If multiple remote controls capable of executing the Bluetooth connection method of this application exist in the current environment, the electronic device may receive multiple Bluetooth scan responses and determine the pairing identifier associated with each remote control.

[0035] Step A30: Output the remote control button indication information corresponding to the pairing identifier; In one feasible embodiment, after determining the pairing identifier assigned to it by the remote control, the electronic device determines the remote control button indication information corresponding to the pairing identifier and outputs the remote control button indication information, thereby guiding the user to actively trigger a specific button to complete the Bluetooth pairing between the remote control and the electronic device.

[0036] Remote control button indication information is a type of human-computer interaction prompt information. Its content is determined by the pairing identifier and is used to guide the user to confirm the pairing intention by triggering the physical button on the remote control that has the same identifier value.

[0037] Optionally, the electronic device can determine the remote control button indication information corresponding to the pairing identifier associated with it based on the preset mapping relationship between the pairing identifier and the remote control button indication information.

[0038] Optionally, the remote control button indication information can be the indication information of a single button, such as pressing the number 1 key, pressing the OK key, etc., or it can be the indication information of a combination of multiple buttons, such as pressing the OK key and the number 1 key at the same time, or pressing the OK key first and then pressing the number 1 key, etc. The embodiments of this application do not limit this.

[0039] Alternatively, the electronic device can output remote control button indication information in the form of audio, images, indicator lights, etc.

[0040] Optionally, the electronic device can receive Bluetooth scan responses from one or more remote controls and other Bluetooth devices. If there are multiple remote controls in the current environment capable of executing the Bluetooth connection method of this application, the electronic device can receive multiple Bluetooth scan responses, determine the pairing identifier associated with each remote control, and then output remote control button indication information corresponding to at least some of the pairing identifiers.

[0041] Optionally, when the electronic device determines the pairing identifiers generated by multiple remote controllers, it can simultaneously output the remote controller button indication information corresponding to the pairing identifiers associated with the multiple remote controllers; the electronic device can also filter out at least one target identifier from the multiple pairing identifiers and output the remote controller button indication information corresponding to the target identifier.

[0042] Step A40: Send a Bluetooth connection request to the remote control; In one feasible embodiment, the electronic device sends a Bluetooth connection request to the remote control.

[0043] The Bluetooth connection request, or CONNECT_REQ (Connection Request), is a key control message in the Bluetooth Low Energy protocol used to initiate and establish a point-to-point communication connection between two devices.

[0044] Optionally, the electronic device can send a Bluetooth connection request to the remote control associated with the pairing identifier corresponding to the remote control button indication information it outputs, that is, send a targeted Bluetooth connection request; the electronic device can also send a Bluetooth connection request to all connectable devices in the current environment, but only the remote control that triggered the target button can respond to the request, thereby ensuring the accuracy and predictability of Bluetooth pairing.

[0045] Step A50: Upon receiving a Bluetooth connection response sent by the remote control in response to the Bluetooth connection request, a Bluetooth connection is established with the remote control. The Bluetooth connection response is generated by triggering the target button on the remote control, and the target button is the button indicated by the button indication information on the remote control.

[0046] In one embodiment, if the remote control triggers the target button, it will respond to the Bluetooth connection request sent by the electronic device associated with the pairing identifier corresponding to the target button, generate a Bluetooth connection response, and send the Bluetooth connection response back to the electronic device; and the electronic device will establish a Bluetooth connection with the remote control when it receives the Bluetooth connection response sent by the remote control in response to the Bluetooth connection request.

[0047] For example, refer to Figure 2 In the current scenario, there are multiple electronic devices 102 that support Bluetooth pairing. To establish a Bluetooth connection with the target device, the remote control 101, upon receiving a Bluetooth scan request from an electronic device 102, generates a pairing identifier (ID) uniquely associated with each electronic device 102 and encapsulates it in a Bluetooth scan response, sending it to each electronic device 102. Upon receiving the Bluetooth scan response, each electronic device 102 can determine the specific pairing identifier (ID) assigned to it by the remote control 101, such as... Figure 2 Device A has ID 1, Device B has ID 2, and Device C has ID 3. Each electronic device 102 outputs remote control button indication information corresponding to its associated pairing identifier. For example, Device A displays "Trigger remote control button 1," Device B displays "Trigger remote control button 2," and Device C displays "Trigger remote control button 3," thus guiding the user to confirm the pairing intention through button operations on remote control 101. For example, Device A, Device B, and Device C all send Bluetooth connection requests to remote control 101. If the user presses button 1 on remote control 101, remote control 101 responds to the Bluetooth connection request sent by Device A, generates a Bluetooth connection response, and sends it back to Device A, thereby establishing a Bluetooth connection with Device A and significantly improving the accuracy and predictability of Bluetooth pairing.

[0048] In this embodiment, the electronic device sends a Bluetooth scan request to the remote control to be connected. The remote control responds to the Bluetooth scan request by generating a Bluetooth scan response carrying a pairing identifier associated with the electronic device and sending it to the electronic device. The electronic device then outputs remote control button indication information corresponding to the pairing identifier, guiding the user to actively trigger a specific button to complete pairing. The electronic device then sends a Bluetooth connection request to the remote control. The remote control will only respond when the target button indicated by the triggered button indication information is pressed, thereby achieving a Bluetooth connection between the electronic device and the remote control. Through the above-described scheme of this application embodiment, the user's operational intent is clearly mapped to the device, avoiding misconnections caused by differences in signal strength and response timing during conventional pairing processes, significantly improving the accuracy and predictability of Bluetooth pairing.

[0049] Based on the first embodiment described above, a second embodiment of the Bluetooth connection method of this application is proposed. In this embodiment, step A10, the step of sending a Bluetooth scanning request to the remote control, includes: Step A11: Enable Bluetooth scanning function; In one feasible embodiment, the electronic device enables Bluetooth scanning to begin listening to broadcast channels in order to receive broadcast packets.

[0050] Step A12: If a scannable broadcast packet is detected, a Bluetooth scan request is sent to the remote control that sent the scannable broadcast packet, wherein the scannable broadcast packet is generated by triggering the Bluetooth pairing button on the remote control.

[0051] In one feasible embodiment, when a user triggers the Bluetooth pairing button on the remote control, the remote control will send a scannable broadcast packet, and when the electronic device detects the scannable broadcast packet, it will send a Bluetooth scan request to the remote control.

[0052] Scannable broadcast packets can be ADV_IND (Advertising - Connectable and Scannable Undirected Event), which allows other devices to discover, obtain information, and establish connections.

[0053] The Bluetooth pairing button is a physical or virtual button on the remote control. When the user presses it, the remote control enters a discoverable pairing mode and begins sending scannable broadcast packets so that host devices such as TVs and set-top boxes can discover it and establish a Bluetooth connection with it.

[0054] In one feasible implementation, step A30, the step of outputting the remote control button indication information corresponding to the pairing identifier, includes: Step A31: Determine the device identification information of the remote control based on the Bluetooth scan response; Step A32: If the device identification information meets the preset identification conditions, output the remote control button indication information corresponding to the pairing identifier.

[0055] In one feasible embodiment, the electronic device determines the device identification information of the remote control based on the information carried in the Bluetooth scan response, and then determines whether the device identification information of the remote control meets preset identification conditions. If the device identification information of the remote control meets the preset identification conditions, it indicates that the remote control may belong to the remote control that the user wants to connect to, and then outputs the remote control button indication information corresponding to the pairing identifier. For remote controls or other devices whose device identification information does not meet the identification conditions, the electronic device does not output the remote control button indication information corresponding to their pairing identifier. Through the above scheme, this application embodiment automatically blocks irrelevant devices, avoids mispairing, reduces invalid connection attempts, and improves connection accuracy and resource utilization.

[0056] Device identification information refers to a set of characteristic parameters obtained by an electronic device during the Bluetooth pairing process by parsing the Bluetooth scan response (SCAN_RSP) and related broadcast data sent by the remote control. This comprehensive set of information is used to uniquely identify, classify, filter, and confirm the identity of the target remote control.

[0057] In this embodiment, the scanned devices are filtered by pre-set identification conditions. The pairing guidance process is triggered only when the device identification information matches, and the corresponding remote control button operation prompts are displayed, thereby realizing an automated and user-friendly Bluetooth pairing experience and effectively improving pairing efficiency and system intelligence.

[0058] In one feasible implementation, the device identification information includes: an identity identifier; the identification conditions include: the identity identifier meets preset identifier matching conditions; and step A32, the step of outputting the remote control button indication information corresponding to the paired identifier, includes: Step A321: If the identity identifier meets the identifier matching conditions, output the remote control button indication information corresponding to the paired identifier.

[0059] In one feasible embodiment, the electronic device can determine the remote control's identity from the Bluetooth scan response, such as the device name and device ID number, and determine whether the remote control's identity meets the identity matching conditions. If it does, the electronic device outputs the remote control button indication information corresponding to the pairing identity. If it does not meet the conditions, the electronic device does not output any information about the remote control.

[0060] Optionally, the identifier matching condition can be that the identifier contains specific keywords, or that the identifier contains specific prefixes, etc.

[0061] In this embodiment, the scanned devices are filtered by pre-set identification matching conditions. The pairing guidance process is triggered only when the remote control identification matches, and the corresponding remote control button operation prompts are displayed. This achieves an automated and user-friendly Bluetooth pairing experience, effectively improving pairing efficiency and system intelligence.

[0062] In one feasible implementation, the device identification information includes: signal strength; the identification condition includes: the signal strength is greater than a preset strength threshold; step A32, the step of outputting the remote control button indication information corresponding to the pairing identifier, includes: Step A322: If the signal strength is greater than the strength threshold, output the remote control button indication information corresponding to the pairing identifier.

[0063] In one feasible embodiment, the electronic device can determine the signal strength of the remote control from the Bluetooth scan response. Since the signal strength of the Bluetooth signal reflects the physical distance between the remote control and the electronic device, it can be determined whether the signal strength of the remote control is greater than a preset strength threshold. If it is greater, the remote control button indication information corresponding to the pairing identifier is output. If it is less than or equal to the threshold, no information about the remote control is output.

[0064] Optionally, the device identification information includes: identity identifier and signal strength. The identification conditions include: the identity identifier meets the preset identifier matching conditions and the signal strength is greater than the preset strength threshold. Therefore, when the remote control's identity identifier meets the identifier matching conditions and the remote control's signal strength is greater than the preset strength threshold, the remote control button indication information corresponding to the pairing identifier is output.

[0065] In this embodiment, the scanned devices are filtered by pre-set identification matching conditions. The pairing guidance process is triggered only when the remote control identification matches, and the corresponding remote control button operation prompts are displayed. This achieves an automated and user-friendly Bluetooth pairing experience, effectively improving pairing efficiency and system intelligence.

[0066] In one feasible implementation, step A32, the step of outputting the remote control button indication information corresponding to the pairing identifier, includes: Step A323: Display the remote control button indication information corresponding to the pairing identifier on the associated display screen.

[0067] In one feasible embodiment, if the electronic device has an associated display screen, the remote control button indication information corresponding to the pairing identifier can be displayed on the display screen.

[0068] And / or, in step A324, play the remote control button indication information corresponding to the pairing identifier through the associated audio playback device.

[0069] In one feasible embodiment, if the electronic device has an associated audio playback device, the remote control button indication information corresponding to the pairing identifier can be played through the audio playback device.

[0070] Optionally, if the electronic device has an associated audio playback device and a display screen, the remote control button indication information corresponding to the pairing identifier can be displayed on the display screen, and the remote control button indication information corresponding to the pairing identifier can be played through the audio playback device. Alternatively, at least one of these methods can be selected to output button indication information.

[0071] In this embodiment, the remote control button indication information corresponding to the pairing identifier is displayed and / or played by the electronic device, thereby guiding the user to actively trigger a specific button to complete the pairing, which significantly improves the accuracy and predictability of Bluetooth pairing.

[0072] To aid in understanding the above technical solutions, this application provides a more complete embodiment, using a television as the executing entity to perform the Bluetooth connection method of this application embodiment, referring to... Figure 3 : Step A101: The TV enables Bluetooth and begins Bluetooth scanning; if a scannable broadcast packet is detected, the TV sends a Bluetooth scan request to the remote control that sent the scannable broadcast packet; upon receiving the Bluetooth scan response from the remote control, the TV determines the remote control's device identification information, including: identity identifier and signal strength.

[0073] In step A102, the TV determines whether the remote control's identity meets the preset identity matching conditions. If yes, it proceeds to step A103; otherwise, it re-executes step A101 to perform a Bluetooth scan.

[0074] In step A103, the TV determines whether the signal strength of the remote control meets the condition, that is, whether the signal strength is greater than the preset strength threshold. If yes, then step A104 is executed; otherwise, step A101 is executed again to perform Bluetooth scanning.

[0075] In step A104, the TV displays the remote control button indication information corresponding to the pairing identifier on the screen.

[0076] Step A105: The TV sends a Bluetooth connection request to the remote control.

[0077] Step A106: After the TV sends the Bluetooth connection request, it determines whether the Bluetooth connection with the remote control is successful. If yes, the Bluetooth connection with the remote control is completed. If no, step A101 is repeated to perform Bluetooth scanning.

[0078] Based on any of the above embodiments, a third embodiment of the Bluetooth connection method of this application is proposed. In this embodiment, the Bluetooth connection method uses a remote control. The remote control can be a standalone physical device with multiple general-purpose function buttons, or it can be a device that sends control commands by adding corresponding software and hardware modules to an existing device (e.g., mobile phone, watch, earphone, power bank, tablet, etc.). The buttons on the remote control can be virtual buttons or physical buttons. The Bluetooth connection method includes: Step B10: In response to a Bluetooth scan request sent by an electronic device, a Bluetooth scan response is generated, wherein the Bluetooth scan response encapsulates a pairing identifier associated with the electronic device. In one feasible embodiment, after the remote control is powered on and Bluetooth is enabled, it can respond to the Bluetooth scanning request sent by the electronic device, generate a pairing identifier associated with the electronic device, and encapsulate it in the Bluetooth scanning response.

[0079] In one feasible implementation, before step B10, which generates a Bluetooth scanning response in response to a Bluetooth scanning request sent by an electronic device, the method further includes: after the remote control is powered on, dynamically detecting whether its preset Bluetooth pairing key is triggered; when the remote control detects that its Bluetooth pairing key is triggered, sending a scannable broadcast packet, wherein the scannable broadcast packet is used to send a Bluetooth scanning request to the remote control when the electronic device scans the scannable broadcast packet.

[0080] The Bluetooth pairing button is a physical or virtual button on the remote control. When the user presses it, the remote control enters a discoverable pairing mode and begins sending scannable broadcast packets so that host devices such as TVs and set-top boxes can discover it and establish a Bluetooth connection with it.

[0081] For example, the Bluetooth pairing button is the "voice button" on the remote control.

[0082] Optionally, the remote control can poll the buttons to detect whether its preset Bluetooth pairing button has been triggered.

[0083] Optionally, when the remote control detects that its Bluetooth pairing button has been triggered, it can first determine whether there is a device waiting to be reconnected. A device waiting to be reconnected refers to a device that has been successfully paired and bound before. If it exists, the remote control will try to connect to the device waiting to be reconnected first. If it does not exist, the remote control will enter the "discoverable" broadcast mode, send a scannable broadcast packet, and wait for a new pairing.

[0084] In one feasible implementation, step B10, the step of generating a Bluetooth scan response in response to a Bluetooth scan request sent by an electronic device, includes: Step B11: Generate a pairing identifier associated with the device address based on the device address of the electronic device that sent the Bluetooth scanning request; Step B12: Generate a Bluetooth scan response encapsulated with a pairing identifier.

[0085] In one feasible embodiment, the remote controller determines the device address of the electronic device that sent the Bluetooth scan request based on the received Bluetooth scan request, generates an associated pairing identifier for the device address, encapsulates the pairing identifier into the Bluetooth scan response, and then sends the Bluetooth scan response to the electronic device corresponding to the device address.

[0086] The device address can be a MAC address (Media Access Control Address).

[0087] The pairing identifier can be an ID (Identifier), which is a number or code assigned by the remote control to uniquely distinguish each electronic device in a multi-device environment, thereby guiding the user to confirm the pairing intention through button operation.

[0088] Optionally, the pairing identifier can be a unique identifier, meaning that remote controls for electronic devices with different device addresses can assign different pairing identifiers to them.

[0089] Optionally, the step of the remote controller generating a pairing identifier associated with the device address includes: determining whether there is an associated pairing identifier for the device address; if there is, reusing the original identifier; if there is not, selecting an unused identifier from a preset value range as the pairing identifier.

[0090] In this embodiment, the remote control will generate a corresponding pairing identifier based on the device address of the electronic device, so that different electronic devices correspond to different pairing identifiers, ensuring the uniqueness and certainty of the pairing identifier, improving the security of the pairing process, and thus supporting users to select target devices for Bluetooth pairing based on button operations in a multi-device environment.

[0091] Step B20: Send a Bluetooth scan response to the electronic device so that the electronic device outputs remote control button indication information corresponding to the pairing identifier; In one feasible embodiment, the remote controller sends a Bluetooth scan response to the electronic device, causing the electronic device to output remote control button indication information corresponding to the pairing identifier. For example, the electronic device displays the remote control button indication information corresponding to the pairing identifier on an associated display screen, or plays the remote control button indication information corresponding to the pairing identifier through an associated audio playback device.

[0092] Step B30: In response to the key trigger operation, determine the target identifier corresponding to the triggered key from the pairing identifiers; In one feasible embodiment, the remote control responds to a button triggering operation by determining the target identifier corresponding to the triggered button from the pairing identifiers it generates for each electronic device, thereby explicitly mapping the user's operation intent onto the device.

[0093] Step B40: In response to the Bluetooth connection request sent by the target device associated with the target identifier, generate a Bluetooth connection response and send it to the target device to establish a Bluetooth connection with the target device.

[0094] In one feasible embodiment, the remote controller responds to a Bluetooth connection request sent by a target device associated with a target identifier, generates a Bluetooth connection response, and sends it to the target device, thereby establishing a Bluetooth connection with the target device.

[0095] For example, when a user presses button 1 on a remote control, the remote control determines that the target identifier corresponding to button 1 is ID: 1, and the electronic device associated with this target identifier is device 1. Therefore, the remote control will respond to the Bluetooth connection request of device 1, but will not respond to the Bluetooth connection requests of other devices.

[0096] In this embodiment, the electronic device sends a Bluetooth scan request to the remote control to be connected. The remote control responds to the Bluetooth scan request by generating a Bluetooth scan response carrying a pairing identifier associated with the electronic device and sending it to the electronic device. The electronic device then outputs remote control button indication information corresponding to the pairing identifier, guiding the user to actively trigger a specific button to complete pairing. The electronic device then sends a Bluetooth connection request to the remote control. The remote control will only respond when the target button indicated by the triggered button indication information is pressed, thereby achieving a Bluetooth connection between the electronic device and the remote control. Through the above-described scheme of this application embodiment, the user's operational intent is clearly mapped to the device, avoiding misconnections caused by differences in signal strength and response timing during conventional pairing processes, significantly improving the accuracy and predictability of Bluetooth pairing.

[0097] To aid in understanding the above technical solutions, this application provides a more complete embodiment, using a television as the executing entity to perform the Bluetooth connection method of this application embodiment. The target device to be connected to the television is a Bluetooth speaker. (Refer to...) Figure 4 : Step B101: Power on the remote control.

[0098] Step B102: The remote control performs button polling.

[0099] In step B103, the remote control checks whether the Bluetooth pairing button has been triggered. If yes, proceed to step B104; otherwise, proceed to step B102.

[0100] In step B104, the remote control determines whether there is a device to be reconnected. If yes, proceed to step B105; otherwise, proceed to step B106.

[0101] Step B105: The remote control reconnects to the device to be reconnected via Bluetooth.

[0102] Step B106: The remote control sends a scannable broadcast packet.

[0103] In step B107, the remote controller receives a Bluetooth scan request sent by the electronic device based on a scannable broadcast packet, generates a pairing identifier and a Bluetooth scan response according to the device address of the electronic device, and sends them to the electronic device.

[0104] In step B108, the remote control receives a Bluetooth connection request from the electronic device. In response to the button trigger operation, the remote control determines the target identifier corresponding to the triggered button from the pairing identifier; then it determines the target device associated with the target identifier, and responds to the Bluetooth connection request of the target device by sending a Bluetooth connection response to the target device.

[0105] In step B109, the remote control determines whether the Bluetooth connection with the target device is successful. If yes, the Bluetooth connection with the target device is completed. If not, step B102 is executed again to perform a new round of Bluetooth pairing.

[0106] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the Bluetooth connection method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0107] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the Bluetooth connection method in the first embodiment described above.

[0108] The following is for reference. Figure 5 The diagrams show structural schematics of electronic devices suitable for implementing the embodiments of this application. The electronic devices in the embodiments of this application may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0109] like Figure 5 As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, sound acquisition modules, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. While electronic devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0110] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0111] The electronic device provided in this application, employing the Bluetooth connection method described in the above embodiments, can significantly improve the accuracy and predictability of Bluetooth pairing. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the Bluetooth connection method provided in the above embodiments, and other technical features of the electronic device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0112] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0113] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0114] This application provides a remote control, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the Bluetooth connection method in the first embodiment described above.

[0115] The following is for reference. Figure 6 The diagrams show structural schematics of remote controllers suitable for implementing the embodiments of this application. The remote controllers in the embodiments of this application may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The remote control shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0116] like Figure 6As shown, the remote control may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for remote control operation. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, sound acquisition module, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the remote controller to communicate wirelessly or wiredly with other devices to exchange data. While the figures show remote controllers with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0117] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0118] The remote control provided in this application, employing the Bluetooth connection method described in the above embodiments, can significantly improve the accuracy and predictability of Bluetooth pairing. Compared with the prior art, the beneficial effects of the remote control provided in this application are the same as those of the Bluetooth connection method provided in the above embodiments, and other technical features of the remote control are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0119] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0120] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0121] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the Bluetooth connection method in the above embodiments.

[0122] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0123] The aforementioned computer-readable storage medium may be included in an electronic device and / or a remote control; or it may exist independently and not assembled into an electronic device and / or a remote control.

[0124] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: send a Bluetooth scan request to a remote control; determine a pairing identifier associated with itself based on a received Bluetooth scan response from the remote control, wherein the Bluetooth scan response is generated by the remote control in response to the Bluetooth scan request; output remote control button indication information corresponding to the pairing identifier; send a Bluetooth connection request to the remote control; and, upon receiving a Bluetooth connection response from the remote control in response to the Bluetooth connection request, establish a Bluetooth connection with the remote control, wherein the Bluetooth connection response is generated by triggering a target button on the remote control, and the target button is the button indicated by the remote control button indication information.

[0125] When one or more of the above procedures are executed by the remote control, the remote control: responds to a Bluetooth scan request sent by the electronic device, generates a Bluetooth scan response, wherein the Bluetooth scan response encapsulates a pairing identifier associated with the electronic device; sends the Bluetooth scan response to the electronic device, so that the electronic device outputs remote control button indication information corresponding to the pairing identifier; responds to a button trigger operation, determines the target identifier corresponding to the triggered button from the pairing identifier; and responds to a Bluetooth connection request sent by the target device associated with the target identifier, generates a Bluetooth connection response, and sends it to the target device to establish a Bluetooth connection with the target device.

[0126] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0127] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0128] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0129] The readable storage medium provided in this application embodiment is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described Bluetooth connection method. This effectively solves the problem of Bluetooth connection failure caused by simultaneous reconnection when multiple devices are connected via Bluetooth, thereby supporting the playback effect of external speakers. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application embodiment are the same as the beneficial effects of the Bluetooth connection method provided in the above embodiments, and will not be repeated here.

[0130] The above are only some embodiments of this application and do not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A Bluetooth connection method, characterized in that, The Bluetooth connection method is applied to an electronic device, and the method includes the following steps: Send a Bluetooth scan request to the remote control; Based on the received Bluetooth scan response sent by the remote controller, a pairing identifier associated with this device is determined, wherein the Bluetooth scan response is generated by the remote controller in response to the Bluetooth scan request; Output the remote control button indication information corresponding to the pairing identifier; Send a Bluetooth connection request to the remote control; Upon receiving a Bluetooth connection response sent by the remote control in response to the Bluetooth connection request, a Bluetooth connection is established with the remote control, wherein the Bluetooth connection response is generated by triggering a target button on the remote control, and the target button is the button indicated by the button indication information of the remote control.

2. The Bluetooth connection method as described in claim 1, characterized in that, The step of outputting the remote control button indication information corresponding to the pairing identifier includes: Based on the Bluetooth scan response, determine the device identification information of the remote control; If the device identification information meets the preset identification conditions, the remote control button indication information corresponding to the pairing identifier is output.

3. The Bluetooth connection method as described in claim 2, characterized in that, The device identification information includes: an identity identifier; the identification conditions include: the identity identifier meets preset identifier matching conditions; and the step of outputting the remote control button indication information corresponding to the pairing identifier includes: If the identity identifier meets the identifier matching condition, output the remote control button indication information corresponding to the pairing identifier.

4. The Bluetooth connection method as described in claim 2, characterized in that, The device identification information includes signal strength, and the identification condition includes signal strength greater than a preset strength threshold. The step of outputting the remote control button indication information corresponding to the pairing identifier includes: When the signal strength is greater than the strength threshold, the remote control button indication information corresponding to the pairing identifier is output.

5. The Bluetooth connection method as described in any one of claims 1 to 4, characterized in that, The step of outputting the remote control button indication information corresponding to the pairing identifier includes: The remote control button indication information corresponding to the pairing identifier is displayed on the associated display screen; And / or, play the remote control button indication information corresponding to the pairing identifier through the associated audio playback device.

6. The Bluetooth connection method as described in claim 1, characterized in that, The step of sending a Bluetooth scan request to the remote control includes: Enable Bluetooth scanning function; If a scannable broadcast packet is detected, a Bluetooth scan request is sent to the remote control that sent the scannable broadcast packet, wherein the scannable broadcast packet is generated by triggering the Bluetooth pairing button on the remote control.

7. A Bluetooth connection method, characterized in that, The Bluetooth connection method is applied to a remote control, and the method includes the following steps: In response to a Bluetooth scan request sent by an electronic device, a Bluetooth scan response is generated, wherein the Bluetooth scan response encapsulates a pairing identifier associated with the electronic device; Send the Bluetooth scan response to the electronic device so that the electronic device outputs the remote control button indication information corresponding to the pairing identifier; In response to a key press operation, the target identifier corresponding to the triggered key is determined from the pairing identifiers; In response to a Bluetooth connection request sent by a target device associated with the target identifier, a Bluetooth connection response is generated and sent to the target device to establish a Bluetooth connection with the target device.

8. The Bluetooth connection method as described in claim 7, characterized in that, The step of generating a Bluetooth scan response in response to a Bluetooth scan request sent by an electronic device includes: Based on the device address of the electronic device that sent the Bluetooth scan request, a pairing identifier associated with the device address is generated; Generate a Bluetooth scan response encapsulated with the pairing identifier.

9. An electronic device, characterized in that, The device includes: a memory, a processor, and a Bluetooth connectivity program stored in the memory and executable on the processor, the Bluetooth connectivity program being configured to implement the steps of the Bluetooth connectivity method as described in any one of claims 1 to 6.

10. A remote control, characterized in that, The remote control includes: a memory, a processor, and a Bluetooth connection program stored in the memory and executable on the processor, the Bluetooth connection program being configured to implement the steps of the Bluetooth connection method as described in claim 7 or 8.

11. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a Bluetooth connection program is stored on the storage medium. When the Bluetooth connection program is executed by a processor, it implements the steps of the Bluetooth connection method as described in any one of claims 1 to 8.