A method, electronic device and system for sharing information

By sharing Bluetooth pairing information between electronic devices and automated pairing processes, the existing cumbersome Bluetooth pairing process is solved, and more intuitive and secure connections between devices are achieved, improving user experience.

CN113676879BActive Publication Date: 2024-11-29HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011080169.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-10
Publication Date
2024-11-29
Estimated Expiration
2040-10-10

AI Technical Summary

Technical Problem

The existing Bluetooth pairing process is cumbersome, and users need to manually search and pair Bluetooth devices, especially when the device is exchanged, which affects the user experience.

Method used

Through short-distance wireless communication between electronic devices or sharing pairing information between applications, the Bluetooth pairing process is simplified. Users can share and receive pairing information of accessories devices in the device list, automatically enter the pairing mode and perform interactive authentication, avoiding users' manual operation Initialize the operation.

Benefits of technology

It significantly simplifies the pairing process between Bluetooth devices, improves user experience, saves user operation steps, and improves pairing security and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113676879B_ABST
    Figure CN113676879B_ABST
Patent Text Reader

Abstract

The present application provides a method, electronic device and system for sharing information, the method comprising: a first electronic device displays a first device list, the devices in the first device list are devices that have been paired with the first electronic device through Bluetooth, and the first device list includes accessory devices; a second electronic device displays a second device list, the devices in the second device list are devices that have been paired with the second electronic device through Bluetooth, and the second device list does not include accessory devices; when the first electronic device detects a first operation of the user, the first electronic device sends pairing information of the accessory device to the second electronic device; the second electronic device displays the accessory device in the second device list according to the pairing information; when the second electronic device detects that the user selects an accessory device in the second device list, the second electronic device performs Bluetooth pairing with the accessory device. The embodiments of the present application help to simplify the process of Bluetooth pairing between devices.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to a Chinese patent application filed with the China Patent Office on May 14, 2020, with application number 202010407526.7 and application name “Method and electronic device for quickly sharing Bluetooth pairing information”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of electronic devices, and more particularly, to a method, electronic device and system for sharing information. Background Art

[0003] Currently, users may have multiple mobile phones that need to be paired with the same Bluetooth accessory (e.g., a Bluetooth headset), or different members of a family may also want to pair with the same Bluetooth accessory (e.g., a Bluetooth headset). The Bluetooth pairing method is still a barrier for some people.

[0004] For example, when a user lends a Bluetooth headset to another user, the other user needs to turn on the Bluetooth on the mobile phone and search for Bluetooth accessories around, and then pair the mobile phone with the Bluetooth headset after finding the Bluetooth headset nearby. This makes the pairing process between the mobile phone and the Bluetooth headset more cumbersome. Summary of the invention

[0005] The present application provides a method, electronic device and system for sharing information, which helps to realize pairing information sharing between multiple devices and simplifies the process of pairing between devices.

[0006] In a first aspect, a system is provided, which includes a first electronic device, a second electronic device and an accessory device, wherein the first electronic device is used to display a first interface, the first interface includes a first device list, the devices in the first device list are devices that have been Bluetooth paired with the first electronic device, and the first device list includes the accessory device; the second electronic device is used to display a second interface, the second interface includes a second device list, the devices in the second device list are devices that have been Bluetooth paired with the second electronic device, and the second device list does not include the accessory device; the first electronic device is also used to send pairing information of the accessory device to the second electronic device when a first operation of the user on the first interface is detected; the second electronic device is also used to display the accessory device in the second device list based on the pairing information; the second electronic device is also used to perform Bluetooth pairing with the accessory device when an operation of the user selecting the accessory device in the second device list is detected.

[0007] In the embodiment of the present application, the user can share a certain accessory device in the paired list of the first electronic device with the second electronic device, and the second electronic device can obtain the pairing information of the accessory device, so that the accessory device is displayed in the paired list of the second electronic device, which is convenient for the user to pair the second electronic device with the accessory device. This simplifies the process of Bluetooth pairing between the second electronic device and the accessory device, which helps to improve the user experience.

[0008] In some possible implementations, the first electronic device may send the pairing information of the accessory device to the second electronic device through a short-range wireless communication technology.

[0009] In some possible implementations, the first electronic device may send the pairing information of the accessory device to the second electronic device through an application (App).

[0010] In combination with the first aspect, in certain implementations of the first aspect, the second electronic device is further used to display a prompt message on the second interface before Bluetooth pairing with the accessory device, and the prompt message is used to prompt that the second electronic device has not performed Bluetooth pairing with the accessory device; when the Bluetooth pairing with the accessory device is completed, the prompt message is hidden.

[0011] In the embodiment of the present application, the second electronic device can add an accessory device that has not been paired before to the second device list, and prompt the user through a prompt message that the accessory device has not been paired with the second electronic device through Bluetooth. In this way, the user can clearly understand that although the accessory device is in the paired device list of the second electronic device, it has not been paired with the second electronic device through Bluetooth.

[0012] In some possible implementations, the second electronic device is further used to display a prompt message when it detects that the user selects the accessory device in the second device list, and the prompt message is used to prompt that the accessory device is shared and obtained by the first device; the second electronic device is further used to perform Bluetooth pairing with the accessory device when it detects that the user determines to pair the second electronic device with the accessory device.

[0013] In combination with the first aspect, in certain implementations of the first aspect, the second electronic device is further used to send indication information to the accessory device before Bluetooth pairing with the accessory device, wherein the indication information is used to instruct the accessory device to enter a pairing mode; the accessory device is further used to enter the pairing mode according to the indication information.

[0014] In the embodiment of the present application, before the second electronic device performs Bluetooth pairing with the accessory device, it can instruct the accessory device to enter the pairing mode. This helps to avoid the user's initialization of the accessory device (for example, the user puts the Bluetooth headset into the headset box and long presses the function key on the headset box), thereby avoiding the user's intervention in the pairing process between the second electronic device and the accessory device, which helps to improve the user experience.

[0015] In combination with the first aspect, in certain implementations of the first aspect, the first electronic device is further used to send validity period information of the pairing information to the second electronic device in response to the first operation, and the validity period information is used to indicate the validity period of the pairing information; the second electronic device is further used to determine whether the pairing information is within the validity period before performing Bluetooth pairing with the accessory device.

[0016] In the embodiment of the present application, the first electronic device can send validity period information to the second electronic device while sending the pairing information, and the second electronic device performs Bluetooth pairing with the accessory device when the second electronic device determines that the pairing information is valid through the validity period information. This helps to improve the security of Bluetooth pairing between the second electronic device and the accessory device.

[0017] In some possible implementations, the second electronic device may send the validity period information to a cloud server, and the cloud server determines whether the pairing information is within the validity period. After determining that the pairing information is within the validity period, the cloud server may indicate to the second electronic device that the pairing information is valid.

[0018] In combination with the first aspect, in certain implementations of the first aspect, the first electronic device is further used to send a serial number corresponding to the pairing information to the second electronic device in response to the first operation; the second electronic device is further used to determine that the serial number is not in use before performing Bluetooth pairing with the accessory device.

[0019] In the embodiment of the present application, the first electronic device can send a serial number to the second electronic device while sending the pairing information, and the second electronic device performs Bluetooth pairing with the accessory device when the second electronic device determines that the serial number is not used. This helps to improve the security of Bluetooth pairing between the second electronic device and the accessory device.

[0020] In some possible implementations, the second electronic device may send the serial number to a cloud server, which determines whether the serial number is used. After determining that the serial number is not used, the cloud server may indicate to the second electronic device that the serial number is not used.

[0021] In combination with the first aspect, in certain implementations of the first aspect, the first electronic device is further used to send authentication information to the second electronic device in response to the first operation, and the authentication information is information obtained by the first device from the accessory device; the second electronic device is further used to perform interactive authentication with the accessory device based on the authentication information before Bluetooth pairing with the accessory device; and perform Bluetooth pairing with the accessory device after the interactive authentication with the accessory device is passed.

[0022] In an embodiment of the present application, when the accessory device is connected to the first electronic device for the last time and needs to be connected to the second electronic device, the pairing information and authentication information of the accessory device can be shared with the second electronic device through the first electronic device. The second electronic device can first use the authentication information sent by the first electronic device to authenticate with the accessory device. Bluetooth pairing is performed after the authentication is passed. This helps to improve the security when pairing the second electronic device and the accessory device.

[0023] At the same time, if the accessory device is a Bluetooth headset, it also avoids the need for the user to press the function key on the headset box so that the Bluetooth headset enters a pairing state before pairing with the second electronic device, saving the user's operations when using a new device to connect the Bluetooth headset and improving the user experience.

[0024] In combination with the first aspect, in some implementations of the first aspect, the first electronic device and the second electronic device are devices under the same account.

[0025] In combination with the first aspect, in some implementations of the first aspect, the pairing information includes one or more of the following information: a media access control layer MAC address of the accessory device, a device identifier or authentication information of the accessory device.

[0026] In some possible implementations, the pairing information includes a unique identifier of the accessory device, and the second electronic device can request the cloud server for the pairing information of the accessory device based on the unique identifier.

[0027] In a second aspect, a method for sharing information is provided, which is applied to an electronic device, and the method includes: displaying a first interface, the first interface including a device list, the devices in the device list are devices that have been paired with the electronic device through Bluetooth, and the device list does not include accessory devices; receiving pairing information of the accessory device sent by another electronic device; displaying the accessory device in the device list based on the pairing information; and upon detecting that a user selects the accessory device from the device list, performing Bluetooth pairing with the accessory device.

[0028] In the embodiment of the present application, a user can share an accessory device in the paired list of another electronic device with the electronic device, and the electronic device can obtain the pairing information of the accessory device, so that the accessory device is displayed in the paired list of the electronic device, which is convenient for the user to pair the electronic device with the accessory device. This simplifies the process of pairing the electronic device with the accessory device, which helps to improve the user experience.

[0029] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: before Bluetooth pairing with the accessory device, displaying a prompt message on the first interface, the prompt message being used to prompt that the electronic device has not performed Bluetooth pairing with the accessory device; and hiding the prompt message when Bluetooth pairing with the accessory device is completed.

[0030] In the embodiment of the present application, the electronic device can add an accessory device that has not been paired before to the device list, and prompt the user through a prompt message that the accessory device has not been paired with the electronic device through Bluetooth. In this way, the user can clearly understand that although the accessory device is in the paired device list of the electronic device, it has not been paired with the electronic device through Bluetooth.

[0031] In combination with the second aspect, in some implementations of the second aspect, before the electronic device performs Bluetooth pairing with the accessory device, the method further includes: sending indication information to the accessory device, where the indication information is used to instruct the accessory device to enter a pairing mode.

[0032] In the embodiment of the present application, before the electronic device performs Bluetooth pairing with the accessory device, it can instruct the accessory device to enter the pairing mode. This helps to avoid the process of the user initializing the accessory device (for example, the user puts the Bluetooth headset into the headset box and long presses the function key on the headset box), thereby avoiding the user's intervention in the process of pairing the electronic device and the accessory device, which helps to improve the user experience.

[0033] In combination with the second aspect, in certain implementations of the second aspect, before the electronic device performs Bluetooth pairing with the accessory device, the method further includes: receiving validity information of the pairing information sent by the other electronic device, the validity information being used to indicate the validity period of the pairing information; and the electronic device determining that the pairing information is within the validity period.

[0034] In the embodiment of the present application, another electronic device can send validity period information to the electronic device while sending the pairing information, and the electronic device performs Bluetooth pairing with the accessory device when the electronic device determines that the pairing information is valid through the validity period information. This helps to improve the security of Bluetooth pairing between the electronic device and the accessory device.

[0035] In combination with the second aspect, in some implementations of the second aspect, before the electronic device performs Bluetooth pairing with the accessory device, the method further includes: receiving a serial number corresponding to the pairing information sent by the other electronic device; and determining that the serial number is not in use.

[0036] In the embodiment of the present application, another electronic device can send a serial number to the electronic device while sending the pairing information, and when the electronic device determines that the serial number is not used, it performs Bluetooth pairing with the accessory device. This helps to improve the security of Bluetooth pairing between the electronic device and the accessory device.

[0037] In combination with the second aspect, in certain implementations of the second aspect, before the electronic device performs Bluetooth pairing with the accessory device, the method also includes: receiving authentication information sent by the other electronic device, the authentication information being information obtained by the other electronic device from the accessory device; performing interactive authentication with the accessory device based on the authentication information; wherein, the electronic device performs Bluetooth pairing with the accessory device, including: after the electronic device and the accessory device pass the interactive authentication, the electronic device performs Bluetooth pairing with the accessory device.

[0038] In an embodiment of the present application, when an accessory device is connected to another electronic device last time and needs to be connected to an electronic device, the pairing information and authentication information of the accessory device can be shared with the electronic device through the other electronic device. The electronic device can first use the authentication information sent by the other electronic device to authenticate with the accessory device. Bluetooth pairing is performed after the authentication is passed. This helps to improve the security when pairing the electronic device and the accessory device.

[0039] At the same time, if the accessory device is a Bluetooth headset, it also avoids the need for the user to press the function key on the headset box so that the Bluetooth headset enters a pairing state before pairing with the second electronic device, saving the user's operations when using a new device to connect the Bluetooth headset and improving the user experience.

[0040] In combination with the second aspect, in some implementations of the second aspect, the electronic device and the other electronic device are devices under the same account.

[0041] In combination with the second aspect, in some implementations of the second aspect, the pairing information includes one or more of the following information: a media access control layer MAC address of the accessory device, a device identifier or authentication information of the accessory device.

[0042] In a third aspect, a method for sharing information is provided, which is applied to an electronic device, and the method comprises: displaying a first interface, the first interface including a first device list, the devices in the first device list are devices that have been paired with the electronic device through Bluetooth, and the first device list includes accessory devices; in response to detecting a first operation of the user on the first interface, sending pairing information of the accessory device to the other electronic device, so that the other electronic device displays the accessory device in a second device list, and the devices in the second device list are devices that have been paired with the other electronic device through Bluetooth.

[0043] In combination with the third aspect, in certain implementations of the third aspect, the method further includes: in response to the first operation, sending validity information of the pairing information to the other electronic device, the validity information being used to indicate the validity period of the pairing information, wherein within the validity period, the other electronic device can perform Bluetooth pairing with the accessory device.

[0044] In combination with the third aspect, in certain implementations of the third aspect, the method further includes: in response to the first operation, sending a serial number corresponding to the pairing information to the other electronic device, wherein when the serial number is not in use, the other electronic device can perform Bluetooth pairing with the accessory device.

[0045] In combination with the third aspect, in certain implementations of the third aspect, the method further includes: in response to the first operation, sending authentication information to the other electronic device, the authentication information being information obtained by the electronic device from the accessory device, and the authentication information being used for interactive authentication between the other electronic device and the accessory device.

[0046] In combination with the third aspect, in certain implementations of the third aspect, the electronic device and the other electronic device are devices under the same account.

[0047] In a fourth aspect, a chip is provided, which is included in an electronic device, and the chip also includes one or more processors, one or more memories and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by one or more processors, enable the chip to execute any method described in the second aspect; or, when the instructions are executed by one or more processors, enable the chip to execute any method described in the third aspect.

[0048] In a fifth aspect, the present application provides an electronic device comprising: one or more sensors, one or more processors, one or more memories, and one or more computer programs; the one or more computer programs are stored in the memory, and when the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in any one of the second aspects; or, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in any one of the third aspects.

[0049] In a sixth aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, causes the electronic device to execute a method as described in any one of the second aspects; or, when executed on an electronic device, causes the electronic device to execute a method as described in any one of the third aspects.

[0050] In the seventh aspect, the present application provides a computer program product, which, when the computer program product is run on an electronic device, enables the electronic device to execute the method as described in any one of the second aspects; or, when the computer program product is run on an electronic device, enables the electronic device to execute the method as described in any one of the third aspects.

[0051] It can be understood that the above-mentioned systems, chips, electronic devices, computer storage media and computer program products are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a structural diagram of an electronic device.

[0053] Figure 2 It is a Bluetooth protocol framework provided in an embodiment of the present application.

[0054] Figure 3 It is a schematic diagram of the structure of the Bluetooth device provided in the embodiment of the present application.

[0055] Figure 4 It is a set of graphical user interfaces provided by the embodiments of the present application.

[0056] Figure 5 This is another set of graphical user interfaces provided by an embodiment of the present application.

[0057] Figure 6 This is another set of graphical user interfaces provided by an embodiment of the present application.

[0058] Figure 7 It is a schematic flowchart of the method for sharing information provided in an embodiment of the present application.

[0059] Figure 8 It is a schematic diagram of the process of establishing a connection between mobile phone A and a Bluetooth device provided in an embodiment of the present application.

[0060] Fig. 9 It is a schematic diagram of the process of sharing the Bluetooth device to mobile phone B via mobile phone A provided in an embodiment of the present application.

[0061] Fig.10 This is another schematic flowchart of the method for sharing information provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0063] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0064] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer, etc. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer.

[0065] For example, Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195.

[0066] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0067] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units may be independent components or integrated into one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. Among them, the controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. In some other embodiments, a memory may also be set in the processor 110 for storing instructions and data. Exemplarily, the memory in the processor 110 may be a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 101 in processing data or executing instructions.

[0068] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface and / or a USB interface, etc. Among them, the USB interface 130 is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transmit data between the electronic device 101 and a peripheral device. The USB interface 130 can also be used to connect headphones to play audio through the headphones.

[0069] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0070] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0071] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193 and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0072] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.

[0073] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0074] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0075] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0076] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0077] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (miniLED), MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194.

[0078] In some embodiments of the present application, when the display panel is made of materials such as OLED, AMOLED, FLED, etc., the above Figure 1 The display screen 194 in the embodiment can be bent. Here, the display screen 194 can be bent, which means that the display screen can be bent to any angle at any position and can be kept at the angle. For example, the display screen 194 can be folded in half from the middle to the left or right. It can also be folded in half from the middle to the top or bottom.

[0079] The display screen 194 of the electronic device 100 can be a flexible screen. At present, the flexible screen has attracted much attention for its unique characteristics and huge potential. Compared with traditional screens, flexible screens have the characteristics of strong flexibility and bendability, which can provide users with a new interaction method based on bendable characteristics, and can meet users' more needs for electronic devices. For electronic devices equipped with a foldable display screen, the foldable display screen on the electronic device can be switched between a small screen in a folded form and a large screen in an unfolded form at any time. Therefore, users use the split-screen function on electronic devices equipped with a foldable display screen more and more frequently.

[0080] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.

[0081] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0082] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include one or more cameras 193.

[0083] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0084] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0085] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0086] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0087] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can enable the electronic device 101 to perform the Bluetooth pairing connection method provided in some embodiments of the present application, as well as various applications and data processing, by running the above instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, a flash memory component, a universal flash storage (UFS), etc. In some embodiments, the processor 110 can enable the electronic device 101 to perform the Bluetooth pairing connection method provided in the embodiment of the present application, as well as other applications and data processing by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor 110. The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0088] The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.

[0089] Among them, the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0090] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., X, Y, and Z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0091] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0092] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0093] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0094] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0095] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0096] like Figure 2 As shown, an embodiment of the present application provides a Bluetooth protocol framework, including but not limited to a host protocol stack, a host controller interface (HCI), and a controller.

[0097] Among them, the Host protocol stack defines multiple applications (profiles) and core protocols (protocols) in the Bluetooth framework. Each profile defines its own corresponding message format and application rules. Profiles are Bluetooth services (applications). In order to achieve interoperability between different devices on different platforms, the Bluetooth protocol has formulated specifications for various possible and universal application scenarios, such as the Bluetooth audio transmission model agreement (advanced audio distribution profile, A2DP), Bluetooth hands-free profile (hands-free profile, HFP), etc.

[0098] The core protocol includes but is not limited to the basic Bluetooth service protocol (service discovery protocol, SDP), logical link control and adaptation protocol (logical link control and adaptation protocol, L2CAP), etc. The core protocol is indispensable in the Bluetooth protocol stack.

[0099] Among them, HCI provides a unified interface for the upper layer protocol to enter the link manager and a unified way to enter the baseband. There will be several transmission layers between the host core protocol stack and the controller. These transmission layers are transparent and complete the task of transmitting data. The Bluetooth Special Interest Group (SIG) specifies four physical bus methods for connecting to hardware, namely four HCI transmission layers: USB, RS232, UART and PC card.

[0100] Among them, the controller defines the underlying hardware part, including radio frequency (RF), baseband (BB) and link management (LM). The RF layer filters and transmits data bit streams through microwaves in the 2.4GHz unlicensed ISM band, and mainly defines the conditions that the Bluetooth transceiver needs to meet for normal operation in this band. The baseband is responsible for frequency hopping and the transmission of Bluetooth data and information frames. The link management is responsible for connecting, establishing and dismantling links and performing security control. The link management (LM) layer is the link management layer protocol of the Bluetooth protocol stack, responsible for translating upper-layer HCI commands into operations that the baseband can accept, establishing asynchronous links (ACL) and synchronous links (SCO), and putting Bluetooth devices into energy-saving working modes. The link control (LC) layer is responsible for responding to upper-layer LM commands (such as LM commands that execute functions such as establishing a transmission link for data packets and maintaining links) during the transmission of a batch of data packets.

[0101] The method described in the embodiment of the present application is as follows: Figure 1 Part of the content implemented by the wireless communication module 160 of the electronic device 100 shown may be executed by a Bluetooth module or a Bluetooth chip.

[0102] Figure 3 The structural diagram of the Bluetooth device 200 provided in the embodiment of the present application is exemplarily shown.

[0103] The following is a detailed description of the embodiment using the Bluetooth device 200 as an example. It should be understood that: Figure 3The Bluetooth device 200 shown is only an example, and the Bluetooth device 200 may have more Figure 3 More or fewer components shown in the figure may be combined with two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0104] like Figure 3 As shown, the Bluetooth device 200 may include: a processor 201, a memory 202, a Bluetooth communication module 203, an antenna 204, a power switch 205, a USB communication processing module 206, and an audio module 207. Among them:

[0105] The processor 201 can be used to read and execute computer-readable instructions. In a specific implementation, the processor 201 may mainly include a controller, an arithmetic unit, and a register. Among them, the controller is mainly responsible for decoding instructions and sending control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for saving register operands and intermediate operation results temporarily stored during the execution of instructions. In a specific implementation, the hardware architecture of the processor 201 may be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, etc.

[0106] In some embodiments, the processor 201 may be used to parse signals received by the Bluetooth communication processing module 203, such as a pairing mode modification request sent by the electronic device 100, etc. The processor 201 may be used to perform corresponding processing operations according to the parsing results, such as generating a pairing mode modification response, etc.

[0107] The memory 202 is coupled to the processor 201 and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 202 may store an operating system, such as uCOS, VxWorks, RTLinux, and other embedded operating systems. The memory 202 may also store a communication program, which may be used to communicate with the electronic device 100, one or more servers, or other devices.

[0108] The Bluetooth communication module 203 may include a classic Bluetooth (BT) module and a Bluetooth low energy (BLE) module.

[0109] In some embodiments, the Bluetooth communication module 203 can monitor signals transmitted by other devices (such as the electronic device 100), such as detection requests, scanning signals, etc., and can send response signals, scanning responses, etc., so that other devices (such as the electronic device 100) can discover the Bluetooth device 200, and establish wireless communication connections with other devices (such as the electronic device 100), and communicate with other devices (such as the electronic device 100) via Bluetooth.

[0110] In other embodiments, the Bluetooth communication module 203 can also transmit signals, such as broadcasting BLE signals, so that other devices (such as electronic device 100) can discover the Bluetooth device 200, establish wireless communication connections with other devices (such as electronic device 100), and communicate with other devices (such as electronic device 100) via Bluetooth.

[0111] The wireless communication function of the Bluetooth device 200 can be implemented through the antenna 204, the Bluetooth communication module 203, the modem processor, etc.

[0112] The antenna 204 can be used to transmit and receive electromagnetic wave signals. Each antenna in the Bluetooth device 200 can be used to cover a single or multiple communication frequency bands.

[0113] In some embodiments, the Bluetooth communication module 203 may have one or more antennas.

[0114] The power switch 205 may be used to control the supply of power to the Bluetooth device 200 .

[0115] The USB communication processing module 206 may be used to communicate with other devices via a USB interface (not shown).

[0116] The audio module 26 can be used to output audio signals through the audio output interface, so that the Bluetooth device 200 can support audio playback. The audio module can also be used to receive audio data through the audio input interface. The Bluetooth device 200 can be a media playback device such as a Bluetooth headset.

[0117] In some embodiments, the Bluetooth device 200 may further include a display screen (not shown), wherein the display screen may be used to display images, prompt information, etc. The display screen may be an LCD display screen, an OLED display screen, an AMOLED display screen, a FLED display screen, a QLED display screen, and the like.

[0118] In some embodiments, the Bluetooth device 200 may also include a serial interface such as an RS-232 interface. The serial interface may be connected to other devices, such as an audio external player such as a speaker, so that the Bluetooth device 200 and the audio external player cooperate to play audio and video.

[0119] It is understandable that Figure 3The illustrated structure does not constitute a specific limitation on the Bluetooth device 200. In other embodiments of the present application, the Bluetooth device 200 may include more or fewer components than those shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0120] In the method described in the embodiments of the present application, the Bluetooth protocol framework used by the Bluetooth device can refer to the above Figure 2 As shown, no further details are given here.

[0121] Before introducing the embodiments of the present application, several technical terms in the embodiments of the present application are first introduced.

[0122] Virtual pairing: The device appears to the user as "paired", but from the perspective of the Bluetooth protocol, it is actually unpaired. Devices in a virtual pairing state can trigger pairing protocol interaction when used for the first time to complete physical pairing.

[0123] Physical pairing: This is the normal pairing state, and also includes the Bluetooth protocol interaction process to complete the physical pairing action.

[0124] Silent pairing: Conventional pairing processes often require user operation and manual confirmation. Silent pairing means that no user operation is required during the entire pairing process. In addition to increasing the time corresponding to the pairing protocol interaction, other users will not feel it.

[0125] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 1 and Figure 2 A mobile phone having the structure shown, and Figure 3 Taking the Bluetooth headset shown as an example, the method for sharing Bluetooth pairing information provided in the embodiment of the present application is specifically described in combination with the accompanying drawings.

[0126] Figure 4 A set of graphical user interfaces (GUIs) provided by an embodiment of the present application is shown.

[0127] See also Figure 4 As shown in (a) of FIG. 1 , the GUI is a mobile phone desktop. The mobile phone desktop includes icons of multiple applications, including a setting icon 401. When the mobile phone detects that the user clicks the icon 401 on the desktop, the setting mobile phone related functions can be started, and the display is as follows: Figure 4 GUI shown in (b) in .

[0128] See also Figure 4The GUI shown in (b) is the setting interface of the mobile phone. The GUI includes multiple function options, including wireless and network, device connection, desktop and wallpaper and sound, etc. Among them, the user can set up functions such as Bluetooth, NFC and mobile phone screen projection through the device connection function. When the mobile phone detects that the user clicks the device connection function 402, it will display the following Figure 4 GUI shown in (c) in FIG.

[0129] See also Figure 4 The GUI shown in (c) is the device connection setting interface of the mobile phone. The GUI includes multiple function options under the device connection, and the multiple function options include device connection options such as Bluetooth, NFC, Huawei beam, Huawei share, and mobile phone screen projection. When the mobile phone detects that the user clicks the Bluetooth function 403, the following is displayed Figure 4 GUI shown in (d).

[0130] join Figure 4 The GUI shown in (d) is a Bluetooth setting interface. The Bluetooth device interface includes a Bluetooth start control 404, a device name "Mobile Phone A" and other functions. When the mobile phone detects that the user clicks the control 404, the mobile phone turns on the Bluetooth function and can display Figure 4 As shown in (e) in .

[0131] See also Figure 4 The GUI shown in (e) in the figure is another interface of Bluetooth settings. This interface can display paired devices and available devices, where paired devices can be Bluetooth devices that the mobile phone has previously connected to, and available devices can be Bluetooth devices that the mobile phone has searched for. Among them, the paired devices include Bluetooth devices named "VW Radio", "Bluetooth Headset" and "JBL GO". When the mobile phone detects that the user clicks on control 405, it displays the following Figure 4 GUI shown in (f) in .

[0132] See also Figure 4The GUI shown in (f) is the setting interface of the Bluetooth device with the device name of "Bluetooth Headset". The setting interface includes the function settings of the Bluetooth device with the device name of "Bluetooth Headset", including function options such as call audio, media audio and sharing with other devices. At this time, after mobile phone B detects that the user has turned on the Bluetooth function, it can display "paired devices" and "available devices". The "paired devices" can display the Bluetooth devices that mobile phone B has been connected to, and the "available devices" can display the Bluetooth devices that have not been connected to mobile phone B but are currently searched. Among them, "paired devices" include smart speakers (mobile phone B has previously paired with the smart speaker through Bluetooth). When mobile phone A detects that the user clicks on control 406, it can display the following: Figure 4 GUI shown in (g).

[0133] See also Figure 4 The GUI shown in (g) in the figure is another setting interface of a Bluetooth device with a device name of “Bluetooth Headset”. The setting interface displays devices that can share the “Bluetooth Headset” with mobile phone A. The shareable devices include devices with device names of “iPad” and “Mobile Phone B”. When mobile phone A detects that the user clicks on the operation of device 407 with a device name of “Mobile Phone B”, mobile phone A can send pairing information about the “Bluetooth Headset” to mobile phone B (for example, the media access control (MAC) address, device name, and device type of the “Bluetooth Headset”). After receiving the pairing information about the “Bluetooth Headset” sent by mobile phone A, mobile phone B can display the Bluetooth device with a device name of “Bluetooth Headset” in the “Paired Devices” of the Bluetooth setting interface. An icon 408 is included near the device name “Bluetooth Headset”, and the icon 408 can be used to prompt that mobile phone B and the Bluetooth headset are only virtually paired and physical pairing has not yet been achieved.

[0134] It should also be understood that if the pairing information includes the device name "Bluetooth headset", then mobile phone B can display the device name of the device in "paired devices". If the pairing information includes the device type "headphone", then mobile phone B can also display the icon of the headset near the device name.

[0135] In one embodiment, the list of shareable devices on mobile phone A displays other devices under the first account except mobile phone A, wherein the account logged in on mobile phone A is the first account. Exemplarily, the account logged in on mobile phone A is Huawei account 1, and the devices under Huawei account 1 include mobile phone A and mobile phone B. Then, when mobile phone A detects that the user clicks on control 406, mobile phone A can display the information of mobile phone B in the list of shareable devices.

[0136] See also Figure 4As shown in (h), the GUI is another Bluetooth setting interface of mobile phone B. When mobile phone B detects that the user clicks on the Bluetooth device named "Bluetooth headset", the mobile phone can display the following Figure 4 The GUI shown in (i) in FIG.

[0137] See also Figure 4 As shown in (i) in the figure, the GUI is another Bluetooth setting interface of mobile phone B. When mobile phone B detects that the user clicks on the Bluetooth device named "Bluetooth headset", the mobile phone can display a reminder box 409, wherein the reminder box 409 includes a prompt message "The Bluetooth headset is obtained through the sharing of mobile phone A. Do you need to pair with the Bluetooth headset?" When mobile phone B detects that the user clicks the confirmation control, the mobile phone can display the following Figure 4 GUI shown in (j) in .

[0138] See also Figure 4 As shown in (j) in the figure, the GUI is another Bluetooth setting interface of mobile phone B. When mobile phone B detects that the user clicks the confirmation control, mobile phone B and the Bluetooth device named "Bluetooth headset" can be silently paired. After that, the user can use the Bluetooth headset to answer calls from mobile phone B or use the Bluetooth headset to play audio on mobile phone B, etc.

[0139] It should be understood that when mobile phone B and the Bluetooth device named "Bluetooth headset" complete silent pairing, mobile phone B has completed physical pairing with the "Bluetooth headset".

[0140] In the embodiment of the present application, mobile phone A can find mobile phone B by scanning surrounding devices, and send the pairing information of the paired devices on mobile phone A to mobile phone B through short-range communication. This avoids the need for the user to perform corresponding operations on the Bluetooth device, so that the Bluetooth device can only be connected to mobile phone A by Bluetooth after entering a pairing state, saving the user's operations when using a new device to connect to a Bluetooth device, and improving the user experience.

[0141] Figure 5 Another set of GUIs provided by an embodiment of the present application is shown.

[0142] See also Figure 5 The GUI shown in (a) in the figure is another display interface for Bluetooth settings. The display interface can display paired devices and available devices, where the paired devices can be Bluetooth devices that the mobile phone has previously connected to, and the available devices can be Bluetooth devices that the mobile phone has searched for. Among them, the paired devices include Bluetooth devices named "VW Radio", "Bluetooth Headset" and "JBL GO". When mobile phone A detects a long press operation by the user on the display interface, it can display the following information: Figure 5 GUI shown in (b) in .

[0143] In one embodiment, mobile phone A may also display the following information when detecting a user's long press operation on a paired device: Figure 5 GUI shown in (b) in .

[0144] See also Figure 5 The GUI shown in (b) is another display interface for Bluetooth settings. The display interface includes a reminder box 501, wherein the reminder box 501 includes a prompt message, and the prompt message is used to prompt the user to "select the Bluetooth device to be shared." The user can select the Bluetooth device to be shared. When mobile phone A detects that the user has selected Bluetooth devices named "VW Radio", "Bluetooth Headset" and "JBL GO" and clicks on the control 502, the following may be displayed: Figure 5 GUI shown in (c) in FIG.

[0145] See also Figure 5 The GUI shown in (c) is another display interface of Bluetooth settings. The display interface includes a reminder box 503, wherein the reminder box 503 includes prompt information, and the prompt information is used to prompt the user to "please select a sharing method". The sharing methods include email sharing, information sharing, WeChat sharing, Hishare sharing, etc. When mobile phone A detects that the user clicks on the WeChat sharing control 504, it can display the following Figure 5 GUI shown in (d).

[0146] See also Figure 5 The GUI shown in (d) is another display interface for Bluetooth settings. The display interface includes a selection list of sending objects. Among them, the selection list includes brother, sister, mother and father. Before the user chooses to share the pairing information of "VW Radio", "Bluetooth Headset" and "JBL GO" with the contact brother, the Bluetooth display interface of mobile phone B displays "Paired Devices" and "Available Devices". The Bluetooth devices that mobile phone B has been connected to can be displayed in "Paired Devices", and the Bluetooth devices that have not been connected between mobile phone B and are currently searched can be displayed in "Available Devices". Among them, "Paired Devices" include smart speakers (mobile phone B has previously performed Bluetooth pairing with smart speakers).

[0147] See also Figure 5The GUI shown in (e) is another display interface for Bluetooth settings. When the user selects his younger brother as the object to which the pairing information of "VW Radio", "Bluetooth Headset" and "JBL GO" is sent, mobile phone A can prompt the user that the corresponding pairing information has been sent. At the same time, after receiving the corresponding pairing information, mobile phone B can display devices with device names of "Smart Speaker", "VW Radio", "Bluetooth Headset" and "JBL GO" in "Paired Devices". Among them, icon 408 can be displayed near the devices with device names of "VW Radio", "Bluetooth Headset" and "JBL GO", and the icon 408 can be used to prompt that mobile phone B and the devices with device names of "VW Radio", "Bluetooth Headset" and "JBL GO" are only virtually paired, and physical pairing has not yet been achieved.

[0148] It should be understood that after receiving the pairing information sent by mobile phone A, mobile phone B can parse the pairing information. Exemplarily, mobile phone B parses the pairing information including the MAC address and device name (for example, "VW Radio", "Bluetooth Headset" and "JBL GO") and adds the device names of these three devices to "paired devices"; or, after mobile phone B detects that the user clicks on the received pairing information in the WeChat application of mobile phone B, mobile phone B can display the corresponding device name in "paired devices".

[0149] It should also be understood that although mobile phone B displays Bluetooth devices named "VWRadio", "Bluetooth Headset" and "JBL GO" in the "Paired Devices" of the Bluetooth setting interface, at this time, mobile phone B and "VW Radio", "Bluetooth Headset" and "JBL GO" are only virtually paired and have not yet been physically paired. When mobile phone B detects that the user has clicked on a Bluetooth device and established a Bluetooth connection with the Bluetooth device, mobile phone B has completed the physical pairing of the device.

[0150] In the embodiment of the present application, mobile phone A can send the pairing information of the paired device on mobile phone A to mobile phone B through email, social application, short message, etc. This avoids the need for the user to perform corresponding operations on the Bluetooth device, so that the Bluetooth device can only be connected to mobile phone A by Bluetooth after entering the pairing state, saving the user's operations when using a new device to connect to the Bluetooth device, and improving the user experience.

[0151] Figure 6 Another set of GUIs provided by an embodiment of the present application is shown.

[0152] See also Figure 6 The GUI shown in (a) is another display interface of Bluetooth settings. When mobile phone A detects that the user clicks the sharing control, it can display the following Figure 6 GUI shown in (b) in .

[0153] See also Figure 6 The GUI shown in (b) is another display interface of the tooth setting. The display interface includes the QR code information generated by mobile phone A, and mobile phone A can prompt the user "Please use the device to scan the QR code, and data synchronization has been performed."

[0154] See also Figure 6 The GUI shown in (c) is the display interface of the Bluetooth settings of mobile phone B. Figure 6 Before the QR code shown in (b) is displayed, the Bluetooth display interface of mobile phone B displays "paired devices" and "available devices". "Paired devices" can display Bluetooth devices that mobile phone B has connected to before, and "available devices" can display Bluetooth devices that mobile phone B has not connected to but is currently searching for. Among them, "paired devices" include smart speakers (mobile phone B has previously paired with smart speakers through Bluetooth).

[0155] On mobile phone B, scan Figure 6 After the QR code shown in (b) in the figure, the following can be displayed: Figure 6 GUI shown in (d).

[0156] See also Figure 6 The GUI shown in (d) in FIG. 1 is another display interface of the Bluetooth settings of mobile phone B. After mobile phone B scans the QR code, mobile phone B can obtain the pairing information of the corresponding device sent by mobile phone A. Mobile phone B displays devices with device names of "Smart Speaker", "VW Radio", "Bluetooth Headset" and "JBL GO" in the paired device list, wherein icon 408 can be displayed near the devices with device names of "VW Radio", "Bluetooth Headset" and "JBL GO", and icon 408 can be used to prompt that mobile phone B and the devices with device names of "VW Radio", "Bluetooth Headset" and "JBL GO" are only virtually paired, and physical pairing has not yet been achieved.

[0157] In the embodiment of the present application, mobile phone A can generate a QR code with the pairing information of the paired device. When mobile phone B scans the QR code, it can obtain the pairing information of the paired device on mobile phone A. This avoids the need for the user to perform corresponding operations on the Bluetooth device, so that the Bluetooth device can only be connected to mobile phone A by Bluetooth after entering a pairing state, saving the user's operations when using a new device to connect to the Bluetooth device, and improving the user experience.

[0158] Figure 7A schematic flow chart of a method for sharing information provided in an embodiment of the present application is shown. The method may include a data sharing process at a sending end, and a data receiving and data validation process at a receiving end.

[0159] The data sharing process at the sending end includes device selection, data generation, and sharing and sending. The device selection process can be completed on the display interface of the sending end (for example, mobile phone A). For example, Figure 5 As shown in (b) of FIG. 5 , when mobile phone A detects that the user has long pressed a paired device, the mobile phone may display a reminder box 501. The user may select a device through the reminder box 501.

[0160] In one embodiment, only some of the paired devices displayed on mobile phone A can be shared, and some paired devices may not be allowed to be shared. In this case, the devices that are not allowed to be shared may not appear in the reminder box 501, or the devices that are not allowed to be shared may appear but mobile phone A can prompt that the device is not allowed to be shared.

[0161] The data generation process can be after the user selects the Bluetooth device to be shared, before selecting the sharing method and confirming the sharing transmission, based on these Bluetooth devices to be shared (such as Figure 5 The pairing information of "VW Radio", "Bluetooth Headset", "JBL GO") in (b) generates the pairing information that needs to be sent through sharing.

[0162] It should be understood that the data generation process may also be triggered before the user selects a sharing method and sends the data to the receiving end.

[0163] It should also be understood that the pairing information generated during the data generation process may be encrypted or unencrypted.

[0164] The sharing and sending process may be to send the pairing information to the receiving end through various sharing methods supported by the sending end, including short-range wireless communication (e.g., Bluetooth, Wi-Fi, NFC), email, social application, short message and other sending methods.

[0165] In one embodiment, when sending pairing information, the sending end may specify the receiving end or may not specify the receiving end.

[0166] In one embodiment, the sending end may add anti-secondary use information to the pairing information to improve security. Exemplarily, the sending end may carry a serial number in the sent pairing information, and the serial number may serve as a one-time "anti-counterfeiting mark." For example, when mobile phone B uses the pairing information to pair with a Bluetooth headset, if the Bluetooth headset finds that the serial number has not been used, the Bluetooth connection of mobile phone B will be received by the Bluetooth headset; when mobile phone C uses the pairing information to pair with a Bluetooth headset, if the Bluetooth headset finds that the serial number has been used, the Bluetooth connection of mobile phone C will be rejected by the Bluetooth headset.

[0167] Alternatively, before pairing with the Bluetooth headset, mobile phone B may send the serial number to the server, and the server may verify whether the serial number has been used. If the server indicates to mobile phone B that the serial number has not been used, mobile phone B may perform silent pairing with the Bluetooth headset; otherwise, mobile phone B may not perform silent pairing with the Bluetooth headset.

[0168] In one embodiment, the transmitting device may also add validity information of the pairing information to the pairing information to improve security performance. For example, if the validity information indicates that the pairing information is valid before a certain time, then when the receiving end receives the pairing information, the validity information may be sent to the server. If the server indicates that the pairing information is before the time, then the receiving end may use the pairing information to complete silent pairing with the Bluetooth headset. Otherwise, the receiving end may not perform silent pairing with the Bluetooth headset.

[0169] The data receiving process of the receiving end includes sharing reception, data analysis and information generation. Among them, sharing reception means that the receiving end receives the pairing information sent by the sending end through various sharing methods.

[0170] The result of data analysis is to obtain pairing information. For example, Figure 4 In (g), when mobile phone B receives the pairing information sent by mobile phone A, mobile phone B can trigger data parsing. For example, Figure 5 In (e), after mobile phone B detects that the user clicks on the received pairing information in the WeChat application of mobile phone B, mobile phone B can trigger data analysis.

[0171] In order to improve security performance, the receiving end may also destroy the pairing information after parsing the data. For example, the pairing information carries validity information, and the receiving end may destroy the pairing information after the pairing information exceeds the validity period.

[0172] Information generation means that the receiving end adds the corresponding device to the paired device list (or Figure 4For example, if mobile phone B obtains the device name of the Bluetooth device as "Bluetooth headset" through data analysis, and mobile phone B obtains the device type of the Bluetooth device through data analysis, then mobile phone B can display the device name of the Bluetooth device shared by mobile phone A, "Bluetooth headset", and the icon of the Bluetooth device in "Paired devices".

[0173] In addition, before mobile phone B is paired with the Bluetooth device shared by mobile phone A, the newly added device in "paired devices" by mobile phone B can have a special mark, such as marking it as a virtually paired device after the device name "Bluetooth headset".

[0174] In one embodiment, mobile phone B can also inform the user of the result of its addition through the display interface. For example, mobile phone B can display "Bluetooth headset" in "paired devices" and prompt the user through a reminder box that "the Bluetooth device has been successfully added to the paired devices for you, click to complete the pairing."

[0175] The data validation process of the receiving end may include service triggering and silent pairing. The service triggering condition may be that the receiving end detects the user clicking on the Bluetooth device shared by mobile phone A.

[0176] Silent pairing is the process of achieving "virtual pairing" to "physical pairing". When the silent pairing scenario is not met (such as the pairing information has expired), the receiver and the Bluetooth device will automatically switch to regular pairing when pairing, such as asking the user to enter a password or press a button on the Bluetooth device.

[0177] In an embodiment of the present application, in order to ensure the reliability of data from the sending end to the receiving end, the sending end and the receiving end can use a confidential dedicated channel to send and receive pairing information. For example, both the sending end and the receiving end are installed with a dedicated application. This can establish an immediate communication channel through a dedicated application, and the pairing information can be destroyed in time after use, without the need to be saved in the memory of the receiving end, which has relatively high security. For another example, the sending end can send pairing information to the receiving end through transmission channels such as WeChat, email, etc. The receiving end needs to use a dedicated application to parse the pairing information.

[0178] In one embodiment, the sending end may encrypt the sent pairing information. Only the receiving end that knows the password can decrypt and obtain the pairing information. For example, Figure 4As shown in (g), when mobile phone A detects that the user clicks on mobile phone B, mobile phone A can prompt the user to share the password 1234. After mobile phone B receives the encrypted pairing information sent by mobile phone A, mobile phone B can prompt the user to enter the decryption password. If mobile phone B detects that the user enters the correct password, mobile phone B can decrypt the encrypted pairing information to obtain the pairing information.

[0179] In one embodiment, if Figure 6 As shown in (c), the QR code generated by mobile phone A includes the device ID of mobile phone A, the pairing information encrypted with the private key of mobile phone A, and the validity period of the pairing information. After mobile phone B obtains the QR code by scanning, mobile phone B can first determine whether the pairing information is within the validity period. If it is outside the validity period, the user can be prompted that the QR code is invalid. If it is within the validity period, mobile phone B can use the device ID of mobile phone A to request the public key of mobile phone A from the cloud server (if mobile phone B has previously saved the public key of mobile phone A, it is not necessary to request the public key of mobile phone A from the cloud server again). After mobile phone B obtains the public key of mobile phone A from the cloud server, it can use the public key of mobile phone A to decrypt the pairing information encrypted by the private key of mobile phone A, thereby obtaining the pairing information.

[0180] Alternatively, the QR code generated by mobile phone A includes the device ID of the Bluetooth headset, the pairing information encrypted with the private key of the Bluetooth headset, and the validity period of the pairing information. After mobile phone B obtains the QR code by scanning, mobile phone B can first determine whether the pairing information is within the validity period. If it is outside the validity period, the user can be prompted that the QR code is invalid. If it is within the validity period, mobile phone B can use the device ID of the Bluetooth headset to request the public key of the Bluetooth headset from the cloud server. After mobile phone B obtains the public key of the Bluetooth headset from the cloud server, it can use the public key of the Bluetooth headset to decrypt the pairing information encrypted with the private key of the Bluetooth headset, thereby obtaining the pairing information.

[0181] Figure 7 FIG. 1 is a schematic flow chart of a method for sharing pairing information in an embodiment of the present application. Figure 7 As shown, the method can be performed by mobile phone A, mobile phone B and Bluetooth headset. Figure 7 As shown, the method 700 includes:

[0182] S701, mobile phone A detects that a user shares a Bluetooth headset with mobile phone B.

[0183] For example, see Figure 4 As shown in (h), when mobile phone A detects that the user clicks on a device named "mobile phone B", the pairing information of the Bluetooth headset can be sent to mobile phone B.

[0184] S702, mobile phone A sends pairing information of the Bluetooth headset to mobile phone B.

[0185] In one embodiment, the pairing information of the Bluetooth headset may include identification information of the Bluetooth headset.

[0186] For example, if the pairing information sent by mobile phone A to mobile phone B includes the serial number of the Bluetooth headset, then after obtaining the serial number of the Bluetooth headset, mobile phone A can request the pairing information of the Bluetooth headset (for example, MAC address, device name, and device type, etc.) from the cloud server through the serial number. Alternatively, if the identification information sent by mobile phone A to mobile phone B includes the MAC address of the Bluetooth headset, then after obtaining the MAC address of the Bluetooth headset, mobile phone A can request other pairing information of the Bluetooth headset (for example, device name and device type, etc.) from the cloud server through the MAC address.

[0187] In one embodiment, the pairing information includes the MAC address, device name, and device type of the Bluetooth headset, so mobile phone B does not need to query the cloud server for other pairing information of the Bluetooth headset.

[0188] Mobile phone A can also encrypt the pairing information, and mobile phone B can prompt the user to enter a password or scan a QR code to decrypt the encrypted pairing information, thereby obtaining the pairing information. It should be understood that the process of mobile phone B prompting the user to enter a QR code or scanning a QR code to decrypt the encrypted pairing information can refer to the description in the above embodiment, and for the sake of brevity, it will not be repeated here.

[0189] In one embodiment, the mobile phone A may also send anti-secondary forwarding information to the mobile phone B, for example, the anti-secondary forwarding information is a serial number. After receiving the serial number, the mobile phone B may send the serial number to the cloud server, and the cloud server may verify the serial number. If the cloud server determines that it has not been used, the cloud server may indicate to the mobile phone B that the serial number has not been used, and the mobile phone B may use the pairing information to perform silent pairing with the Bluetooth headset. Otherwise, the cloud server indicates to the mobile phone that the serial number has been used, and the mobile phone B will not use the pairing information to perform silent pairing with the Bluetooth headset.

[0190] In one embodiment, the mobile phone A can also send validity period information to the mobile phone B. After receiving the validity period information, the mobile phone B can send the validity period information to the cloud server to determine whether it is valid without avoiding the deviation of the local clock. If the cloud server determines that it is valid, it can indicate to the mobile phone B that the pairing information is valid; otherwise, the cloud server can indicate to the mobile phone B that the pairing information is invalid.

[0191] S703, mobile phone B displays the information of the Bluetooth headset in the paired device list.

[0192] In one embodiment, if the pairing information received by mobile phone B from mobile phone A includes the device address and device name of the Bluetooth headset, then mobile phone B can display the device name of the Bluetooth headset in the paired device list of mobile phone B.

[0193] For example, Figure 4 In (g), after mobile phone B receives the pairing information of the Bluetooth headset sent by mobile phone A, a Bluetooth device with the device name "Bluetooth headset" is displayed in the paired device list of mobile phone B.

[0194] In one embodiment, mobile phone B also includes prompt information, and the prompt information is used to prompt that although the Bluetooth headset is displayed in the paired device list, mobile phone B has not performed Bluetooth pairing with the Bluetooth headset.

[0195] For example, Figure 4 In (g), an icon 408 is included near the "Bluetooth headset" displayed in the paired device list of mobile phone B. The icon 408 can be used to prompt that although the Bluetooth headset is displayed in the paired device list, mobile phone B has not performed Bluetooth pairing with the Bluetooth headset.

[0196] S704, mobile phone B displays a Bluetooth device named "Bluetooth headset" in the paired device list and detects the user's operation of clicking the Bluetooth headset.

[0197] For example, Figure 4 As shown in (h), after receiving the pairing information, mobile phone B can display the Bluetooth device named "Bluetooth headset" in "paired devices". It should be understood that before mobile phone B establishes a Bluetooth connection with the "Bluetooth headset", mobile phone B and the Bluetooth headset are in a virtual pairing state.

[0198] In one embodiment, if mobile phone A sends the validity period information of the pairing information to mobile phone B. If mobile phone B determines that the pairing information is within the validity period, mobile phone B can display the information of the Bluetooth headset in the paired list. If mobile phone B determines that the pairing information is no longer within the validity period, the mobile phone may not display the information of the Bluetooth headset in the paired list, or mobile phone B may display the information of the Bluetooth headset and a prompt message in the paired list, and the prompt message is used to prompt that the pairing information of the Bluetooth headset has expired.

[0199] S705: Mobile phone B and the Bluetooth headset establish an ACL link.

[0200] In one embodiment, mobile phone B and the Bluetooth headset establish an ACL link, including: mobile phone B and the Bluetooth headset establish a private RFCOMM connection. In the embodiment of the present application, mobile phone B and the Bluetooth headset establish a private RFCOMM connection, which may include:

[0201] S7051, mobile phone B requests the Bluetooth headset to establish a private RFCOMM connection.

[0202] For example, when mobile phone B detects that the user clicks on the "Bluetooth headset" in the paired old device list, mobile phone B may trigger a request to the Bluetooth headset to establish a private RFCOMM connection.

[0203] S7052, the Bluetooth headset sends a response to mobile phone B, where the response message is used to indicate that the connection request of mobile phone B is accepted.

[0204] It should be understood that when mobile phone B receives the response, a private RFCOMM connection is established between mobile phone B and the Bluetooth headset.

[0205] It should also be understood that mobile phone B can send indication information to the Bluetooth headset through the private RFCOMM protocol, and the indication information is used to instruct the Bluetooth headset to enter the pairing mode; alternatively, mobile phone B can also send the indication information to the Bluetooth headset through Bluetooth serial port profile (SPP), L2CAP, security management protocol (SMP), Bluetooth low energy generic attribute profile (BLE GATT), Wi-Fi, ultra wide band (UWB), infrared data association (IrDA), etc.

[0206] It should be understood that the ACL link is an underlying asynchronous communication physical link, and the RECOMM connection is a basic upper layer protocol (profile) connection, and the RECOMM connection uses the ACL link.

[0207] In one embodiment, after mobile phone B receives the pairing information of the Bluetooth headset sent by mobile phone A (for example, the pairing information includes the MAC address of the Bluetooth headset), mobile phone B can establish an ACL link with the Bluetooth headset. After mobile phone B and the Bluetooth headset have established the ACL link, mobile phone B can verify the validity period of the pairing information. Alternatively, mobile phone B can first verify the validity period. If mobile phone B determines that the pairing information is within the validity period, then mobile phone B can establish an ACL link with the Bluetooth headset.

[0208] S706: Mobile phone B sends instruction information to the Bluetooth headset through the ACL link. The instruction information is used to instruct the Bluetooth headset to enter a pairing mode.

[0209] S707: After receiving the instruction information, the Bluetooth headset enters a pairing mode.

[0210] S708: Mobile phone B and the Bluetooth headset perform a standard Bluetooth pairing process.

[0211] It should be understood that S707 is described based on the Bluetooth standard pairing process, and the process of pairing the mobile phone B and the Bluetooth headset in the embodiment of the present application is not limited.

[0212] S709, mobile phone B and the Bluetooth headset perform data transmission.

[0213] For example, when mobile phone B answers a call via a Bluetooth headset, an HFP connection can be established between the mobile phone and the primary headset.

[0214] For example, when mobile phone B listens to music or watches videos through a Bluetooth headset, an A2DP connection can be established between the mobile phone and the main headset.

[0215] Figure 8 FIG. 1 is a schematic diagram showing the process of establishing a connection between a mobile phone A and a Bluetooth device in an embodiment of the present application. The Bluetooth device can be described by taking the above-mentioned Bluetooth headset as an example. Figure 8 As shown, the process includes:

[0216] S801, mobile phone A and the Bluetooth headset perform a standard Bluetooth device inquiry process.

[0217] For example, see Figure 4 As shown in (e), when mobile phone A detects that the user clicks on the Bluetooth device named "Bluetooth headset", mobile phone A and the Bluetooth headset are triggered to perform a standard Bluetooth device query process.

[0218] It should be understood that this process can be that the Bluetooth headset is connected to mobile phone A through proximity discovery when the Bluetooth headset is unboxed for the first time, or that mobile phone A is connected to the Bluetooth headset after actively searching for Bluetooth devices to discover the Bluetooth headset.

[0219] In one embodiment, the mobile phone and the Bluetooth headset establish a standard Bluetooth pairing process, including: the mobile phone and the Bluetooth headset establish an ACL link; the mobile phone and the Bluetooth headset perform a pairing / SDP / encryption process.

[0220] S802, mobile phone A sends device capability query request information to the Bluetooth headset, where the device capability query request information is used to query whether the Bluetooth headset supports sharing.

[0221] Exemplarily, mobile phone A may carry a specific field in an echo message at the Bluetooth protocol level, and the specific field may be used to query whether the Bluetooth headset supports sharing.

[0222] Exemplarily, mobile phone A may also carry the device capability query request information through a new message at the APP level.

[0223] It should be understood that the information interaction in S802-S805 may be an interaction of private commands.

[0224] S803, the Bluetooth headset sends device capability query response information to mobile phone A, where the device capability query response information is used to indicate that the Bluetooth headset supports sharing.

[0225] S804, mobile phone A requests authentication information Token from the Bluetooth headset.

[0226] Exemplarily, mobile phone A may carry a specific field in an echo message at the Bluetooth protocol level, and the specific field may be used to request authentication information.

[0227] Exemplarily, mobile phone A may also carry the request information through a new message at the APP level to request authentication information from the Bluetooth headset.

[0228] It should be understood that whether it is an echo message at the Bluetooth protocol level or a message at the APP level, it needs to be transmitted over the encrypted link between mobile phone A and the Bluetooth headset.

[0229] Exemplarily, the authentication information Token is but not limited to a password, an identity identification code, an encrypted string, etc.

[0230] S805, the Bluetooth headset sends authentication information Token to mobile phone A.

[0231] After that, mobile phone A can exchange data with the Bluetooth headset, and users can use the Bluetooth headset to listen to music, answer calls, etc.

[0232] Fig. 9 FIG. 1 is a schematic diagram showing a process of sharing the Bluetooth device to mobile phone B through mobile phone A in an embodiment of the present application. Fig. 9 As shown, the process includes:

[0233] S901, mobile phone A detects that the user shares the Bluetooth headset with mobile phone B.

[0234] For example, see Figure 4 As shown in (h), when mobile phone A detects that the user clicks on a device named "mobile phone B", the pairing information of the Bluetooth headset can be sent to mobile phone B.

[0235] S902, mobile phone A sends pairing information of the Bluetooth headset to mobile phone B.

[0236] It should be understood that the process of S901-S902 can refer to the above-mentioned process of S701-S702, and for the sake of brevity, it will not be repeated here.

[0237] In one embodiment, the mobile phone A may also send authentication information Token to the mobile phone B. Before the Bluetooth headset is paired with the mobile phone B, the mobile phone B may use the authentication information to perform interactive authentication with the Bluetooth headset.

[0238] S903, mobile phone B displays a Bluetooth device named "Bluetooth headset" in the paired device list and detects the user's operation of clicking the Bluetooth headset.

[0239] S904: Mobile phone B establishes an ACL link with the Bluetooth headset.

[0240] It should be understood that at this time, mobile phone B obtains the MAC address of the Bluetooth headset in the pairing information, so mobile phone B can first establish an ACL link with the Bluetooth headset.

[0241] S905, mobile phone B and the Bluetooth headset perform an interactive authentication process.

[0242] In the embodiment of the present application, the interactive authentication process includes but is not limited to the following three methods:

[0243] Method 1

[0244] Mobile phone B sends the authentication information to the Bluetooth headset through the ACL link. The Bluetooth headset determines that the authentication information is the same as the authentication information previously sent to mobile phone A, and the interactive authentication between mobile phone B and the Bluetooth headset is successful. This method can send all the authentication information to the Bluetooth headset for authentication, which can save information interaction during the authentication process.

[0245] Method 2

[0246] Mobile phone B sends a part of the authentication information to the Bluetooth headset through the ACL link, and the Bluetooth headset determines whether this part of the authentication information is correct. If it is correct, the Bluetooth headset can continue to send a scan request to mobile phone B, and the scan request is used to request another part of the authentication information; after receiving the scan request, mobile phone B can send a scan response to the Bluetooth headset, and the scan response includes the encrypted other part of the authentication information.

[0247] Method 3

[0248] The certification process may include the following steps:

[0249] S9051, mobile phone B requests a random number from the Bluetooth headset.

[0250] S9052, the Bluetooth headset sends a random number A and an authentication category to mobile phone B. The authentication category is used to instruct mobile phone B to perform identity authentication.

[0251] S9053, mobile phone B sends random number B and derived TokenA to the Bluetooth headset.

[0252] Among them, the derived TokenA is obtained by mobile phone B using random number A after encrypting the authentication information Token.

[0253] S9054, the Bluetooth headset sends the derived Token B and the pairing status code to the mobile phone B, where the pairing status code is used to indicate that the Bluetooth headset has entered a pairing state.

[0254] After receiving the derived TokenA, if the Bluetooth headset can use the authentication information to parse the random number A, the Bluetooth headset can determine that the mobile phone is a trusted device. At this time, the Bluetooth headset can enter the pairing state and send the derived TokenB to mobile phone B. When mobile phone B uses the authentication information Token to parse the random number B from the derived TokenB, mobile phone B starts the standard Bluetooth pairing process.

[0255] It should be understood that the process of interactive authentication between mobile phone B and the Bluetooth headset in the above S905 is similar to the validity period verification in the above embodiment, and the interactive authentication can be understood as an implementation method of pairing information legitimacy verification.

[0256] In one embodiment, mobile phone B may also perform interactive authentication with the Bluetooth headset first. After the interactive authentication between mobile phone B and the Bluetooth headset is passed, mobile phone B may establish an ACL link with the Bluetooth headset.

[0257] S906, after confirming that the interactive authentication is passed, the Bluetooth headset enters a pairing mode.

[0258] It should be understood that the process of interactive authentication between mobile phone B and the Bluetooth headset in S905-S906 is optional. In the embodiment of the present application, mobile phone B may not perform the process of interactive authentication with the Bluetooth headset.

[0259] S907, after confirming that the interactive authentication is passed, mobile phone B starts the standard Bluetooth pairing process.

[0260] S908: Mobile phone B and the Bluetooth headset perform a standard Bluetooth pairing process.

[0261] S909, mobile phone B and the Bluetooth headset perform data transmission.

[0262] For example, when mobile phone B answers a call via a Bluetooth headset, an HFP connection can be established between the mobile phone and the primary headset.

[0263] For example, when mobile phone B listens to music or watches videos through a Bluetooth headset, an A2DP connection can be established between the mobile phone and the main headset.

[0264] In an embodiment of the present application, when the Bluetooth headset was last connected to mobile phone A and needs to be connected to mobile phone B, the pairing information and authentication information of the Bluetooth headset can be shared with mobile phone B through mobile phone A, and mobile phone B can first use the authentication information sent by mobile phone A to authenticate with the Bluetooth headset. Bluetooth pairing is performed after the authentication is passed. This helps to improve the security when pairing mobile phone B and the Bluetooth headset. At the same time, it avoids the process in which the user needs to press the function key on the Bluetooth headset to enter the pairing state before pairing with mobile phone B, which saves the user's operation when using a new device to connect the Bluetooth headset and improves the user experience.

[0265] In the above method 900, a Bluetooth connection is established between mobile phone B and a Bluetooth headset by means of silent pairing triggered by mobile phone B. In an embodiment of the present application, silent pairing can also be triggered by a headset. Exemplarily, while mobile phone A sends pairing information to mobile phone B, it can also request mobile phone B to send the MAC address of mobile phone B to mobile phone A. After obtaining the MAC address of mobile phone B, mobile phone A can send the MAC address of mobile phone B to the Bluetooth headset. The next time the Bluetooth headset detects that the box is opened, it can directly initiate a pairing request to mobile phone B.

[0266] Fig.10 FIG. 1 is a schematic flow chart of a method for sharing pairing information in an embodiment of the present application. Fig.10 As shown, the method can be performed by a first electronic device (eg, mobile phone A), a second electronic device (eg, mobile phone B) and an accessory device (eg, a Bluetooth headset). Fig.10 As shown, the method 1000 includes:

[0267] S1001, the first electronic device displays a first interface, the first interface includes a first device list, the devices in the first device list are devices that have been paired with the first electronic device through Bluetooth, and the first device list includes the accessory device.

[0268] For example, see Figure 4 The GUI shown in (e) includes information about the Bluetooth headset in the paired device list of mobile phone A.

[0269] S1002, the second electronic device displays a second interface, the second interface includes a second device list, the devices in the second device list are devices that have been paired with the second electronic device through Bluetooth, and the second device list does not include the accessory device.

[0270] For example, see Figure 4The GUI shown in (f) does not include information about the Bluetooth headset in the paired device list of mobile phone B.

[0271] S1003: When the first electronic device detects a first operation performed by the user on the first interface, the first electronic device sends pairing information of the accessory device to the second electronic device.

[0272] For example, see Figure 4 In the GUI shown in (g), the first operation may be an operation in which the user selects mobile phone B in the list of shareable devices. When mobile phone A detects the operation, mobile phone A may send pairing information of the Bluetooth headset to mobile phone B via a short-range wireless communication technology (e.g., Wi-Fi or Bluetooth).

[0273] Optionally, the method 1000 also includes: before Bluetooth pairing with the accessory device, the second electronic device displays a prompt message on the second interface, and the prompt message is used to prompt that the second electronic device has not performed Bluetooth pairing with the accessory device; when the Bluetooth pairing with the accessory device is completed, the second electronic device hides the prompt message.

[0274] For example, see Figure 4 As shown in (g), before mobile phone B and the Bluetooth headset are paired with Bluetooth, mobile phone B can display an icon 408 on the interface, which is used to indicate that although the Bluetooth headset is displayed in the paired device list of mobile phone B, mobile phone B and the Bluetooth headset have not been paired with Bluetooth. Figure 4 As shown in (g) and (j), after mobile phone B and the Bluetooth headset complete Bluetooth pairing, mobile phone B can hide the icon 408.

[0275] Optionally, the method 1000 further includes: before the second electronic device performs Bluetooth pairing with the accessory device, sending indication information to the accessory device, where the indication information is used to instruct the accessory device to enter a pairing mode; and the accessory device enters the pairing mode according to the indication information.

[0276] In the embodiment of the present application, before the second electronic device performs Bluetooth pairing with the accessory device, it can instruct the accessory device to enter the pairing mode. This helps to avoid the user's initialization of the accessory device (for example, the user puts the Bluetooth headset into the headset box and long presses the function key on the headset box), thereby avoiding the user's intervention in the pairing process between the second electronic device and the accessory device, which helps to improve the user experience.

[0277] S1004: The second electronic device displays the accessory device in the second device list according to the pairing information.

[0278] For example, see Figure 4In the GUI shown in (g), after receiving the pairing information, mobile phone B can display the information of the Bluetooth headset in the paired device list.

[0279] S1005: When the second electronic device detects that the user selects the accessory device in the second device list, the second electronic device performs Bluetooth pairing with the accessory device.

[0280] For example, see Figure 4 In the GUI shown in (h) to (j), when mobile phone B detects that the user selects a Bluetooth headset from the paired device list, mobile phone B can perform Bluetooth pairing with the Bluetooth headset.

[0281] A chip is also provided in an embodiment of the present application. The chip is included in an electronic device. The chip also includes one or more processors, one or more memories and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions. When the instructions are executed by one or more processors, the chip executes the steps in the method for sharing information as described above.

[0282] An embodiment of the present application also provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the information sharing method described in the above embodiment.

[0283] The embodiments of the present application also provide a computer program product. When the computer program product is executed on an electronic device, the electronic device executes the information sharing method described in the above embodiments.

[0284] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0285] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0286] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0287] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0288] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0289] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0290] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A system, characterized in that: The system includes a first electronic device, a second electronic device and an accessory device, wherein: The first electronic device is used to send device capability query request information to the accessory device, where the device capability query request information is used to query whether the accessory device supports sharing; The accessory device is used to send device capability query response information to the first electronic device, where the device capability query response information is used to indicate that the accessory device supports sharing; The first electronic device is further used to display a first interface, the first interface includes a first device list, the devices in the first device list are devices that have been paired with the first electronic device through Bluetooth, support sharing and allow sharing, and the first device list includes the accessory device; The second electronic device is used to display a second interface, the second interface includes a second device list, the devices in the second device list are devices that have been paired with the second electronic device through Bluetooth, and the second device list does not include the accessory device; The first electronic device is further configured to send pairing information of the accessory device to the second electronic device when a first operation of the user on the first interface is detected; The second electronic device is further used to display the accessory device and identification information in the second device list according to the pairing information, wherein the identification information is used to indicate that the second electronic device is virtually paired with the accessory device but not physically paired; The second electronic device is further configured to display first prompt information when detecting a user selecting the accessory device in the second device list, wherein the first prompt information is used to prompt that the accessory device is obtained through sharing with the first electronic device, and the first prompt information is further used to prompt whether to pair with the accessory device; The second electronic device is further configured to perform Bluetooth pairing with the accessory device when detecting an operation by a user to determine pairing with the accessory device; The second electronic device is further configured to display second prompt information on the second interface before Bluetooth pairing is performed with the accessory device, wherein the second prompt information is configured to prompt that the second electronic device has not been Bluetooth paired with the accessory device; When the Bluetooth pairing with the accessory device is completed, the second prompt information is hidden.

2. The system according to claim 1, characterized in that The second electronic device is further configured to send indication information to the accessory device before Bluetooth pairing with the accessory device, wherein the indication information is used to instruct the accessory device to enter a pairing mode; The accessory device is further configured to enter a pairing mode according to the indication information.

3. The system according to claim 1, characterized in that The first electronic device is further configured to send validity period information of the pairing information to the second electronic device in response to the first operation, where the validity period information is used to indicate a validity period of the pairing information; The second electronic device is further configured to determine whether the pairing information is within the validity period before performing Bluetooth pairing with the accessory device.

4. The system according to claim 1, characterized in that The first electronic device is further configured to send a serial number corresponding to the pairing information to the second electronic device in response to the first operation; The second electronic device is further configured to determine that the serial number has not been used before performing Bluetooth pairing with the accessory device.

5. The system according to claim 1, characterized in that The first electronic device is further configured to send authentication information to the second electronic device in response to the first operation, where the authentication information is information obtained by the first electronic device from the accessory device; The second electronic device is further configured to perform interactive authentication with the accessory device according to the authentication information before Bluetooth pairing with the accessory device; After the interactive authentication with the accessory device is passed, Bluetooth pairing is performed with the accessory device.

6. The system according to claim 1, characterized in that The first electronic device and the second electronic device are devices under the same account.

7. The system according to claim 1, characterized in that The pairing information includes one or more of the following information: a media access control layer MAC address of the accessory device, a device identification or authentication information of the accessory device.

8. A method for sharing information, characterized in that: The method is applied to a second electronic device, and the method includes: Displaying a first interface, the first interface including a device list, the devices in the device list are devices that have been paired with the second electronic device through Bluetooth, and the device list does not include accessory devices; Receiving pairing information of the accessory device sent by the first electronic device; According to the pairing information, displaying the accessory device and identification information in the device list, wherein the identification information is used to indicate that the second electronic device is virtually paired with the accessory device but not physically paired; When detecting that the user selects the accessory device from the device list, displaying first prompt information, the first prompt information is used to prompt that the accessory device is obtained through sharing with the first electronic device, and the first prompt information is also used to prompt whether to pair with the accessory device; When detecting an operation by a user to determine pairing with the accessory device, performing Bluetooth pairing with the accessory device; Before Bluetooth pairing is performed with the accessory device, second prompt information is displayed on the first interface, where the second prompt information is used to prompt that the second electronic device has not been Bluetooth paired with the accessory device; When the Bluetooth pairing with the accessory device is completed, the second prompt information is hidden.

9. The method according to claim 8, characterized in that Before performing Bluetooth pairing with the accessory device, the method further includes: Sending indication information to the accessory device, where the indication information is used to instruct the accessory device to enter a pairing mode.

10. The method according to claim 8, characterized in that Before performing Bluetooth pairing with the accessory device, the method further includes: receiving validity period information of the pairing information sent by the first electronic device, where the validity period information is used to indicate a validity period of the pairing information; It is determined that the pairing information is within the validity period.

11. The method according to claim 8, characterized in that Before performing Bluetooth pairing with the accessory device, the method further includes: Receiving a serial number corresponding to the pairing information sent by the first electronic device; Make sure the serial number is not in use.

12. The method according to claim 8, characterized in that Before performing Bluetooth pairing with the accessory device, the method further includes: receiving authentication information sent by the first electronic device, where the authentication information is information obtained by the first electronic device from the accessory device; Performing interactive authentication with the accessory device according to the authentication information; The Bluetooth pairing with the accessory device includes: After the second electronic device and the accessory device have passed the interactive authentication, the second electronic device and the accessory device are paired with each other via Bluetooth.

13. The method according to claim 8, characterized in that The second electronic device and the first electronic device are devices under the same account.

14. The method according to claim 8, characterized in that The pairing information includes one or more of the following information: a media access control layer MAC address of the accessory device, a device identification or authentication information of the accessory device.

15. An electronic device, characterized in that: include: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to perform a method as described in any one of claims 8 to 14.

16. A computer-readable storage medium having instructions stored therein, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 8 to 14.

17. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device is caused to execute the method according to any one of claims 8 to 14.

Citation Information

Patent Citations

  • Cloud Based Proximity Pairing And Switching For Peer-To-Peer Devices

    CN107683602A

  • Cloud assisted accessory pairing

    US20190191304A1

  • Method and device for network connection and terminal

    WO2019140657A1