CN115550971A - Link priority determining method and device - Google Patents

Link priority determining method and device Download PDF

Info

Publication number
CN115550971A
CN115550971A CN202211152794.4A CN202211152794A CN115550971A CN 115550971 A CN115550971 A CN 115550971A CN 202211152794 A CN202211152794 A CN 202211152794A CN 115550971 A CN115550971 A CN 115550971A
Authority
CN
China
Prior art keywords
monitoring
time
data packet
period
listening
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
CN202211152794.4A
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.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu 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 Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202211152794.4A priority Critical patent/CN115550971A/en
Publication of CN115550971A publication Critical patent/CN115550971A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a link priority. Determining the time of first receiving the specified data packet as an initial time when the specified data packet is first received in the Mth monitoring period; determining an M +1 th monitoring time interval based on the initial time, wherein a monitoring starting point of the M +1 th monitoring time interval is positioned behind the initial time and is away from the initial time by a first threshold value; and when the monitoring time is in the M < th > and M +1 < th > monitoring time periods, setting the designated link corresponding to the designated data packet as the highest priority. By determining a plurality of listening periods and setting the designated link to the highest priority within the listening periods, the scheduling of the link can be optimized efficiently.

Description

Link priority determination method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a link priority.
Background
Data can be transmitted between terminal devices through a designated link, for example, an Audio data packet can be transmitted between a smart phone and a bluetooth headset connected through bluetooth through an Advanced Audio Distribution Profile (A2 DP) link. At present, in order to ensure that music is smooth and not blocked, a sending end (a smart phone) can improve the priority of an A2DP link after judging that an audio data packet needs to be sent in the A2DP link, and reduce the priority of the A2DP link after the A2DP data packet is sent out. However, the receiving end (bluetooth headset) cannot pre-determine whether the received A2DP packet or an Access Control List (ACL) packet is received in advance, so the A2DP link of the receiving end is usually maintained in the state of the highest priority until the A2DP link is disconnected. The priority of the A2DP link at the receiving end is always higher than that of other links, which affects the utilization rate of the baseband and even causes disconnection of other links.
Disclosure of Invention
The embodiment of the invention provides a link priority determining method and a link priority determining device.
In a first aspect, an embodiment of the present invention provides a method for determining a link priority, including:
when an appointed data packet is received for the first time in the M monitoring period, determining the time of receiving the appointed data packet for the first time as an initial time;
determining an M +1 th listening period based on the initial time, wherein a listening starting point of the M +1 th listening period is positioned after the initial time and is away from the initial time by a first threshold value;
and when the monitoring time is in the M < th > and M +1 < th > monitoring time periods, setting the designated link corresponding to the designated data packet as the highest priority.
In one embodiment, the method further comprises:
when the value of M is 1, the monitoring starting point of the M monitoring time interval is the time when the specified data packet is received for the first time;
and when the value of M is an integer larger than 1, the monitoring starting point of the M monitoring time interval is determined according to the time when the M-1 monitoring time interval receives the specified data packet for the first time and is separated from the corresponding time by a first threshold value.
In one embodiment, the mth listening period is divided into an mth main listening period and an mth auxiliary listening period;
the time length included between the monitoring starting point and the monitoring ending point of the Mth main monitoring period is a first numerical value, and the time length included between the monitoring starting point and the monitoring ending point of the Mth auxiliary monitoring period is a second numerical value.
In one embodiment, the method further comprises:
and if the appointed data packet is received in the Mth auxiliary monitoring period, prolonging the monitoring end point of the Mth auxiliary monitoring period after receiving the appointed data packet every time.
In one embodiment, the extending the listening end point of the mth auxiliary listening period after each receiving of the designated data packet includes:
and re-determining the monitoring end point of the Mth auxiliary monitoring period by taking the time when the specified data packet is received as a reference point, wherein the updated monitoring end point of the Mth auxiliary monitoring period is positioned behind the reference point, and the difference value between the updated monitoring end point of the Mth auxiliary monitoring period and the reference point is the second numerical value.
In one embodiment, the method further comprises:
and in the M monitoring time interval, if the specified data packet is not received, not determining the M +1 monitoring time interval.
In one embodiment, the method further comprises:
and in a period except the monitoring period, setting a designated link corresponding to the designated data packet as a non-highest priority.
In a second aspect, an embodiment of the present invention provides a link priority determining apparatus, including:
the determining module is used for determining the time of first receiving the specified data packet as the initial time when the specified data packet is first received in the Mth monitoring period;
the determining module is further configured to determine an M +1 th listening period based on the initial time, where a listening start point of the M +1 th listening period is located after the initial time and is a first threshold away from the initial time;
and the processing module is used for setting the designated link corresponding to the designated data packet to be the highest priority when the M and M +1 listening periods exist.
In a third aspect, an embodiment of the present invention provides an electronic chip, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions that when invoked by the processor are capable of performing the method provided by the first aspect.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein the program, when executed by a processor, implements the method provided in the first aspect.
In the embodiment of the invention, when the appointed data packet is received for the first time in the M monitoring period, the time of receiving the appointed data packet for the first time is determined as the initial time; determining an M +1 th monitoring time interval based on the initial time, wherein a monitoring starting point of the M +1 th monitoring time interval is positioned behind the initial time and is away from the initial time by a first threshold value; and when the monitoring time is in the M < th > and M +1 < th > monitoring time periods, setting the designated link corresponding to the designated data packet as the highest priority. By determining a plurality of listening periods and setting the designated link to the highest priority within the listening periods, the scheduling of the link can be optimized efficiently.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a link priority determining method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a link priority determining method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another link priority determination method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another link priority determination method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a link priority determining apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the current bluetooth transmission, a receiving end cannot pre-determine whether an A2DP data packet or a common ACL data packet is received in advance, so that an A2DP link of the receiving end is usually kept in a state of the highest priority, the use of other links is affected, and the utilization rate of a baseband is reduced. Based on the above situation, the embodiments of the present invention provide a link priority determining method for setting a designated link to the highest priority in some specific time periods.
Fig. 1 is a flowchart of a link priority determining method according to an embodiment of the present invention. The method may be applied to a terminal device, especially a terminal device serving as a data receiving end, such as a bluetooth headset, a smart speaker, and the like, as shown in fig. 1, and the method may include:
step 101, when the designated data packet is received for the first time in the mth listening period, determining the time of receiving the designated data packet for the first time as the initial time.
Step 102, determining an M +1 th listening period based on the initial time, wherein a listening starting point of the M +1 th listening period is located after the initial time and is away from the initial time by a first threshold.
In the embodiment of the invention, the terminal equipment sets a certain data packet as the specified data packet in advance, and the operation is carried out after the specified data packet is received. If two terminal devices establish a bluetooth connection, the designated data packet according to the embodiment of the present invention may be an A2DP data packet. After receiving the designated data packet, the terminal device determines a monitoring period according to the designated data packet, specifically, the time when the designated data packet is received for the first time according to the monitoring period is determined as an initial time, and then determines a next monitoring period according to the initial time, that is, a monitoring starting point and a monitoring ending point of the next monitoring period are determined.
And 103, setting the designated link corresponding to the designated data packet as the highest priority when the M and M +1 monitoring periods exist.
In the embodiment of the invention, after receiving the specified data packet, the terminal equipment determines the monitoring time period, and sets the specified link corresponding to the specified data packet as the highest priority in any monitoring time period, so that the normal transmission of the specified data packet can be ensured. In the time period except the monitoring time period, the designated link corresponding to the designated data packet is set to be in the non-highest priority, so that the influence on the normal communication of other links is avoided, and the link scheduling process is optimized.
In one embodiment, when the value of M is 1, the monitoring starting point of the M-th monitoring period is the time when the designated data packet is received for the first time; and when the value of M is an integer larger than 1, the monitoring starting point of the M monitoring period is determined according to the moment when the M-1 monitoring period receives the specified data packet for the first time and is away from the corresponding moment by a first threshold value. It can be understood that the terminal device can determine the monitoring starting point of the next monitoring period according to the time (initial time) of first receiving the specified data packet in the current monitoring period, and the 1 st monitoring period is used as the first monitoring period, and the monitoring starting point of the first monitoring period cannot be determined according to the time of receiving the first specified data packet in the previous monitoring period. For the 1 st listening period, the terminal device determines the first time of receiving the specified data packet in the 1 st listening period as the listening starting point of the 1 st listening period.
In an actual scene, when the terminal device just establishes connection with other devices, the default is to set the designated link as a non-highest priority, and whether the designated data packet is received or not is detected in real time. When receiving the specified data packet, the terminal device determines the time when the first specified data packet is received as an initial time, the monitoring starting point of the 1 st monitoring period is the initial time, and the monitoring starting point of the 2 nd monitoring period is after the initial time and is away from the initial time by a first threshold value. In the 1 st listening period and the 2 nd listening period, the terminal device sets the designated link to the highest priority. When the time flow reaches the 2 nd monitoring period, the terminal device still detects in real time, if the specified data packet is received, the terminal device will re-determine the time when the specified data packet is received for the first time in the 2 nd monitoring period as the initial time, and determine the monitoring starting point of the 3 rd monitoring period according to the initial time, and the monitoring starting point of the 3 rd monitoring period is still located after the initial time and is away from the initial time by the first threshold value. If the terminal equipment does not receive the specified data packet in the 2 nd monitoring period, the terminal equipment does not determine the 3 rd monitoring period, the process is ended until the terminal equipment receives the specified data packet again, the 1 st monitoring period is determined again, and the next process is started.
In one embodiment, when the terminal device determines any one of the listening periods, the listening period is divided into a primary listening period and a secondary listening period, where a duration included between a listening start point and a listening end point of the primary listening period is a first value, and a duration included between the listening start point and the listening end point of the secondary listening period is a second value. The first value and the second value may be the same or different values, and may be changed according to actual conditions. The main monitoring period is before the auxiliary monitoring period, and the monitoring end point of the main monitoring period is the monitoring starting point of the auxiliary monitoring period. If the terminal equipment receives the specified data packet in the auxiliary monitoring period, the monitoring end point of the auxiliary monitoring period is prolonged after the specified data packet is received each time. Specifically, the time when the designated data packet is received is taken as a reference point, the monitoring end point of the secondary monitoring period is re-determined, and the updated monitoring end point of the secondary monitoring period is located behind the reference point and has a second value different from the reference point. For example, if the terminal device receives a specific packet at time 8, the listening terminal in the sub listening period is updated with the time as a reference point, where the time covered by a certain listening period is 0 to 10 (omitting units), where the main listening period is 0 to 6 and the sub listening period is 6 to 10. Here, the second value is 4, and the listening end point of the sub listening period is updated to be located at time 12. If the designated packet is not received again between 8 and 12, the listening period ends after time 12.
In the embodiment of the invention, the time period in which the specified data packet is possibly received can be more flexibly covered by setting the main monitoring time period and the auxiliary monitoring time period.
The link priority determination method provided by the embodiment of the present invention is further described in the following with specific embodiments. After the smart phone and the Bluetooth headset are connected through Bluetooth, the smart phone can send an A2DP data packet to the Bluetooth headset through the Bluetooth. The Bluetooth headset is used as a data receiving end, and the time when the smart phone sends an A2DP data packet cannot be determined in advance, namely the starting time is uncertain; it cannot be determined in advance when the smartphone stops sending the A2DP data packet, i.e., the end time is uncertain. Based on the above characteristics, the bluetooth headset may use the link priority determination method of the embodiment of the present invention to set the A2DP link to the highest priority within a specified time period, so that the A2DP packet is not missed, and the utilization rate of the entire baseband is not affected. The bluetooth headset can be regarded as the beginning of the process when receiving the first A2DP data packet until not receiving an A2DP data packet within a certain monitoring period, and the process is ended. In order to make the description clearer, it is considered that the terminal device enters the monitoring mode when receiving the A2DP data packet, and enters the normal mode when the process is finished, as shown in fig. 2, after the bluetooth headset and the smartphone are connected, the bluetooth headset is cyclically switched between the normal mode and the monitoring mode. Taking fig. 3 as an example to further describe the process of switching the bluetooth headset from the normal mode to the listening mode, in fig. 3, one rectangle represents a fixed time duration, a rectangle filled with black color represents the time duration for receiving the A2DP data packet in the listening period, a rectangle filled with a gradually changing dotted line represents the time duration for not receiving the A2DP data packet in the listening period, and a blank rectangle represents the time duration included in the non-listening period. The highest rectangle represents the time length included in the main monitoring period, the 1 st time length (the rectangle with subscript 1) is the time length included in the main monitoring period, the highest-order rectangle is the time length included in the auxiliary monitoring period, the 4 th time length (the rectangle with subscript 4) is the time length included in the auxiliary monitoring period, the lowest rectangle is the time length included in the non-monitoring period, and the 6 th time length (the rectangle with subscript 6) is the time length included in the non-monitoring period. In the embodiment of the invention, the Bluetooth headset sets the first value to be 3, the main monitoring time interval comprises 3 fixed time durations, the second value is set to be 2, and the auxiliary monitoring time interval comprises 2 fixed time durations. The Bluetooth headset receives an A2DP data packet in the 1 st time (the starting point of the 1 st time duration), enters a monitoring mode, sets the 1 st time as an initial time, and simultaneously determines the 1 st monitoring time duration and the 2 nd monitoring time duration, wherein the monitoring starting point of the 1 st monitoring time duration is the 1 st time, the monitoring starting point of the 2 nd monitoring time duration is a first threshold value away from the 1 st time, and the first threshold value is set to be 12 fixed time durations. As can be seen from fig. 3, the bluetooth headset receives the A2DP data packet in the 1 st duration and the 2 nd duration, does not receive the A2DP data packet in the 3 rd to 5 th durations, and does not extend the monitoring endpoint of the auxiliary monitoring period, where the 1 st to 5 th durations are the first monitoring period, and the 6 th to 12 th durations are the non-monitoring period. The bluetooth headset sets the A2DP link to the highest priority level for durations 1 through 5 and sets the A2DP link to a non-highest priority level for durations 6 through 12.
The 2 nd listening period is initially from 13 th to 17 th, from 13 th to 16 th, the bluetooth headset does not receive the A2DP data packet, the A2DP data packet is received for the first time at the 2 nd time (the starting point of the 17 th time), the bluetooth headset determines the 2 nd time as the initial time again, the listening starting point of the 3 rd listening period is determined according to the initial time, and the 3 rd listening period is also 12 fixed times away from the initial time. The 16 th to 17 th time periods are the 2 nd sub-listening time period (the sub-listening time period of the 2 nd listening time period), and the bluetooth headset updates the listening end point of the 2 nd sub-listening time period when receiving the A2DP data packet in the 17 th time period. And receiving the A2DP data packet again within the 18 th time length, updating the monitoring destination again by the Bluetooth headset, wherein the updated monitoring is always separated from the time of receiving the A2DP data packet finally by the 2 nd value (two fixed time lengths in this case), namely the monitoring destination is located within the 20 th time length. After the update, the 2 nd listening period is from 13 th to 20 th periods, the bluetooth headset sets the A2DP link to the highest priority in the 13 th to 20 th periods, and the 21 st to 28 th periods are non-listening periods, in which the bluetooth headset sets the A2DP link to the non-highest priority.
The duration 29 to 33 is the 3 rd listening period, during which the bluetooth headset does not receive the A2DP data packet, the bluetooth headset does not determine the next listening period, and the listening mode exits at duration 33. When receiving the A2DP packet again, the bluetooth headset switches from the normal mode to the listening mode again, and repeats the above process.
The rectangle shown in fig. 3 is only used as an example to describe the link priority determination method of the embodiment of the present invention, and the method is not limited thereto, for example, the rectangle in fig. 3 may also indicate an instant.
Fig. 4 is a schematic diagram of another link priority determining method according to an embodiment of the present invention. As shown in fig. 4, may include:
in step 401, a data packet is received.
After the terminal device establishes Bluetooth connection with other devices, the data packet sent by the opposite terminal can be received.
Step 402, determine whether an A2DP packet is present.
The terminal device determines whether the received data packet is an A2DP data packet, if so, step 403 is performed, otherwise, the detection is continued.
Step 403, entering a listening mode, configuring parameters, and determining the next listening period.
After entering the monitoring mode, the terminal device determines the monitoring starting point of the next monitoring period according to the initial time. The configured parameters may include the first threshold, the first numerical value, the second numerical value, and the determined start point and end point of each snoop, etc.
Step 404, whether an A2DP data packet is received in the current listening period.
If the A2DP packet is received within the current listening period, go to step 405, otherwise go to step 406.
At step 405, the next listening period is determined.
Step 406, the listening mode is exited.
And after the terminal equipment exits the monitoring mode, continuously detecting the data packet, and repeating the process after receiving the A2DP data packet again.
In the embodiment of the invention, the terminal equipment determines a plurality of monitoring periods, and sets the designated link to be the highest priority only in the monitoring periods, thereby not only ensuring that the designated data packet cannot be missed, but also reducing the influence on the scheduling of other links.
Fig. 5 is a schematic structural diagram of a link priority determining apparatus according to an embodiment of the present invention. The apparatus may be used as a specific device to implement the method for determining a link priority according to the embodiment of the present invention, as shown in fig. 5, the apparatus may include: a determination module 510 and a processing module 520.
A determining module 510, configured to determine, as an initial time, a time when the designated data packet is received for the first time in an mth listening period; the determining module is further configured to determine an M +1 th listening period based on the initial time, where a listening start point of the M +1 th listening period is located after the initial time and is apart from the initial time by a first threshold.
And the processing module is used for setting the designated link corresponding to the designated data packet to be the highest priority when the M and M +1 listening periods exist.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 610, a memory 630, and a communication bus 640 that connects the various system components (including the memory 630 and the processors 610).
Communication bus 640 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro Channel Architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 630 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) and/or cache Memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Although not shown in FIG. 6, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 640 by one or more data media interfaces. Memory 630 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility having a set (at least one) of program modules may be stored in memory 630, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device may also communicate with one or more external devices, may also communicate with one or more devices that enable a user to interact with the electronic device, or may communicate with any device (e.g., network card, modem, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may occur via communications interface 620. Furthermore, the electronic device may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via a Network adapter (not shown in FIG. 6), which may communicate with other modules of the electronic device via communication bus 640. It should be understood that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape Drives, data backup storage systems, and the like.
The processor 610 executes various functional applications and data processing, for example, implementing a link prioritization method provided by an embodiment of the present invention, by executing programs stored in the memory 630.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the link priority determination method provided in the embodiment of the present invention.
The computer-readable storage medium described above may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for link prioritization, comprising:
when an appointed data packet is received for the first time in the Mth monitoring period, determining the time of receiving the appointed data packet for the first time as an initial time;
determining an M +1 th monitoring period based on the initial time, wherein a monitoring starting point of the M +1 th monitoring period is positioned after the initial time and is away from the initial time by a first threshold value;
and when the monitoring time is in the M < th > and M +1 < th > monitoring time periods, setting the designated link corresponding to the designated data packet as the highest priority.
2. The method of claim 1, further comprising:
when the value of M is 1, the monitoring starting point of the M monitoring time interval is the time when the specified data packet is received for the first time;
and when the M value is an integer larger than 1, the monitoring starting point of the M monitoring period is determined according to the moment when the M-1 monitoring period receives the specified data packet for the first time and is away from the corresponding moment by a first threshold value.
3. The method of claim 2, wherein the Mth listening period is divided into an Mth primary listening period and an Mth secondary listening period;
the time length included between the monitoring starting point and the monitoring ending point of the Mth main monitoring period is a first numerical value, and the time length included between the monitoring starting point and the monitoring ending point of the Mth auxiliary monitoring period is a second numerical value.
4. The method of claim 3, further comprising:
and if the appointed data packet is received in the Mth auxiliary monitoring period, prolonging the monitoring end point of the Mth auxiliary monitoring period after receiving the appointed data packet every time.
5. The method of claim 4, wherein extending the listening end of the Mth secondary listening period after each receipt of the designated data packet comprises:
and re-determining the monitoring end point of the Mth auxiliary monitoring period by taking the time when the specified data packet is received as a reference point, wherein the updated monitoring end point of the Mth auxiliary monitoring period is positioned behind the reference point, and the difference value between the updated monitoring end point of the Mth auxiliary monitoring period and the reference point is the second numerical value.
6. The method of claim 5, further comprising:
and in the M < th > listening time interval, if the specified data packet is not received, not determining the M +1 < th > listening time interval.
7. The method of claim 6, further comprising:
and in a period except the monitoring period, setting a designated link corresponding to the designated data packet as a non-highest priority.
8. A link prioritization apparatus, comprising:
the determining module is used for determining the time of first receiving the specified data packet as the initial time when the specified data packet is first received in the Mth monitoring period;
the determining module is further configured to determine, based on the initial time, an M +1 th listening time period, where a listening start point of the M +1 th listening time period is located after the initial time and is away from the initial time by a first threshold;
and the processing module is used for setting the designated link corresponding to the designated data packet to be the highest priority when the M < th > and M +1 < th > monitoring periods exist.
9. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions that when invoked by the processor are capable of performing the method of any of claims 1 to 7.
10. A computer-readable storage medium, comprising a stored program, wherein the program when executed by a processor implements the method of any one of claims 1 to 7.
CN202211152794.4A 2022-09-21 2022-09-21 Link priority determining method and device Pending CN115550971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211152794.4A CN115550971A (en) 2022-09-21 2022-09-21 Link priority determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211152794.4A CN115550971A (en) 2022-09-21 2022-09-21 Link priority determining method and device

Publications (1)

Publication Number Publication Date
CN115550971A true CN115550971A (en) 2022-12-30

Family

ID=84727723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211152794.4A Pending CN115550971A (en) 2022-09-21 2022-09-21 Link priority determining method and device

Country Status (1)

Country Link
CN (1) CN115550971A (en)

Similar Documents

Publication Publication Date Title
US8156372B2 (en) Power outage operation of a cable modem
EP3547715A1 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
CN107948988A (en) A kind of resource control method and relevant device
CN113485822A (en) Memory management method, system, client, server and storage medium
CN107731231B (en) Method for supporting multi-cloud-end voice service and storage device
JP6595112B2 (en) Data transmission method and apparatus, and terminal
WO2019179260A1 (en) Method and device for selecting resources in carrier wave
CN114466226B (en) Bandwidth duration duty cycle determination method, device, equipment and computer readable medium
CN113840269B (en) Multimedia data transmission method and device, electronic equipment and storage medium
US10111207B2 (en) Network device, terminal device, and voice service control method
CN110602683A (en) Bluetooth control method, device, mobile terminal and storage medium
CN115550971A (en) Link priority determining method and device
EP4354747A1 (en) Audio control method, electronic device, audio device, and storage medium
CN112134774B (en) Client front-end device, communication control method for client front-end device, and storage medium
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN115941382A (en) Flow control method and device for SPI communication, terminal equipment and storage medium
CN114125131B (en) Channel configuration method and device of audio drive motor, electronic equipment and storage medium
CN113271385A (en) Call forwarding method
CN113377277A (en) Method, apparatus and computer program product for managing memory
CN116527486B (en) Device independent function self-adaptive management method, device and medium
CN113490189B (en) Communication control method, device, electronic equipment and storage medium
CN110265050B (en) AEC audio control system and clock negotiation method thereof
CN112711436B (en) Message processing method and device
JP6039350B2 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM
US20230353910A1 (en) Data access method and apparatus, chip and computer storage medium

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