A connection service adjustment method and device

By adjusting the wake-up time of the second connection service overlaps or is adjacent to the wake-up time of the first connection service, the power consumption problem when the master device is connected to multiple slave devices is solved, and the power consumption during the scheduling process is reduced.

CN115103425BActive Publication Date: 2025-08-08UNISOC CHONGQING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210660015.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2025-08-08
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

When the master device is connected to multiple slave devices, frequent wake-up and sleep state switching during scheduling results in increased power consumption.

Method used

By adjusting the wake-up time of the second connection service, it overlaps or is adjacent to the wake-up time of the first connection service, the number of wake-up times of the terminal device is reduced, and the adjusted wake-up time is used for scheduling.

Benefits of technology

Reduces the power consumption of terminal devices during scheduling, and reduces the number of switching times between wake-up state and sleep state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115103425B_ABST
    Figure CN115103425B_ABST
Patent Text Reader

Abstract

The present application discloses a connection service adjustment method and apparatus that can reduce power consumption during scheduling. The method includes: obtaining the jth reference wake-up time of a second connection service when the current time matches the i-th wake-up time of a first connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer; and adjusting the j-th wake-up time of the second connection service based on the i-th wake-up time of the first connection service when the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet an adjustment condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for adjusting connection services. Background Art

[0002] Currently, with the development and application of terminal devices, a master device can connect to multiple slave devices. For example, a mobile phone can connect to headphones and a wristband via Bluetooth. After a master device is connected to multiple slave devices, it can periodically schedule connection services for the multiple slave devices to confirm whether each slave device remains connected to the master device. For example, after a mobile phone is connected to headphones, the mobile phone can periodically schedule connection services for the headphones to confirm that the headphones and the mobile phone are still connected.

[0003] When a master device is scheduling services for connected slaves, it's considered to be in the active state. When it's not scheduling services for connected slaves, it's considered to be in the sleep state. If a master device is connected to multiple slaves, it will periodically schedule services for each of these slaves, switching between the active and sleep states. This switching process not only involves a certain amount of time, but also consumes a certain amount of power.

[0004] Therefore, how to reduce the power consumption generated by state switching during the scheduling process has become an urgent problem to be solved. Summary of the Invention

[0005] The present application discloses a connection service adjustment method and device, which can reduce power consumption in the scheduling process.

[0006] In a first aspect, the present application provides a connection service adjustment method, the method comprising: when the current moment matches the i-th wake-up time of the first connection service, obtaining the j-th reference wake-up time of the second connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer; when the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment condition, adjusting the j-th wake-up time of the second connection service according to the i-th wake-up time of the first connection service.

[0007] It can be seen that when the terminal device needs to schedule two connection services, the jth wake-up time of the second connection service can be adjusted by the i-th wake-up time of the first connection service, so as to reduce the number of wake-up times of the terminal device in the process of scheduling the two connection services, thereby reducing the power consumption of the terminal device.

[0008] In one implementation, the start time of the jth wake-up time of the second connection service is adjusted to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the start time of the j-th wake-up time of the second connection service is equal to the time interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service.

[0009] By adjusting the starting time of the jth wake-up time of the second connection service to the ending time of the i-th wake-up time of the first connection service, the terminal device can complete the scheduling of the two connection services in one wake-up process, thereby reducing the number of wake-up times of the terminal device and further reducing the power consumption generated by state switching during the scheduling process.

[0010] In one implementation, a third interval duration is determined based on the first interval duration and the second interval duration; and a starting time of the j+1th wake-up time of the second connection service is determined based on the third interval duration; wherein the first interval duration is the interval duration between the i+1th wake-up time of the first connection service and the i-th wake-up time of the first connection service; the second interval duration is the interval duration between the j+1th reference wake-up time of the second connection service and the j-th reference wake-up time of the second connection service; and the third interval duration is the interval duration between the j+1th wake-up time of the second connection service and the j-th wake-up time of the second connection service.

[0011] It can be seen that by determining the third interval duration, the terminal device can schedule the second connection service according to the third interval duration; through the third interval duration and the starting time of the j-th wake-up time of the second connection service, the starting time of the j+1-th wake-up time of the second connection service can be determined, thereby completing the j+1-th scheduling of the second connection service.

[0012] In one implementation, if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is less than or equal to the initial maximum interval duration of the second connection service, the third interval duration is determined to be equal to the first interval duration.

[0013] It can be seen that when the first interval duration does not exceed the initial maximum interval duration of the second connection service, the third interval duration is determined as the first interval duration, so that in the subsequent scheduling of the first connection service and the second connection service, the scheduling of the first connection service and the second connection service can be completed once each time the terminal device is woken up, thereby saving more power consumption.

[0014] In one implementation, if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is greater than the initial maximum interval duration of the second connection service, the target maximum interval duration of the second connection service is determined based on the negotiation result of the application corresponding to the second connection service; if the target maximum interval duration of the second connection service is greater than or equal to the first interval duration, the third interval duration is determined to be equal to the first interval duration; if the target maximum interval duration of the second connection service is less than the first interval duration, the third interval duration is determined to be equal to the second interval duration.

[0015] It can be seen that when the first interval duration exceeds the initial maximum interval duration of the second connection service, by determining the target maximum interval duration, the first interval duration can be made as much as possible within the target maximum interval duration range of the second connection service, thereby making the interval durations of the two connection services scheduled by the terminal device as consistent as possible.

[0016] In one implementation, the negotiation result is sent to the connection device corresponding to the second connection service.

[0017] It can be seen that sending the negotiation result to the connection device corresponding to the second connection service can enable the terminal device and the connection device corresponding to the second connection service to obtain the same parameters, such as the target maximum interval duration, thereby accurately completing the scheduling of the second connection service.

[0018] In one implementation, if the first interval duration is less than the second interval duration, and the total interval duration of N first interval durations is less than or equal to the initial maximum interval duration of the second connection service, then the third interval duration is determined to be equal to the total interval duration of N first interval durations; wherein N is a positive integer greater than or equal to 2.

[0019] It can be seen that when the total interval duration of N first interval durations does not exceed the initial maximum interval duration of the second connection service, the third interval duration is determined to be N first interval durations. In the subsequent scheduling process, the terminal device can use the wake-up state when scheduling the first connection service to complete the scheduling of the second connection service, thereby saving the power consumption wasted by the terminal device when switching states.

[0020] In one implementation, the kth reference wake-up time of the third connection service is obtained; the jth wake-up time of the second connection service is earlier than the kth reference wake-up time of the third connection service; k is a positive integer; when the kth reference wake-up time of the third connection service and the jth wake-up time of the second connection service meet the adjustment condition, the kth wake-up time of the third connection service is adjusted according to the jth wake-up time of the second connection service.

[0021] It can be seen that when the terminal device needs to schedule three connection services, the kth wake-up time of the third connection service is adjusted by the jth wake-up time of the second connection service, so that the terminal device can complete the scheduling of the three connection services in one wake-up process, thereby reducing the number of wake-up times of the terminal device, and further reducing the power consumption generated by state switching during the scheduling process.

[0022] In a second aspect, the present application provides an adjustment device, which is used to implement a unit of the method in the above-mentioned first aspect and any possible implementation manner thereof.

[0023] In a third aspect, the present application provides an adjustment device, which includes a processor, and the processor is used to execute the method in the first aspect and any possible implementation thereof.

[0024] In a fourth aspect, the present application provides an adjustment device, which includes a processor and a memory, wherein the memory is used to store computer execution instructions; the processor is used to call program code from the memory to execute the method in the first aspect and any possible implementation thereof.

[0025] In a fifth aspect, the present application provides a chip, which is used to obtain the j-th reference wake-up time of the second connection service when the current moment matches the i-th wake-up time of the first connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer; when the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment conditions, the j-th wake-up time of the second connection service is adjusted according to the i-th wake-up time of the first connection service.

[0026] In a sixth aspect, the present application provides a chip module, which includes a communication interface and a chip, wherein: the communication interface is used for internal communication within the chip module, or for the chip module to communicate with an external device; the chip is used to: obtain the jth reference wake-up time of the second connection service when the current moment matches the i-th wake-up time of the first connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer; when the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment conditions, adjust the j-th wake-up time of the second connection service according to the i-th wake-up time of the first connection service. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0028] Figure 1A A connection service adjustment system provided in an embodiment of the present application;

[0029] Figure 1B A schematic diagram of an awake state and a sleep state provided in an embodiment of the present application;

[0030] Figure 2 A flowchart of a connection service adjustment method provided in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of the i-th wake-up time of a first connection service provided in an embodiment of the present application;

[0032] Figure 4A A schematic diagram of the current moment provided in an embodiment of the present application;

[0033] Figure 4B Another schematic diagram of the current moment provided in an embodiment of the present application;

[0034] Figure 5A A schematic diagram of a j-th reference wake-up time for a second connection service provided in an embodiment of the present application;

[0035] Figure 5B A schematic diagram of the j-th wake-up time of a second connection service provided in an embodiment of the present application;

[0036] Figure 5C A schematic diagram of the j-th wake-up time of another second connection service provided in an embodiment of the present application;

[0037] Figure 5D A schematic diagram of the j-th reference wake-up time of another second connection service provided in an embodiment of the present application;

[0038] Figure 5E A schematic diagram of a j-th reference wake-up time for another second connection service provided in an embodiment of the present application;

[0039] Figure 6A A method provided in the embodiment of this application Figure 5A Schematic diagram of power consumption of corresponding terminal equipment;

[0040] Figure 6B A method provided in the embodiment of this application Figure 5BSchematic diagram of power consumption of corresponding terminal equipment;

[0041] Figure 7A A schematic diagram of a first interval duration and a second interval duration provided in an embodiment of the present application;

[0042] Figure 7B A schematic diagram of a third interval duration provided in an embodiment of the present application;

[0043] Figure 7C A schematic diagram of another third interval duration provided in an embodiment of the present application;

[0044] Figure 8A A schematic diagram of another first interval duration and a second interval duration provided in an embodiment of the present application;

[0045] Figure 8B A schematic diagram of a third interval duration provided in an embodiment of the present application;

[0046] Figure 8C A schematic diagram of a third interval duration provided in an embodiment of the present application;

[0047] Figure 8D A schematic diagram of a first interval duration and a second interval duration provided in an embodiment of the present application;

[0048] Figure 9A A schematic diagram of a k-th reference wake-up time for a third connection service provided in an embodiment of the present application;

[0049] Figure 9B A schematic diagram of the kth wake-up time of a third connection service provided in an embodiment of the present application;

[0050] Figure 10 A flowchart of another connection service adjustment method provided in an embodiment of the present application;

[0051] Figure 11 A schematic structural diagram of an adjustment device provided in an embodiment of the present application;

[0052] Figure 12 A schematic structural diagram of an adjustment device 120 provided in an embodiment of the present application;

[0053] Figure 13 A schematic structural diagram of a chip module provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0055] See Figure 1A , Figure 1A A connection service adjustment system is provided in an embodiment of the present application. Figure 1A As shown, the connection service adjustment system may include a terminal device 101 and a connection device, such as a first connection device 102 and a second connection device 103 . Figure 1A The number of terminal devices and connection devices shown is for example only and does not constitute a limitation on the present application. For example, an actual application may include more than two connection devices and / or more terminal devices.

[0056] The terminal device 101 can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a terminal device that supports enhanced Machine-Type communication (eMTC) and / or supports the long term evolution (LTE) of general mobile communication technology, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device. In the present application, the terminal device 101 can establish a communication connection with the connection device. For example, the terminal device 101 is a device with Bluetooth function, and can establish a Bluetooth connection with the connection device through Bluetooth technology. For another example, the terminal device 101 is a device with WiFi function, and can establish a wireless connection with the connection device through WiFi technology.

[0057] Accordingly, the connecting device can establish a communication connection with the terminal device 101. The connecting device can be a smart wearable device (such as a smart headset, a smart watch, a smart bracelet, smart glasses, etc.), a virtual reality (VR) terminal device (such as VR glasses, etc.), an augmented reality (AR) terminal device, etc. For example, the first connecting device 102 can be a device with Bluetooth functionality, which establishes a Bluetooth connection with the terminal device 101 via Bluetooth technology; or the first connecting device 102 can be a device with WiFi functionality, which can establish a wireless connection with the terminal device 101 via WiFi technology. For another example, the second connecting device 103 can be a device with Bluetooth functionality, which establishes a Bluetooth connection with the terminal device 101 via Bluetooth technology; or the second connecting device 103 can be a device with WiFi functionality, which can establish a wireless connection with the terminal device 101 via WiFi technology.

[0058] Optionally, the first connection device 102 and the second connection device 103 may be the same type of device, for example, the first connection device 102 may be a headset (e.g., referred to as headset 1), and the second connection device 103 may also be a headset (e.g., referred to as headset 2). Optionally, the first connection device 102 and the second connection device 103 may be different types of devices, for example, the first connection device 102 may be a headset, and the second connection device 103 may also be a wristband, and this application does not impose any restrictions on this.

[0059] In the embodiment of the present application, after the terminal device 101 establishes a connection with the first connection device 102, the first connection service corresponding to the first connection device 102 may be periodically scheduled to confirm whether the first connection device 102 maintains a connection with the terminal device 101. After the terminal device 101 establishes a connection with the second connection device 103, the second connection service corresponding to the second connection device 103 may be periodically scheduled to confirm whether the second connection device 103 maintains a connection with the terminal device 101.

[0060] The terminal device periodically schedules the connection service corresponding to the connection device. For example, the terminal device may periodically send an empty data packet (i.e., a data packet that does not carry any data) to the connection device. Accordingly, the connection device may periodically respond to the terminal device. For example, if the connection device periodically receives an empty data packet from the terminal device, the connection device may periodically send an acknowledgment character (ACK) to the terminal device to indicate that the connection device is still connected to the terminal device. Optionally, if the connection device does not receive an empty data packet from the terminal device, the connection device will be unable to respond to the terminal device, and it can be confirmed that the connection device is disconnected from the terminal device.

[0061] When the terminal device schedules the connection service corresponding to the connection device, the terminal device can be considered to be in the awake state; when the terminal device does not schedule the connection service corresponding to the connection device, the terminal device can be considered to be in the sleep state. Figure 1B As shown, the time from the start moment of the awake state to the end moment of the awake state is the time that the terminal device is in the awake state, that is, the awake time. It should be noted that after receiving the wake-up instruction, the terminal device needs a certain time interval to enter the awake state; after ending the awake state (that is, the end moment of the awake state), the terminal device also needs a certain time interval to enter the sleep state. During these two time intervals, the terminal device will also generate a certain amount of power consumption. It is understandable that if the terminal device is connected to multiple connection devices, the terminal device needs to repeatedly switch between the awake state and the sleep state, thereby consuming more power consumption. The connection service adjustment method provided in the embodiment of the present application can reduce power consumption during the scheduling process.

[0062] In some embodiments, "terminal device," "first connection device," and "second connection device" are merely names used in the embodiments of this application and do not limit the embodiments of this application. Optionally, "terminal device" may also be referred to as a "master device," "connection-initiating device," or "connection-initiating end," and the "first connection device" may also be referred to as a "first slave device" or "first connection end," and the "second connection device" may also be referred to as a "second slave device" or "second connection end," and this application does not impose any limitations on this.

[0063] See also Figure 2 , Figure 2 This is a flow chart of a connection service adjustment method provided in an embodiment of the present application. The method can be implemented by the above-mentioned terminal device, or can be implemented by a device used in conjunction with the above-mentioned terminal device, such as a chip module or chip. Figure 2 As shown, the connection service adjustment method includes but is not limited to the following steps S201 to S202.

[0064] S201: When the current time matches the i-th wakeup time of the first connection service, obtain the j-th reference wakeup time of the second connection service. The i-th wakeup time of the first connection service is earlier than the j-th reference wakeup time of the second connection service; i is a positive integer, and j is a positive integer.

[0065] The current time may be the current system time of the terminal device, for example, the time currently displayed on the terminal device's time display. The first connection service may be a connection service between the terminal device and the first connection device. The terminal device may schedule the first connection service to confirm whether the first connection device is still connected to the terminal device. Each time the terminal device schedules the first connection service, it will be in an awake state; this period of time in the awake state may be referred to as the awake time for that scheduling of the first connection service. For example, the time the terminal device is awake when the first connection service is scheduled may be referred to as the first wake-up time for the first connection service.

[0066] For example, Figure 3 As shown, Figure 3 Take the i-th scheduling of the first connection service by the terminal device as an example for explanation. The period during which the terminal device schedules the first connection service for the i-th time, that is, from the start moment of the i-th wake-up time of the first connection service to the end moment of the i-th wake-up time of the first connection service, can be considered as the i-th wake-up time of the first connection service. The i-th wake-up time of the first connection service can also be called the duration of the i-th scheduling of the first connection service. Optionally, when the terminal device schedules the first connection service for the i-th time, it can be scheduled according to the reference scheduling period of the first connection service (that is, the scheduling period of the terminal device in advance for the first connection service), or it can be scheduled according to the actual scheduling period of the first connection service (that is, the scheduling period after the terminal device adjusts the first connection service according to the method provided in this application), and this application does not impose any restrictions on this.

[0067] It should be noted that the current moment matches the i-th wake-up time of the first connection service, which can be understood as the terminal device is about to perform the i-th scheduling of the first connection service at the current moment. Figure 4A As shown, when the current moment is the starting moment of the i-th wake-up time of the first connection service, it can be considered that the current moment matches the i-th wake-up time of the first connection service. Optionally, the current moment matches the i-th wake-up time of the first connection service, which can also be understood as the terminal device is performing the i-th scheduling of the first connection service at the current moment. For example, Figure 4B As shown, when the current time is later than the start time of the i-th wake-up time of the first connection service and earlier than the end time of the i-th wake-up time of the first connection service, it can be considered that the current time matches the i-th wake-up time of the first connection service.

[0068] In this embodiment of the present application, when the current time matches the i-th wake-up time of the first connection service, the terminal device can obtain the j-th reference wake-up time of the second connection service. The i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service.

[0069] The second connection service may be a connection service between the terminal device and the second connection device. The terminal device may schedule the second connection service to confirm whether the second connection device is still connected to the terminal device. The terminal device may perform the jth reference scheduling of the second connection service based on the reference scheduling period of the second connection service. The time of performing the jth reference scheduling of the second connection service is the jth reference wake-up time of the second connection service. Specifically, the jth reference wake-up time may include the start time of the jth reference wake-up time and the end time of the jth reference wake-up time.

[0070] It should be noted that the reference scheduling period for the second connection service may be a scheduling period pre-set by the terminal device for the second connection service. The terminal device may determine an initial interval duration based on the interval duration range issued by the application corresponding to the second connection service as the reference scheduling period for the second connection service, thereby scheduling the second connection service based on the reference scheduling period.

[0071] Exemplarily, before scheduling the second connection service, the terminal device may receive an instruction issued by the application corresponding to the second connection service, such as a connection establishment instruction (Create_Connection command). The connection establishment instruction may carry parameters for establishing a connection between the terminal device and the connection device, such as an interval duration range, which may include: an initial minimum interval duration (Connection_Interval_Min) and an initial maximum interval duration (Connection_Interval_Max). For example, the terminal device may determine that the initial interval duration (Interval) of the second connection service is 6 minutes based on an interval duration range of 3 minutes to 6 minutes (i.e., an initial minimum interval duration of 3 minutes and an initial maximum interval duration of 9 minutes). The interval duration in minutes is only used as an example and does not constitute a limitation to the present application. Optionally, the terminal device may send the specific value of the initial interval duration to the second connection device.

[0072] Further, such as Figure 5A As shown, Figure 5AThe example shows the i-th wake-up time of the first connection service and the j-th reference wake-up time of the second connection service. In this embodiment of the present application, the j-th reference wake-up time of the second connection service can be later than the i-th wake-up time of the first connection service. In other words, the time when the terminal device performs the j-th reference scheduling of the second connection service based on the initial interval duration of the second connection service can be later than the i-th wake-up time of the first connection service.

[0073] S202 : When the j th reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet an adjustment condition, adjust the j th wake-up time of the second connection service according to the ith wake-up time of the first connection service.

[0074] Among them, the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment condition, which can be understood as the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service are adjacent in the time domain, and there is a time interval between the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service.

[0075] It should be noted that the jth reference wake-up time of the second connection service is adjacent to the i-th wake-up time of the first connection service in the time domain. It can be understood that there is no scheduling of other connection services between the jth reference wake-up time of the second connection service and the i-th wake-up time of the first connection service. Since the jth reference wake-up time of the second connection service is later than the i-th wake-up time of the first connection service, Figure 5A As shown, the jth reference wake-up time of the second connection service can be the next adjacent reference wake-up time after the i-th wake-up time of the first connection service. That is, after the i-th wake-up time of the first connection service, the next wake-up time of the terminal device can be the j-th reference wake-up time of the second connection service. Figure 5A It can be seen that between the i-th wake-up time of the first connection service and the j-th reference wake-up time of the second connection service, the terminal device has no other connection service that needs to be scheduled.

[0076] It should also be noted that there is a time interval between the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service, which can be understood as follows: Figure 5AAs shown, there is a time interval between the start time of the jth reference wake-up time of the second connection service and the end time of the i-th wake-up time of the first connection service. Optionally, the time interval between the jth reference wake-up time of the second connection service and the i-th wake-up time of the first connection service can also be expressed as the time interval between the start time of the jth reference wake-up time of the second connection service and the end time of the i-th wake-up time of the first connection service is greater than a threshold. The threshold can be 0 or a value close to 0, and this application does not impose any restrictions on this.

[0077] When the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment conditions, the terminal device can adjust the j-th wake-up time of the second connection service in the following two ways:

[0078] Method 1: The terminal device can adjust the starting time of the jth wake-up time of the second connection service to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the starting time of the j-th wake-up time of the second connection service can be equal to the interval between the end time of the j-th reference wake-up time of the second connection service and the starting time of the j-th reference wake-up time of the second connection service.

[0079] It should be noted that, when the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment conditions, that is, for Figure 5A In the corresponding situation, the terminal device can first adjust the starting time of the jth wake-up time of the second connection service to the end time of the i-th wake-up time of the first connection service, and then determine the end time of the j-th wake-up time of the second connection service based on the duration of the j-th reference scheduling of the second connection service.

[0080] The duration of the j-th reference scheduled second connection service may be the interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service. In other words, the terminal device may determine the end time of the j-th wake-up time of the second connection service based on the interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service, and the determined start time of the j-th wake-up time of the second connection service.

[0081] It can be understood that since the duration of the jth reference scheduling of the second connection service remains unchanged, that is, the time interval between the end time of the jth reference wake-up time of the second connection service and the start time of the jth reference wake-up time of the second connection service remains unchanged, after the terminal device adjusts the start time of the jth wake-up time of the second connection service, the end time of the jth wake-up time of the second connection service will also be adjusted accordingly. Figure 5B As shown, Figure 5B Schematic diagram showing the j-th wake-up time of the second connection service. Figure 5B It can be seen that the end time of the i-th wake-up time of the first connection service can be the same as the start time of the j-th wake-up time of the second connection service. In other words, when the terminal device ends the i-th scheduling of the first connection service, it will start the j-th scheduling of the second connection service. That is, the terminal device will aggregate the i-th scheduling of the first connection service and the j-th scheduling of the second connection service.

[0082] Method 2: The terminal device can adjust the starting time of the jth wake-up time of the second connection service to the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the starting time of the j-th wake-up time of the second connection service can be equal to the interval between the end time of the j-th reference wake-up time of the second connection service and the starting time of the j-th reference wake-up time of the second connection service.

[0083] The start time of the jth wake-up time of the second connection service is adjusted to the i-th wake-up time of the first connection service, which can be understood as starting the jth scheduling of the second connection service within the i-th wake-up time of the first connection service. Figure 5C As shown, the j-th wake-up time of the second connection service may overlap with the i-th wake-up time of the first connection service.

[0084] In an embodiment of the present application, when the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment conditions, by adjusting the j-th wake-up time of the second connection service according to the i-th wake-up time of the first connection service, there can be no time interval between the start time of the j-th wake-up time of the second connection service and the end time of the i-th wake-up time of the first connection service, so that the terminal device can schedule the first connection service for the i-th time and the second connection service for the j-th time through one wake-up process, thereby reducing the number of wake-up times of the terminal device to reduce the power consumption generated by state switching during the scheduling process.

[0085] Optionally, there may be no time interval between the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service. Figure 5D As shown in FIG, the starting time of the jth reference wake-up time of the second connection service may be the ending time of the ith wake-up time of the first connection service; or Figure 5E As shown, the starting time of the j-th reference wake-up time of the second connection service may be within the i-th wake-up time of the first connection service. It should be noted that when there is no time interval between the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service, the terminal device may not make any adjustment, and this application does not impose any limitation on this.

[0086] For example, Figure 6A FIG. 1 shows a schematic diagram of power consumption of a terminal device before the connection service adjustment method provided by the present application is adopted. Figure 5A The corresponding power consumption diagram of the terminal equipment. Figure 6A In the process of scheduling the first connection service and the second connection service, the terminal device will switch between the awake state and the sleep state many times, thereby wasting the power consumption of the terminal device. Figure 6B FIG. 4 shows a schematic diagram of power consumption of a terminal device after adopting the connection service adjustment method provided by the present application, as shown in FIG. Figure 5B The corresponding power consumption diagram of the terminal equipment. Figure 6B During the period of scheduling the first and second connection services, the terminal device can switch between the awake state and the sleep state only once, thereby saving power consumption. For ease of visualization, the figure shows the power consumption of the terminal device when scheduling the first and second connection services at different heights, which does not constitute a limitation.

[0087] In one implementation, the terminal device may determine the third interval duration based on the first interval duration and the second interval duration.

[0088] Among them, the first interval duration can be the interval duration between the i+1th wake-up time of the first connection service and the i-th wake-up time of the first connection service. The terminal device can schedule the first connection service with the first interval duration as the scheduling period. It should be noted that the scheduling period of the first connection service can be the reference scheduling period of the terminal device for the first connection service (that is, the first interval duration can be the initial interval duration of the first connection service). Optionally, the scheduling period of the first connection service can also be the actual scheduling period of the terminal device for the first connection service (that is, the first interval duration can be the adjusted interval duration of the first connection service), and this application does not impose any restrictions on this.

[0089] Among them, the second interval duration is the interval duration between the j+1th reference wake-up time of the second connection service and the jth reference wake-up time of the second connection service. It should be noted that the terminal device can use the second interval duration as a reference scheduling period to schedule the second connection service, that is, the second interval duration can be the initial interval duration for the terminal device to schedule the second connection service. Optionally, the first interval duration and the second interval duration can be the same or different, and this application does not impose any restrictions on this. Figure 7A As shown, Figure 7A A schematic diagram of a first interval duration and a second interval duration provided in an embodiment of the present application. Figure 7A In the embodiment, the first interval duration is greater than the second interval duration for illustration, which does not constitute a limitation to the present application.

[0090] The third interval duration may be the interval duration between the j+1th wake-up time of the second connection service and the jth wake-up time of the second connection service. It should be noted that the terminal device may schedule the second connection service using the third interval duration as the actual scheduling period. In other words, the terminal device may adjust the initial interval duration (second interval duration) of the second connection service to obtain the actual interval duration (third interval duration) for scheduling the second connection service.

[0091] It should be noted that the terminal device determines the third interval duration based on the first interval duration and the second interval duration. There may be the following four situations:

[0092] Case 1: If the first interval duration is greater than or equal to the second interval duration (e.g. Figure 7A ), and the first interval duration is less than or equal to the initial maximum interval duration of the second connection service, the terminal device can determine that the third interval duration is equal to the first interval duration. Figure 7B As shown, when it is determined that the third interval duration is equal to the first interval duration, the terminal device can determine the j+1th wake-up time of the second connection service based on the third interval duration. Specifically, the terminal device can determine the start time of the j+1th wake-up time of the second connection service based on the third interval duration and the start time of the jth wake-up time of the second connection service; and determine the end time of the j+1th wake-up time of the second connection service based on the start time of the jth wake-up time of the second connection service and the time interval between the start time of the jth wake-up time of the second connection service and the end time of the jth wake-up time of the second connection service.

[0093] Case 2: If the first interval duration is greater than or equal to the second interval duration, and the first interval duration is greater than the initial maximum interval duration of the second connection service, the terminal device determines the target maximum interval duration of the second connection service based on the negotiation result of the application corresponding to the second connection service; if the target maximum interval duration of the second connection service is greater than or equal to the first interval duration, then Figure 7B As shown, the terminal device can determine that the third interval duration is equal to the first interval duration, and determine the j+1th wake-up time of the second connection service according to the third interval duration; if the target maximum interval duration of the second connection service is less than the first interval duration, then Figure 7C As shown, the terminal device can determine that the third interval duration is equal to the second interval duration, and determine the j+1th wake-up time of the second connection service based on the third interval duration. Optionally, the terminal device can send the above negotiation result to the connection device corresponding to the second connection service (i.e., the second connection device).

[0094] Case 3: If the first interval duration is less than the second interval duration (e.g. Figure 8A ), and the total interval duration of the N first interval durations is less than or equal to the initial maximum interval duration of the second connection service, then the third interval duration is determined to be equal to the total interval duration of the N first interval durations; wherein N is a positive integer greater than or equal to 2. For example, assuming that N=2, that is, the total interval duration of the two first interval durations is less than or equal to the initial maximum interval duration of the second connection service. When the total interval duration of the two first interval durations does not exceed the range of the interval duration of the second connection service, as Figure 8B As shown, the terminal device can determine that the third interval duration is equal to the total interval duration of the two first interval durations, and determine the j+1th wake-up time of the second connection service according to the third interval duration. It should be noted that, Figure 8A N=2 is used as an example for illustration, which does not constitute a limitation to the present application.

[0095] Case 4: If the first interval duration is less than the second interval duration, and the total interval duration of N first interval durations is greater than the initial maximum interval duration of the second connection service, the terminal device may determine the target maximum interval duration of the second connection service based on the negotiation result of the application corresponding to the second connection service; if the target maximum interval duration of the second connection service is greater than or equal to the total interval duration of N first interval durations, then Figure 8B As shown, the terminal device can determine that the third interval duration is equal to the total interval duration of N first interval durations, and determine the j+1th wake-up time of the second connection service according to the third interval duration; if the target maximum interval duration of the second connection service is less than the total interval duration of N first interval durations, then Figure 8CAs shown, the terminal device can determine that the third interval duration is equal to the second interval duration, and determine the j+1th wake-up time of the second connection service according to the third interval duration. Optionally, the terminal device can send the above negotiation result to the second connection device corresponding to the second connection service.

[0096] It should be noted that by determining the third interval duration, the terminal device can schedule the second connection service using the third interval duration as the actual scheduling period during subsequent scheduling. Furthermore, when the third interval duration is equal to the first interval duration, the terminal device can complete the scheduling of the first connection service and the second connection service once each time it wakes up in the subsequent scheduling of the first connection service and the second connection service, thereby saving more power consumption.

[0097] Optionally, in the actual connection service adjustment process, the interval lengths of the two connection services may be equal, but there is a time interval between the wake-up times of the two connection services. In this case, the terminal device may aggregate the two connection services in a certain scheduling as soon as possible. For example, Figure 8D As shown, the second interval duration of the second connection service can be equal to the first interval duration of the first connection service, but there is a time interval between the jth reference wake-up time of the second connection service and the i-th wake-up time of the first connection service, that is, there is a time interval between the start time of the jth reference wake-up time of the second connection service and the end time of the i-th wake-up time of the first connection service; then the terminal device can adjust the start time of the jth wake-up time of the second connection service to the end time of the i-th wake-up time of the first connection service as soon as possible (that is, as mentioned above Figure 7B As shown), to achieve aggregate scheduling of the i-th scheduling of the first connection service and the j-th scheduling of the second connection service, so that in the subsequent scheduling process, the aggregate scheduling of the first connection service and the second connection service will be maintained.

[0098] In one implementation, the kth reference wake-up time of the third connection service is obtained; the jth wake-up time of the second connection service is earlier than the kth reference wake-up time of the third connection service; k is a positive integer; the time interval between the start moment of the kth reference wake-up time of the third connection service and the end moment of the jth wake-up time of the second connection service is greater than or equal to a threshold, the start moment of the kth wake-up time of the third connection service is adjusted to the end moment of the jth wake-up time of the second connection service, and the time interval between the end moment of the kth wake-up time of the third connection service and the start moment of the kth wake-up time of the third connection service is equal to the time interval between the end moment of the kth reference wake-up time of the third connection service and the start moment of the kth reference wake-up time of the third connection service.

[0099] The third connection service may be a connection service between the terminal device and the third connection device. The terminal device may schedule the third connection service to confirm whether the third connection device is still connected to the terminal device.

[0100] It should be noted that if the terminal device is also connected to a third connection device, such as Figure 9A As shown, that is, there is a third connection service that needs to be scheduled, the terminal device can adjust the starting time of the kth wake-up time of the third connection service to the end time of the jth wake-up time of the second connection service, such as Figure 9B As shown, the number of wake-up times of the terminal device is reduced, thereby reducing the power consumption of the terminal device during the scheduling process.

[0101] Optionally, after determining the kth wake-up time corresponding to the third connection device, the terminal device may further determine a fifth interval duration based on the third interval duration and the fourth interval duration. The fourth interval duration may be the interval duration between the k+1th reference wake-up time of the third connection service and the kth reference wake-up time of the third connection service, and the fifth interval duration may be the interval duration between the k+1th wake-up time of the third connection service and the kth wake-up time of the third connection service.

[0102] It should be noted that for determining the kth wake-up time and the fifth interval duration of the third connection service, reference can be made to the specific steps for determining the jth wake-up time and the third interval duration of the second connection service, which will not be described in detail in this application. Optionally, if the terminal device is also connected to a fourth connection device or a fifth connection device, etc., the specific implementation method can also refer to the specific steps described above, which will not be described in detail here.

[0103] Optionally, after the terminal device has aggregated and scheduled multiple (greater than or equal to 3) connection services, if one of the connection devices is disconnected, the terminal device may re-initiate the above-mentioned connection service adjustment method to adjust the scheduling time of the remaining multiple connection services. For example, assuming that the terminal device has already implemented aggregate scheduling of the first connection service, the second connection service, and the third connection service, if the second connection service is disconnected, the terminal device may re-initiate the connection service adjustment method to adjust the scheduling time of the first connection service and the third connection service.

[0104] Optionally, the embodiments of the present application are described using connection services (such as the first connection service and the second connection service) as examples. In some embodiments, the services scheduled by the terminal device may also include data transmission services. It should be noted that the time interval when the terminal device schedules the data transmission service can be short, and the time interval when scheduling the connection service can be long, and this application does not impose any restrictions on this.

[0105] In the example of the present application, by obtaining the jth reference wake-up time of the second connection service that is later than the i-th wake-up time of the first connection service when the current time matches the i-th wake-up time of the first connection service, the start time of the j-th wake-up time of the second connection service can be adjusted to the end time of the i-th wake-up time of the first connection service when the time interval between the start time of the j-th reference wake-up time of the second connection service and the end time of the i-th wake-up time of the first connection service is greater than or equal to a threshold, so that the terminal device completes the i-th scheduling of the first connection service and the j-th scheduling of the second connection service through one wake-up process, thereby reducing the number of wake-up times of the terminal device, and further reducing the power consumption generated by state switching during the scheduling process.

[0106] See also Figure 10 , Figure 10 This is a flow chart of a connection service adjustment method provided in an embodiment of the present application. The connection service adjustment method can be implemented by the above-mentioned terminal device, or can be implemented by a device used in conjunction with the above-mentioned terminal device, such as a chip module or chip. Figure 10 As shown, the connection service adjustment method includes but is not limited to the following steps S1001 to S1009.

[0107] S1001, when the current moment matches the i-th wake-up time of the first connection service, obtain the j-th reference wake-up time of the second connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer.

[0108] S1002 : When the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet an adjustment condition, adjust the j-th wake-up time of the second connection service according to the i-th wake-up time of the first connection service.

[0109] S1003, if the first interval duration is greater than or equal to the second interval duration, execute S1004; if the first interval duration is less than the second interval duration, execute S1007.

[0110] S1004: If the first interval duration is less than or equal to the initial maximum interval duration of the second connection service, execute S1005; if the first interval duration is greater than the initial maximum interval duration of the second connection service, execute S1006.

[0111] S1005: Determine whether the third interval duration is equal to the first interval duration.

[0112] S1006: Determine whether the third interval duration is equal to the second interval duration.

[0113] S1007, if the total interval duration of the N first interval durations is less than or equal to the initial maximum interval duration of the second connection service, execute S1008; if the total interval duration of the N first interval durations is greater than the initial maximum interval duration of the second connection service, execute S1009.

[0114] S1008: Determine that the third interval duration is equal to the total interval duration of N first interval durations; wherein N is a positive integer greater than or equal to 2.

[0115] S1009: Determine whether the third interval duration is equal to the second interval duration.

[0116] It should be noted that Figure 10 For each step in the corresponding embodiment, please refer to the above Figure 2 The detailed description in the corresponding embodiments will not be repeated here in this application.

[0117] In the example of the present application, by obtaining the jth reference wake-up time of the second connection service when the current moment matches the i-th wake-up time of the first connection service, and adjusting the jth wake-up time of the second connection service according to the i-th wake-up time of the first connection service when the jth reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment condition, the number of wake-up times of the terminal device can be reduced once; by determining that the third interval duration is equal to the first interval duration when the first interval duration is greater than or equal to the second interval duration and less than or equal to the initial maximum interval duration of the second connection service, and determining that the third interval duration is equal to the total interval duration of N first interval durations when the first interval duration is less than the second interval duration and the total interval duration of N first interval durations is less than or equal to the initial maximum interval duration of the second connection service, in the subsequent scheduling of the first connection service and the second connection service, the scheduling of the first connection service and the second connection service can be completed once each time the terminal device is woken up, thereby saving more power consumption.

[0118] See also Figure 11 , Figure 11 This is a schematic diagram of the structure of an adjustment device provided in an embodiment of the present application. The device can be a terminal device, a device in a terminal device, or a device that can be used in conjunction with a terminal device. Figure 11 The adjustment device shown may include an acquisition unit 1101 and an adjustment unit 1102.

[0119] The acquiring unit 1101 is configured to acquire the jth reference wakeup time of the second connection service when the current time matches the i-th wakeup time of the first connection service; the i-th wakeup time of the first connection service is earlier than the j-th reference wakeup time of the second connection service; i is a positive integer, and j is a positive integer;

[0120] The adjusting unit 1102 is configured to adjust the jth wakeup time of the second connection service according to the ith wakeup time of the first connection service when the jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service meet an adjustment condition.

[0121] In one implementation, the adjustment unit 1102 is further configured to adjust the start time of the j-th wake-up time of the second connection service to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the start time of the j-th wake-up time of the second connection service is equal to the time interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service.

[0122] In one implementation, the adjustment device further includes a determining unit 1103. The determining unit 1103 is configured to determine a third interval duration based on the first interval duration and the second interval duration; the determining unit 1103 is further configured to determine a starting time of the j+1th wake-up time of the second connection service based on the third interval duration; wherein the first interval duration is the interval duration between the i+1th wake-up time of the first connection service and the i-th wake-up time of the first connection service; the second interval duration is the interval duration between the j+1th reference wake-up time of the second connection service and the j-th reference wake-up time of the second connection service; and the third interval duration is the interval duration between the j+1th wake-up time of the second connection service and the j-th wake-up time of the second connection service.

[0123] In one implementation, the above-mentioned determination unit 1103 is further used to determine that the third interval duration is equal to the first interval duration if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is less than or equal to the initial maximum interval duration of the second connection service.

[0124] In one implementation, the above-mentioned determination unit 1103 is also used to determine the target maximum interval duration of the second connection service based on the negotiation result of the application corresponding to the second connection service if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is greater than the initial maximum interval duration of the second connection service; the above-mentioned determination unit 1103 is also used to determine that the third interval duration is equal to the first interval duration if the target maximum interval duration of the second connection service is greater than or equal to the first interval duration; the above-mentioned determination unit 1103 is also used to determine that the third interval duration is equal to the second interval duration if the target maximum interval duration of the second connection service is less than the first interval duration.

[0125] In one implementation, the adjustment apparatus further includes a sending unit 1104. The sending unit 1104 is configured to send the negotiation result to the connection device corresponding to the second connection service.

[0126] In one implementation, the above-mentioned determination unit 1103 is also used to determine that the third interval duration is equal to the total interval duration of N first interval durations if the first interval duration is less than the second interval duration, and the total interval duration of N first interval durations is less than or equal to the initial maximum interval duration of the second connection service; wherein N is a positive integer greater than or equal to 2.

[0127] In one implementation, the acquisition unit 1101 is further used to obtain the kth reference wake-up time of the third connection service; the jth wake-up time of the second connection service is earlier than the kth reference wake-up time of the third connection service; k is a positive integer; the adjustment unit 1102 is further used to adjust the kth wake-up time of the third connection service according to the jth wake-up time of the second connection service when the kth reference wake-up time of the third connection service and the jth wake-up time of the second connection service meet the adjustment condition.

[0128] According to the embodiments of the present application, Figure 11 The various units in the adjustment device shown can be individually or all combined into one or several other units to form, or one (or some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the adjustment device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0129] The adjustment device may be, for example, a chip or a chip module. The modules included in the devices and products described in the above embodiments may be software modules or hardware modules, or may be partially software modules and partially hardware modules. For example, for each device or product applied to or integrated into a chip, each module contained therein may be implemented in the form of hardware such as circuits, or at least some of the modules may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated into a chip module, each module contained therein may be implemented in the form of hardware such as circuits, and different modules may be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some of the modules may be implemented in the form of software programs, which run on a processor integrated inside the chip module, and the remaining (if any) modules may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated into a terminal, each module contained therein may be implemented in the form of hardware such as circuits, and different modules may be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal, or at least some of the modules may be implemented in the form of software programs, which run on a processor integrated inside the terminal, and the remaining (if any) modules may be implemented in the form of hardware such as circuits.

[0130] The embodiments of the present application and the embodiments of the aforementioned method are based on the same concept, and the technical effects they bring are also the same. For the specific principles, please refer to the description of the aforementioned embodiments, which will not be repeated here.

[0131] See also Figure 12 , Figure 12 An adjustment device 120 is provided in an embodiment of the present application. Figure 12 As shown, the adjustment device 120 may include a processor 1201. Optionally, the adjustment device may also include a memory 1202. The processor 1201 and the memory 1202 may be connected via a bus 1203 or other means. Figure 12 The connections between the other components are shown in bold lines, which are only for illustration and not intended to be limiting. The bus can be divided into address bus, data bus, control bus, etc. Figure 12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0132] The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which can be electrical, mechanical, or other forms, and is used for information exchange between devices, units, or modules. The specific connection medium between the processor 1201 and the memory 1202 is not limited in the embodiments of the present application.

[0133] The memory 1202 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1201. A portion of the memory 1202 may also include a nonvolatile random access memory.

[0134] The processor 1201 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor, or alternatively, the processor 1201 may be any conventional processor. Specifically:

[0135] The memory 1202 is used to store program instructions.

[0136] The processor 1201 is configured to call program instructions stored in the memory 1202 to:

[0137] When the current time matches the i-th wake-up time of the first connection service, obtain the j-th reference wake-up time of the second connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer;

[0138] When the jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service meet the adjustment condition, the jth wakeup time of the second connection service is adjusted according to the ith wakeup time of the first connection service.

[0139] In one implementation, the processor 1201 is further configured to adjust the start time of the jth wake-up time of the second connection service to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the start time of the j-th wake-up time of the second connection service is equal to the time interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service.

[0140] In one implementation, the processor 1201 is further used to determine a third interval duration based on the first interval duration and the second interval duration; the processor 1201 is further used to determine the starting time of the j+1th wake-up time of the second connection service based on the third interval duration; wherein, the first interval duration is the interval duration between the i+1th wake-up time of the first connection service and the i-th wake-up time of the first connection service; the second interval duration is the interval duration between the j+1th reference wake-up time of the second connection service and the j-th reference wake-up time of the second connection service; the third interval duration is the interval duration between the j+1th wake-up time of the second connection service and the j-th wake-up time of the second connection service.

[0141] In one implementation, the processor 1201 is further configured to determine that the third interval duration is equal to the first interval duration if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is less than or equal to the initial maximum interval duration of the second connection service.

[0142] In one implementation, the processor 1201 is further used to determine the target maximum interval duration of the second connection service based on the negotiation result of the application corresponding to the second connection service if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is greater than the initial maximum interval duration of the second connection service; the processor 1201 is further used to determine that the third interval duration is equal to the first interval duration if the target maximum interval duration of the second connection service is greater than or equal to the first interval duration; the processor 1201 is further used to determine that the third interval duration is equal to the second interval duration if the target maximum interval duration of the second connection service is less than the first interval duration.

[0143] In one implementation, the adjustment device may further include a transceiver 1204. The transceiver 1204 is configured to send a negotiation result to a connection device corresponding to the second connection service.

[0144] In one implementation, the processor 1201 is further configured to determine that the third interval duration is equal to the total interval duration of N first interval durations if the first interval duration is less than the second interval duration, and the total interval duration of N first interval durations is less than or equal to the initial maximum interval duration of the second connection service; wherein N is a positive integer greater than or equal to 2.

[0145] In one implementation, the processor 1201 is further used to obtain the kth reference wake-up time of the third connection service; the jth wake-up time of the second connection service is earlier than the kth reference wake-up time of the third connection service; k is a positive integer; the processor 1201 is further used to adjust the kth wake-up time of the third connection service according to the jth wake-up time of the second connection service when the kth reference wake-up time of the third connection service and the jth wake-up time of the second connection service meet the adjustment conditions.

[0146] In the embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM) and other processing elements and storage elements. Figure 2 and Figure 10 The computer program (including program code) for each step involved in the corresponding method shown in the embodiment of the present application is used to implement the method. The computer program can be recorded on a computer-readable recording medium, for example, and loaded into the above-mentioned computing device via the computer-readable recording medium and run therein.

[0147] Based on the same inventive concept, the principles and beneficial effects of the problem solved by the adjustment device provided in the embodiment of the present application are similar to the principles and beneficial effects of the problem solved by the adjustment device in the embodiment of the method of the present application. Please refer to the principles and beneficial effects of the implementation of the method. For the sake of concise description, they will not be repeated here.

[0148] The present application also provides a chip capable of executing the steps of the terminal device in the aforementioned method embodiment. The chip is configured to: obtain the jth reference wakeup time of a second connection service when the current time matches the i-th wakeup time of the first connection service; the i-th wakeup time of the first connection service is earlier than the j-th reference wakeup time of the second connection service; i is a positive integer, and j is a positive integer; and adjust the j-th wakeup time of the second connection service according to the i-th wakeup time of the first connection service when the j-th reference wakeup time of the second connection service and the i-th wakeup time of the first connection service meet an adjustment condition.

[0149] In one implementation, the chip is further used to adjust the start time of the jth wake-up time of the second connection service to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the start time of the j-th wake-up time of the second connection service is equal to the time interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service.

[0150] In one implementation, the chip is further used to determine a third interval duration based on the first interval duration and the second interval duration; the chip is further used to determine the starting time of the j+1th wake-up time of the second connection service based on the third interval duration; wherein, the first interval duration is the interval duration between the i+1th wake-up time of the first connection service and the i-th wake-up time of the first connection service; the second interval duration is the interval duration between the j+1th reference wake-up time of the second connection service and the j-th reference wake-up time of the second connection service; the third interval duration is the interval duration between the j+1th wake-up time of the second connection service and the j-th wake-up time of the second connection service.

[0151] In one implementation, the chip is further configured to determine that the third interval duration is equal to the first interval duration if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is less than or equal to the initial maximum interval duration of the second connection service.

[0152] In one implementation, the chip is also used to determine the target maximum interval duration of the second connection service based on the negotiation result of the application corresponding to the second connection service if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is greater than the initial maximum interval duration of the second connection service; the chip is also used to determine that the third interval duration is equal to the first interval duration if the target maximum interval duration of the second connection service is greater than or equal to the first interval duration; the chip is also used to determine that the third interval duration is equal to the second interval duration if the target maximum interval duration of the second connection service is less than the first interval duration.

[0153] In one implementation, the chip is further configured to send a negotiation result to a connection device corresponding to the second connection service.

[0154] In one implementation, the chip is also used to determine that the third interval duration is equal to the total interval duration of N first interval durations if the first interval duration is less than the second interval duration, and the total interval duration of N first interval durations is less than or equal to the initial maximum interval duration of the second connection service; wherein N is a positive integer greater than or equal to 2.

[0155] In one implementation, the chip is further used to obtain the kth reference wake-up time of the third connection service; the jth wake-up time of the second connection service is earlier than the kth reference wake-up time of the third connection service; k is a positive integer; the chip is further used to adjust the kth wake-up time of the third connection service according to the jth wake-up time of the second connection service when the kth reference wake-up time of the third connection service and the jth wake-up time of the second connection service meet the adjustment conditions.

[0156] In one implementation, the chip includes at least one processor, at least one first memory, and at least one second memory; wherein, the at least one first memory and the at least one processor are interconnected via a line, and instructions are stored in the first memory; the at least one second memory and the at least one processor are interconnected via a line, and the second memory stores data that needs to be stored in the embodiment of the method.

[0157] For each device or product applied to or integrated in the chip, each module contained therein can be implemented in the form of hardware such as circuits, or at least some of the modules can be implemented in the form of software programs, which run on the processor integrated inside the chip, and the remaining (if any) modules can be implemented in the form of hardware such as circuits.

[0158] See also Figure 13 , Figure 13 This is a schematic diagram of the structure of a chip module provided in an embodiment of the present application. Chip module 130 can execute the steps of the terminal device described in the aforementioned method embodiment. Chip module 130 includes a communication interface 1301 and a chip 1302. Optionally, chip module 130 may also include a storage module 1303 and a power module 1304. The power module 1304 can be used to provide power to the chip module, and the storage module 1303 can be used to store data and instructions.

[0159] The communication interface 1301 is used for internal communication within the chip module, or for communication between the chip module and an external device; the chip 1302 is used for:

[0160] When the current time matches the i-th wake-up time of the first connection service, obtain the j-th reference wake-up time of the second connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer;

[0161] When the jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service meet the adjustment condition, the jth wakeup time of the second connection service is adjusted according to the ith wakeup time of the first connection service.

[0162] In one implementation, the chip 1302 is further used to adjust the start time of the jth wake-up time of the second connection service to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the start time of the j-th wake-up time of the second connection service is equal to the time interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service.

[0163] In one implementation, the chip 1302 is further used to determine a third interval duration based on the first interval duration and the second interval duration; the chip 1302 is further used to determine the starting time of the j+1th wake-up time of the second connection service based on the third interval duration; wherein, the first interval duration is the interval duration between the i+1th wake-up time of the first connection service and the i-th wake-up time of the first connection service; the second interval duration is the interval duration between the j+1th reference wake-up time of the second connection service and the j-th reference wake-up time of the second connection service; the third interval duration is the interval duration between the j+1th wake-up time of the second connection service and the j-th wake-up time of the second connection service.

[0164] In one implementation, the chip 1302 is further configured to determine that the third interval duration is equal to the first interval duration if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is less than or equal to the initial maximum interval duration of the second connection service.

[0165] In one implementation, the chip 1302 is also used to, if the first interval duration is greater than or equal to the second interval duration, and the first interval duration is greater than the initial maximum interval duration of the second connection service, determine the target maximum interval duration of the second connection service based on the negotiation result of the application corresponding to the second connection service; the chip 1302 is also used to, if the target maximum interval duration of the second connection service is greater than or equal to the first interval duration, determine that the third interval duration is equal to the first interval duration; the chip 1302 is also used to, if the target maximum interval duration of the second connection service is less than the first interval duration, determine that the third interval duration is equal to the second interval duration.

[0166] In one implementation, the chip 1302 is further configured to send a negotiation result to a connection device corresponding to the second connection service.

[0167] In one implementation, the chip 1302 is further used to determine that the third interval duration is equal to the total interval duration of the N first interval durations if the first interval duration is less than the second interval duration, and the total interval duration of the N first interval durations is less than or equal to the initial maximum interval duration of the second connection service; wherein N is a positive integer greater than or equal to 2.

[0168] In one implementation, the chip 1302 is further used to obtain the kth reference wake-up time of the third connection service; the jth wake-up time of the second connection service is earlier than the kth reference wake-up time of the third connection service; k is a positive integer; the chip 1302 is also used to adjust the kth wake-up time of the third connection service according to the jth wake-up time of the second connection service when the kth reference wake-up time of the third connection service and the jth wake-up time of the second connection service meet the adjustment conditions.

[0169] For each device or product applied to or integrated in the chip module, each module contained therein can be implemented by hardware such as circuits, and different modules can be located in the same component of the chip module (such as a chip, circuit module, etc.) or different components, or at least some modules can be implemented by software programs, which run on a processor integrated inside the chip module, and the remaining (if any) modules can be implemented by hardware such as circuits.

[0170] An embodiment of the present application also provides a computer-readable storage medium, in which one or more instructions are stored, and the one or more instructions are suitable for being loaded by a processor and executing the method provided by the above method embodiment.

[0171] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided by the above method embodiment.

[0172] Regarding the various modules / units contained in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or partly software modules / units and partly hardware modules / units. For example, for various devices and products applied to or integrated into a chip, the various modules / units contained therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / units can be implemented in the form of software programs, which run on the integrated processor inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated into a chip module, the various modules / units contained therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same part of the chip module (such as a chip, circuit module, etc.) or in different components, or at least some of the modules / units can be implemented in the form of software programs. It can be implemented in the form of a software program, which runs on the processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the modules / units contained therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on the processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.

[0173] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0174] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0175] The descriptions of the various embodiments provided in this application can refer to each other. The descriptions of each embodiment have their own focus. For parts not described in detail in a particular embodiment, please refer to the relevant descriptions of other embodiments. For the convenience and brevity of description, for example, the functions and operations performed by the various devices and equipment provided in the embodiments of this application can refer to the relevant descriptions of the method embodiments of this application. The various method embodiments and the various device embodiments can also refer to, be combined with, or quote each other.

[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A connection service adjustment method, characterized in that: The method comprises: When the current time matches the i-th wake-up time of the first connection service, obtain the j-th reference wake-up time of the second connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer; If the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment condition, the start time of the j-th wake-up time of the second connection service is adjusted to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the start time of the j-th wake-up time of the second connection service is equal to the time interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service.

2. The method according to claim 1, characterized in that The method further comprises: Determine a third interval duration based on the first interval duration and the second interval duration; Determine the starting time of the j+1th wake-up time of the second connection service according to the third interval duration; The first interval duration is the interval duration between the i+1th wake-up time of the first connection service and the i-th wake-up time of the first connection service; the second interval duration is the interval duration between the j+1th reference wake-up time of the second connection service and the j-th reference wake-up time of the second connection service; and the third interval duration is the interval duration between the j+1th wake-up time of the second connection service and the j-th wake-up time of the second connection service.

3. The method according to claim 2, characterized in that The determining of the third interval duration according to the first interval duration and the second interval duration includes: If the first interval duration is greater than or equal to the second interval duration, and the first interval duration is less than or equal to the initial maximum interval duration of the second connection service, the third interval duration is determined to be equal to the first interval duration.

4. The method according to claim 2, characterized in that The determining of the third interval duration according to the first interval duration and the second interval duration includes: If the first interval duration is greater than or equal to the second interval duration, and the first interval duration is greater than the initial maximum interval duration of the second connection service, determining a target maximum interval duration of the second connection service according to a negotiation result of an application corresponding to the second connection service; If the target maximum interval duration of the second connection service is greater than or equal to the first interval duration, determining that the third interval duration is equal to the first interval duration; If the target maximum interval duration of the second connection service is smaller than the first interval duration, the third interval duration is determined to be equal to the second interval duration.

5. The method according to claim 2, characterized in that The determining of the third interval duration according to the first interval duration and the second interval duration includes: If the first interval duration is less than the second interval duration, and the total interval duration of N first interval durations is less than or equal to the initial maximum interval duration of the second connection service, then the third interval duration is determined to be equal to the total interval duration of N first interval durations; where N is a positive integer greater than or equal to 2.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Obtaining the kth reference wake-up time of the third connection service; the jth wake-up time of the second connection service is earlier than the kth reference wake-up time of the third connection service; k is a positive integer; When the kth reference wake-up time of the third connection service and the jth wake-up time of the second connection service meet an adjustment condition, the kth wake-up time of the third connection service is adjusted according to the jth wake-up time of the second connection service.

7. An adjustment device, characterized in that: The method comprises means for executing the method according to any one of claims 1 to 6.

8. An adjustment device, characterized in that: Including processor; The processor is configured to execute the method according to any one of claims 1 to 6.

9. The adjustment device according to claim 8, characterized in that The adjustment device further includes a memory: The memory is used to store computer programs; The processor is specifically configured to call the computer program from the memory and execute the method according to any one of claims 1 to 6.

10. A chip module, characterized in that: The chip module includes Communication interfaces and chips, including: The communication interface is used for internal communication within the chip module, or for communication between the chip module and an external device; The chip is used for: When the current time matches the i-th wake-up time of the first connection service, obtain the j-th reference wake-up time of the second connection service; the i-th wake-up time of the first connection service is earlier than the j-th reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer; If the j-th reference wake-up time of the second connection service and the i-th wake-up time of the first connection service meet the adjustment condition, the start time of the j-th wake-up time of the second connection service is adjusted to the end time of the i-th wake-up time of the first connection service; the time interval between the end time of the j-th wake-up time of the second connection service and the start time of the j-th wake-up time of the second connection service is equal to the time interval between the end time of the j-th reference wake-up time of the second connection service and the start time of the j-th reference wake-up time of the second connection service.

Citation Information

Patent Citations

  • Performance enhancements through wakeup optimizations

    CN113170395A