Connection management method, electronic device, and system

By sleeping on high-power connections between devices and data transmission and connection keeping through a low-power second connection, the problem of increased power consumption and reconnection waiting caused by long-term maintenance of device connections is solved, and more efficient data transmission and user experience is achieved.

WO2025124001A1PCT designated stage expired Publication Date: 2025-06-19HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/129668
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-11
Filing Date
2024-11-04
Publication Date
2025-06-19

AI Technical Summary

Technical Problem

In distributed collaborative services, maintaining connections between devices for a long time increases power consumption, while if the connection is disconnected, it requires re-establishing the connection in the event of a burst service, it will cause the user to wait.

Method used

Flexible communication connection management is achieved by sleeping on high-power connections between devices and data transmission through a low-power second connection. At the same time, the first connection is kept alive through the second connection to avoid reconnection waiting.

Benefits of technology

Reduces device power consumption, avoids data transmission failure, reduces user waiting time, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024129668_19062025_PF_FP_ABST
    Figure CN2024129668_19062025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals, and provides a connection management method, an electronic device, and a system. According to the present application, when a transmission data volume on a first connection between devices is small, the first connection can be put into a sleep mode, and data transmission is carried out by means of a second connection, thereby realizing flexible communication connection management. The method comprises: when a first electronic device determines that the first connection of a first communication mode established between the first electronic device and a second electronic device satisfies a sleep condition, putting the first connection into the sleep mode; then, when the first electronic device acquires data to be transmitted, determining that the data to be transmitted is smaller than a first threshold, and sending the data to be transmitted to the second electronic device by means of the second connection of a second communication mode.
Need to check novelty before this filing date? Find Prior Art

Description

Connection management method, electronic device and system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on December 11, 2023, with application number 202311702968.4 and application name “Connection Management Method, Electronic Device and System”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a connection management method, electronic device, and system. Background Art

[0003] With the development of terminal technology, distributed collaborative services are widely used in users' daily lives and office scenarios. Distributed collaborative services include multi-screen collaboration, screen projection, and super desktop.

[0004] For example, a distributed communication system includes a laptop and a mobile phone. After the laptop and mobile phone establish a multi-screen collaborative connection, a screen projection window can be created on the laptop to display the screen projection content of the mobile phone. This allows users to operate the laptop and mobile phone simultaneously on the laptop, providing a better user experience.

[0005] However, if devices remain connected during distributed collaboration, this increases device power consumption. If devices are disconnected, connections between them will need to be reestablished when a service burst occurs, forcing users to wait for the devices to reconnect.

[0006] Summary of the Invention

[0007] To solve the above technical problems, the present application provides a connection management method, electronic device, and system. The technical solution provided by the present application can put the first connection between devices to sleep when the amount of data transmitted on the first connection is small, and transmit data through the second connection, thereby achieving flexible communication connection management.

[0008] In order to achieve the above technical objectives, this application provides the following technical solutions:

[0009] In a first aspect, a connection management method is provided, applicable to an electronic device. A first connection using a first communication method is established between a first electronic device and a second electronic device. The method includes: the first electronic device determining that the first connection meets a dormancy condition, dormantizing the first connection; obtaining first data to be transmitted; determining that the first data is less than a first threshold, and transmitting the first data to the second electronic device via a second connection using a second communication method.

[0010] In some examples, a first electronic device can put its first connection with a second electronic device into hibernation. When a small amount of data is available for transmission, the first electronic device can transmit the small amount of data via its second connection with the second electronic device. This allows for flexible data transmission and avoids data transmission failures caused by dormant connections. Furthermore, by putting the inter-device connection into hibernation, power consumption can be reduced, rather than requiring it to remain continuously active.

[0011] In some examples, the power consumption generated by transmitting data via the second connection is less than the power consumption generated by transmitting the same data via the first connection.

[0012] In this way, the first electronic device reduces power consumption by dormant the high-power first connection. Furthermore, when the amount of data to be transmitted is small, the small amount of data to be transmitted can be transmitted via the low-power second connection, thereby ensuring successful data transmission while reducing data transmission power consumption.

[0013] In some examples, the first data is keep-alive data for keeping the first connection alive, wherein the keep-alive data generally has a small amount of data.

[0014] In this way, during the dormancy of the first connection, the first connection is kept alive through the low-power second connection, thereby reducing device power consumption and avoiding the need to reconnect to the first connection when the first connection is needed later.

[0015] According to the first aspect, the method further includes: acquiring second data to be transmitted, determining that the second data is greater than or equal to a first threshold, waking up the first connection, and sending the second data to the second electronic device via the first connection.

[0016] In this way, the first electronic device can flexibly put the first connection into sleep or wake up according to the actual data transmission situation, thereby reducing the power consumption of the device without affecting data transmission and improving the flexibility of data transmission.

[0017] According to the first aspect, or any implementation of the first aspect above, after dormant the first connection, the method further includes: acquiring third data, the third data including state information of the first connection, and sending the third data to the second electronic device via the second connection according to a preset period.

[0018] According to the first aspect, or any implementation of the first aspect above, the status information includes one or more of the following: a channel for the first connection, a sleep state, clock information, and an antenna for the first connection.

[0019] In this way, after the first electronic device puts the first connection into dormancy, it can keep the first connection alive through the second connection with lower power consumption. Based on the keep-alive status of the first connection, when business data needs to be transmitted through the first connection, the dormant first connection can be directly pulled up without having to wait for the first connection to reconnect, thus reducing user waiting time and improving the user experience.

[0020] According to the first aspect, or any implementation of the first aspect above, waking up the first connection includes: waking up the first connection of the first electronic device, and sending a wake-up instruction to the second electronic device via the second connection, where the wake-up instruction is used to instruct the second electronic device to wake up the first connection of the second electronic device.

[0021] According to the first aspect, or any implementation of the first aspect above, waking up the first connection of the first electronic device includes: waking up the sending interface of the first connection of the first electronic device, the receiving interface of the first connection of the first electronic device, and at least one of the functions of the first communication mode.

[0022] For example, when the first electronic device determines that the amount of data to be transmitted is large, it needs to wake up the first connection to transmit the data to be transmitted. Then, the first electronic device can wake up the first connection that has been dormant on this end, such as waking up the TX interface and RX interface of the first connection. Optionally, the first electronic device can also send a wake-up instruction to the second electronic device, so that when the second electronic device has also put the first connection between it and the first electronic device to sleep, the second electronic device can also wake up the first connection according to the wake-up instruction. This avoids the failure of the data to be transmitted when the first electronic device subsequently sends the data to be transmitted through the first connection.

[0023] According to the first aspect, or any implementation of the first aspect above, after waking up the first connection and sending the second data to the second electronic device through the first connection, the method further includes: the first electronic device determines that the first connection meets the sleep condition and sleeps the first connection.

[0024] In this way, the first electronic device can flexibly put the first connection into sleep or wake up according to the actual data transmission situation, thereby reducing the power consumption of the device without affecting data transmission and improving the flexibility of data transmission.

[0025] According to the first aspect, or any implementation of the first aspect above, after dormant the first connection, the method further includes: waking up the first connection when the dormant time length meets a preset time length.

[0026] In this way, the first electronic device wakes up the first connection according to the preset period, achieving better state synchronization of the first connection between the first electronic device and the second electronic device, and avoiding the abnormality of the first connection being dormant for a long time, which leads to the loss of the first connection.

[0027] According to the first aspect, or any implementation of the first aspect above, the first connection operates on a first channel. After dormant, the method further includes: receiving a connection request from a third electronic device, the connection request being used to request establishment of a connection in the first communication mode with the first electronic device on the second channel; waking up the first connection, and switching the first connection from the first channel to the second channel.

[0028] In this way, during the dormancy of the first connection, the electronic device can also adaptively adjust the operating parameters of the first connection according to the change of the channel information, thereby saving resources of the first connection while ensuring reduced power consumption of the device.

[0029] According to the first aspect, or any implementation of the first aspect above, waking up the first connection and switching the first connection from the first channel to the second channel includes: waking up the first connection of the first electronic device and switching the first connection of the first electronic device from the first channel to the second channel; and sending a channel switching indication to the second electronic device, where the channel switching indication is used to instruct the second electronic device to switch the first connection of the second electronic device from the first channel to the second channel.

[0030] According to the first aspect, or any implementation of the first aspect above, the sleep condition includes that the amount of data transmitted through the first connection within a preset time is less than a second threshold.

[0031] For example, during communication between a first electronic device and a second electronic device via a first connection, if the service data volume remains low after the first connection is kept alive for a period of time, for example, the transmitted data only includes a small amount of data such as a keep-alive signal, the first electronic device may put the first connection into hibernation, thereby reducing power consumption associated with maintaining the first connection.

[0032] In this way, when the amount of data to be transmitted is small, the first electronic device can put the high-power consumption first connection into hibernation to reduce device power consumption.

[0033] According to the first aspect, or any implementation of the first aspect above, after determining that the first data is less than the first threshold, the method further includes: establishing a second connection with the second electronic device through a second communication method.

[0034] In this way, when the first electronic device determines that the amount of data to be transmitted is small, it can determine that it does not need to wake up the high-power first connection. The first electronic device can then choose to send the data to be transmitted to the second electronic device via the second communication method with lower power consumption. If the connection with the second communication method is not established, the first electronic device can also actively trigger the establishment of a second connection using the second communication method to send the data to be transmitted via the second connection with lower power consumption, thereby ensuring successful data transmission while reducing data transmission power consumption.

[0035] According to the first aspect, or any implementation method of the above first aspect, the first communication mode is a wireless fidelity Wi-Fi communication mode or a basic Star Flash connection SLB communication mode, and the second communication mode is a Bluetooth communication mode or a low-power Star Flash connection SLE communication mode.

[0036] For example, the first connection of the first communication mode is a Wi-Fi connection, and the second connection of the second communication mode is a BLE Bluetooth connection; or, the first connection of the first communication mode is a Wi-Fi connection, and the second connection of the second communication mode is a normal Bluetooth connection; or, the first connection of the first communication mode is a Wi-Fi connection, and the second connection of the second communication mode is an SLE connection; or, the first connection of the first communication mode is an SLB connection, and the second connection of the second communication mode is an SLE connection; or, the first connection of the first communication mode is an SLB connection, and the second connection of the second communication mode is a BLE Bluetooth connection, etc.

[0037] In a second aspect, a first electronic device is provided. The first electronic device includes: a processor and a memory, the memory being coupled to the processor, the memory being configured to store computer program code, the computer program code comprising computer instructions. When the processor reads the computer instructions from the memory, the first electronic device is caused to execute the following steps: determining that a first connection established with a second electronic device using a first communication method satisfies a dormancy condition, dormant the first connection; obtaining first data to be transmitted; determining that the first data is less than a first threshold, and transmitting the first data to the second electronic device via a second connection using a second communication method.

[0038] According to a second aspect, when the processor reads the computer instructions from the memory, the processor further causes the first electronic device to execute: obtaining second data to be transmitted; determining that the second data is greater than or equal to a first threshold; waking up the first connection; and sending the second data to the second electronic device via the first connection.

[0039] According to the second aspect, or any implementation of the second aspect above, the power consumption generated by transmitting data through the second connection is less than the power consumption generated by transmitting the same data through the first connection.

[0040] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instructions from the memory, the processor further causes the first electronic device to: obtain third data, the third data including status information of the first connection; and send the third data to the second electronic device via the second connection according to a preset period.

[0041] According to the second aspect, or any implementation of the second aspect above, the status information includes one or more of the following: a channel for the first connection, a sleep state, clock information, and an antenna for the first connection.

[0042] According to the second aspect, or any implementation of the second aspect above, waking up the first connection includes: waking up the first connection of the first electronic device, and sending a wake-up instruction to the second electronic device via the second connection, where the wake-up instruction is used to instruct the second electronic device to wake up the first connection of the second electronic device.

[0043] According to the second aspect, or any implementation of the above second aspect, waking up the first connection of the first electronic device includes: waking up the sending interface of the first connection of the first electronic device, the receiving interface of the first connection of the first electronic device, and at least one of the functions of the first communication mode.

[0044] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, it also causes the first electronic device to execute: the first electronic device determines that the first connection meets the dormancy condition, and dormant the first connection.

[0045] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, it also causes the first electronic device to execute: when the sleep duration meets the preset time length, wake up the first connection.

[0046] According to the second aspect, or any implementation of the second aspect above, the first connection operates on the first channel, and when the processor reads the computer instructions from the memory, it further causes the first electronic device to execute: receiving a connection request from a third electronic device, the connection request being used to request establishment of a connection using the first communication mode with the first electronic device on the second channel; waking up the first connection, and switching the first connection from the first channel to the second channel.

[0047] According to the second aspect, or any implementation of the second aspect, waking up the first connection and switching the first connection from the first channel to the second channel includes: waking up the first connection of the first electronic device and switching the first connection of the first electronic device from the first channel to the second channel; and sending a channel switching indication to the second electronic device, where the channel switching indication is used to instruct the second electronic device to switch the first connection of the second electronic device from the first channel to the second channel.

[0048] According to the second aspect, or any implementation of the second aspect, the sleep condition includes that the amount of data transmitted through the first connection within a preset time is less than a second threshold.

[0049] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, it also causes the first electronic device to execute: establishing a second connection with the second electronic device through the second communication method.

[0050] According to the second aspect, or any implementation method of the above second aspect, the first communication mode is a wireless fidelity Wi-Fi communication mode or a basic Star Flash connection SLB communication mode, and the second communication mode is a Bluetooth communication mode or a low-power Star Flash connection SLE communication mode.

[0051] In a third aspect, a connection management system is provided, comprising a first electronic device and a second electronic device, wherein a first connection using a first communication method is established between the first electronic device and the second electronic device. The first electronic device is configured to: determine that the first connection meets a dormancy condition, and then dormant the first connection; obtain first data to be transmitted; determine that the first data is less than a first threshold; send the first data to the second electronic device via a second connection using a second communication method; and receive the first data sent by the first electronic device via the second connection.

[0052] According to a third aspect, the first electronic device is further configured to: obtain second data to be transmitted; determine whether the second data is greater than or equal to a first threshold; wake up the first connection, and send the second data to the second electronic device via the first connection; and the second electronic device is configured to receive the second data sent by the first electronic device via the first connection.

[0053] According to the third aspect, or any implementation of the third aspect, the first electronic device is further configured to: obtain third data, the third data including status information of the first connection; send the third data to the second electronic device via the second connection according to a preset period; and the second electronic device is configured to receive the third data sent by the first electronic device via the second connection.

[0054] In a fourth aspect, an electronic device is provided, the electronic device having the functionality to implement the connection management method described in the first aspect and any possible implementation thereof. This functionality can be implemented via hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functionality.

[0055] In a fifth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or codes), which, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.

[0056] In a sixth aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the method of the first aspect or any one of the embodiments of the first aspect.

[0057] In a seventh aspect, a circuit system is provided, the circuit system including a processing circuit, the processing circuit being configured to execute the method of the first aspect or any one of the embodiments of the first aspect.

[0058] In an eighth aspect, a chip system is provided, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor. When the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect.

[0059] The technical effects of the aforementioned aspects can be referenced with each other and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] FIG1 is a schematic diagram of a P2P connection scenario provided in an embodiment of the present application;

[0061] FIG2 is a schematic diagram of a communication system to which the connection management method according to an embodiment of the present application is applied;

[0062] FIG3 is a schematic diagram of the hardware structure of a first electronic device provided in an embodiment of the present application;

[0063] FIG4 is a schematic diagram of a software structure block diagram of a first electronic device provided in an embodiment of the present application;

[0064] FIG5 is a flow chart of a connection management method according to an embodiment of the present application;

[0065] FIG6 is a second flow chart of the connection management method provided in an embodiment of the present application;

[0066] FIG7 is a third flow chart of the connection management method provided in an embodiment of the present application;

[0067] FIG8 is a fourth flow chart of a connection management method according to an embodiment of the present application;

[0068] FIG9 is a schematic structural diagram of a first electronic device provided in an embodiment of the present application;

[0069] FIG10 is a schematic structural diagram of a second electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).

[0071] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0072] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0073] In some embodiments, distributed collaborative services are widely used in users' daily lives and office scenarios. Among them, distributed collaborative services include multi-screen collaboration, screen projection, super desktop, etc. For example, peer-to-peer (P2P) connections are established between different electronic devices to form a distributed communication system and perform distributed collaborative services. Optionally, P2P connections include, for example, wireless fidelity (Wi-Fi) connections, Bluetooth connections, and StarFlash connections.

[0074] For example, as shown in the scenario in Figure 1, the distributed communication system includes a tablet, a laptop computer, and a mobile phone. Among them, the laptop computer and the mobile phone establish a P2P connection, and the P2P connection can be used for the laptop computer to receive the projection content sent by the mobile phone, and to feedback the user's operation on the projection content on the laptop computer to the mobile phone. In this way, through multi-screen collaboration, the user can operate the laptop computer and the mobile phone on the laptop computer at the same time. In addition, the tablet computer and the laptop computer establish a P2P connection, and the tablet computer is used as the secondary screen of the laptop computer through the P2P connection, thereby expanding the display of the laptop computer.

[0075] As can be seen in the scenario shown in Figure 1, the laptop needs to maintain a P2P connection with the mobile phone and tablet to accommodate any possible data transfers. However, due to bandwidth, data transfer speed, and stability considerations, P2P connections for distributed collaborative services typically use Wi-Fi. Wi-Fi connections consume a lot of power, and maintaining a constant Wi-Fi connection between devices increases device power consumption. For example, maintaining a Wi-Fi connection even when no data is being transferred between devices results in unnecessary device power consumption.

[0076] If the P2P connection between devices is disconnected when the business data is low, although the connection power consumption is reduced, the P2P connection needs to be rebuilt between the devices when there is a business emergency. During this period, the user needs to wait, which affects the user experience. For example, in the scenario shown in Figure 1 above, the tablet is used as a secondary screen for the laptop and is currently used to run a browser application. If the user does not operate the browser application for a long time, the P2P connection between the tablet and the laptop is disconnected to reduce device power consumption. However, if the user suddenly needs to operate the browser application running on the tablet through the laptop, the tablet and the laptop need to reestablish the P2P connection in response to the user operation. During this period, the user can only wait. After the P2P connection is reestablished, the user can continue to use the browser application running on the tablet through the laptop, resulting in a poor user experience.

[0077] Therefore, the present invention provides a connection management method that, when the amount of data transmitted on a high-power first connection between devices is small, can put the first connection into hibernation, transmit data via a second connection, and keep the first connection alive via the second connection. This ensures that the power consumption of the connection between devices is reduced while avoiding waiting when the devices reconnect.

[0078] Figure 2 is a schematic diagram of a communication system to which the connection management method provided in an embodiment of the present application is applied. As shown in Figure 2 , the communication system includes a first electronic device 100 and a second electronic device 200 .

[0079] Optionally, the first electronic device 100 or the second electronic device 200 may be, for example, a mobile phone, a computer, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, an artificial intelligence (AI) device, or other terminal device. The operating system installed on the first electronic device 100 or the second electronic device 200 includes but is not limited to: This application does not limit the specific type of the first electronic device 100 or the second electronic device 200 or the installed operating system.

[0080] In some embodiments, a wireless communication connection is established between the first electronic device 100 and the second electronic device 200. The wireless communication technology used to establish the wireless communication connection includes, but is not limited to, at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT) (for example, traditional Bluetooth or Bluetooth low energy (BLE)), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), ultra wide band (UWB), star flash, etc.

[0081] Optionally, multiple first electronic devices 100 or multiple second electronic devices 200 may also establish a communication connection through a third-party device in the local area network, such as a router, a gateway, a smart device controller, a server, etc.

[0082] In some embodiments, data is transmitted between the first electronic device 100 or the second electronic device 200 via a first connection established via a first communication method. When the data transmission volume decreases and the dormancy condition is met, the first electronic device 100 and / or the second electronic device 200 may dormant the first connection and keep the first connection alive via a second connection. The second connection is a connection established via a second communication method, and the operating power consumption of the second connection is lower than the operating power consumption of the first connection. For example, if the first communication method is Wi-Fi communication, the first connection is a Wi-Fi connection; if the second communication method is BLE Bluetooth communication, the second connection is a BLE Bluetooth connection.

[0083] In some embodiments, as shown in FIG2 , the communication system may further include a third electronic device 300. In some examples, the third electronic device 300 requests to establish a connection using the first communication mode with the first electronic device 100. During the communication negotiation process, the first electronic device 100 may adjust the communication channel of the first connection with the second electronic device 200 based on the communication channel requested by the third electronic device 300. Optionally, the first connection between the first electronic device 100 and the second electronic device 200 is in a dormant state. Thus, when the first connection is in a dormant state, the connection parameters may be adaptively adjusted, so that better transmission effects may be achieved after the first connection is subsequently awakened.

[0084] Optionally, the first electronic device 100, the second electronic device 200, and the third electronic device 300 in the embodiment of the present application can be implemented by different devices, and the different devices can have the same, similar, or somewhat different hardware structures, such as the hardware structure shown in Figure 3.

[0085] For example, taking the first electronic device 100 having the hardware structure shown in FIG. 3 as an example, the hardware structure shown in FIG. 3 is described.

[0086] As shown in Figure 3, the first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0087] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0088] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0089] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0090] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0091] In some embodiments, the processor 110 may include one or more interfaces. The 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.

[0092] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor, charger, flash, camera 193, etc. via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor via the I2C interface, allowing the processor 110 to communicate with the touch sensor via the I2C bus interface, thereby implementing the touch function of the first electronic device 100.

[0093] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the first electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the first electronic device 100.

[0094] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the first electronic device 100, or to transfer data between the first electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.

[0095] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative description and does not constitute a structural limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.

[0096] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the first electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

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

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

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

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

[0101] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs the sound signal through the audio device or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.

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

[0103] In some embodiments, the antenna 1 of the first electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the first electronic device 100 can communicate with a network and other devices through 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 technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

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

[0105] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the first electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

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

[0107] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored in the external memory card.

[0108] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the first electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0109] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110. The first electronic device 100 can use the audio module 170, such as music playback and recording. The audio module 170 may include a speaker, a receiver, a microphone, a headphone jack, and an application processor to implement audio functions.

[0110] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0111] The buttons 190 include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons. The first electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the first electronic device 100.

[0112] Motor 191 can generate vibration alerts. This can be used for incoming call vibration alerts or touch vibration feedback. Depending on the touch operation applied to different areas of the display 194, motor 191 can also generate different vibration feedback effects. Different application scenarios (e.g., time reminders, receiving messages, alarm clocks, gaming, etc.) can also correspond to different vibration feedback effects.

[0113] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0114] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the first electronic device 100 by inserting or removing the SIM card into or from the SIM card interface 195. The first electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than one.

[0115] The software systems of the first electronic device 100, the second electronic device 200, and the third electronic device 300 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android system having a layered architecture of the first electronic device 100 is used as an example to illustrate the software structures of the first electronic device 100, the second electronic device 200, and the third electronic device 300.

[0116] FIG4 is a block diagram of the software structure of the first electronic device 100 according to an embodiment of the present application.

[0117] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0118] The application layer can include a series of application packages.

[0119] As shown in FIG4 , the application package may include applications such as calendar, contacts, memo, camera, music, gallery, map, call, video, etc.

[0120] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0121] As shown in FIG4 , the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a connection manager, and the like.

[0122] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0123] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0124] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0125] The phone manager is used to provide communication functions of the first electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0126] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0127] The notification manager enables applications to display notification information in the status bar, which can be used to convey informational messages and disappear automatically after a short stay without user interaction.

[0128] The connection management module is used to select the communication method between the first electronic device 100 and the peer device. For example, after receiving data generated by an application in the application layer, the connection management module instructs the first electronic device 100 to send the data to the peer device via a Wi-Fi connection. Subsequently, during the data transmission process, the connection management module determines whether the Wi-Fi connection needs to be dormant, whether the Wi-Fi connection needs to be kept alive using a BLE Bluetooth connection, whether a small amount of data to be transmitted needs to be transmitted via a BLE Bluetooth connection, etc., based on the amount of data to be transmitted.

[0129] It should be understood that the connection management module can also be located in other layers of the layered architecture. For example, the connection management module can also be located in the system library, which is not limited in this embodiment of the present application.

[0130] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

[0131] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0132] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0133] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0134] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0135] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0136] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0137] A 2D graphics engine is a drawing engine for 2D drawings.

[0138] The kernel layer is the layer between hardware and software. It includes at least the display driver, camera driver, audio driver, and connection driver. Optionally, the connection driver includes at least the Bluetooth driver and the Wi-Fi driver. Optionally, connection sleep indicates that the driver corresponding to the connection mode is in sleep mode. For example, Wi-Fi connection sleep indicates that the Wi-Fi driver is in sleep mode.

[0139] The following takes the P2P connection established between the first electronic device 100 and the second electronic device 200 as an example, including a first connection and a second connection, the power consumption of the first connection is higher than the power consumption of the second connection, wherein the first connection is a Wi-Fi connection and the second connection is a Bluetooth connection (such as a BLE Bluetooth connection), to introduce in detail the connection management method provided in an embodiment of the present application.

[0140] Figure 5 is a flow chart of a connection management method provided in an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in Figure 5 and below. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0141] S501: In response to a user operation, a first electronic device determines a second electronic device to be connected.

[0142] Optionally, the user operation is, for example, an operation that triggers the establishment of a distributed collaborative service. For example, the user operation is an operation of instructing on the first electronic device to project the screen to the second electronic device, or an operation of allowing the first electronic device to receive the screen projection of the second electronic device, etc. Alternatively, in some examples, the first electronic device has been set to allow the establishment of a connection with the second electronic device by default, so there is no need for a user operation to trigger it, and the distributed collaborative service can also trigger the first electronic device to determine the second electronic device to be connected.

[0143] S502: The first electronic device and the second electronic device establish a Wi-Fi connection.

[0144] In some embodiments, after the first electronic device determines the second electronic device, the first electronic device and the second electronic device negotiate to establish a Wi-Fi connection.

[0145] Optionally, the negotiation process for establishing a Wi-Fi connection includes, for example, a monitoring process, an identity negotiation process, etc. The specific method for establishing a Wi-Fi connection may refer to the prior art, and the embodiment of the present application does not limit it.

[0146] S503: The first electronic device and the second electronic device perform service data interaction and link keep-alive based on the Wi-Fi connection.

[0147] In some embodiments, after establishing a Wi-Fi connection, the first electronic device and the second electronic device can transmit service data through the Wi-Fi connection. For example, in a screen projection scenario, the first electronic device sends projection data to the second electronic device.

[0148] In some embodiments, during communication, to confirm that the peer device is online and the communication connection between the devices is not disconnected, the electronic device sends a keepalive signal to the peer device according to preset conditions or a preset period. After receiving the keepalive signal, the peer device feeds back the keepalive signal to the electronic device. In this way, the electronic devices at both ends can confirm that the current communication connection is normal. It should be understood that the keepalive signal can also be described as heartbeat data, etc.

[0149] For example, after the first electronic device establishes a Wi-Fi connection with the second electronic device, it determines that no business data is transmitted through the Wi-Fi connection within a period of time (such as 5 seconds). It can be determined that the preset conditions are met, and the first electronic device sends a keep-alive signal to the second electronic device to determine whether the current Wi-Fi connection communication of the second electronic device is normal.

[0150] For another example, after establishing a Wi-Fi connection with a second electronic device, the first electronic device sends a keep-alive signal to the second electronic device through the Wi-Fi connection at a preset period (e.g., 3 seconds) to determine whether the current Wi-Fi connection communication of the second electronic device is normal.

[0151] S504: The first electronic device determines that the service data volume is reduced and the sleep condition is met, and puts the Wi-Fi connection into sleep mode.

[0152] S505: The second electronic device determines that the service data volume is reduced and the sleep condition is met, and puts the Wi-Fi connection into sleep mode.

[0153] Optionally, the sleep condition includes, for example, that the amount of service data is lower than a preset threshold within a preset time period.

[0154] In some embodiments, when an electronic device (such as a first electronic device or a second electronic device) is communicating via a Wi-Fi connection, if the Wi-Fi connection is kept alive for a period of time and the traffic data volume remains low, for example, the transmitted data only includes a small amount of data such as a keep-alive signal, the electronic device may put the Wi-Fi connection into hibernation, thereby reducing the power consumption of maintaining the Wi-Fi connection.

[0155] Optionally, during the Wi-Fi connection dormancy process, the electronic device's transmit (TX) interface and receive (RX) interface are both shut down, and no service data is sent to the peer device or data is received from the peer device. Alternatively, the electronic device can directly shut down the Wi-Fi function to save Wi-Fi power consumption.

[0156] For example, if the first electronic device determines that the amount of business data transmitted between the first electronic device and the second electronic device via the Wi-Fi connection does not exceed 100 bytes within 5 minutes, the first electronic device may put the Wi-Fi connection into hibernation.

[0157] S506: The first electronic device and the second electronic device establish a Bluetooth connection, and keep the Wi-Fi connection alive through the Bluetooth connection.

[0158] In some embodiments, after the first electronic device puts the Wi-Fi connection to sleep, it can trigger the establishment of a Bluetooth connection (such as a BLE Bluetooth connection) with the second electronic device. Afterwards, the first electronic device can periodically send a keep-alive signal of the dormant Wi-Fi connection to the second electronic device via the Bluetooth connection to keep the Wi-Fi connection alive, thereby avoiding disconnection of the Wi-Fi connection between the first and second electronic devices, which would result in a subsequent authentication process for re-establishing the Wi-Fi connection.

[0159] Optionally, the keep-alive signal transmitted via the Bluetooth connection for the dormant Wi-Fi connection carries Wi-Fi connection status information, where the status information includes, for example, the operating channel of the Wi-Fi connection, the dormancy state (e.g., not dormant, light sleep, deep sleep), the Wi-Fi clock, the antenna used by the Wi-Fi connection, and other information (or described as operating parameters).

[0160] In some examples, the first electronic device and the second electronic device exchange Wi-Fi connection status information via a Bluetooth connection to synchronize information of a dormant Wi-Fi connection.

[0161] For example, after receiving a keepalive signal from a dormant Wi-Fi connection sent by a second electronic device via Bluetooth, a first electronic device retrieves the status information carried in the signal. The first electronic device then synchronizes this status information with its own Wi-Fi chip, synchronizing the Wi-Fi status and clock with the second electronic device, thereby enabling the keepalive function of the Wi-Fi connection via Bluetooth.

[0162] In some examples, a Bluetooth connection has already been established between the first electronic device and the second electronic device. Then, after the first electronic device or the second electronic device puts its own Wi-Fi connection to sleep, it can directly trigger the existing Bluetooth connection to keep the dormant Wi-Fi connection alive.

[0163] In other examples, after the first or second electronic device puts the Wi-Fi connection into hibernation, if it determines that a Bluetooth connection has not been established with the peer device, it can automatically trigger the establishment of a Bluetooth connection. Alternatively, if the Bluetooth function is not enabled, the first or second electronic device can directly trigger the activation of the Bluetooth function and establish a Bluetooth connection with the peer device. In this way, after the Wi-Fi connection is put into hibernation, the dormant Wi-Fi connection can be automatically kept alive via the Bluetooth connection.

[0164] S507: The first electronic device determines that the service data to be transmitted is greater than or equal to a preset threshold. If not, execute step S508; if so, execute step S509.

[0165] In some embodiments, after generating the business data to be transmitted, the first electronic device determines whether it is necessary to wake up the dormant Wi-Fi connection based on the data volume of the business data to be transmitted. For example, when the data volume of the business data to be transmitted is small, the first electronic device may not need to wake up the dormant Wi-Fi connection, but instead send the business data to be transmitted via a Bluetooth connection (i.e., executing step S508). This reduces the power consumption of the device while ensuring the normal transmission of the business data. For another example, when the data volume of the business data to be transmitted is large, the first electronic device may wake up the dormant Wi-Fi connection, and then send the business data to be transmitted via the Wi-Fi connection (i.e., executing step S509). This improves the effect of business data transmission.

[0166] Optionally, the preset threshold is, for example, 1000 bytes. After generating the service data to be transmitted, the first electronic device selects a transmission mode for the service data to be transmitted according to whether the service data to be transmitted is greater than or equal to 1000 bytes.

[0167] S508: The first electronic device sends the small amount of service data to be transmitted to the second electronic device via Bluetooth connection.

[0168] For example, as shown in FIG4 , after receiving data to be transmitted from an application in the application layer, the connection management module determines that the amount of the service data to be transmitted is 10 bytes, which is less than a preset threshold. The connection management module may then invoke a Bluetooth driver to instruct the first electronic device to send the 10 bytes of service data to be transmitted to the second electronic device via the Bluetooth connection.

[0169] S509: The first electronic device wakes up the Wi-Fi connection.

[0170] For example, as shown in FIG4 , after receiving data to be transmitted from an application in the application layer, the connection management module determines that the amount of the service data to be transmitted is 1,000,000 bytes, which is greater than a preset threshold. The connection management module may then invoke the Wi-Fi driver to instruct the first electronic device to wake up the Wi-Fi connection to transmit the 1,000,000 bytes of service data to be transmitted to the second electronic device via the Wi-Fi connection.

[0171] In some embodiments, after determining that the Wi-Fi connection needs to be awakened, the first electronic device awakens the Wi-Fi connection and turns on the TX interface and the RX interface of the Wi-Fi connection.

[0172] S510: The first electronic device sends a Wi-Fi connection wake-up instruction to the second electronic device via a Bluetooth connection.

[0173] In some embodiments, after determining that the Wi-Fi connection needs to be awakened, the first electronic device can send a Wi-Fi connection awakening instruction to the second electronic device via a Bluetooth connection, instructing the second electronic device to similarly awaken the Wi-Fi connection, thereby enabling the transmission of the pending service data via the awakened Wi-Fi connection. Correspondingly, the second electronic device receives the Wi-Fi connection awakening instruction sent by the first electronic device.

[0174] Optionally, the Wi-Fi connection wake-up indication carries Wi-Fi connection status information, such as information such as a channel on which the Wi-Fi connection operates.

[0175] It should be understood that the embodiments of the present application do not limit the order in which steps S509 and S510 are executed. That is, the first electronic device may first wake up its own Wi-Fi connection and then instruct the second electronic device to wake up its Wi-Fi connection. Alternatively, the first electronic device may simultaneously instruct the second electronic device to wake up its Wi-Fi connection while waking up its own Wi-Fi connection. Alternatively, the first electronic device may first instruct the second electronic device to wake up its Wi-Fi connection and then wake up its own Wi-Fi connection.

[0176] S511: The second electronic device wakes up the Wi-Fi connection.

[0177] In some embodiments, after receiving the Wi-Fi connection wake-up indication, the second electronic device obtains the status information carried therein. Thereafter, the second electronic device wakes up the Wi-Fi and turns on the TX and RX interfaces of the Wi-Fi connection. Furthermore, the second electronic device may also set the obtained status information to its own Wi-Fi chip. For example, the second electronic device sets the channel indicated in the status information to its own Wi-Fi chip, so that the first electronic device and the second electronic device can subsequently achieve Wi-Fi connection communication through the synchronized channel.

[0178] Optionally, after waking up the Wi-Fi connection and completing the settings, the second electronic device may send a Wi-Fi connection wake-up response to the first electronic device to indicate that the first electronic device has currently completed the Wi-Fi connection wake-up.

[0179] S512: The first electronic device sends the large amount of business data to be transmitted to the second electronic device through a Wi-Fi connection.

[0180] In some embodiments, after receiving a Wi-Fi connection wake-up response from the second electronic device (or the first electronic device sending a Wi-Fi connection wake-up indication), the first electronic device can send the business data to be transmitted to the second electronic device via a Wi-Fi connection.

[0181] In this way, when the Wi-Fi connection between the first and second electronic devices is dormant, the low-power Bluetooth connection is used to keep the Wi-Fi connection alive, thereby reducing device power consumption. Furthermore, when business data transmission over the Wi-Fi connection is needed, the dormant Wi-Fi connection can be directly activated without having to wait for the Wi-Fi connection to reconnect, reducing user waiting time and improving the user experience.

[0182] In some embodiments, after the first electronic device and the second electronic device transmit data via the Wi-Fi connection, they may stop keeping the Wi-Fi connection alive via the Bluetooth connection to reduce power consumption. Alternatively, the first electronic device may not stop keeping the Wi-Fi connection alive via the Bluetooth connection.

[0183] In some embodiments, as shown in FIG5 , after step S512, the first electronic device may return to execute the above step S503, i.e., steps S503 to S512 are loop steps. After the first electronic device has transmitted the service data to be transmitted confirmed in step S507 to the second electronic device, it may continue to transmit service data and keep the Wi-Fi link alive via the Wi-Fi connection. Thereafter, if the first electronic device again determines that the amount of service data has decreased and the dormancy condition has been met, it may put the Wi-Fi connection to sleep again and keep the dormant Wi-Fi connection alive via the Bluetooth connection.

[0184] 5 , the first electronic device adaptively switches between Wi-Fi connection and Bluetooth connection for business data transmission according to the increase or decrease in the amount of business data, thereby reducing data transmission power consumption while ensuring data transmission effect.

[0185] In some embodiments, the Wi-Fi connection of the second electronic device may not be in a dormant state. For example, the second electronic device has not disabled the TX and RX interfaces corresponding to the Wi-Fi connection of the first electronic device, or the second electronic device still needs to communicate with other electronic devices via the Wi-Fi function. That is, step S505 is optional, and accordingly, steps S510 and S511 are also optional.

[0186] Optionally, while the first electronic device is maintaining a dormant Wi-Fi connection via a Bluetooth connection, the first electronic device can learn that the second electronic device's Wi-Fi connection is not dormant and can also learn the operating channel of the Wi-Fi connection between the second electronic device and the first electronic device. Then, in step S509 above, after waking up its own Wi-Fi connection, the first electronic device can directly send the service data to be transmitted to the second electronic device via the awakened Wi-Fi connection.

[0187] In this way, the first electronic device and the second electronic device can determine whether to put the Wi-Fi connection into dormancy according to the working conditions of their own Wi-Fi connections, and adaptively adjust the Wi-Fi connection dormancy to achieve more flexible data transmission.

[0188] In some embodiments, after the Wi-Fi connection of the first electronic device goes into hibernation, the Wi-Fi connection of the second electronic device does not go into hibernation, and the second electronic device has obtained the hibernation status of the Wi-Fi connection of the first electronic device through the Bluetooth connection between the second electronic device and the first electronic device. Subsequently, if the second electronic device determines that its own Wi-Fi connection meets the hibernation condition, and puts the Wi-Fi connection into hibernation, the second electronic device can send a Wi-Fi connection hibernation indication to the first electronic device via the Bluetooth connection to indicate to the first electronic device that the current Wi-Fi connection of the second electronic device has gone into hibernation. This allows the first electronic device to determine that the Wi-Fi connection of the second electronic device also needs to be woken up when it determines that the Wi-Fi connection needs to be woken up for business data transmission.

[0189] Optionally, when determining that a Wi-Fi connection sleep indication needs to be sent to the first electronic device, the second electronic device determines that a period for exchanging keep-alive signals with the first electronic device via Bluetooth connection has currently arrived, and may also carry the Wi-Fi connection sleep indication in the keep-alive signal.

[0190] In some embodiments, after the first electronic device determines that the service has ended, it may stop executing the above-mentioned loop of steps S503-S512. For example, during the screen casting data transmission process, if the first electronic device detects the user's instruction to stop the screen casting, it may disconnect the Wi-Fi connection with the second electronic device and stop transmitting the service data.

[0191] In some scenarios, while a Wi-Fi connection is dormant, the first and second electronic devices may also wake up the Wi-Fi connection at a preset interval to keep the Wi-Fi link alive through the Wi-Fi connection. This prevents the Wi-Fi connection from being inactive for a long period of time, which could lead to abnormal Wi-Fi state synchronization. It should be understood that the period for keeping the dormant Wi-Fi connection alive through the Wi-Fi connection is longer than the period for keeping the dormant Wi-Fi connection alive through the Bluetooth connection.

[0192] Figure 6 is a flow chart illustrating another connection management method provided in an embodiment of the present application. It should be noted that this method is not limited to the specific sequence described in Figure 6 and below. It should be understood that in other embodiments, the order of some steps in this method may be interchanged based on actual needs, or some steps may be omitted or deleted. As shown in Figure 6 , after step S506 above, the method includes steps S601 through S605.

[0193] S601: The first electronic device determines whether the Wi-Fi connection dormancy time meets the wake-up condition. If so, execute step S602; if not, execute step S506.

[0194] In some embodiments, the first electronic device starts a timer after the Wi-Fi connection goes dormant. Thereafter, if the first electronic device determines through the timer that the dormant time of the Wi-Fi connection meets the wake-up condition (e.g., greater than or equal to 10 minutes), the Wi-Fi connection may be woken up to keep the link alive for the Wi-Fi connection through the woken-up Wi-Fi connection (i.e., executing step S602). If the first electronic device determines through the counter that the dormant time of the Wi-Fi connection does not meet the wake-up condition (e.g., less than 10 minutes), the Wi-Fi connection may continue to remain dormant and continue to keep the link alive for the Wi-Fi connection through the Bluetooth connection (i.e., executing the above step S506).

[0195] S602: The first electronic device wakes up the Wi-Fi connection.

[0196] S603: The first electronic device sends a Wi-Fi connection wake-up instruction to the second electronic device via the Bluetooth connection.

[0197] S604: The second electronic device wakes up the Wi-Fi connection.

[0198] In some embodiments, the second electronic device's Wi-Fi connection may not be in a dormant state. For example, the second electronic device has not disabled the TX and RX interfaces corresponding to the first electronic device's Wi-Fi connection, and the second electronic device still needs to communicate with other electronic devices via Wi-Fi. In this case, steps S603 and S604 are optional. That is, the first electronic device does not need to instruct the second electronic device to wake up the Wi-Fi connection.

[0199] Optionally, while the first electronic device is keeping the dormant Wi-Fi connection alive via the Bluetooth connection, the first electronic device can learn that the second electronic device's Wi-Fi connection is not dormant and can also learn the channel on which the Wi-Fi connection between the second electronic device and the first electronic device operates. Then, after waking up its own Wi-Fi connection, the first electronic device can directly send a keep-alive signal to the second electronic device via the awakened Wi-Fi connection (i.e., directly executing step S605 below after step S602).

[0200] Optionally, for other contents of step S602 to step S604 , reference may be made to the relevant contents of the above-mentioned step S509 to step S511 , which will not be repeated here.

[0201] S605: The first electronic device and the second electronic device are connected via Wi-Fi and keep the link alive.

[0202] In some embodiments, after waking up the Wi-Fi connection, the first and second electronic devices can maintain the Wi-Fi link via the Wi-Fi connection. Optionally, during the Wi-Fi link maintain-alive process, if the first or second electronic device generates service data, the first and second electronic devices can transmit the service data via the Wi-Fi connection. Subsequently, if the amount of service data decreases, the first electronic device determines that the sleep condition has been met and can put the Wi-Fi connection to sleep. That is, after step S605, the first electronic device returns to execute step S503 above.

[0203] In this way, the first electronic device wakes up the Wi-Fi connection according to the preset period, thereby achieving better Wi-Fi status synchronization between the first electronic device and the second electronic device, and avoiding the occurrence of Wi-Fi connection loss anomalies.

[0204] In some embodiments, the first and second electronic devices determine whether to hibernate the Wi-Fi connection based on their respective service operations. That is, the hibernation time of the Wi-Fi connection of the first and second electronic devices can be the same or different. Subsequently, during the hibernation of the Wi-Fi connection, the first and second electronic devices wake up the dormant Wi-Fi connection at the same or different preset intervals.

[0205] In this way, flexible management of Wi-Fi connections can be achieved based on the device performance and working conditions of different electronic devices.

[0206] In some scenarios, while a Wi-Fi connection is dormant, the first and second electronic devices may need to adjust the Wi-Fi connection's operating parameters. For example, the Wi-Fi connection's operating channel and antenna may need to be adjusted. After adjusting the Wi-Fi connection's operating parameters, the first or second electronic device can instruct the other device to synchronize the operating parameters to ensure normal Wi-Fi communication between the first and second electronic devices after the Wi-Fi connection is awakened.

[0207] Figure 7 is a flow chart illustrating another connection management method provided in an embodiment of the present application. It should be noted that this method is not limited to the specific sequence shown in Figure 7 and described below. It should be understood that in other embodiments, the order of some steps in this method may be interchanged based on actual needs, or some steps may be omitted or deleted. As shown in Figure 7, after step S506, the method includes steps S701 through S705.

[0208] S701: A first electronic device receives a Wi-Fi connection establishment request sent by a third electronic device.

[0209] In some embodiments, while a Wi-Fi connection between a first electronic device and a second electronic device is dormant, the first electronic device receives a connection establishment request from a third electronic device requesting to establish a Wi-Fi connection with the first electronic device. The first electronic device may then wake up the Wi-Fi connection to establish a Wi-Fi connection with the third electronic device.

[0210] In some other embodiments, the Wi-Fi of the first electronic device is not in a dormant state, and in response to a received Wi-Fi connection request sent by the third electronic device, the first electronic device establishes a Wi-Fi connection with the third electronic device.

[0211] Optionally, the Wi-Fi connection request carries Wi-Fi information such as an operating channel and an operating antenna. The first electronic device negotiates with the third electronic device based on the Wi-Fi information carried in the Wi-Fi connection request to establish a Wi-Fi connection with the third electronic device.

[0212] S702: The first electronic device determines that a Wi-Fi connection channel needs to be switched with the second electronic device.

[0213] In some embodiments, the first electronic device determines, based on the Wi-Fi information carried in the Wi-Fi connection request sent by the third electronic device, that the operating channel of the Wi-Fi connection requested by the third electronic device is different from the operating channel of the current Wi-Fi connection between the first and second electronic devices. Furthermore, if the Wi-Fi connection of the first and / or second electronic devices is dormant, the first electronic device may determine that the dormant Wi-Fi connection needs to be awakened to switch the Wi-Fi connection channel.

[0214] Among them, Wi-Fi communication includes multiple channels, such as 2.4G channels, 5G channels, etc. The first electronic device can choose to perform Wi-Fi communication with the opposite device through one or several channels. If the Wi-Fi communication between the first electronic device and different opposite devices is on different channels, then during the Wi-Fi communication process, when the first electronic device switches the opposite device for Wi-Fi communication, it is also necessary to switch the Wi-Fi channel so that the switched Wi-Fi channel meets the Wi-Fi communication requirements of the switched opposite device. It can be seen that Wi-Fi channel switching takes up Wi-Fi communication time and occupies unnecessary Wi-Fi resources of the first electronic device.

[0215] Optionally, when the first electronic device is in a dual band dual concurrent (DBDC) mode or a dual band adaptive concurrent (DBAC) mode, the first electronic device performs Wi-Fi communication with the opposite device on different Wi-Fi channels.

[0216] Therefore, when the first electronic device determines that the Wi-Fi channel requested for communication by the third electronic device is different from the channel of the current Wi-Fi connection between the first electronic device and the second electronic device, the first electronic device determines that it is necessary to switch the channel of the Wi-Fi connection with the second electronic device, thereby avoiding DBDC or DBAC and saving air interface resources.

[0217] For example, the Wi-Fi connection between a first electronic device and a second electronic device is on channel 1. While the Wi-Fi connection is dormant, the first electronic device receives a Wi-Fi connection establishment request from a third electronic device. The third electronic device requests to establish a Wi-Fi connection on channel 6. If the first electronic device determines that channel 6 is different from channel 1, it can determine that it needs to switch the Wi-Fi connection channel with the second electronic device, such as switching to channel 6.

[0218] S703: The first electronic device sends a Wi-Fi connection channel switching instruction to the second electronic device based on the Bluetooth connection.

[0219] In some embodiments, while the Wi-Fi connection between the first electronic device and the second electronic device is in a dormant state, the first electronic device and the second electronic device maintain the link of the dormant Wi-Fi connection through a Bluetooth connection. Then, after the first electronic device determines that it needs to instruct the second electronic device to switch the Wi-Fi channel, it can send a Wi-Fi connection channel switching instruction to the second electronic device through the Bluetooth connection, and carry channel information in the Wi-Fi connection channel switching instruction, which is information indicating the channel to be switched. If the instruction is to switch to channel 6, the Wi-Fi connection channel switching instruction carries an identifier of channel 6. Accordingly, the second electronic device receives the Wi-Fi connection channel switching instruction sent by the first electronic device.

[0220] It should be understood that the embodiments of the present application do not limit the order in which the first electronic device establishes a communication connection with the third electronic device and the first electronic device instructs the second electronic device to switch channels. For example, the first electronic device may instruct the second electronic device to switch channels after establishing a communication connection with the third electronic device. Alternatively, the first electronic device may instruct the second electronic device to switch channels before establishing a communication connection with the third electronic device.

[0221] S704: The second electronic device switches the Wi-Fi connection channel with the first electronic device.

[0222] In some embodiments, the second electronic device wakes up the Wi-Fi connection corresponding to the first electronic device according to the channel information carried in the Wi-Fi connection channel switching indication, and switches the channel of the Wi-Fi connection to the channel indicated by the channel information, such as channel 6.

[0223] Optionally, after completing the channel switching, the second electronic device can send a feedback signal to the second electronic device via the Wi-Fi connection to indicate to the first electronic device that the second electronic device has completed the channel switching and can communicate with the first electronic device via Wi-Fi via the switched channel.

[0224] S705 : The first electronic device and the second electronic device are connected via Wi-Fi and keep the link alive.

[0225] In some embodiments, the first electronic device and the second electronic device have both awakened the Wi-Fi connection, and the first electronic device and the second electronic device may directly keep the Wi-Fi connection link alive through the Wi-Fi connection.

[0226] Optionally, after waking up the Wi-Fi connection, the second electronic device can maintain a link with the first electronic device a limited number of times (e.g., once) through the awakened Wi-Fi connection. Afterwards, the second electronic device can put the Wi-Fi connection to sleep to reduce power consumption.

[0227] Optionally, after waking up the Wi-Fi connection, the second electronic device may also continue to keep the Wi-Fi connection alive via the Bluetooth connection. That is, the above step S705 is an optional step.

[0228] Optionally, after the Wi-Fi connection switches channels, the first electronic device and the second electronic device can communicate over the switched channel, such as transmitting service data. Later, when the service data decreases and the sleep condition is met, the second electronic device can put the Wi-Fi connection to sleep again.

[0229] In this way, during the Wi-Fi connection dormancy process, the electronic device can also adaptively adjust the Wi-Fi connection operating parameters according to the changes in channel information, thereby saving Wi-Fi resources while ensuring reduced device power consumption.

[0230] In some embodiments, a first electronic device receives a Wi-Fi connection keep-alive signal sent by a second electronic device via a Bluetooth connection, and can determine that the Wi-Fi connection of the second electronic device is in a dormant state. Then, while the Wi-Fi connection of the second electronic device is in a dormant state, as described in step S702 above, the first electronic device determines that it needs to switch the Wi-Fi connection channel with the second electronic device. It may not directly notify the second electronic device to switch channels, but instead wait until the link keep-alive period of the Wi-Fi connection has expired, and then carry channel information indicating the channel switch in the keep-alive signal fed back to the second electronic device. In this way, separately sending channel information is avoided, thereby reducing data transmission power consumption.

[0231] In other embodiments, when the first electronic device determines that the second electronic device needs to switch channels and the link keep-alive period of the Wi-Fi connection has not yet arrived, that is, the Wi-Fi connection of the second electronic device remains dormant on the original working channel. In this case, the second electronic device needs to wake up the Wi-Fi connection in response to a sudden burst of large amounts of business data and sends a Wi-Fi connection wake-up indication to the first electronic device. Then, after receiving the wake-up indication, the first electronic device can feedback channel information to the second electronic device. The second electronic device can then switch the Wi-Fi channel according to the channel information and send the business data to be transmitted to the first electronic device on the switched Wi-Fi channel.

[0232] In this way, the first electronic device can adaptively select the timing for sending the channel information according to actual operating conditions, device performance, preset rules and other conditions, thereby achieving flexible channel information synchronization.

[0233] It should be understood that the above description uses channel information within the operating parameters of a Wi-Fi connection as an example to illustrate the adaptive adjustment process for the operating parameters of a dormant Wi-Fi connection. The adaptive adjustment process for other operating parameters (such as antennas) can refer to the channel adjustment process described above, such as adaptively adjusting a 2*2 antenna used for a Wi-Fi connection to a 1*1 antenna.

[0234] In addition, the above text takes Wi-Fi connection and BLE Bluetooth connection as examples to illustrate the adaptive switching process of the connection mode during the communication process. In some examples, the power consumption of ordinary Bluetooth connection may also be lower than that of Wi-Fi connection. Therefore, the first electronic device and the second electronic device may also keep the Wi-Fi connection alive through ordinary Bluetooth connection during the dormant Wi-Fi connection according to the change in data volume. In other examples, a spark connection may also be established between the first electronic device and the second electronic device, wherein the spark connection includes a basic spark connection (spark link basic, SLB) and a low-power spark connection (spark link low energy, SLE), and the power consumption of SLE is lower than that of SLB. Similarly, in the process of the first electronic device communicating with the second electronic device through SLB, it may also adaptively put the SLB to sleep according to the change in the data volume of the business data, and keep the link of the SLB alive by establishing SLE. Alternatively, the link of the SLB may be kept alive by establishing a BLE Bluetooth connection, etc. The embodiments of the present application will no longer give examples one by one for this.

[0235] Figure 8 is a flow chart illustrating another connection management method provided in an embodiment of the present application. It should be noted that this method is not limited to the specific sequence shown in Figure 8 and below. It should be understood that in other embodiments, the order of some steps in this method may be interchanged based on actual needs, or some steps may be omitted or deleted. As shown in Figure 8 , this method includes the following steps S801 through S804.

[0236] S801: A first connection using a first communication method is established between a first electronic device and a second electronic device.

[0237] The first electronic device and the second electronic device support establishing a connection using multiple communication methods. Optionally, the communication methods that can establish a connection between the first electronic device and the second electronic device include, for example, Wi-Fi, ordinary Bluetooth, BLE Bluetooth, SLB, SLE, etc.

[0238] For example, a Wi-Fi connection is established between the first electronic device and the second electronic device via Wi-Fi (such as the first communication method).

[0239] S802: The first electronic device determines that the first connection meets the dormancy condition, and puts the first connection into dormancy.

[0240] The sleep condition includes that the amount of data transmitted through the first connection within a preset time is less than a second threshold.

[0241] For example, during communication between a first electronic device and a second electronic device via a first connection, if the service data volume remains low after the first connection is kept alive for a period of time, for example, the transmitted data only includes a small amount of data such as a keep-alive signal, the first electronic device may put the first connection into hibernation, thereby reducing power consumption associated with maintaining the first connection.

[0242] In some embodiments, dormant the first connection of the first electronic device includes: dormant at least one of a sending interface of the first connection of the first electronic device, a receiving interface of the first connection of the first electronic device, and a function of the first communication mode.

[0243] For example, if the first connection is a Wi-Fi connection, during the Wi-Fi connection dormancy process, the TX interface and RX interface of the first connection of the first electronic device are both shut down, and the first electronic device no longer sends service data to the second electronic device or receives data sent by the second electronic device. Alternatively, the first electronic device can directly shut down the Wi-Fi function to save Wi-Fi power consumption.

[0244] S803: The first electronic device obtains first data to be transmitted.

[0245] S804: The first electronic device determines that the first data is less than a first threshold, and sends the first data to the second electronic device through a second connection in a second communication mode.

[0246] In some embodiments, after dormantly transmitting the first connection, the first electronic device obtains first data to be transmitted and determines that the first data is less than a first threshold. The first electronic device may then establish a second connection with the second electronic device via a second communication method. Optionally, the power consumption generated by transmitting the data via the second connection is less than the power consumption generated by transmitting the same data via the first connection.

[0247] Alternatively, the first electronic device may also directly establish a second connection in the second communication mode with the second electronic device after dormant the first connection.

[0248] For example, the first connection of the first communication mode is a Wi-Fi connection, and the second connection of the second communication mode is a BLE Bluetooth connection; or, the first connection of the first communication mode is a Wi-Fi connection, and the second connection of the second communication mode is a normal Bluetooth connection; or, the first connection of the first communication mode is a Wi-Fi connection, and the second connection of the second communication mode is an SLE connection; or, the first connection of the first communication mode is an SLB connection, and the second connection of the second communication mode is an SLE connection; or, the first connection of the first communication mode is an SLB connection, and the second connection of the second communication mode is a BLE Bluetooth connection, etc.

[0249] In some embodiments, the first data is keep-alive data for keeping the first connection alive, wherein the keep-alive data generally has a small amount of data.

[0250] In this way, when the amount of data to be transmitted is small, the first electronic device and the second electronic device can put the higher power consumption first connection into hibernation. Moreover, while the first connection is dormant, the low power consumption second connection is used to keep the first connection alive, thereby reducing device power consumption.

[0251] In some embodiments, while the first electronic device is dormant for the first connection, the second electronic device may or may not dormant for the first connection. Furthermore, the first electronic device and the second electronic device may dormant for the same or different times.

[0252] In some embodiments, the first electronic device obtains second data to be transmitted, determines that the second data is greater than or equal to a first threshold, and then wakes up the first connection and sends the second data to the second electronic device via the first connection.

[0253] In some examples, the first electronic device waking up the first connection includes: the first electronic device waking up the first connection of the first electronic device. Furthermore, the first electronic device sends a wake-up instruction to the second electronic device via the second connection, where the wake-up instruction is used to instruct the second electronic device to wake up the first connection of the second electronic device.

[0254] In some examples, the first electronic device wakes up the first connection of the first electronic device, including: the first electronic device wakes up the sending interface of the first connection of the first electronic device, the receiving interface of the first connection of the first electronic device, and at least one of the functions of the first communication mode.

[0255] For example, when the first electronic device determines that the amount of data to be transmitted is large, it needs to wake up the first connection to transmit the data to be transmitted. Then, the first electronic device can wake up the first connection that has been dormant on this end, such as waking up the TX interface and RX interface of the first connection. Optionally, the first electronic device can also send a wake-up instruction to the second electronic device, so that when the second electronic device has also put the first connection between it and the first electronic device to sleep, the second electronic device can also wake up the first connection according to the wake-up instruction. This avoids the failure of the data to be transmitted when the first electronic device subsequently sends the data to be transmitted through the first connection.

[0256] In some embodiments, after waking up the first connection and sending the second data to the second electronic device through the first connection, the first electronic device determines that the first connection meets the dormancy condition and puts the first connection into dormancy.

[0257] In this way, the first electronic device can flexibly put the first connection into sleep or wake up according to the actual data transmission situation, thereby reducing the power consumption of the device without affecting data transmission and improving the flexibility of data transmission.

[0258] In some embodiments, after dormant the first connection, the first electronic device obtains third data, the third data including state information of the first connection, and then the first electronic device sends the third data to the second electronic device via the second connection according to a preset period.

[0259] Optionally, the status information includes one or more of the following: a channel for the first connection operation, a sleep state, clock information, and an antenna for the first connection operation.

[0260] In this way, after the first electronic device puts the first connection into dormancy, it can keep the first connection alive through the second connection with lower power consumption. Based on the keep-alive status of the first connection, when business data needs to be transmitted through the first connection, the dormant first connection can be directly pulled up without having to wait for the first connection to reconnect, thus reducing user waiting time and improving the user experience.

[0261] In some embodiments, after dormant the first connection, when the dormant time length satisfies a preset time length, the first electronic device wakes up the first connection.

[0262] In this way, the first electronic device wakes up the first connection according to the preset period, achieving better state synchronization of the first connection between the first electronic device and the second electronic device, and avoiding the abnormality of the first connection being dormant for a long time, which leads to the loss of the first connection.

[0263] In some embodiments, the first connection operates on a first channel. After dormant, the first electronic device receives a connection request from a third electronic device, requesting to establish a connection in the first communication mode with the first electronic device on a second channel. The first electronic device wakes up the first connection and switches the first connection from the first channel to the second channel.

[0264] For example, if the first connection is a Wi-Fi connection, when the first electronic device determines that the Wi-Fi channel requested for communication by the third electronic device is different from the channel of the current Wi-Fi connection between the first electronic device and the second electronic device, the first electronic device determines that it is necessary to switch the channel of the Wi-Fi connection with the second electronic device, thereby avoiding DBDC or DBAC and saving air interface resources.

[0265] In some examples, the first electronic device wakes up the first connection of the first electronic device and switches the first connection of the first electronic device from the first channel to the second channel. The first electronic device sends a channel switching instruction to the second electronic device, where the channel switching instruction is used to instruct the second electronic device to switch the first connection of the second electronic device from the first channel to the second channel.

[0266] In this way, during the dormancy of the first connection, the electronic device can also adaptively adjust the operating parameters of the first connection according to the change of the channel information, thereby saving resources of the first connection while ensuring reduced power consumption of the device.

[0267] The connection management method provided by the embodiment of the present application is described in detail above with reference to Figures 5 to 8. The first electronic device provided by the embodiment of the present application is described in detail below with reference to Figure 9, and the second electronic device provided by the embodiment of the present application is described in detail with reference to Figure 10.

[0268] In one possible design, Figure 9 is a schematic diagram of the structure of a first electronic device provided in an embodiment of the present application. As shown in Figure 9, the first electronic device 900 may include: a transceiver unit 901 and a processing unit 902. The first electronic device 900 may be used to implement the functions of the first electronic device involved in the above method embodiment.

[0269] Optionally, the transceiver unit 901 is used to support the first electronic device 900 to execute S502, S503, S506, S508, S510 and S512 in Figure 5; and / or to support the first electronic device 900 to execute S603 and S605 in Figure 6; and / or to support the first electronic device 900 to execute S701, S703 and S705 in Figure 7; and / or to support the first electronic device 900 to execute S801, S802 and S804 in Figure 8.

[0270] Optionally, the processing unit 902 is used to support the first electronic device 900 to execute S501, S504, S507 and S509 in Figure 5; and / or to support the first electronic device 900 to execute S601 and S602 in Figure 6; and / or to support the first electronic device 900 to execute S702 in Figure 7; and / or to support the first electronic device 900 to execute S803 in Figure 8.

[0271] Among them, the transceiver unit may include a receiving unit and a sending unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the first electronic device 900 are respectively to implement the corresponding processes of the connection management method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, they are not repeated here.

[0272] Optionally, the first electronic device 900 shown in Figure 9 may further include a storage unit (not shown in Figure 9 ) storing a program or instruction. When the transceiver unit 901 and the processing unit 902 execute the program or instruction, the first electronic device 900 shown in Figure 9 may execute the connection management method described in the above method embodiment.

[0273] The technical effects of the first electronic device 900 shown in FIG. 9 may refer to the technical effects of the connection management method described in the above method embodiment, and will not be repeated here.

[0274] In addition to being in the form of the first electronic device 900, the technical solution provided in this application may also be a functional unit or chip in the first electronic device, or a device used in conjunction with the first electronic device.

[0275] In one possible design, Figure 10 is a schematic diagram of the structure of a second electronic device provided in an embodiment of the present application. As shown in Figure 10, the second electronic device 1000 may include: a transceiver unit 1001 and a processing unit 1002. The second electronic device 1000 may be used to implement the functions of the second electronic device involved in the above method embodiment.

[0276] Optionally, the transceiver unit 1001 is used to support the second electronic device 1000 to execute S502, S503, S506, S508, S510 and S512 in Figure 5; and / or to support the second electronic device 1000 to execute S603 and S605 in Figure 6; and / or to support the second electronic device 1000 to execute S703 and S705 in Figure 7; and / or to support the second electronic device 1000 to execute S801, S802 and S804 in Figure 8.

[0277] Optionally, the processing unit 1002 is used to support the second electronic device 1000 to execute S505 and S511 in Figure 5; and / or to support the second electronic device 1000 to execute S604 in Figure 6; and / or to support the second electronic device 1000 to execute S704 in Figure 7.

[0278] Among them, the transceiver unit may include a receiving unit and a sending unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the second electronic device 1000 are respectively to implement the corresponding processes of the connection management method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, they are not repeated here.

[0279] Optionally, the second electronic device 1000 shown in Figure 10 may further include a storage unit (not shown in Figure 10) in which a program or instruction is stored. When the transceiver unit 1001 and the processing unit 1002 execute the program or instruction, the second electronic device 1000 shown in Figure 10 may execute the connection management method described in the above method embodiment.

[0280] The technical effects of the second electronic device 1000 shown in FIG10 may refer to the technical effects of the connection management method described in the above method embodiment, and will not be repeated here.

[0281] In addition to being in the form of the second electronic device 1000, the technical solution provided in this application may also be a functional unit or chip in the second electronic device, or a device used in conjunction with the second electronic device.

[0282] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.

[0283] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0284] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.

[0285] Exemplarily, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0286] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0287] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the above-mentioned related steps to implement the connection management method in the above-mentioned embodiment.

[0288] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the connection management method in the above-mentioned embodiment.

[0289] In addition, embodiments of the present application further provide a device. Specifically, the device may be a component or module, and may include one or more processors and a memory connected to each other. The memory is configured to store a computer program. When the computer program is executed by one or more processors, the device performs the connection management method described in each of the above method embodiments.

[0290] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0291] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0292] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0293] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.

[0294] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0295] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program code.

[0296] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A connection management system, characterized in that: The system includes a first electronic device and a second electronic device, wherein a first connection in a first communication mode is established between the first electronic device and the second electronic device; The first electronic device is used for: Determining that the first connection meets a dormancy condition, and dormant the first connection; Acquire first data to be transmitted; Determining that the first data is less than a first threshold; sending the first data to the second electronic device through a second connection in a second communication mode; The second electronic device is used to receive the first data sent by the first electronic device through the second connection.

2. The system according to claim 1, characterized in that The first electronic device is further used for: Acquire second data to be transmitted; Determine that the second data is greater than or equal to the first threshold; Waking up the first connection, and sending the second data to the second electronic device through the first connection; The second electronic device is used to receive the second data sent by the first electronic device through the first connection.

3. The system according to claim 1 or 2, characterized in that: The first electronic device is further used for: Acquire third data, where the third data includes state information of the first connection; sending the third data to the second electronic device through the second connection according to a preset period; The second electronic device is used to receive the third data sent by the first electronic device through the second connection.

4. A connection management method, characterized in that: Applied to a first electronic device, a first connection in a first communication mode is established between the first electronic device and a second electronic device, and the method includes: The first electronic device determines that the first connection meets a dormancy condition, and puts the first connection into dormancy; Acquire first data to be transmitted; Determining that the first data is less than a first threshold; The first data is sent to the second electronic device through a second connection in a second communication method.

5. The method according to claim 4, characterized in that The method further comprises: Acquire second data to be transmitted; Determine that the second data is greater than or equal to the first threshold; The first connection is awakened, and the second data is sent to the second electronic device through the first connection.

6. The method according to claim 4 or 5, characterized in that: The power consumption generated by transmitting data through the second connection is less than the power consumption generated by transmitting the same data through the first connection.

7. The method according to any one of claims 4 to 6, characterized in that: After dormant the first connection, the method further includes: Acquire third data, where the third data includes state information of the first connection; The third data is sent to the second electronic device through the second connection according to a preset period.

8. The method according to claim 7, characterized in that The status information includes one or more of the following: a channel on which the first connection works, a sleep state, clock information, and an antenna on which the first connection works.

9. The method according to claim 5, characterized in that The waking up the first connection includes: waking up the first connection of the first electronic device; A wake-up instruction is sent to the second electronic device through the second connection, where the wake-up instruction is used to instruct the second electronic device to wake up the first connection of the second electronic device.

10. The method according to claim 9, characterized in that The waking up the first connection of the first electronic device includes: Waking up at least one of the functions of the sending interface of the first connection of the first electronic device, the receiving interface of the first connection of the first electronic device, and the first communication mode.

11. The method according to any one of claims 5, 9 or 10, characterized in that: After waking up the first connection and sending the second data to the second electronic device through the first connection, the method further includes: The first electronic device determines that the first connection meets the dormancy condition, and puts the first connection into dormancy.

12. The method according to any one of claims 4 to 11, characterized in that: After dormant the first connection, the method further includes: When the sleep time length meets the preset time length, the first connection is awakened.

13. The method according to any one of claims 4 to 12, characterized in that: The first connection operates on a first channel, and after the first connection is dormant, the method further includes: receiving a connection request sent by a third electronic device, wherein the connection request is used to request to establish a connection in the first communication mode with the first electronic device on a second channel; The first connection is awakened, and the first connection is switched from the first channel to the second channel.

14. The method according to claim 13, characterized in that The waking up the first connection and switching the first connection from the first channel to the second channel includes: Waking up the first connection of the first electronic device and switching the first connection of the first electronic device from the first channel to the second channel; A channel switching instruction is sent to the second electronic device, where the channel switching instruction is used to instruct the second electronic device to switch the first connection of the second electronic device from the first channel to the second channel.

15. The method according to any one of claims 4 to 14, characterized in that: The sleep condition includes that the amount of data transmitted through the first connection within a preset time is less than a second threshold.

16. The method according to any one of claims 4 to 15, characterized in that: After determining that the first data is less than the first threshold, the method further includes: Establishing the second connection with the second electronic device through the second communication method.

17. The method according to any one of claims 4 to 16, characterized in that: The first communication mode is a wireless fidelity Wi-Fi communication mode or a basic Starlink SLB communication mode, and the second communication mode is a Bluetooth communication mode or a low-power Starlink SLE communication mode.

18. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the method as described in any one of claims 4-17.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 4 to 17.

20. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 4 to 17.

Citation Information

Patent Citations

  • Data transmission method and electronic apparatus

    CN103634932A

  • Bluetooth and Wifi switching method and transmission device based on environment sensing

    CN106792954A

  • Method for reducing power consumption of mobile terminal and mobile terminal

    CN113133095A

  • WiFi link dormancy awakening method, electronic equipment and WiFi link dormancy awakening system

    CN115243398A

  • Electronic equipment and data transmission method of electronic equipment

    CN115996372A