Method, electronic device and system for device connection
By using long and short connection methods between wearable devices and multiple terminal devices, the problem of insufficient data interaction between wearable devices and multiple terminal devices is solved, enabling timely interaction and low-power data synchronization, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-12-04
- Publication Date
- 2026-06-05
AI Technical Summary
In existing device connection methods, wearable devices can only connect to one terminal device, which cannot meet the needs of timely interaction between multiple terminal devices and wearable devices, resulting in insufficient data interaction.
Wearable devices maintain a long connection with one of multiple terminal devices and establish short connections with other terminal devices when needed, enabling data interaction via Bluetooth, and maintaining only two links to reduce power consumption.
It enables real-time data interaction between multiple devices, reduces power consumption during data interaction, and improves the user's interactive experience.
Smart Images

Figure CN122160939A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of device connectivity, and more specifically, to a method, electronic device, and system for device connectivity. Background Technology
[0002] Due to the needs of life or work, many users own multiple smart devices at the same time. For example, many users use wearable devices and terminal devices simultaneously. Data interaction between wearable devices and terminal devices can bring users a better device linkage experience and make it easier for users to manage their devices.
[0003] However, in current device connection methods, when a user has multiple terminal devices, the wearable device can only connect to one of them at a time. This means that the wearable device can only interact with one terminal device at a time, which cannot meet the need for timely interaction between multiple terminal devices and the wearable device. Summary of the Invention
[0004] This application provides a method, electronic device, and system for device connection. Using a wearable device and multiple terminal devices as an example, the wearable device maintains a long-term connection with one of the terminal devices and can establish short connections with other terminal devices while maintaining the long-term connection. These short connections are only established when the terminal devices have data interaction needs, enabling timely data interaction between multiple terminal devices and the wearable device. This data interaction process is achieved via Bluetooth and does not rely on a network. Furthermore, the wearable device only needs to maintain at most two links, reducing power consumption during data interaction.
[0005] In a first aspect, a method for device connection is provided, the method being applied to a first device, wherein the first device and a second device have established a first connection through a first link, the method comprising: after receiving a first connection request sent by a third device, the first device maintains the first connection and establishes a second connection with the third device through a second link, wherein the first connection request is sent by the third device after generating a data interaction requirement, and the third device has been paired with the first device; the first device performs data interaction with the third device through the second connection; and when a first preset condition is met, the first device disconnects the second connection.
[0006] The pairing between the third device and the first device can include key negotiation between them. In other words, if key negotiation has been performed between the third device and the first device, it can be considered that the third device and the first device have been paired.
[0007] In this embodiment of the application, the first device can be in a long-term connection with the second device, and can establish a short connection with the third device while maintaining the long-term connection. The short connection is only established when the third device has a data interaction requirement, which can realize timely data interaction between multiple devices and one device. For example, data from multiple terminal devices can be synchronized to the wearable device in a timely manner. This data interaction process is implemented through Bluetooth and does not depend on the network.
[0008] Furthermore, the first device only needs to maintain at most two links, which can reduce the power consumption generated by the first device during data interaction.
[0009] In conjunction with the first aspect, in one possible implementation, the first preset condition includes: detecting that data interaction has been completed between the first device and the third device.
[0010] In this embodiment, the connection between the first device and the third device is only established when the third device has a data interaction requirement. Furthermore, the connection between the first device and the third device is immediately disconnected after the data interaction is completed. This ensures that the second link of the first device is not occupied by the same device for a long time. When other devices besides the third device have a data interaction requirement with the first device, a connection between the first device and the other device can be established through the second link, thereby enabling timely data interaction between multiple devices and the first device.
[0011] In conjunction with the first aspect, in one possible implementation, the first preset condition includes: detecting that the duration of the second connection establishment exceeds a first duration.
[0012] In this embodiment, the connection between the first device and the third device is established only when the third device has a data interaction requirement. Furthermore, if the connection establishment time between the first device and the third device is too long, the connection between the first device and the third device will be immediately disconnected even if the data interaction is not completed. This ensures that the second link of the first device is not occupied by the same device for a long time. When other devices besides the third device have a data interaction requirement with the first device, a connection between the first device and the other device can be established through the second link, thereby enabling timely data interaction between multiple devices and the first device.
[0013] In conjunction with the first aspect, in one possible implementation, the method further includes: after receiving a second connection request sent by a fourth device, the first device maintains the first connection and establishes a third connection with the fourth device through the second link, wherein the second connection request is sent by the fourth device when it detects a data interaction requirement, and the fourth device has been paired with the first device; the first device performs data interaction with the fourth device through the third connection; and when a second preset condition is met, the first device disconnects the third connection.
[0014] In this embodiment, the first device can maintain a long connection with the second device and establish a short connection with the fourth device while maintaining the long connection. The short connection is only established when the fourth device has a data interaction requirement, which enables timely data interaction between multiple devices and one device. For example, data from multiple terminal devices can be synchronized to the wearable device in a timely manner. This data interaction process is achieved through Bluetooth and does not depend on the network.
[0015] Furthermore, the first device only needs to maintain at most two links, which can reduce the power consumption generated by the first device during data interaction.
[0016] In conjunction with the first aspect, in one possible implementation, the second preset condition includes: detecting that data interaction is completed between the first device and the fourth device, or detecting that the duration of the second connection establishment exceeds the first duration.
[0017] In conjunction with the first aspect, in one possible implementation, the method further includes: the first device broadcasting the address information of the first link and the address information of the second link.
[0018] In this embodiment of the application, the first device can broadcast the address information of the first link and the address information of the second link. This enables the second device to establish a first connection with the first device based on the address information of the first link, and enables the third device to initiate the establishment of a second connection with the first device based on the address information of the second link when a data interaction requirement is generated.
[0019] In conjunction with the first aspect, in one possible implementation, the first device includes a first communication module and a second communication module. After receiving a first connection request sent by a third device, the first device maintains the first connection and establishes a second connection with the third device through a second link, including: after receiving the first connection request sent by the third device, the first device maintains the first connection established between the first communication module and the second device and establishes the second connection with the third device through the second communication module.
[0020] In this embodiment of the application, the first device has dual communication modules, which enables the first device to establish connections with two devices simultaneously.
[0021] In conjunction with the first aspect, in one possible implementation, the first communication module is a classic Bluetooth BR, and the second communication module is a Bluetooth Low Energy (BLE) module.
[0022] In conjunction with the first aspect, in one possible implementation, the first device interacts with the third device via the second connection, including: the first device receiving a ringing notification sent by the third device; the first device ringing according to the ringing notification; and the first device disconnecting the second connection when a first preset condition is met, including: in response to the user turning off the ringing via the first device, the first device stopping the ringing, sending a stop ringing notification to the third device and disconnecting the second connection, or when it is detected that the duration of the second connection establishment exceeds a first duration, the first device stopping the ringing and disconnecting the second connection.
[0023] The embodiments of this application can be applied to scenarios where multiple devices ring simultaneously, enabling the ringing of multiple devices to be synchronized to one device. For example, if a user has three mobile phones and a watch, the watch will ring simultaneously when any one of the mobile phones rings, which can improve the user's interactive experience when using multiple devices.
[0024] In conjunction with the first aspect, in one possible implementation, the first device interacts with the third device via the second connection, including: the first device receiving synchronization data sent by the third device; the first device disconnecting the second connection when a first preset condition is met includes: after receiving the synchronization data sent by the third device, the first device disconnects the second connection, or when it is detected that the duration of the second connection establishment exceeds a first duration, the first device disconnects the second connection.
[0025] The embodiments of this application can be applied to scenarios of multi-device data synchronization, enabling timely synchronization of data from multiple devices to one device. For example, if a user has three mobile phones and a watch, when any of the mobile phones generates a data synchronization request, the data can be synchronized to the watch in a timely manner without the user having to manually synchronize, which can improve the user's interactive experience when using multiple devices.
[0026] In conjunction with the first aspect, in one possible implementation, the method further includes: the first device and the second device interacting with each other via the first connection.
[0027] In this embodiment of the application, a long connection is established between the first device and the second device, and the first device and the second device can perform bidirectional data interaction or information interaction through the long connection.
[0028] In conjunction with the first aspect, in one possible implementation, the first device interacts with the third device via the second connection, including: the first device negotiating with the third device to obtain a first key; and the first device using the first key to interact with the third device via the second connection.
[0029] In this embodiment of the application, data interaction between devices can be based on a key, which can improve the security of data interaction between devices.
[0030] In conjunction with the first aspect, in one possible implementation, the first device is a wearable device, the second device is a terminal device, and the third device is a terminal device.
[0031] The embodiments of this application can be applied to data interaction scenarios between wearable devices and multiple terminal devices.
[0032] Secondly, a method for device connection is provided, the method being applied to a third device, the method comprising: after the third device generates a data interaction request, sending a first connection request to a first device, the first connection request being used to request establishing a connection with the first device through a second link, the third device having been paired with the first device; while the first device maintains a first connection with the second device through the first link, the third device establishing a second connection with the first device through the second link; the third device performing data interaction with the first device through the second connection; wherein the second connection is disconnected when a first preset condition is met.
[0033] The pairing between the third device and the first device can include key negotiation between them. In other words, if key negotiation has been performed between the third device and the first device, it can be considered that the third device and the first device have been paired.
[0034] In this embodiment of the application, when the first device and the second device are in a long connection, the third device can initiate a short connection with the first device. This short connection is only established when the third device has a data interaction requirement, which can realize timely data interaction between multiple devices and one device. For example, data from multiple terminal devices can be synchronized to the wearable device in a timely manner. This data interaction process is implemented through Bluetooth and does not depend on the network.
[0035] In conjunction with the second aspect, in one possible implementation, the first preset condition includes the completion of data interaction between the first device and the third device, or the duration of the second connection establishment exceeding the first duration.
[0036] In this embodiment, the connection between the first device and the third device is established only when the third device has a data interaction requirement. After the data interaction is completed, the connection between the first device and the third device will be immediately disconnected. Alternatively, if the connection between the first device and the third device takes too long to establish, the connection between the first device and the third device will be immediately disconnected even if the data interaction is not completed. This ensures that the second link of the first device will not be occupied by the same device for a long time. When other devices besides the third device have a data interaction requirement with the first device, a connection between the first device and the other device can be established through the second link, thereby enabling timely data interaction between multiple devices and the first device.
[0037] In conjunction with the second aspect, in one possible implementation, before sending the first connection request to the first device, the method further includes: the third device receiving the address information of the second link broadcast by the first device.
[0038] In this embodiment of the application, the first device can broadcast the address information of the second link, so that when the third device generates a data interaction requirement, it can initiate the establishment of a second connection with the first device based on the address information of the second link.
[0039] In conjunction with the second aspect, in one possible implementation, the first device includes a first communication module and a second communication module. The step of the third device establishing a second connection with the first device via the second link while the first device maintains a first connection with the second device via the first link includes: the third device and the second communication module establishing the second connection while the first device maintains the first connection with the second device via the first communication module.
[0040] In this embodiment of the application, the first device has dual communication modules, which enables the first device to establish connections with two devices simultaneously.
[0041] In conjunction with the second aspect, in one possible implementation, the first communication module is a classic Bluetooth BR, and the second communication module is a Bluetooth Low Energy (BLE) module.
[0042] In conjunction with the second aspect, in one possible implementation, the third device interacts with the first device via the second connection, including: when the third device rings, it sends a ringing notification to the first device, the ringing notification being used to notify the first device that the ringing has occurred; and when the third device receives a stop ringing notification sent by the first device, it turns off the ringing.
[0043] The embodiments of this application can be applied to scenarios where multiple devices ring simultaneously, enabling the ringing of multiple devices to be synchronized to one device. For example, if a user has three mobile phones and a watch, the watch will ring simultaneously when any one of the mobile phones rings, which can improve the user's interactive experience when using multiple devices.
[0044] In conjunction with the second aspect, in one possible implementation, the third device interacts with the first device via the second connection, including: when the third device generates a data synchronization requirement, it sends synchronization data to the first device.
[0045] The embodiments of this application can be applied to scenarios of multi-device data synchronization, enabling timely synchronization of data from multiple devices to one device. For example, if a user has three mobile phones and a watch, when any of the mobile phones generates a data synchronization request, the data can be synchronized to the watch in a timely manner without the user having to manually synchronize, which can improve the user's interactive experience when using multiple devices.
[0046] In conjunction with the second aspect, in one possible implementation, the third device interacts with the first device via the second connection, including: the third device negotiating with the first device to obtain a first key; and the third device using the first key to interact with the first device via the second connection.
[0047] In this embodiment of the application, data interaction between devices can be based on a key, which can improve the security of data interaction between devices.
[0048] In conjunction with the second aspect, in one possible implementation, the first device is a wearable device, the second device is a terminal device, and the third device is a terminal device.
[0049] The embodiments of this application can be applied to data interaction scenarios between wearable devices and multiple terminal devices.
[0050] Thirdly, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the first aspect or any possible implementation thereof.
[0051] Fourthly, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the second aspect or any possible implementation thereof.
[0052] Fifthly, a system is provided, comprising: a first electronic device for implementing the method of the first aspect or any possible implementation thereof; and a second electronic device for implementing the method of the second aspect or any possible implementation thereof.
[0053] In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program or instructions that, when executed, implement the method of the first aspect or any possible implementation thereof, or implement the method of the second aspect or any possible implementation thereof.
[0054] In a seventh aspect, a chip is provided, wherein instructions are stored therein, which, when executed on a device, cause the chip to perform the method of the first aspect or any possible implementation thereof, or to perform the method of the second aspect or any possible implementation thereof.
[0055] Eighthly, a computer program product is provided, which stores a computer program or instructions that, when executed, implement the method in the first aspect or any possible implementation of the first aspect, or implement the method in the second aspect or any possible implementation of the second aspect. Attached Figure Description
[0056] Figure 1 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0057] Figure 2 This is a software structure block diagram of an electronic device provided in an embodiment of this application;
[0058] Figure 3 This is a schematic interactive diagram illustrating a method of device connection;
[0059] Figure 4 This is a schematic diagram of an application scenario provided by an embodiment of this application;
[0060] Figure 5 This is a schematic flowchart illustrating a device connection method provided in an embodiment of this application;
[0061] Figure 6This is a schematic architecture diagram of a system for device connection provided in an embodiment of this application;
[0062] Figure 7 This is a schematic flowchart illustrating yet another device connection method provided in an embodiment of this application;
[0063] Figure 8 This is a schematic flowchart illustrating yet another device connection method provided in an embodiment of this application;
[0064] Figure 9 This is a schematic flowchart illustrating another device connection method provided in the embodiments of this application. Detailed Implementation
[0065] The technical solutions of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments.
[0066] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in this text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "plural" or "multiple" refers to two or more than two.
[0067] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0068] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.
[0069] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "one embodiment," "some embodiments," "another embodiment," "other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0070] The method provided in this application can be applied to electronic devices with time display or time recognition functions, such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart home devices, and other electronic devices. This application does not impose any restrictions on the specific type of electronic device.
[0071] For example, Figure 1A schematic diagram of the structure of electronic device 100 is shown. 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, antenna 1, 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0072] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0073] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0074] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0075] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0076] In some embodiments, the processor 110 may include one or more interfaces. Interfaces 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 subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0077] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0078] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0079] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0080] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0081] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0082] 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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0083] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0084] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0085] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0086] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0087] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0088] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0089] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0090] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0091] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0092] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0093] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0094] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0095] The external storage 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 storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0096] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0097] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0098] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0099] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0100] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0101] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0102] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0103] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0104] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0105] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0106] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an embedded SIM (eSIM) card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0107] It should be understood that the phone cards in the embodiments of this application include, but are not limited to, SIM cards, eSIM cards, universal subscriber identity modules (USIM), universal integrated circuit cards (UICC), etc.
[0108] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture system as an example to exemplify the software structure of electronic device 100.
[0109] Figure 2This is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom: the application layer, the application framework layer, the runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.
[0110] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0111] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0112] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0113] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0114] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0115] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0116] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0117] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0118] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0119] Runtime consists of core libraries and a virtual machine. Runtime is responsible for system scheduling and management.
[0120] The core library consists of two parts: one part is the functionalities that the Java language needs to call, and the other part is the system's core library.
[0121] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0122] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0123] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0124] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0125] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0126] A 2D graphics engine is a graphics engine for 2D drawing.
[0127] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0128] It should be understood that the technical solutions in the embodiments of this application can be used in systems such as Android, iOS, and HarmonyOS.
[0129] The technical solutions of this application embodiment can be applied to data synchronization scenarios between electronic devices.
[0130] Among them, electronic devices can be televisions, desktop computers, laptops, or portable electronic devices such as mobile phones, foldable screens, tablets, cameras, camcorders, and video recorders. They can also be smart home devices such as refrigerators, washing machines, robot vacuums, and any other electronic devices capable of running applications. Furthermore, they can be electronic devices in future networks or in future evolved public land mobile networks (PLMNs).
[0131] Due to the needs of life or work, many users own multiple terminal devices at the same time, such as multiple mobile phones. In addition, users may also own wearable devices. That is to say, many users use one wearable device and multiple terminal devices at the same time. Data interaction between wearable devices and terminal devices can bring users a better multi-device linkage experience and make it easier for users to manage multiple devices.
[0132] In current device connection methods, a wearable device can only establish a connection with one terminal device. This means that when a user has multiple terminal devices, only one terminal device can interact with the wearable device at any given time.
[0133] If wearable devices need to interact with other terminal devices, they must first disconnect the current connection and then establish a connection with other terminal devices. Furthermore, the switching between different terminal devices requires manual triggering by the user, which is quite cumbersome.
[0134] Figure 3 A schematic interactive diagram of a device connection method 300 is shown. (See diagram for example.) Figure 3 As shown, this method is applicable to scenarios where a user owns a watch, a mobile phone, and a large screen, wherein the mobile phone and the watch have established a connection via Bluetooth Low Energy (BLE), and the mobile phone and the large screen have been paired before. The method 300 includes:
[0135] S301: The mobile phone obtains information from the watch through a BLE connection established with the watch, and sends the watch information to the cloud.
[0136] S302: When the large screen launches the fitness and health application, the large screen sends a request to the cloud to obtain information about the bound device.
[0137] The bound device information refers to the information of wearable devices that have been paired with the large screen.
[0138] S303: After receiving a request from the large screen to obtain information about the bound device, the cloud sends the watch information to the large screen.
[0139] S304: The large screen receives information from the watch and, after detecting a trigger operation connected to the watch, sends a switching request 1 to the cloud. This switching request 1 is used to request to establish a connection with the wearable device, or it can be understood as: this switching request 1 is used to request to switch the connection with the mobile phone that the watch is currently connected to.
[0140] Specifically, after receiving information from the watch, the large screen displays it to the user in the form of a device list. The aforementioned trigger operation for connecting to the watch could be, for example, the user selecting the watch in the device list and confirming the connection to the watch.
[0141] S305: After receiving the handover request 1, the cloud forwards the handover request 1 to the mobile phone.
[0142] S306: After receiving handover request 1, the mobile phone disconnects the BLE connection with the watch.
[0143] In this case, if the phone disconnects from the watch via BLE, it will not re-establish the BLE connection with the watch unless a reconnection command is given.
[0144] S307: After switching connections, the phone sends a successful switch notification to the cloud.
[0145] S308: The cloud forwards a notification of successful switching to the large screen.
[0146] S309: After receiving the successful switching notification, the large screen establishes a BLE connection with the watch and synchronizes data through this connection.
[0147] S310: After closing the Health app on the large screen, disconnect the BLE connection between the large screen and the watch.
[0148] S311: After the large screen disconnects from the watch via BLE, it sends a switch request 2 to the cloud. This switch request 2 is used to request the phone to switch back to the watch.
[0149] S312: The cloud forwards the switching request to the mobile phone 2.
[0150] S313: After receiving handover request 2, the mobile phone restores the BLE connection with the watch.
[0151] In this method, a wearable device can only establish a connection with one terminal device. If the wearable device needs to interact with other terminal devices, it needs to disconnect the current connection first. Taking data interaction as an example, this will result in only one terminal device's data being synchronized to the wearable device when the user has multiple terminal devices. Furthermore, the switching of the connection between different terminal devices requires manual triggering by the user, which is cumbersome. In addition, the implementation of this method depends on the cloud and is not suitable for cloudless environments.
[0152] In view of this, embodiments of this application provide a method, electronic device, and system for device connection. In this method, a wearable device is permanently connected to one of a plurality of terminal devices, and can establish short connections with other terminal devices. The short connection between the wearable device and the terminal devices is only established when other terminal devices have data interaction needs. The establishment of the short connection does not cause the interruption of the long connection, enabling multiple terminal devices to simultaneously interact with a wearable device. For example, it can synchronize key data from multiple terminal devices to a wearable device. This device connection and data interaction process can be achieved via Bluetooth and does not rely on the cloud.
[0153] Furthermore, wearable devices only need to maintain at most two links, which can reduce the power consumption generated by wearable devices during device connection and data interaction.
[0154] For example, consider data synchronization between multiple smartphones and a smartwatch. Figure 4 A schematic diagram of an application scenario provided by an embodiment of this application is shown.
[0155] like Figure 4 As shown, a first connection is established between the smartwatch 440 and the smartphone 410 via a first link. This first connection is a long connection. When the smartphone 420 or the smartphone 430 needs to synchronize data with the smartwatch 440, the smartwatch 440 can be triggered to establish a second connection with the smartphone 410 via a second link while maintaining the first connection. This first connection is a short connection, and the second connection is automatically disconnected when preset conditions are met. Based on this, the smartwatch 440 can simultaneously achieve data synchronization with the smartphones 410, 420, and 430.
[0156] When the smartphone 410 has a data synchronization requirement with the smartwatch 440, it can synchronize data with the smartwatch 440 through the first connection. For example, the smartphone 410 sends the data that needs to be synchronized to the smartwatch 440 to the smartwatch 440. When the smartwatch 440 has a data synchronization requirement with the smartphone 410, it can also synchronize data with the smartphone 410 through the first connection.
[0157] When the smartphone 420 needs to synchronize data with the smartwatch 440, it can initiate a second connection with the smartwatch 440. After the second connection is established, the smartphone 420 can synchronize data with the smartwatch 440 through the second connection. For example, the smartphone 420 can send the data that needs to be synchronized to the smartwatch 440 through the second connection. After the smartwatch 440 receives the data sent by the smartphone 420, it disconnects the second connection with the smartphone 420.
[0158] Similarly, when the smartphone 430 has a data synchronization need with the smartwatch 440, it can initiate the establishment of a second connection with the smartwatch 440. After the second connection is established, the smartphone 430 can synchronize data with the smartwatch 440 through the second connection. For example, the smartphone 430 sends the data that needs to be synchronized to the smartwatch 440 through the second connection. After the smartwatch 440 receives the data sent by the smartphone 430, it disconnects the second connection with the smartphone 430.
[0159] It can be understood that a long connection established between devices can be used for bidirectional data synchronization between devices, as well as for bidirectional information exchange between devices. For example, through the first connection established between smartwatch 440 and smartphone 410, smartphone 410 can send synchronization data to smartwatch 440, and smartwatch 440 can also send synchronization data to smartphone 410. Smartwatch 410 can also send information to smartwatch 440, and smartwatch 440 can also send information to smartphone 410.
[0160] It can also be understood that the short connection established between devices can be used for one-way data synchronization between devices, and can also be used for two-way information interaction between devices. For example, through the second connection established between smartwatch 440 and smartphone 420, smartphone 420 can send synchronization data to smartwatch 440, smartphone 410 can send information to smartwatch 440, and smartwatch 440 can also send information to smartphone 420.
[0161] In other words, by applying the solution of this application embodiment, a user's device can simultaneously achieve data interaction with multiple other devices.
[0162] It should be understood that the above Figure 4 The embodiments shown are merely illustrative examples of the scenarios to which the embodiments of this application are applicable. The methods provided by this application can also be applied to other scenarios of data interaction between devices, and this application does not limit them.
[0163] For example, Figure 5 A schematic flowchart of a device connection method 500 provided in an embodiment of this application is shown. Figure 5 As shown, the first device and the second device establish a first connection through a first link, and the first device and the third device have been paired. The method 500 includes:
[0164] S501: When the third device detects the first interactive task, it initiates a second connection with the first device through the second link while the first connection is maintained; correspondingly, the first device maintains the first connection with the second device and establishes a second connection with the third device through the second link.
[0165] The first interactive task refers to the data interaction between the third device and the first device. For example, user activity data, call reminders, alarms, and message notifications generated on the third device need to be synchronized to the first device.
[0166] It should be understood that the establishment of a second connection between the first device and the third device via the second link will not cause the interruption of the first connection established between the first device and the second device via the first link.
[0167] This can be understood as follows: the first connection established through the first link is a long connection, and the first device and the second device interact with each other through the established long connection. The second connection established through the second link is a short connection, and this short connection is only established when there is a need for data interaction.
[0168] In some embodiments, the first device may broadcast the address information of the first link so that the second device can initiate a first connection with the first device through the first link based on the address information of the first link.
[0169] In some embodiments, the first device may broadcast the address information of the second link so that when the third device detects the first interactive task, it can initiate a second connection with the first device through the second link based on the address information of the second link.
[0170] In some embodiments, the first link may be a Bluetooth Classic (BR) connection channel, and the second link may be a BLE connection channel; the first device may broadcast the BR's media access control address (MAC) address and the BLE's MAC address.
[0171] In some embodiments, the first link and the second link can both be BLE connection channels. The first device can broadcast the MAC address of the BR and the MAC address of the first BLE, wherein the MAC address of the BR is an offset of the MAC address of the second BLE. The first device can calculate the MAC address of the second BLE through the MAC address of the BR, and then establish a first connection with the second device based on the MAC address of the second BLE, and establish a second connection with the device with data synchronization requirements based on the MAC address of the first BLE.
[0172] The pairing between the first device and the third device can include key negotiation between them. In other words, if key negotiation has been conducted between the first device and the third device, it can be considered that the first device and the third device have been paired.
[0173] S502: The first device and the third device perform a first data interaction through a second connection.
[0174] Here, the first data interaction refers to the data interaction corresponding to the first interaction task.
[0175] In some embodiments, a third device may send first interactive data corresponding to a first interactive task to a first device through a second connection. After receiving the first interactive data, the first device may, for example, display the first interactive data to a user, or display a relevant interface based on the first interactive data, or save the first interactive data, or perform other operations based on the first interactive data. This application does not limit these operations.
[0176] In some embodiments, the first device may also send information to the third device through the second connection. For example, after receiving the first interactive data sent by the third device, the first device may send feedback information to the third device. Or, after receiving the first interactive data sent by the third device, the first device may send a relevant notification to the third device when it detects that the user has performed an operation on the first interactive data on the first device.
[0177] In some embodiments, the first interaction data may be the first synchronization data.
[0178] In one example, the first interactive data is motion data. After the third device collects the user's motion data, it can synchronize the user's motion data to the first device through the second connection. After receiving the user's motion data, the first device can save the user's motion data and also display the user's motion data to the user.
[0179] In another example, the first interaction data is chat data. After receiving a chat message, the third device displays the chat message on its screen and can synchronize the chat message to the first device through a second connection. After receiving the chat message, the first device can also display the chat message on its screen. After the user views the chat message on the first device, the first device can send a viewing notification to the third device through the second connection. After receiving the viewing notification, the third device can cancel displaying the chat message on its screen.
[0180] In some embodiments, after the first device and the third device establish a second connection through the second link, the first device and the third device can negotiate to determine a first key, and then the first device and the third device use the first key to interact with data.
[0181] The first device and the third device use the first key to interact with each other, which may include: the first device and the third device using the first key to encrypt or decrypt the interactive data.
[0182] S503: When the data interaction between the first device and the third device meets the first preset condition, the first device disconnects the second connection established with the third device through the second link.
[0183] In some embodiments, the first preset condition includes the completion of data interaction between the first device and the third device, for example, the first device receiving the interaction data sent by the third device.
[0184] In some embodiments, the first preset condition includes the establishment time of the second connection between the first device and the third device exceeding a first duration, wherein the establishment time of the second connection refers to the duration during which the second connection remains in the established state.
[0185] In some embodiments, the establishment duration of the second connection described above can be replaced by other descriptions, such as: the first preset condition includes the duration during which the data interaction between the first device and the third device begins to exceed a first duration; or the first preset condition includes the duration during which the first device receives the interactive data sent by the third device exceeding a first duration; in addition, there may be other descriptions of equivalent nature, which are not limited in this application.
[0186] If the establishment time of the second connection between the first device and the third device exceeds the first time, the first device can disconnect the second connection established with the third device through the second link. In this way, large data exchanges can be carried out in multiple times, which can prevent the second link of the first device from being occupied by the same device for a long time, and thus prevent the second link of the first device from being unable to connect to other devices for data exchange in a timely manner.
[0187] In some examples, the first duration can be any duration within the range of greater than 0 and less than 5 minutes, such as 30 seconds, 60 seconds or 90 seconds, etc. The first duration can also be other durations, which are not limited in this application.
[0188] In some embodiments, the first device may be a wearable device, such as a smartwatch or a wristband, and the second and third devices may be terminal devices, such as smartphones or tablets.
[0189] In this embodiment, the wearable device is in a long-term connection with one of the multiple terminal devices, and can establish short connections with other terminal devices. The short connection between the wearable device and the terminal device is only established when the terminal device has a data interaction requirement. Long and short connections can coexist, and the establishment of a short connection will not cause the long connection to be interrupted. For example, it can realize the synchronization of key data from multiple terminal devices to the wearable device. The device connection process and data interaction process can be realized through Bluetooth and do not rely on the cloud.
[0190] Furthermore, wearable devices only need to maintain at most two links, which can reduce the power consumption generated by wearable devices during device connection and data interaction.
[0191] For example, Figure 6 A schematic architecture diagram of a system 600 for device connectivity provided in an embodiment of this application is shown.
[0192] like Figure 6 As shown, the system 600 includes a first device, a second device, and a third device. The first device includes a data interaction module 1, Bluetooth Low Energy 1, and Bluetooth Classic 1. The data interaction module 1 can be located in the application layer of the first device, while Bluetooth Low Energy 1 and Bluetooth Classic 1 can be located in the physical layer of the first device. The second device includes a data interaction module 2, Bluetooth Low Energy 2, and Bluetooth Classic 2. The data interaction module 2 can be located in the application layer of the second device, while Bluetooth Low Energy 2 and Bluetooth Classic 2 can be located in the physical layer of the second device. The third device includes a data interaction module 3, Bluetooth Low Energy 3, and Bluetooth Classic 3. The data interaction module 3 can be located in the application layer of the third device, while Bluetooth Low Energy 3 and Bluetooth Classic 3 can be located in the physical layer of the third device. A long-term connection is established between the first device and the second device, and the first device and the third device have been paired. Specifically:
[0193] The first device includes two communication modules, namely Bluetooth Low Energy 1 and Bluetooth Classic 1. Correspondingly, the first device includes two connection links, namely the first link corresponding to Bluetooth Classic 1 and the second link corresponding to Bluetooth Low Energy 1.
[0194] The first device establishes a first connection with the second device via classic Bluetooth 1 and classic Bluetooth 2. This first connection is a long-term connection, through which the first device and the second device can perform bidirectional data and information interaction.
[0195] When the third device detects the first interactive task, the third device initiates a second connection with the first device via Bluetooth Low Energy 3 and Bluetooth Low Energy 1.
[0196] Specifically, the first device can broadcast the address information of Bluetooth Low Energy 1, and the third device can receive the address information of Bluetooth Low Energy 1. When the third device detects the first interaction task, the third device can send a request to the first device to establish a second connection through the second link according to the address information of Bluetooth Low Energy 1. After receiving the request to establish a second connection, the first device maintains the first connection and establishes a second connection with the Bluetooth Low Energy 3 of the third device through Bluetooth Low Energy 1. The second connection is a short connection, and the first device and the third device can perform one-way data interaction (the third device sends interactive data to the first device) and two-way information interaction through the second connection.
[0197] The first interactive task refers to the data interaction task between the third device and the first device, such as user motion data, call reminders, alarm clocks, and information notifications generated on the third device.
[0198] It should be understood that the second connection established between Bluetooth Low Energy 3 and Bluetooth Low Energy 1 will not cause the first connection between Classic Bluetooth 1 and Classic Bluetooth 2 to be interrupted.
[0199] In some embodiments, the first device may broadcast the address information of Classic Bluetooth 1, so that the second device can initiate the establishment of a first connection with the first device based on the address information of Classic Bluetooth 1.
[0200] In some embodiments, the first device may broadcast the address information of Bluetooth Low Energy 1, so that when the third device detects the first interactive task, it can initiate the establishment of a second connection with the first device based on the address information of Bluetooth Low Energy 1.
[0201] Data interaction module 1 and data interaction module 2 are used to conduct data interaction between the first device and the second device through the first connection established by classic Bluetooth 1 and classic Bluetooth 2.
[0202] Data interaction module 1 and data interaction module 3 are used to conduct data interaction between the first device and the third device through a second connection established via Bluetooth Low Energy 1 and Bluetooth Low Energy 3.
[0203] In some embodiments, data interaction module 1 and data interaction module 2 are specifically used to: determine a second key through negotiation, and then use the second key to perform data interaction between the first device and the second device through a first connection established by classic Bluetooth 1 and classic Bluetooth 2.
[0204] In some embodiments, data interaction module 1 and data interaction module 3 are specifically used to: determine a first key through negotiation, and then use the first key to perform data interaction between a first device and a third device through a second connection established via Bluetooth Low Energy 1 and Bluetooth Low Energy 3.
[0205] When the first preset condition is met, the first device disconnects the second connection between Bluetooth Low Energy 1 and Bluetooth Low Energy 3 of the third device.
[0206] Among them, the interpretation of the first preset condition is as follows: Figure 5 The embodiments shown have been described in detail, and for the sake of brevity, they will not be repeated here.
[0207] In some embodiments, the first device may be a wearable device, such as a smartwatch or a wristband, and the second and third devices may be terminal devices, such as smartphones or tablets.
[0208] It is understood that the embodiments of this application use classic Bluetooth and Bluetooth Low Energy as examples of dual communication modules of the device for illustration, but this does not constitute any limitation on the dual communication modules of the device. The embodiments of this application are applicable to any device with dual communication modules. In the embodiments of this application, depending on the dual communication modules of the device, the first connection and the second connection can coexist.
[0209] In this embodiment, the wearable device is in a long-term connection with one of the multiple terminal devices, and can establish short connections with other terminal devices. The short connection between the wearable device and the terminal device is only established when the terminal device has a data interaction requirement. Long and short connections can coexist, and the establishment of a short connection will not cause the long connection to be interrupted. For example, it can realize the synchronization of key data from multiple terminal devices to the wearable device. The device connection process and data interaction process can be realized through Bluetooth and do not rely on the cloud.
[0210] Furthermore, wearable devices only need to maintain at most two links, which can reduce the power consumption generated by wearable devices during device connection and data interaction.
[0211] For example, Figure 7 A schematic flowchart of another device connection method 700 provided in an embodiment of this application is shown. Figure 7As shown, the first device and the second device have established a first connection through a first link, the first device and the third device have been paired, and the first device and the fourth device have been paired. The method 700 includes:
[0212] S701: When the second device detects the second interactive task, the second device and the first device perform a second data interaction through the first connection.
[0213] The second data interaction between the second device and the first device through the first connection can be bidirectional. For example, the second device can send second interactive data to the first device through the first connection. This second interactive data can be, for example, second synchronization data.
[0214] The first connection established between the second device and the first device via the first link is a long connection, and the second connection established between the first device and other devices via the second link will not cause the first connection between the second device and the first device to be interrupted.
[0215] For further explanation regarding the first connection, please refer to [link / reference]. Figure 5 For the sake of brevity, the relevant descriptions in the illustrated embodiments will not be repeated here.
[0216] S702: When the third device detects the first interactive task, it initiates a second connection with the first device through the second link while the first connection is maintained; correspondingly, the first device maintains the first connection with the second device and establishes a second connection with the third device through the second link.
[0217] S703: The third device and the first device perform a first data interaction through a second connection.
[0218] S704: When the data interaction between the first device and the third device meets the first preset condition, the first device disconnects the second connection established with the third device through the second link.
[0219] Among them, the explanations of S702 to S704 are... Figure 5 The explanations of S501 to S503 in the illustrated embodiments are the same, and for the sake of brevity, they will not be repeated here.
[0220] S705: When the fourth device detects the third interactive task, it initiates a second connection with the first device through the second link while the first connection is maintained; correspondingly, the first device maintains the first connection with the second device and establishes a second connection with the fourth device through the second link.
[0221] The third interactive task refers to the data interaction between the fourth device and the first device. For example, user activity data, call reminders, alarms, and message notifications generated on the fourth device need to be synchronized to the first device.
[0222] It should be understood that the establishment of a second connection between the first device and the fourth device via the second link will not cause the interruption of the first connection established between the first device and the second device via the first link.
[0223] In some embodiments, the first device may broadcast the address information of the second link so that when the fourth device detects the third interactive task, it can initiate the establishment of a second connection with the first device through the second link based on the address information of the second link.
[0224] The pairing between the first device and the fourth device can include key negotiation between them. In other words, if key negotiation between the first device and the fourth device is included, it can be considered that the first device and the fourth device have been paired.
[0225] S706: The fourth device and the first device perform a third data interaction through a second connection.
[0226] Among them, the third data interaction refers to the data interaction corresponding to the third interaction task.
[0227] In some embodiments, the fourth device may send third interactive data corresponding to the third interactive task to the first device through the second connection. After receiving the third interactive data, the first device may, for example, display the third interactive data to the user, or display a relevant interface based on the third interactive data, or save the third interactive data, or perform other operations based on the third interactive data. This application does not limit this.
[0228] In some embodiments, the first device may also send information to the fourth device through the second connection. For example, after receiving the third interactive data sent by the fourth device, the first device may send feedback information to the fourth device. Or, after receiving the third interactive data sent by the fourth device, the first device may send a relevant notification to the fourth device when it detects that the user has performed an operation on the third interactive data on the first device.
[0229] In some embodiments, the third interaction data may be the third synchronization data.
[0230] In one example, the third interactive data is motion data. After the fourth device collects the user's motion data, it can synchronize the user's motion data to the first device through the second connection. After receiving the user's motion data, the first device can save the user's motion data and also display the user's motion data to the user.
[0231] In another example, the third interactive data is chat data. After receiving a chat message, the fourth device displays the chat message on its screen and can synchronize the chat message to the first device through a second connection. After receiving the chat message, the first device can also display the chat message on its screen. After the user views the chat message on the first device, the first device can send a viewing notification to the fourth device through the second connection. After receiving the viewing notification, the fourth device can cancel displaying the chat message on its screen.
[0232] In some embodiments, after the first device and the fourth device establish a second connection through the second link, the first device and the fourth device can negotiate to determine a first key, and then the first device and the fourth device use the first key to interact with data.
[0233] The first device and the fourth device use the first key to interact with each other, which may include: the first device and the fourth device using the first key to encrypt or decrypt the interactive data.
[0234] It can be understood that the first device includes two communication modules, one of which corresponds to a communication link called the first link, and the other communication module corresponds to a link called the second link. The first connection mentioned in this application embodiment can refer to the connection established through the first link of the first device, and the second connection can refer to the connection established through the second link of the first device. Therefore, the connection established by the first device with the third device through the second link and the connection established by the first device with the fourth device through the second link can both be regarded as the second connection.
[0235] S707: When the data interaction between the first device and the fourth device meets the second preset condition, the first device disconnects the second connection established with the fourth device through the second link.
[0236] In some embodiments, the second preset condition includes the completion of data interaction between the first device and the fourth device, for example, the first device receiving the interaction data sent by the fourth device.
[0237] In some embodiments, the second preset condition includes the establishment time of the second connection between the first device and the fourth device exceeding the first duration, wherein the establishment time of the second connection refers to the duration during which the second connection remains in the established state.
[0238] In some embodiments, the establishment duration of the second connection described above can be replaced by other descriptions, such as: the second preset condition includes the duration during which the data interaction between the first device and the fourth device begins to exceed the first duration; or the second preset condition includes the duration during which the first device receives the interactive data sent by the fourth device exceeding the first duration; in addition, there may be other descriptions of equivalent nature, which are not limited in this application.
[0239] If the establishment time of the second connection between the first device and the fourth device exceeds the first time, the first device can disconnect the second connection established with the fourth device through the second link. In this way, data interaction with a large amount of data can be carried out in multiple times, which can prevent the second link of the first device from being occupied by the same device for a long time, and thus prevent the second link of the first device from being unable to connect to other devices in time for data interaction.
[0240] In some examples, the first duration can be any duration within the range of greater than 0 and less than 5 minutes, such as 30 seconds, 60 seconds or 90 seconds, etc. The first duration can also be other durations, which are not limited in this application.
[0241] In some embodiments, the first device may be a wearable device, such as a smartwatch or a wristband, and the second, third, and fourth devices may be terminal devices, such as smartphones or tablets.
[0242] It should be understood that the execution time of S702 to S704 can completely overlap with the execution time of S701, or it can partially overlap, or it can not overlap. That is to say, the data interaction between the first device and the second device and the data interaction between the first device and the third device can be carried out simultaneously. Similarly, the execution time of S705 to S707 can completely overlap with the execution time of S701, or it can partially overlap, or it can not overlap. That is to say, the data interaction between the first device and the second device and the data interaction between the first device and the fourth device can be carried out simultaneously.
[0243] It should also be understood that the execution time of S702 to S704 does not overlap with the execution time of S705 to S707. Only if the first device has not established a connection with other devices through the second link can the third device initiate a connection with the first device through the second link. In other words, the data interaction between the first device and the third device and the data interaction between the first device and the fourth device do not occur simultaneously.
[0244] Similarly, the fourth device can only initiate a connection with the first device through the second link if the first device has not established a connection with other devices through the second link.
[0245] For example, taking a watch as the first device and mobile phones as the second and third devices, Figure 8 A schematic flowchart of another device connection method 800 provided in an embodiment of this application is shown. Figure 8 As shown, watch and mobile phone A have established a long connection via BR, and watch and mobile phone B have been paired. Method 800 includes:
[0246] S801: An alarm clock 1 is set on mobile phone A. When mobile phone A emits the ringing corresponding to alarm clock 1, mobile phone A sends a ringing instruction 1 to the watch through the BR connection established between mobile phone A and the watch. The ringing instruction 1 is used to instruct the watch to emit the ringing corresponding to alarm clock 1.
[0247] S802: After receiving the ringing instruction 1 sent by mobile phone A, the watch will ring the corresponding alarm clock 1 to remind the user of the relevant matters related to alarm clock 1.
[0248] S803: When the user turns off the ringing of alarm 1 on the watch, the watch stops ringing, and the watch sends alarm off instruction 1 to mobile phone A through the BR connection established between the watch and mobile phone A. The alarm off instruction 1 is used to instruct mobile phone A to turn off the ringing of alarm 1 issued by the mobile phone.
[0249] S804: After receiving the alarm clock off instruction 1 sent by the watch, mobile phone A turns off the alarm clock 1.
[0250] It can be understood that the BR connection established between the watch and mobile phone A is a long-lasting connection, and this BR connection is maintained regardless of whether there is a current data interaction need between the watch and mobile phone A.
[0251] S805: Alarm 2 is set on mobile phone B. When mobile phone A rings the alarm corresponding to alarm 2, mobile phone B initiates a connection with the watch via BLE.
[0252] In one implementation, the process of establishing a BLE connection between mobile phone B and the watch may include:
[0253] Based on the BLE address information broadcast by the watch, mobile phone B sends a request to the watch to establish a BLE connection.
[0254] After receiving a request from mobile phone B to establish a BLE connection, the watch maintains the BR connection with mobile phone A and establishes a short connection between the watch's BLE and mobile phone B's BLE.
[0255] S806: After establishing a BLE connection between mobile phone B and watch, mobile phone B sends a ringing instruction 2 to watch through the established BLE connection. The ringing instruction 2 is used to instruct the watch to ring the alarm corresponding to alarm 2.
[0256] S807: After receiving the ringing instruction 2 sent by mobile phone B, the watch will ring the corresponding alarm clock 2 to remind the user of the relevant matters related to alarm clock 2.
[0257] S808: When the user turns off the ringing of alarm 2 on the watch, the watch stops ringing, and the watch sends alarm off instruction 2 to the mobile phone B through the BLE connection established between the watch and the mobile phone B. The alarm off instruction 2 is used to instruct the mobile phone B to turn off the ringing of alarm 2 issued by the mobile phone.
[0258] S809: After receiving the alarm clock off instruction 2 sent by the watch, mobile phone B turns off the alarm clock 2.
[0259] S810: After the watch sends an alarm off instruction 2 to mobile phone B through the BLE connection established with mobile phone B, the watch disconnects the BLE connection established with mobile phone B.
[0260] It should be understood that the execution order of S810 and S809 is not limited. S810 occurs after S808. That is, after the watch sends the alarm clock off instruction 2 to the mobile phone B, the watch automatically disconnects the BLE connection with the mobile phone B. In some embodiments, when the watch rings for a duration exceeding a preset duration according to the ringing instruction 2, the watch can stop ringing and automatically disconnect the BLE connection with the mobile phone B even if the user has not turned off the alarm clock 2.
[0261] In some embodiments, if the user turns off alarm 2 via mobile phone B, mobile phone B can send an alarm off instruction to the watch. Upon receiving the alarm off instruction, mobile phone B stops ringing and automatically disconnects the BLE connection with mobile phone B.
[0262] It should be understood that the execution time of S801 to S804 can completely overlap with the execution time of S805 to S810, or they can not overlap at all. In other words, the data interaction between the watch and mobile phone A and the data interaction between the watch and mobile phone B can occur simultaneously.
[0263] For example, taking a watch as the first device and mobile phones as the second and third devices, Figure 9 A schematic flowchart of another device connection method 900 provided in an embodiment of this application is shown. Figure 9 As shown, the watch and mobile phone A have established a long connection via BR, and the watch and mobile phone B have been paired. The method 900 includes:
[0264] S901: The user is using mobile phone A to perform the first exercise. During the first exercise, mobile phone A records the exercise data. After the first exercise ends, mobile phone A sends the first exercise data corresponding to the first exercise to the watch through the BR connection established between the two devices.
[0265] The first motion data may include, for example, the number of steps, the duration of the exercise, the speed of the exercise, or the trajectory of the exercise.
[0266] S902: After receiving the first motion data, the watch saves the first motion data.
[0267] S903: The watch displays this first motion data to the user through the watch's display screen.
[0268] S902 and S903 can be optional steps. That is, only S902 can be executed, only S903 can be executed, or both S902 and S903 can be executed. Alternatively, neither can be executed, but other operations can be performed based on the first motion data, such as: broadcasting the first motion data to the user by voice, or sharing the first motion data with a designated user.
[0269] S904: The user is using mobile phone B to perform a second exercise. During the second exercise, mobile phone B records exercise data. When the second exercise ends, mobile phone B initiates a connection with the watch via BLE.
[0270] In one implementation, the process of establishing a BLE connection between mobile phone B and the watch may include:
[0271] Based on the BLE address information broadcast by the watch, mobile phone B sends a request to the watch to establish a BLE connection.
[0272] After receiving a request from mobile phone B to establish a BLE connection, the watch maintains the BR connection with mobile phone A and establishes a short connection between the watch's BLE and mobile phone B's BLE.
[0273] S905: After establishing a connection between mobile phone B and watch via BLE, mobile phone B sends the second motion data corresponding to the second motion to watch through the established BLE connection.
[0274] S906: After the watch receives the second motion data sent by the mobile phone B, the watch disconnects the BLE connection established with the mobile phone B; or, if the duration of the BLE connection between the watch and the mobile phone B exceeds a preset duration, the watch disconnects the BLE connection established with the mobile phone B.
[0275] S907: After receiving the second motion data, the watch saves the second motion data.
[0276] S908: The watch displays this second motion data to the user through the watch's display screen.
[0277] S907 and S908 can be optional steps. S907 can be executed alone, S908 can be executed alone, or both S907 and S908 can be executed. Alternatively, neither can be executed, and other operations can be performed based on the second motion data, such as: broadcasting the second motion data to the user via voice, or sharing the second motion data with a designated user.
[0278] It should be understood that the execution time of S901 to S903 can completely overlap with the execution time of S904 to S908, or they can not overlap at all. In other words, the data interaction between the watch and mobile phone A and the data interaction between the watch and mobile phone B can occur simultaneously.
[0279] One or more modules or units described herein can be implemented in software, hardware, or a combination of both. When any of the above modules or units are implemented in software, the software exists as computer program instructions and is stored in memory. A processor can be used to execute the program instructions and implement the above method flow. The processor can include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor, etc., and various computing devices that run software. Each computing device may include one or more cores for executing software instructions to perform calculations or processing. The processor can be built into a SoC (System-on-a-Chip) or an application-specific integrated circuit (ASIC), or it can be a separate semiconductor chip. In addition to the cores within the processor for executing software instructions to perform calculations or processing, it may further include necessary hardware accelerators, such as field-programmable gate arrays (FPGAs), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.
[0280] When the modules or units described herein are implemented in hardware, the hardware may be any one or any combination of a CPU, microprocessor, DSP, MCU, artificial intelligence processor, ASIC, SoC, FPGA, PLD, application-specific digital circuit, hardware accelerator, or non-integrated discrete device, which may run the necessary software or perform the above method flow independently of software.
[0281] When the modules or units described herein are implemented using software, they can be implemented, in whole or in part, in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0282] Those skilled in the art will recognize that the units and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0283] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0284] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0285] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0286] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0287] If the aforementioned functions are implemented as 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 this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0288] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for connecting devices, characterized in that, The method is applied to a first device, where the first device and a second device establish a first connection via a first link. The method includes: After receiving the first connection request sent by the third device, the first device maintains the first connection and establishes a second connection with the third device through the second link. The first connection request is sent by the third device after generating a data interaction requirement. The third device has been paired with the first device. The first device interacts with the third device via the second connection; When the first preset condition is met, the first device disconnects the second connection.
2. The method according to claim 1, characterized in that, The first preset conditions include: Data interaction was detected between the first device and the third device.
3. The method according to claim 1, characterized in that, The first preset conditions include: It was detected that the duration of the second connection establishment exceeded the first duration.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: After receiving the second connection request sent by the fourth device, the first device maintains the first connection and establishes a third connection with the fourth device through the second link. The second connection request is sent by the fourth device when it detects a data interaction requirement. The fourth device has been paired with the first device. The first device interacts with the fourth device via the third connection; When the second preset condition is met, the first device disconnects the third connection.
5. The method according to claim 4, characterized in that, The second preset condition includes: The system detects that data interaction has been completed between the first device and the fourth device, or detects that the duration of the second connection establishment exceeds the first duration.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The first device broadcasts the address information of the first link and the address information of the second link.
7. The method according to any one of claims 1 to 6, characterized in that, The first device includes a first communication module and a second communication module. After receiving a first connection request sent by a third device, the first device maintains the first connection and establishes a second connection with the third device through a second link, including: After receiving the first connection request sent by the third device, the first device maintains the first connection established between the first communication module and the second device, and establishes the second connection with the third device through the second communication module.
8. The method according to claim 7, characterized in that, The first communication module is Bluetooth Classic (BR), and the second communication module is Bluetooth Low Energy (BLE).
9. The method according to any one of claims 1 to 8, characterized in that, The first device interacts with the third device via the second connection, including: The first device receives a ringing notification sent by the third device; The first device rings according to the ringing notification; The step of disconnecting the second connection when the first preset condition is met includes: In response to the user turning off the ringing via the first device, the first device stops ringing, sends a stop ringing notification to the third device, and disconnects the second connection, or When the first device detects that the duration of the second connection establishment exceeds the first duration, the first device stops ringing and disconnects the second connection.
10. The method according to any one of claims 1 to 9, characterized in that, The first device interacts with the third device via the second connection, including: The first device receives synchronization data sent by the third device; The step of disconnecting the second connection when the first preset condition is met includes: After receiving synchronization data from the third device, the first device disconnects the second connection, or When the first device detects that the duration of the second connection establishment exceeds the first duration, the first device disconnects the second connection.
11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: The first device and the second device interact with each other through the first connection.
12. The method according to any one of claims 1 to 11, characterized in that, The first device interacts with the third device via the second connection, including: The first device obtains the first key through negotiation with the third device; The first device uses the first key to interact with the third device via the second connection.
13. The method according to any one of claims 1 to 12, characterized in that, The first device is a wearable device, the second device is a terminal device, and the third device is a terminal device.
14. A method for connecting devices, characterized in that, The method is applied to a third device, and the method includes: After the third device generates a data interaction request, it sends a first connection request to the first device. The first connection request is used to request to establish a connection with the first device through the second link. The third device has been paired with the first device. While the first device maintains a first connection with the second device through the first link, the third device establishes a second connection with the first device through the second link; The third device interacts with the first device via the second connection; wherein the second connection is disconnected when a first preset condition is met.
15. The method according to claim 14, characterized in that, The first preset condition includes the completion of data interaction between the first device and the third device, or the duration of the second connection being established exceeding the first duration.
16. The method according to claim 14 or 15, characterized in that, Before sending the first connection request to the first device, the method further includes: The third device receives the address information of the second link broadcast by the first device.
17. The method according to any one of claims 14 to 16, characterized in that, The first device includes a first communication module and a second communication module. The step of the third device establishing a second connection with the first device via the second link while the first device maintains a first connection with the second device via a first link includes: While the first device maintains the first connection with the second device through the first communication module, the third device and the second communication module establish the second connection.
18. The method according to claim 17, characterized in that, The first communication module is Bluetooth Classic (BR), and the second communication module is Bluetooth Low Energy (BLE).
19. The method according to any one of claims 14 to 18, characterized in that, The third device interacts with the first device via the second connection, including: When the third device rings, it sends a ringing notification to the first device, the ringing notification being used to notify the first device that the ringing has occurred; When the third device receives a stop ringing notification from the first device, it turns off the ringing.
20. The method according to any one of claims 14 to 19, characterized in that, The third device interacts with the first device via the second connection, including: When the third device generates a data synchronization requirement, it sends synchronization data to the first device.
21. The method according to any one of claims 14 to 20, characterized in that, The third device interacts with the first device via the second connection, including: The third device obtains the first key through negotiation with the first device; The third device uses the first key to interact with the first device via the second connection.
22. The method according to any one of claims 14 to 21, characterized in that, The first device is a wearable device, the second device is a terminal device, and the third device is a terminal device.
23. An electronic device, characterized in that, include: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 13.
24. An electronic device, characterized in that, include: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 14 to 22.
25. A system, characterized in that, The system includes: A first electronic device is configured to perform the method as described in any one of claims 1 to 13; A second electronic device is used to perform the method as described in any one of claims 14 to 22.
26. A computer-readable storage medium, characterized in that, The storage medium stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 13, or the method as described in any one of claims 14 to 22.
27. A chip, characterized in that, The chip stores instructions that, when executed, implement the method as described in any one of claims 1 to 13, or the method as described in any one of claims 14 to 22.
28. A computer program product, characterized in that, The computer program product stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 13, or the method as described in any one of claims 14 to 22.