CN115103425A - Connection service adjusting method and device - Google Patents

Connection service adjusting method and device Download PDF

Info

Publication number
CN115103425A
CN115103425A CN202210660015.5A CN202210660015A CN115103425A CN 115103425 A CN115103425 A CN 115103425A CN 202210660015 A CN202210660015 A CN 202210660015A CN 115103425 A CN115103425 A CN 115103425A
Authority
CN
China
Prior art keywords
time
connection service
interval duration
wake
jth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210660015.5A
Other languages
Chinese (zh)
Inventor
陈林辉
刘黄章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unisoc Chongqing Technology Co Ltd
Original Assignee
Unisoc Chongqing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unisoc Chongqing Technology Co Ltd filed Critical Unisoc Chongqing Technology Co Ltd
Priority to CN202210660015.5A priority Critical patent/CN115103425A/en
Publication of CN115103425A publication Critical patent/CN115103425A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a connection service adjusting method and device, which can reduce power consumption in a scheduling process. The method comprises the following steps: under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, j is a positive integer; and under the condition that the jth reference awakening time of the second connection service and the ith awakening time of the first connection service meet the adjustment condition, adjusting the jth awakening time of the second connection service according to the ith awakening time of the first connection service.

Description

Connection service adjusting method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting a connection service.
Background
Currently, with the development and application of terminal devices, one master device may be connected with a plurality of slave devices. For example, a cell phone may be connected to a headset and a bracelet via bluetooth. After the master device is connected with the plurality of slave devices, the master device may periodically schedule connection traffic of the plurality of slave devices, thereby confirming whether each slave device remains connected with the master device. For example, after the handset is connected to the headset, the handset may periodically schedule connection traffic for the headset to confirm that the headset remains connected to the handset.
When the master device schedules a connection service of the connected slave device, the master device may be considered to be in an awake state (Active, which may also be referred to as an Active state); when the master device does not schedule the connection traffic of the connected slave devices, the master device may be considered to be in a Sleep state (Sleep). If the master device is connected with the plurality of slave devices, the master device periodically schedules each connection service of the plurality of slave devices, so as to repeatedly switch between an awakening state and a sleeping state. Not only will there be a certain time interval during the handover, but also a certain power consumption will occur during this time interval.
Therefore, how to reduce the power consumption caused by the state switching in the scheduling process becomes a problem to be solved at present.
Disclosure of Invention
The application discloses a connection service adjusting method and device, which can reduce power consumption in a scheduling process.
In a first aspect, the present application provides a method for adjusting a connection service, where the method includes: under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, j is a positive integer; and under the condition that the jth reference awakening time of the second connection service and the ith awakening time of the first connection service meet the adjustment condition, adjusting the jth awakening time of the second connection service according to the ith awakening time of the first connection service.
Therefore, under the condition that the terminal equipment needs to schedule two connection services, the jth awakening time of the second connection service can be adjusted through the ith awakening time of the first connection service, so that the awakening times of the terminal equipment are reduced in the process of scheduling the two connection services, and the power consumption of the terminal equipment is reduced.
In one implementation, the starting time of the jth wakeup time of the second connection service is adjusted to the ending time of the ith wakeup time of the first connection service; the time interval between the end time of the jth wake-up time of the second connection service and the start time of the jth wake-up time of the second connection service is equal to 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.
By adjusting the starting time of the jth awakening time of the second connection service to the finishing time of the ith awakening time of the first connection service, the terminal equipment can finish scheduling the two connection services in an awakening process, so that the awakening times of the terminal equipment are reduced, and the power consumption generated by state switching in the scheduling process is reduced.
In one implementation, a third interval duration is determined according to the first interval duration and the second interval duration; determining the starting time of the (j + 1) th awakening time of the second connection service according to the third interval duration; the first interval duration is the interval duration between the i +1 th awakening time of the first connection service and the i th awakening time of the first connection service; the second interval duration is the interval duration between the jth +1 time reference awakening time of the second connection service and the jth time reference awakening time of the second connection service; the third interval duration is an interval duration between the j +1 th wakeup time of the second connection service and the j th wakeup time of the second connection service.
Therefore, by determining the third interval duration, the terminal device can schedule the second connection service according to the third interval duration; the start time of the (j + 1) th wakeup time of the second connection service can be determined by the third interval duration and the start time of the (j) th wakeup time of the second connection service, so that the (j + 1) th scheduling of the second connection service is completed.
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, it is determined that the third interval duration is equal to the first interval duration.
Therefore, 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 the terminal device can complete the scheduling of the first connection service and the second connection service once awakened in the subsequent scheduling of the first connection service and the second connection service, and further more power consumption is saved.
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, 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; and if the target maximum interval duration of the second connection service is less than the first interval duration, determining that the third interval duration is equal to the second interval duration.
It can be seen that, when the first interval duration exceeds the initial maximum interval duration of the second connection service, the first interval duration can be made to be within the range of the target maximum interval duration of the second connection service as much as possible by determining the target maximum interval duration, so that the interval durations for the terminal device to schedule the two connection services can be made to be consistent as much as possible.
In one implementation, the negotiation result is sent to the connection device corresponding to the second connection service.
Therefore, the negotiation result is sent to the connection device corresponding to the second connection service, so that the terminal device and the connection device corresponding to the second connection service can both obtain the same parameter, such as the target maximum interval duration, and thus the scheduling of the second connection service is accurately completed.
In one implementation, 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, determining that the third interval duration is equal to the total interval duration of the N first interval durations; wherein N is a positive integer greater than or equal to 2.
Therefore, when the total interval duration of the N first interval durations does not exceed the initial maximum interval duration of the second connection service, the third interval duration is determined as the N first interval durations, so that the terminal device can complete the scheduling of the second connection service by using the wake-up state when the first connection service is scheduled in the subsequent scheduling process, and the power consumption wasted by the terminal device during state switching is saved.
In one implementation, the kth reference wake-up time of the third connection service is obtained; the jth awakening time of the second connection service is earlier than the kth reference awakening time of the third connection service; k is a positive integer; and under the condition that 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, adjusting the kth wake-up time of the third connection service according to the jth wake-up time of the second connection service.
Therefore, under the condition that the terminal equipment needs to schedule three connection services, the k-th awakening time of the third connection service is adjusted through the j-th awakening time of the second connection service, so that the terminal equipment can complete the scheduling of the three connection services in the process of awakening once, the awakening times of the terminal equipment are reduced, and the power consumption generated by state switching in the scheduling process is reduced.
In a second aspect, the present application provides an adjustment apparatus for implementing the units of the method in the first aspect and any possible implementation manner thereof.
In a third aspect, the present application provides an adjusting apparatus comprising a processor configured to perform the method of the first aspect and any possible implementation manner thereof.
In a fourth aspect, the present application provides an adjustment apparatus comprising a processor and a memory, the memory storing computer-executable instructions; the processor is configured to call program code from the memory to perform the method of the first aspect and any possible implementation thereof.
In a fifth aspect, the present application provides a chip, where the chip is configured to obtain a jth reference wake-up time of a second connection service when a current time matches an ith wake-up time of a first connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, j is a positive integer; and under the condition that the jth reference awakening time of the second connection service and the ith awakening time of the first connection service meet the adjustment condition, adjusting the jth awakening time of the second connection service according to the ith awakening time of the first connection service.
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 carrying out internal communication of the chip module or is used for carrying out communication between the chip module and external equipment; the chip is used for: under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer; and under the condition that the jth reference awakening time of the second connection service and the ith awakening time of the first connection service meet the adjustment condition, adjusting the jth awakening time of the second connection service according to the ith awakening time of the first connection service.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a connection service adjustment system according to an embodiment of the present application;
fig. 1B is a schematic diagram of an awake state and a sleep state according to an embodiment of the present application;
fig. 2 is a flowchart of a method for adjusting a connection service according to an embodiment of the present application;
fig. 3 is a schematic diagram of an ith wake-up time of a first connection service according to an embodiment of the present application;
fig. 4A is a schematic diagram of a current time provided in an embodiment of the present application;
fig. 4B is a schematic diagram of another current time provided by the embodiment of the present application;
fig. 5A is a schematic diagram of a jth reference wake-up time of a second connection service according to an embodiment of the present application;
fig. 5B is a schematic diagram of a jth wake-up time of a second connection service according to an embodiment of the present application;
fig. 5C is a schematic diagram of a jth wake-up time of another second connection service according to the embodiment of the present application;
fig. 5D is a schematic diagram of a jth reference wake-up time of another second connection service according to an embodiment of the present application;
fig. 5E is a schematic diagram of a jth reference wake-up time of another second connection service according to an embodiment of the present application;
fig. 6A is a schematic power consumption diagram of a terminal device corresponding to fig. 5A according to an embodiment of the present disclosure;
fig. 6B is a schematic power consumption diagram of a terminal device corresponding to fig. 5B according to an embodiment of the present application;
FIG. 7A is a schematic diagram of a first interval duration and a second interval duration provided by an embodiment of the present application;
FIG. 7B is a schematic diagram of a third interval duration provided in the embodiments of the present application;
FIG. 7C is a schematic illustration of another third interval duration provided in accordance with an embodiment of the present application;
FIG. 8A is a schematic illustration of another first interval duration and a second interval duration provided by an embodiment of the present application;
FIG. 8B is a schematic diagram of a third interval duration provided in the embodiments of the present application;
fig. 8C is a schematic diagram of a third interval duration provided in the embodiment of the present application;
FIG. 8D is a schematic diagram of still another first interval duration and second interval duration provided by an embodiment of the present application;
fig. 9A is a schematic diagram of a kth reference wake-up time of a third connection service according to an embodiment of the present application;
fig. 9B is a schematic diagram of a kth wake-up time of a third connection service according to an embodiment of the present application;
fig. 10 is a flowchart of another connection service adjustment method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an adjusting apparatus according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of an adjusting apparatus 120 according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of a chip module according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1A, fig. 1A is a connection service adjustment system according to an embodiment of the present disclosure. As shown in fig. 1A, the connection service adjusting system may include a terminal device 101 and a connection device, for example, a first connection device 102 and a second connection device 103. The number of terminal devices and connecting devices shown in fig. 1A is for example and not intended to limit the present application, and for example, in practical applications, more than 2 connecting devices and/or more terminal devices may be included.
The terminal 101 may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiving function, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), a terminal for supporting enhanced Machine-Type communication (eMTC), and/or Long Term Evolution (LTE) of universal mobile telecommunications technology, and so on. The embodiment of the present application does not limit the specific technology and the specific device form adopted by the terminal device. In the present application, the terminal apparatus 101 may establish a communication connection with the connection apparatus. For example, the terminal apparatus 101 is a bluetooth-enabled apparatus, and can establish a bluetooth connection with a connection apparatus by using bluetooth technology. For another example, the terminal device 101 is a device having a WiFi function, and can establish a wireless connection with a connection device through a WiFi technology.
Correspondingly, the connection device may establish a communication connection with the terminal device 101, and the connection device may be an intelligent wearable device (such as an intelligent headset, an intelligent watch, an intelligent bracelet, and intelligent glasses), a Virtual Reality (VR) terminal device (such as VR glasses), an Augmented Reality (AR) terminal device, and the like. For example, the first connection device 102 may be a device having a bluetooth function, and establishes a bluetooth connection with the terminal device 101 through bluetooth technology; alternatively, the first connection device 102 is a device having a WiFi function, and a wireless connection may be established with the terminal device 101 through a WiFi technology. For another example, the second connection device 103 may be a device having a bluetooth function, and establish a bluetooth connection with the terminal device 101 through a bluetooth technology; alternatively, the second connection device 103 is a device having a WiFi function, and may establish a wireless connection with the terminal device 101 through a WiFi technology.
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. called headset 1), and the second connection device 103 may also be a headset (e.g. called 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 an earphone, and the second connection device 103 may also be a bracelet, which is not limited in this application.
In this embodiment, 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 determine whether the first connection device 102 maintains the 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.
The terminal device periodically schedules a connection service corresponding to the connection device, for example, the terminal device may periodically send a null data packet (i.e., a data packet not carrying 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 a null packet from the terminal device, the connection device may periodically send an Acknowledgement Character (ACK) to the terminal device to indicate that the connection device remains connected to the terminal device. Optionally, if the connection device does not receive the null data packet from the terminal device, and the connection device cannot respond to the terminal device at this time, it may be determined that the connection device is disconnected from the terminal device.
When the terminal device schedules a connection service corresponding to the connection device, the terminal device may be considered to be in an awake state; when the terminal device does not schedule the connection service corresponding to the connection device, the terminal device may be considered to be in a sleep state. As shown in fig. 1B, the time from the start time of the awake state to the end time of the awake state is the time when the terminal device is in the awake state, i.e. the awake time. It should be noted that after receiving the wake-up command, the terminal device needs a certain time interval to enter the wake-up state; after the wake-up state is ended (i.e. the end time of the wake-up state), the terminal device also needs a certain time interval to enter the sleep state. During the two time intervals, the terminal device also generates a certain power consumption. It can be understood that, when the terminal device is connected to a plurality of 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 adjusting method provided by the embodiment of the application can reduce power consumption in the scheduling process.
In some embodiments, the "terminal device", "first connection device", and "second connection device" are only names used in the embodiments of the present application, and the names do not limit the embodiments of the present application. Optionally, the "terminal device" may also be referred to as a "master device", an "originating connection end", and the like, the "first connection device" may also be referred to as a "first slave device", a "first connection end", and the like, and the "second connection device" may also be referred to as a "second slave device", a "second connection end", and the like, which is not limited in this application.
Referring to fig. 2, fig. 2 is a flowchart of a connection service adjusting method according to an embodiment of the present application. The method can be implemented by the terminal device, or can be implemented by a device matched with the terminal device, such as a chip module or a chip. As shown in fig. 2, the connection service adjusting method includes, but is not limited to, the following steps S201 to S202.
S201, under the condition that the current time is matched with the ith wake-up time of the first connection service, the jth reference wake-up time of the second connection service is obtained. The ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer and j is a positive integer.
The current time may be a current system time of the terminal device, for example, a time currently displayed on a time display screen of the terminal device. The first connection service may be a connection service between the terminal device and the first connection device, and the terminal device may determine whether the first connection device remains connected to the terminal device by scheduling the first connection service. The terminal equipment is in an awakening state when the first connection service is scheduled once; the time at which the segment is in the awake state may be referred to as the scheduled awake time of the first connection service. For example, the time when the terminal device is in the awake state when the first connection service is scheduled for the first time may be referred to as a first awake time of the first connection service.
For example, as shown in fig. 3, fig. 3 illustrates an example that the terminal device schedules the first connection service for the ith time. The terminal device may be considered as the ith wake-up time of the first connection service during the ith scheduling of the first connection service, that is, from the starting time of the ith wake-up time of the first connection service to the ending time of the ith wake-up time of the first connection service. The ith wake-up time of the first connection service may also be referred to as the duration of scheduling the first connection service for the ith time. Optionally, when the terminal device performs the ith scheduling on the first connection service, the scheduling may be performed according to a reference scheduling period of the first connection service (that is, a scheduling period of the terminal device being a first connection service pre-device), or may be performed according to an actual scheduling period of the first connection service (that is, a scheduling period of the terminal device after adjusting the first connection service according to the method provided by the present application), which is not limited in this application.
It should be noted that, when the current time is matched with the i-th wake-up time of the first connection service, it can be understood that the terminal device is about to perform i-th scheduling of the first connection service at the current time. For example, as shown in fig. 4A, when the current time is the starting time of the ith wake-up time of the first connection service, it may be considered that the current time matches the ith wake-up time of the first connection service. Optionally, the current time is matched with the ith wake-up time of the first connection service, and it can be understood that the terminal device is performing the ith scheduling of the first connection service at the current time. For example, as shown in fig. 4B, when the current time is later than the start time of the i-th wakeup time of the first connection service and earlier than the end time of the i-th wakeup time of the first connection service, the current time may be considered to be matched with the i-th wakeup time of the first connection service.
In the embodiment of the application, when the current time is matched with the ith wake-up time of the first connection service, the terminal device may obtain the jth reference wake-up time of the second connection service. The ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service.
The second connection service may be a connection service between the terminal device and the second connection device, and the terminal device may schedule the second connection service to determine whether the second connection device remains connected to the terminal device. The terminal device may perform reference scheduling for the jth time on the second connection service according to the reference scheduling period of the second connection service. And performing jth reference scheduling on the second connection service, namely determining the jth reference wakeup time of the second connection service. Specifically, the jth reference wake-up time may include a start time of the jth reference wake-up time and an end time of the jth reference wake-up time.
It should be noted that the reference scheduling period of the second connection service may be a scheduling period preset by the terminal device for the second connection service. The terminal device may determine the initial interval duration according to the interval duration range issued by the application corresponding to the second connection service, so as to serve as a reference scheduling period of the second connection service, and schedule the second connection service according to the reference scheduling period.
For example, before scheduling the second Connection service, the terminal device may receive an instruction issued by an application corresponding to the second Connection service, such as a Create _ Connection command (Create _ Connection command). The connection establishment instruction may carry parameters for establishing a connection between the terminal device and the connection device, for example, the interval duration range may include: an initial minimum Interval duration (Connection _ Interval _ Min), an initial maximum Interval duration (Connection _ Interval _ Max), and the like. For example, the terminal device may determine that the initial Interval duration (Interval) of the second connection service is 6 minutes according to an Interval duration range of 3 minutes to 6 minutes (that is, the initial minimum Interval duration is 3 minutes, and the initial maximum Interval duration is 9 minutes). The interval duration is given by way of example only and does not limit the present application. Optionally, the terminal device may send the specific value of the initial interval duration to the second connection device.
Further, as shown in fig. 5A, fig. 5A exemplarily shows an ith wake-up time of the first connection traffic and a jth reference wake-up time of the second connection traffic. In this embodiment, the jth reference wake-up time of the second connection service may be later than the ith wake-up time of the first connection service. That is, the terminal device may perform the jth reference scheduling on the second connection service with the initial interval duration of the second connection service as a cycle, and the jth reference scheduling may be later than the ith wake-up time of the first connection service.
S202, under the condition that the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet the adjustment condition, adjusting the jth wake-up time of the second connection service according to the ith wake-up time of the first connection service.
The jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service meet the adjustment condition, and it can be understood that the jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service are adjacent in a time domain, and a time interval exists between the jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service.
It should be noted that, the jth reference wake-up time of the second connection service is adjacent to the ith wake-up time of the first connection service in the time domain, and 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 ith wake-up time of the first connection service. Since the jth reference wake-up time of the second connection service is later than the ith wake-up time of the first connection service, as shown in fig. 5A, the jth reference wake-up time of the second connection service may be an adjacent reference wake-up time after the ith wake-up time of the first connection service. That is, after the ith wake-up time of the first connection service, the wake-up time of the terminal device at the next time may be the jth reference wake-up time of the second connection service. As can be seen from fig. 5A, 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 services to be scheduled.
It should be further noted that, a time interval exists between the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service, which may be understood as that, as shown in fig. 5A, a time interval exists between a start time of the jth reference wake-up time of the second connection service and an end time of the ith wake-up time of the first connection service. Optionally, a time interval exists between the jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service, and may also be expressed as that a time interval between a start time of the jth reference wakeup time of the second connection service and an end time of the ith wakeup time of the first connection service is greater than a threshold. The threshold may be 0, or may be a value close to 0, which is not limited in this application.
Under the condition that the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet the adjustment condition, the terminal device may adjust the jth wake-up time of the second connection service in the following two ways:
in the first mode, the terminal device may adjust the starting time of the jth wake-up time of the second connection service to the ending time of the ith wake-up time of the first connection service; a time interval between the end time of the jth wake-up time of the second connection service and the start time of the jth wake-up time of the second connection service may be equal to an 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.
It should be noted that, in a case that the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service satisfy the adjustment condition, that is, in a case corresponding to fig. 5A, the terminal device may first adjust the start time of the jth wake-up time of the second connection service to the end time of the ith wake-up time of the first connection service, and then determine the end time of the jth wake-up time of the second connection service according to the duration of the jth reference scheduling of the second connection service.
The duration of the jth reference scheduling of the second connection service may be an interval between an end time of the jth reference wake-up time of the second connection service and a start time of the jth reference wake-up time of the second connection service. That is to say, the terminal device may determine the end time of the jth wake-up time of the second connection service according to the 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, and the determined start time of the jth wake-up time of the second connection service.
It can be understood that, since the duration of the jth reference scheduling of the second connection service is not changed, that is, the time interval between the end time of the jth reference wakeup time of the second connection service and the start time of the jth reference wakeup time of the second connection service is not changed, after the terminal device adjusts the start time of the jth wakeup time of the second connection service, the end time of the jth wakeup time of the second connection service is also adjusted accordingly. As shown in fig. 5B, fig. 5B is a schematic diagram illustrating the jth wake-up time of the second connection service. As can be seen from fig. 5B, the end time of the ith wakeup time of the first connection service may be the same as the start time of the jth wakeup time of the second connection service. That is to say, when the terminal device finishes the ith scheduling of the first connection service, the jth scheduling of the second connection service will be started, that is, the terminal device will perform aggregate scheduling on the ith scheduling of the first connection service and the jth scheduling of the second connection service.
In the second mode, the terminal device may adjust the starting time of the jth wake-up time of the second connection service to the ith wake-up time of the first connection service; a time interval between the end time of the jth wake-up time of the second connection service and the start time of the jth wake-up time of the second connection service may be equal to an 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.
The starting time of the jth wakeup time of the second connection service is adjusted to be within the ith wakeup time of the first connection service, which can be understood as that the jth scheduling of the second connection service is started within the ith wakeup time of the first connection service. As shown in fig. 5C, the jth wake-up time of the second connection service may overlap with the ith wake-up time of the first connection service.
In the embodiment of the application, under the condition that the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet the adjustment condition, the jth wake-up time of the second connection service is adjusted according to the ith wake-up time of the first connection service, so that no time interval exists between the starting time of the jth wake-up time of the second connection service and the ending time of the ith wake-up time of the first connection service, the terminal device can perform ith scheduling on the first connection service and jth scheduling on the second connection service through a wake-up process, further the wake-up times of the terminal device are reduced, and the power consumption generated by state switching in the scheduling process is reduced.
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. As shown in fig. 5D, 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; alternatively, as shown in fig. 5E, the starting time of the jth reference wake-up time of the second connection service may be within the ith wake-up time of the first connection service. It should be noted that, in the case that 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, the terminal device may not make an adjustment, and the present application is not limited thereto.
For example, fig. 6A shows a schematic power consumption diagram of a terminal device before the connection service adjustment method provided by the present application is adopted, for example, a schematic power consumption diagram of a terminal device corresponding to fig. 5A. In fig. 6A, the terminal device switches between the awake state and the sleep state multiple times during the scheduling of the first connection service and the second connection service, thereby wasting the power consumption of the terminal device. Optionally, fig. 6B shows a schematic power consumption diagram of the terminal device after the connection service adjustment method provided by the present application is adopted, for example, the schematic power consumption diagram of the terminal device corresponding to fig. 5B. In fig. 6B, the terminal device may switch between the awake state and the sleep state only once during the period of scheduling the first connection service and the second connection service, so as to save power consumption of the terminal device. For the convenience of observation, the power consumption of the terminal device when scheduling the first connection service and the second connection service is represented by different heights in the figure, and does not limit itself.
In one implementation, the terminal device may determine the third interval duration according to the first interval duration and the second interval duration.
The first interval duration may be an interval duration between an i +1 th wakeup time of the first connection service and an i th wakeup time of the first connection service. The terminal device may schedule the first connection service with the first interval duration as a scheduling period. It should be noted that the scheduling period of the first connection service may be a reference scheduling period of the terminal device for the first connection service (that is, the first interval duration may be an initial interval duration of the first connection service). Optionally, the scheduling period of the first connection service may also be an actual scheduling period of the terminal device for the first connection service (that is, the first interval duration may be an interval duration adjusted by the first connection service), which is not limited in this application.
And the second interval duration is the interval duration between the j +1 th reference awakening time of the second connection service and the j reference awakening time of the second connection service. It should be noted that the terminal device may schedule the second connection service with the second interval duration as the reference scheduling period, that is, the second interval duration may be an initial interval duration for the terminal device to schedule the second connection service. Optionally, the first interval duration and the second interval duration may be the same or different, and the application is not limited thereto. Fig. 7A is a schematic diagram of a first interval duration and a second interval duration provided in the embodiment of the present application, as shown in fig. 7A. In fig. 7A, the first interval duration is greater than the second interval duration for example, and does not limit the present application.
The third interval duration may be an interval duration between the j +1 th wakeup time of the second connection service and the j th wakeup time of the second connection service. It should be noted that the terminal device may schedule the second connection service with the third interval duration as the actual scheduling period. That is, 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.
It should be noted that, the terminal device determines the third interval duration according to the first interval duration and the second interval duration, and there may be four cases as follows:
the first condition is as follows: if the first interval duration is greater than or equal to the second interval duration (as shown in fig. 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 may determine that the third interval duration is equal to the first interval duration. For example, as shown in fig. 7B, when it is determined that the duration of the third interval is equal to the duration of the first interval, the terminal device may determine, according to the duration of the third interval, a j +1 th wake-up time of the second connection service. Specifically, the terminal device may determine the j +1 th wakeup time starting time of the second connection service according to the third interval duration and the starting time of the j th wakeup time of the second connection service; and determining the j +1 th awakening time end time of the second connection service according to the start time of the j-th awakening time of the second connection service and the time interval between the start time of the j-th awakening time of the second connection service and the end time of the j-th awakening time of the second connection service.
And a second condition: 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 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, as shown in fig. 7B, the terminal device may determine that the third interval duration is equal to the first interval duration, and determine the (j + 1) th 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, as shown in fig. 7C, the terminal device may determine that the third interval duration is equal to the second interval duration, and determine the (j + 1) th wake-up time of the second connection service according to the third interval duration. Optionally, the terminal device may send the negotiation result to a connection device (i.e., a second connection device) corresponding to the second connection service.
Case three: if the first interval duration is less than the second interval duration (as shown in fig. 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, determining that the third interval duration is 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, assume that N is 2, that is, the total interval duration of the 2 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 2 first interval durations does not exceed the interval duration range of the second connection service, as shown in fig. 8B, the terminal device may determine that the third interval duration is equal to the total interval duration of the 2 first interval durations, and determine the (j + 1) th wake-up time of the second connection service according to the third interval duration. In fig. 8A, N is 2 as an example, and is not intended to limit the present application.
Case four: if the first interval duration is less than the second interval duration and the total interval duration of the N first interval durations is greater than the initial maximum interval duration of the second connection service, the terminal device may determine 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 total interval duration of the N first interval durations, as shown in fig. 8B, the terminal device may determine that the third interval duration is equal to the total interval duration of the N first interval durations, and determine the (j + 1) th wakeup 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 the N first interval durations, as shown in fig. 8C, the terminal device may determine that the third interval duration is equal to the second interval duration, and determine the (j + 1) th wake-up time of the second connection service according to the third interval duration. Optionally, the terminal device may send the negotiation result to the second connection device corresponding to the second connection service.
It should be noted that, by determining the third interval duration, the terminal device may schedule the second connection service by using the third interval duration as an actual scheduling period in a subsequent scheduling process. Further, 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 per wake-up in the subsequent scheduling of the first connection service and the second connection service, thereby saving more power consumption.
Optionally, in the actual connection service adjustment process, the time intervals of the two connection services may be equal, but a time interval exists between the wakeup times of the two connection services, so that the terminal device may aggregate the two connection services in a certain scheduling as soon as possible. For example, as shown in fig. 8D, the second interval duration of the second connection service may 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 ith wake-up time of the first connection service, that is, there is a time interval between the starting time of the jth reference wake-up time of the second connection service and the ending time of the ith wake-up time of the first connection service; the terminal device may adjust the starting time of the jth wakeup time of the second connection service to the ending time of the ith wakeup time of the first connection service as soon as possible (i.e., as shown in fig. 7B), so as to implement aggregate scheduling of the ith scheduling of the first connection service and the jth scheduling of the second connection service, and thus in the subsequent scheduling process, the aggregate scheduling of the first connection service and the second connection service is maintained.
In one implementation, the kth reference wake-up time of the third connection service is obtained; the jth awakening time of the second connection service is earlier than the kth reference awakening time of the third connection service; k is a positive integer; and the time interval between the starting time of the kth reference awakening time of the third connection service and the ending time of the jth awakening time of the second connection service is greater than or equal to a threshold value, the starting time of the kth awakening time of the third connection service is adjusted to be the ending time of the jth awakening time of the second connection service, and the time interval between the ending time of the kth awakening time of the third connection service and the starting time of the kth awakening time of the third connection service is equal to the time interval between the ending time of the kth reference awakening time of the third connection service and the starting time of the kth reference awakening time of the third connection service.
The third connection service may be a connection service between the terminal device and the third connection device, and the terminal device may schedule the third connection service to determine whether the third connection device still maintains a connection with the terminal device.
It should be noted that, if the terminal device is further connected to a third connection device, as shown in fig. 9A, that is, there is a third connection service to be scheduled, the terminal device may adjust the starting time of the kth wake-up time of the third connection service to the ending time of the jth wake-up time of the second connection service, as shown in fig. 9B, so as to reduce the number of wake-up times of the terminal device, thereby reducing the power consumption of the terminal device in the scheduling process.
Optionally, after determining the k-th wake-up time corresponding to the third connection device, the terminal device may further determine a fifth interval duration according to the third interval duration and the fourth interval duration. The fourth interval duration may be an interval duration between the (k + 1) th reference wake-up time of the third connection service and the (k) th reference wake-up time of the third connection service, and the fifth interval duration may be an interval duration between the (k + 1) th wake-up time of the third connection service and the (k) th wake-up time of the third connection service.
It should be noted that, for the determination of the k-th wake-up time and the fifth interval duration of the third connection service, reference may be made to the specific steps of determining the j-th wake-up time and the third interval duration of the second connection service, which are not described herein again. Optionally, if the terminal device is further connected to a fourth connection device or a fifth connection device, etc., the specific implementation may also refer to the foregoing specific steps, which are not described herein again.
Optionally, after the terminal device performs aggregate scheduling on a plurality of (greater than or equal to 3) connection services, if one of the connection devices is disconnected, the terminal device may restart the connection service adjustment method to adjust the scheduling time of the remaining plurality of connection services. For example, assuming that the terminal device has already implemented aggregated scheduling on the first connection service, the second connection service, and the third connection service, if the second connection service is disconnected, the terminal device may start the connection service adjusting method again to adjust the scheduling time of the first connection service and the third connection service.
Optionally, in the embodiments of the present application, connection services (such as a first connection service and a second connection service) are all taken as an example for description, and in some embodiments, data transmission services may also exist in services scheduled by a terminal device. It should be noted that the time interval of the terminal device when scheduling the data transmission service may be smaller, and the time interval when scheduling the connection service may be larger, which is not limited in this application.
In the embodiment of the application, under the condition that the current time is matched with the ith wake-up time of the first connection service, the jth reference wake-up time of the second connection service, which is later than the ith wake-up time of the first connection service, is obtained, and when the time interval between the starting time of the jth reference wake-up time of the second connection service and the ending time of the ith wake-up time of the first connection service is greater than or equal to a threshold value, the starting time of the jth wake-up time of the second connection service is adjusted to the ending time of the ith wake-up time of the first connection service, so that the terminal finishes the ith scheduling of the first connection service and the jth scheduling of the second connection service through a wake-up process, thereby reducing the wake-up times of the terminal equipment and further reducing the power consumption generated by state switching in the scheduling process.
Referring to fig. 10, fig. 10 is a flowchart of a connection service adjusting method according to an embodiment of the present disclosure. The connection service adjusting method may be implemented by the terminal device, or may be implemented by a device used in cooperation with the terminal device, such as a chip module or a chip. As shown in fig. 10, the connection service adjusting method includes, but is not limited to, the following steps S1001 to S1009.
S1001, acquiring the jth reference wake-up time of the second connection service under the condition that the current time is matched with the ith wake-up time of the first connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer and j is a positive integer.
S1002, under the condition that the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet the adjustment condition, adjusting the jth wake-up time of the second connection service according to the ith wake-up time of the first connection service.
S1003, if the first interval duration is greater than or equal to the second interval duration, executing S1004; if the first interval duration is less than the second interval duration, S1007 is performed.
S1004, if the first interval duration is less than or equal to the initial maximum interval duration of the second connection service, then S1005 is executed; if the first interval duration is greater than the initial maximum interval duration of the second connection service, S1006 is performed.
S1005, determining that the third interval duration is equal to the first interval duration.
S1006, it is determined that the third interval duration is equal to the second interval duration.
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, then S1008 is executed; if the total interval duration of the N first interval durations is greater than the initial maximum interval duration of the second connection service, S1009 is executed.
S1008, determining that the third interval duration is equal to the total interval duration of the N first interval durations; wherein N is a positive integer greater than or equal to 2.
S1009, it is determined that the third interval duration is equal to the second interval duration.
It should be noted that, for each step in the corresponding embodiment of fig. 10, reference may be made to the detailed description in the corresponding embodiment of fig. 2, and details of this application are not repeated herein.
In the embodiment of the application, the jth reference wakeup time of the second connection service is acquired under the condition that the current time is matched with the ith wakeup time of the first connection service, and the jth wakeup time of the second connection service is adjusted according to the ith wakeup time of the first connection service under the condition that the jth reference wakeup time of the second connection service and the ith wakeup time of the first connection service meet the adjustment condition, so that the wakeup times of a terminal device can be reduced; when the first interval duration is longer than or equal to the second interval duration and is less than or equal to the initial maximum interval duration of the second connection service, determining that the third interval duration is equal to the first interval duration, and when the first interval duration is shorter than the second interval duration and the total interval duration of the N first interval durations is shorter than or equal to the initial maximum interval duration of the second connection service, determining that the third interval duration is equal to the total interval duration of the N first interval durations, 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 when the terminal equipment is awakened once, so that more power consumption is saved.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an adjusting device according to an embodiment of the present disclosure. The apparatus may be a terminal device, an apparatus in the terminal device, or an apparatus capable of being used in cooperation with the terminal device. The adjusting apparatus shown in fig. 11 may include an acquisition unit 1101 and an adjusting unit 1102. Wherein:
the obtaining unit 1101 is configured to obtain a jth reference wake-up time of the second connection service when the current time matches the ith wake-up time of the first connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer;
the adjusting unit 1102 is configured to adjust the jth wake-up time of the second connection service according to the ith wake-up time of the first connection service when the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet the adjustment condition.
In an implementation manner, the adjusting unit 1102 is further configured to adjust a starting time of a jth wake-up time of the second connection service to an ending time of an ith wake-up time of the first connection service; the time interval between the end time of the jth wake-up time of the second connection service and the start time of the jth wake-up time of the second connection service is equal to 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.
In one implementation, the adjusting apparatus further includes a determining unit 1103. The determining unit 1103 is configured to determine a third interval duration according to the first interval duration and the second interval duration; the determining unit 1103 is further configured to determine a starting time of the j +1 th 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 + 1) th awakening time of the first connection service and the ith awakening time of the first connection service; the second interval duration is the interval duration between the jth +1 time reference awakening time of the second connection service and the jth time reference awakening time of the second connection service; the third interval duration is an interval duration between the j +1 th wake-up time of the second connection service and the j-th wake-up time of the second connection service.
In an implementation manner, the determining unit 1103 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 an initial maximum interval duration of the second connection service.
In an implementation manner, the determining unit 1103 is further configured to determine, if the first interval duration is greater than or equal to the second interval duration and the first interval duration is greater than an initial maximum interval duration of the second connection service, a target maximum interval duration of the second connection service according to a negotiation result of an application corresponding to the second connection service; the determining unit 1103 is further configured 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 determining unit 1103 is further configured 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.
In one implementation manner, the adjusting apparatus further includes a sending unit 1104. The sending unit 1104 is configured to send a negotiation result to a connection device corresponding to the second connection service.
In an implementation manner, the determining unit 1103 is further configured 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.
In an implementation manner, the obtaining unit 1101 is further configured to obtain a kth reference wake-up time of a third connection service; the jth awakening time of the second connection service is earlier than the kth reference awakening time of the third connection service; k is a positive integer; the adjusting unit 1102 is further configured 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.
According to the embodiment of the present application, the units in the adjusting apparatus shown in fig. 11 may be respectively or entirely combined into one or several other units to form the adjusting apparatus, or some unit(s) of the adjusting apparatus may be further split into multiple functionally smaller units to form the adjusting apparatus, which may implement the same operation without affecting the implementation of the technical effect of the embodiment of the present application. The units are divided based on logic functions, and in practical applications, the functions of one unit can be implemented by a plurality of units, or the functions of a plurality of units can be implemented by one unit. In other embodiments of the present application, the adjusting apparatus may also include other units, and in practical applications, these functions may also be implemented by assistance of other units, and may be implemented by cooperation of multiple units.
The adjusting device may be, for example: a chip, or a chip module. Each module included in each apparatus and product described in the above embodiments may be a software module, or a hardware module, or may be a part of a software module and a part of a hardware module. For example, for each apparatus and product applied to or integrated into a chip, each module included in the apparatus and product may be implemented by hardware such as a circuit, or at least a part of the modules may be implemented by a software program running on a processor integrated within the chip, and the rest (if any) part of the modules may be implemented by hardware such as a circuit; for each device and product applied to or integrated with the chip module, each module included in the device and product may be implemented by using hardware such as a circuit, and different modules may be located in the same component (e.g., a chip, a circuit module, etc.) or different components of the chip module, or at least a part of the modules may be implemented by using a software program running on a processor integrated within the chip module, and the rest (if any) part of the modules may be implemented by using hardware such as a circuit; for each device and product applied to or integrated in the terminal, each module included in the device and product may be implemented by using hardware such as a circuit, different modules may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal, or at least a part of the modules may be implemented by using a software program running on a processor integrated in the terminal, and the rest (if any) part of the modules may be implemented by using hardware such as a circuit.
The embodiments of the present application and the embodiments of the foregoing method are based on the same concept, and the technical effects thereof are also the same, and for the specific principle, reference is made to the description of the foregoing embodiments, which is not repeated herein.
Referring to fig. 12, fig. 12 is a schematic diagram of an adjusting apparatus 120 according to an embodiment of the present disclosure. As shown in fig. 12, the adjusting apparatus 120 may include a processor 1201. Optionally, the adjusting apparatus may further include a memory 1202. The processor 1201 and the memory 1202 may be connected by a bus 1203 or other means. The bus lines are shown in fig. 12 by thick lines, and the connection form between other components is merely illustrative and not limited. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 12, but it is not intended that there be only one bus or one type of bus.
The coupling in the embodiments of the present application is an indirect coupling or a communication connection between devices, units or modules, and may be an electrical, mechanical or other form for information interaction between the 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.
The memory 1202 may include both read-only memory and random access memory, and provides instructions and data to the processor 1201. A portion of the memory 1202 may also include non-volatile random access memory.
The Processor 1201 may be a Central Processing Unit (CPU), and the Processor 1201 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor, but in the alternative, the processor 1201 may be any conventional processor or the like. Wherein:
memory 1202 for storing program instructions.
A processor 1201 for invoking program instructions stored in memory 1202 for:
under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer;
and under the condition that the jth reference awakening time of the second connection service and the ith awakening time of the first connection service meet the adjustment condition, adjusting the jth awakening time of the second connection service according to the ith awakening time of the first connection service.
In an implementation manner, the processor 1201 is further configured to adjust a starting time of a jth wakeup time of the second connection service to an ending time of an ith wakeup time of the first connection service; the time interval between the end time of the jth wake-up time of the second connection service and the start time of the jth wake-up time of the second connection service is equal to 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.
In an implementation manner, the processor 1201 is further configured to determine a third interval duration according to the first interval duration and the second interval duration; the processor 1201 is further configured to determine a starting time of a (j + 1) th 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 +1 th awakening time of the first connection service and the i th awakening time of the first connection service; the second interval duration is the interval duration between the jth +1 time reference awakening time of the second connection service and the jth time reference awakening time of the second connection service; the third interval duration is an interval duration between the j +1 th wake-up time of the second connection service and the j-th wake-up time of the second connection service.
In an implementation manner, 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 an initial maximum interval duration of the second connection service.
In an implementation manner, the processor 1201 is further configured to determine 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 first interval duration is greater than or equal to the second interval duration and the first interval duration is greater than an initial maximum interval duration of the second connection service; the processor 1201 is further configured to determine that a 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 configured 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.
In one implementation, the adjustment apparatus 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.
In an implementation manner, the processor 1201 is further configured 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.
In an implementation manner, the processor 1201 is further configured to obtain a kth reference wake-up time of a third connection service; the jth awakening time of the second connection service is earlier than the kth reference awakening time of the third connection service; k is a positive integer; the processor 1201 is further configured to adjust a 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.
In the embodiments of the present application, the methods provided by the embodiments of the present application can be implemented by running a computer program (including program codes) capable of executing the steps involved in the respective methods as shown in fig. 2 and 10 on a general-purpose computing device such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and the like processing elements and storage elements. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
Based on the same inventive concept, the principle and the advantageous effect of the problem solving by the adjusting device provided in the embodiment of the present application are similar to the principle and the advantageous effect of the problem solving by the adjusting device in the embodiment of the method of the present application, and for brevity, the principle and the advantageous effect of the implementation of the method can be referred to, and are not described herein again.
The embodiment of the present application further provides a chip, where the chip may perform relevant steps of the terminal device in the foregoing method embodiment. The chip is used for: under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, j is a positive integer; and under the condition that the jth reference awakening time of the second connection service and the ith awakening time of the first connection service meet the adjustment condition, adjusting the jth awakening time of the second connection service according to the ith awakening time of the first connection service.
In an implementation manner, the chip is further configured to adjust a start time of a jth wake-up time of the second connection service to an end time of an ith wake-up time of the first connection service; the time interval between the end time of the jth wake-up time of the second connection service and the start time of the jth wake-up time of the second connection service is equal to 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.
In one implementation, the chip is further configured to determine a third interval duration according to the first interval duration and the second interval duration; the chip is also used for determining the starting time of the (j + 1) th 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 +1 th awakening time of the first connection service and the i th awakening time of the first connection service; the second interval duration is the interval duration between the j +1 th reference wake-up time of the second connection service and the j reference wake-up time of the second connection service; the third interval duration is an interval duration between the j +1 th wake-up time of the second connection service and the j-th wake-up time of the second connection service.
In an implementation manner, 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 an initial maximum interval duration of the second connection service.
In an implementation manner, the chip is further configured to determine 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 first interval duration is greater than or equal to the second interval duration and the first interval duration is greater than an initial maximum interval duration of the second connection service; the chip is further configured to determine that a third interval duration is equal to the first interval duration if a target maximum interval duration of the second connection service is greater than or equal to the first interval duration; the chip is further configured 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.
In an implementation manner, the chip is further configured to send a negotiation result to a connection device corresponding to the second connection service.
In an implementation manner, the chip is further configured 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.
In an implementation manner, the chip is further configured to obtain a kth reference wake-up time of a third connection service; the jth awakening time of the second connection service is earlier than the kth reference awakening time of the third connection service; k is a positive integer; the chip is further configured to adjust a 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 satisfy the adjustment condition.
In one implementation, the chip includes at least one processor, at least one first memory, and at least one second memory; the at least one first memory and the at least one processor are interconnected through a line, and instructions are stored in the first memory; the at least one second memory and the at least one processor are interconnected through a line, and the second memory stores the data required to be stored in the method embodiment.
For each device and product applied to or integrated in the chip, each module included in the device and product may be implemented by hardware such as a circuit, or at least a part of the modules may be implemented by a software program running on a processor integrated in the chip, and the rest (if any) part of the modules may be implemented by hardware such as a circuit.
Referring to fig. 13, fig. 13 is a schematic structural diagram of a chip module according to an embodiment of the present disclosure. The chip module 130 can perform the steps related to the terminal device in the foregoing method embodiments, and the chip module 130 includes: a communication interface 1301 and a chip 1302. Optionally, the chip module 130 may further include: a memory module 1303 and a power module 1304. The power module 1304 may be used to provide power for the chip module; the storage module 1303 may be used to store data and instructions.
The communication interface 1301 is used for performing internal communication of the chip module, or performing communication between the chip module and an external device; the chip 1302 is used for:
under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, and j is a positive integer;
and under the condition that the jth reference awakening time of the second connection service and the ith awakening time of the first connection service meet the adjustment condition, adjusting the jth awakening time of the second connection service according to the ith awakening time of the first connection service.
In an implementation manner, the chip 1302 is further configured to adjust a starting time of a jth wake-up time of the second connection service to an ending time of an ith wake-up time of the first connection service; the time interval between the end time of the jth wake-up time of the second connection service and the start time of the jth wake-up time of the second connection service is equal to 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.
In an implementation manner, the chip 1302 is further configured to determine a third interval duration according to the first interval duration and the second interval duration; the chip 1302 is further configured to determine an initial time of a (j + 1) th 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 +1 th awakening time of the first connection service and the i th awakening time of the first connection service; the second interval duration is the interval duration between the jth +1 time reference awakening time of the second connection service and the jth time reference awakening time of the second connection service; the third interval duration is an interval duration between the j +1 th wakeup time of the second connection service and the j th wakeup time of the second connection service.
In an implementation manner, 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.
In an implementation manner, the chip 1302 is further configured to determine 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 first interval duration is greater than or equal to the second interval duration and the first interval duration is greater than an initial maximum interval duration of the second connection service; the chip 1302 is further configured 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 1302 is further configured 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.
In an implementation manner, the chip 1302 is further configured to send a negotiation result to a connection device corresponding to the second connection service.
In an implementation manner, the chip 1302 is further configured 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.
In an implementation manner, the chip 1302 is further configured to obtain a kth reference wake-up time of a third connection service; the jth awakening time of the second connection service is earlier than the kth reference awakening time of the third connection service; k is a positive integer; the chip 1302 is further configured to adjust a 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.
For each device and product applied to or integrated in the chip module, each module included in the device and product may be implemented by using hardware such as a circuit, and different modules may be located in the same component (e.g., a chip, a circuit module, etc.) or different components of the chip module, or at least a part of the modules may be implemented by using a software program, where the software program runs on a processor integrated inside the chip module, and the rest (if any) part of the modules may be implemented by using hardware such as a circuit.
Embodiments of the present application further provide a computer-readable storage medium, where one or more instructions are stored, and the one or more instructions are adapted to be loaded by a processor and to execute the method provided by the foregoing method embodiments.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the method provided by the above method embodiments.
Each module/unit included in each apparatus and product described in the above embodiments may be a software module/unit, or may also be a hardware module/unit, or may also be a part of a software module/unit, and a part of a hardware module/unit. For example, each module/unit included in each apparatus or product applied to or integrated in a chip may be implemented by hardware such as a circuit, or at least a part of the modules/units may be implemented by a software program running on an integrated processor in the chip, and the rest (if any) part of the modules/units may be implemented by hardware such as a circuit; for each device and product applied to or integrated with the chip module, each module/unit included in the device and product may be implemented by hardware such as a circuit, and different modules/units may be located in the same piece (e.g., a chip, a circuit module, etc.) or different components of the chip module, or at least some of the modules/units may be implemented by a software program running on a processor integrated inside the chip module, and the rest (if any) of the modules/units may be implemented by hardware such as a circuit; for each device or product applied to or integrated in the terminal, the modules/units included in the device or product may all be implemented by hardware such as a circuit, and different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal, or at least some of the modules/units may be implemented by software programs running on a processor integrated in the terminal, and the rest (if any) of the modules/units may be implemented by hardware such as a circuit.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The descriptions of the embodiments provided in the present application may be referred to each other, and the descriptions of the embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. For convenience and simplicity of description, for example, the functions and operations performed by the devices and apparatuses provided in the embodiments of the present application may refer to the related descriptions of the method embodiments of the present application, and the method embodiments and the device embodiments may be mutually referred to, combined or cited.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A method for adjusting connection traffic, the method comprising:
under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, j is a positive integer;
and under the condition that the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet the adjustment condition, adjusting the jth wake-up time of the second connection service according to the ith wake-up time of the first connection service.
2. The method of claim 1, wherein the adjusting the jth wake-up time of the second connection service according to the ith wake-up time of the first connection service comprises:
adjusting the starting time of the jth awakening time of the second connection service to the ending time of the ith awakening time of the first connection service; and the time interval between the end time of the jth awakening time of the second connection service and the start time of the jth awakening time of the second connection service is equal to the time interval between the end time of the jth reference awakening time of the second connection service and the start time of the jth reference awakening time of the second connection service.
3. The method of claim 2, further comprising:
determining a third interval duration according to the first interval duration and the second interval duration;
determining the starting time of the (j + 1) th 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 + 1) th awakening time of the first connection service and the ith awakening time of the first connection service; the second interval duration is the interval duration between the j +1 th 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 an interval duration between the j +1 th wakeup time of the second connection service and the j th wakeup time of the second connection service.
4. The method of claim 3, wherein determining a third interval duration based on the first interval duration and the second interval duration comprises:
and 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, determining that the third interval duration is equal to the first interval duration.
5. The method of claim 3, wherein determining a third interval duration based on the first interval duration and the second interval duration comprises:
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;
and if the target maximum interval duration of the second connection service is less than the first interval duration, determining that the third interval duration is equal to the second interval duration.
6. The method of claim 3, wherein determining a third interval duration based on the first interval duration and the second interval duration comprises:
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, determining that the third interval duration is equal to the total interval duration of the N first interval durations; wherein N is a positive integer greater than or equal to 2.
7. The method according to any one of claims 1-6, further comprising:
acquiring 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;
and under the condition that the k-th reference wake-up time of the third connection service and the j-th wake-up time of the second connection service meet the adjustment condition, adjusting the k-th wake-up time of the third connection service according to the j-th wake-up time of the second connection service.
8. An adjustment device, characterized by comprising means for performing the method according to any one of claims 1 to 7.
9. An adjustment device, comprising a processor;
the processor is used for executing the method of any one of claims 1 to 7.
10. The adjustment device of claim 9, further comprising a memory:
the memory for storing a computer program;
the processor, in particular for calling the computer program from the memory, executes the method according to any of claims 1 to 7.
11. A chip, characterized in that,
the chip is used for acquiring the jth reference wake-up time of the second connection service under the condition that the current time is matched with the ith wake-up time of the first connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, j is a positive integer;
the chip is further configured to adjust the jth wake-up time of the second connection service according to the ith wake-up time of the first connection service when the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service satisfy an adjustment condition.
12. A chip module is characterized in that the chip module comprises
A communication interface and a chip, wherein:
the communication interface is used for carrying out internal communication of the chip module or is used for carrying out communication between the chip module and external equipment;
the chip is used for:
under the condition that the current time is matched with the ith wake-up time of the first connection service, acquiring the jth reference wake-up time of the second connection service; the ith wake-up time of the first connection service is earlier than the jth reference wake-up time of the second connection service; i is a positive integer, j is a positive integer;
and under the condition that the jth reference wake-up time of the second connection service and the ith wake-up time of the first connection service meet the adjustment condition, adjusting the jth wake-up time of the second connection service according to the ith wake-up time of the first connection service.
CN202210660015.5A 2022-06-10 2022-06-10 Connection service adjusting method and device Pending CN115103425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210660015.5A CN115103425A (en) 2022-06-10 2022-06-10 Connection service adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210660015.5A CN115103425A (en) 2022-06-10 2022-06-10 Connection service adjusting method and device

Publications (1)

Publication Number Publication Date
CN115103425A true CN115103425A (en) 2022-09-23

Family

ID=83290767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210660015.5A Pending CN115103425A (en) 2022-06-10 2022-06-10 Connection service adjusting method and device

Country Status (1)

Country Link
CN (1) CN115103425A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132203A (en) * 2023-02-02 2023-05-16 卧安科技(深圳)有限公司 Equipment wakeup control method of intelligent home scene, internet of things equipment and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132203A (en) * 2023-02-02 2023-05-16 卧安科技(深圳)有限公司 Equipment wakeup control method of intelligent home scene, internet of things equipment and system

Similar Documents

Publication Publication Date Title
CN111818493B (en) Data transmission method, wireless network system, node, and readable storage medium
CN107509240B (en) Subscriber Identity Module control method, mobile terminal and computer readable storage medium
CN110493855B (en) Communication mode control method, device, storage medium and terminal
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
CN107787034A (en) Discontinuous receiving cycle collocation method, system, mobile terminal and storage medium
US7006852B2 (en) Communication terminal, power save processing method to be performed by the communication terminal, program for executing the method, and recording medium containing the program
CN115103425A (en) Connection service adjusting method and device
CN115499946A (en) Distribution network control method and system based on BLE MESH and electronic equipment
WO2015154391A1 (en) Method and device for processing power consumption of radio access network
CN110892748A (en) Link processing method, device and storage medium
CN111683401B (en) Method and device for adjusting paging cycle and terminal equipment
CN112601207A (en) Communication method, communication device, terminal device and storage medium
US8855693B2 (en) Method and apparatus for controlling wireless devices
CN108834204B (en) Paging method, system and network equipment
CN116185755A (en) Data processing method and device for distributed load balancing system
CN109874136B (en) Bluetooth memory sharing method and device, storage medium and electronic equipment
CN110119111B (en) Communication method and device, storage medium, and electronic device
CN114430560A (en) Communication method, communication device, electronic equipment, computer equipment and readable storage medium
EP3962148B1 (en) Wireless communication method and device
CN110362151B (en) Image inter-frame frequency conversion method capable of self-adaptive adjustment and storage device
CN111194011B (en) Data sending method, data receiving method, platform server and terminal
CN113347692B (en) Power utilization system, method and equipment, and computer-readable storage medium
CN111083805A (en) DRX configuration method and device
CN114786244B (en) Soft access device control method, apparatus, device, storage medium and program product
CN114691648A (en) System service dynamic scaling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination