Link priority determination method and device

By setting the highest priority of the specified link during the listening period, the problem that the Bluetooth receiver cannot predict the packet type is solved, link scheduling is optimized, and baseband utilization and communication efficiency of other links are improved.

CN115550971BActive Publication Date: 2025-08-19SPREADTRUM SEMICON(CHENGDU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211152794.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2025-08-19
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

The Bluetooth receiver cannot predict the packet type in advance, resulting in the A2DP link always maintaining the highest priority, affecting the baseband utilization and communication of other links.

Method used

By determining multiple listening periods, the specified link is set to the highest priority during the listening period, and link scheduling is optimized.

Benefits of technology

The scheduling of links is effectively optimized to ensure the normal transmission of specified data packets, while reducing the impact on other links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115550971B_ABST
    Figure CN115550971B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and in particular to a method and device for determining link priority. When a designated data packet is received for the first time in the Mth listening period, the moment when the designated data packet is first received is determined as the initial moment; based on the initial moment, the M+1th listening period is determined, and the listening starting point of the M+1th listening period is located after the initial moment and is separated from the initial moment by a first threshold; wherein, when in the Mth and M+1th listening periods, the designated link corresponding to the designated data packet is set to the highest priority. By determining multiple listening periods and setting the designated link to the highest priority within the listening period, the scheduling of the link can be effectively optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining link priority. Background Art

[0002] Data can be transmitted between terminal devices via a designated link. For example, a smartphone and a Bluetooth headset connected via Bluetooth can transmit audio data packets via the Bluetooth Advanced Audio Distribution Profile (A2DP) link. Currently, in order to ensure smooth music playback without interruption, the sender (smartphone) will increase the priority of the A2DP link after determining that there are audio data packets to be sent on the A2DP link, and lower the priority of the A2DP link after the A2DP data packets are sent. However, the receiver (Bluetooth headset) cannot predict in advance whether it is an A2DP data packet or a normal Access Control List (ACL) data packet, so the A2DP link on the receiver side usually remains in the highest priority state until the A2DP link is disconnected. The A2DP link priority on the receiver side is always higher than that of other links, affecting the utilization of the baseband and even causing other links to be disconnected. Summary of the Invention

[0003] The embodiments of the present invention provide a method and apparatus for determining link priority, which can effectively optimize link scheduling by determining multiple listening periods and setting a designated link as the highest priority within the listening period.

[0004] In a first aspect, an embodiment of the present invention provides a method for determining a link priority, including:

[0005] When a designated data packet is received for the first time during the Mth monitoring period, the time when the designated data packet is received for the first time is determined as the initial time;

[0006] Determine, based on the initial time, an M+1th monitoring period, where a monitoring start point of the M+1th monitoring period is located after the initial time and is spaced from the initial time by a first threshold;

[0007] Wherein, during the Mth and M+1th monitoring periods, the designated link corresponding to the designated data packet is set to the highest priority.

[0008] In one embodiment, the method further includes:

[0009] When the value of M is 1, the monitoring start point of the Mth monitoring period is the moment when the designated data packet is first received;

[0010] When the value of M is an integer greater than 1, the monitoring starting point of the Mth monitoring period is determined according to the time when the designated data packet is first received in the M-1th monitoring period and is away from the corresponding time by a first threshold.

[0011] In one embodiment, the Mth monitoring period is divided into an Mth main monitoring period and an Mth secondary monitoring period;

[0012] The duration between the monitoring start point and the monitoring end point of the Mth main monitoring period is a first value, and the duration between the monitoring start point and the monitoring end point of the Mth secondary monitoring period is a second value.

[0013] In one embodiment, the method further includes:

[0014] If the designated data packet is received within the Mth sub-listening period, the listening end point of the Mth sub-listening period is extended each time the designated data packet is received.

[0015] In one embodiment, after receiving the designated data packet each time, extending the monitoring end point of the Mth secondary monitoring period includes:

[0016] The monitoring end point of the Mth sub-monitoring period is re-determined with the time when the designated data packet is received as a reference point, and the updated monitoring end point of the Mth sub-monitoring period is located after the reference point and the difference between the updated monitoring end point and the reference point is the second value.

[0017] In one embodiment, the method further includes:

[0018] If the designated data packet is not received during the Mth listening period, the determination of the M+1th listening period is not performed.

[0019] In one embodiment, the method further includes:

[0020] During a period outside the monitoring period, the designated link corresponding to the designated data packet is set to a non-highest priority.

[0021] In a second aspect, an embodiment of the present invention provides a link priority determination device, including:

[0022] A determining module, configured to, when a designated data packet is received for the first time in the Mth monitoring period, determine the time when the designated data packet is first received as the initial time;

[0023] The determining module is further configured to determine an M+1th monitoring period based on the initial moment, wherein a monitoring start point of the M+1th monitoring period is located after the initial moment and is spaced from the initial moment by a first threshold;

[0024] The processing module is used to set the designated link corresponding to the designated data packet to the highest priority during the Mth and M+1th monitoring periods.

[0025] In a third aspect, an embodiment of the present invention provides an electronic chip, comprising:

[0026] at least one processor; and

[0027] at least one memory in communication with the processor, wherein:

[0028] The memory stores program instructions, and the processor calls the program instructions to execute the method provided by the first aspect.

[0029] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the method provided in the first aspect is implemented.

[0030] In an embodiment of the present invention, when a designated data packet is first received during an Mth listening period, the time at which the designated data packet is first received is determined as an initial time. Based on the initial time, an M+1th listening period is determined, with the listening start point of the M+1th listening period being located after the initial time and separated from the initial time by a first threshold. During the Mth and M+1th listening periods, the designated link corresponding to the designated data packet is set to the highest priority. By determining multiple listening periods and setting the designated link to the highest priority within each listening period, link scheduling can be effectively optimized. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 A flowchart of a link priority determination method provided by an embodiment of the present invention;

[0033] Figure 2 A schematic diagram of a link priority determination method provided by an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of another link priority determination method provided by an embodiment of the present invention;

[0035] Figure 4 A schematic diagram of another link priority determination method provided by an embodiment of the present invention;

[0036] Figure 5 A schematic structural diagram of a link priority determination device provided by an embodiment of the present invention;

[0037] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to better understand the technical solutions of this specification, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0039] It should be clear that the embodiments described are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this specification.

[0040] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms "a", "an", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0041] In current Bluetooth transmissions, the receiving end cannot predict whether it is receiving an A2DP packet or a standard ACL packet. Therefore, the receiving end's A2DP link is usually kept at the highest priority, affecting the use of other links and reducing baseband utilization. Based on this situation, an embodiment of the present invention provides a link priority determination method for setting a specified link as the highest priority during certain time periods.

[0042] Figure 1 This is a flow chart of a link priority determination method provided by an embodiment of the present invention. This method can be applied to terminal devices, especially terminal devices that serve as data receiving ends, such as Bluetooth headsets, smart speakers, etc. Figure 1 As shown, the method may include:

[0043] Step 101: When a designated data packet is received for the first time in the Mth monitoring period, the time when the designated data packet is received for the first time is determined as the initial time.

[0044] Step 102: Determine an M+1th monitoring period based on the initial time, wherein a monitoring start point of the M+1th monitoring period is located after the initial time and is spaced from the initial time by a first threshold.

[0045] In an embodiment of the present invention, a terminal device sets a certain data packet as a designated data packet in advance, and performs the above operation upon receiving the designated data packet. If two terminal devices have established a Bluetooth connection, the designated data packet in the embodiment of the present invention may be an A2DP data packet. After the terminal device receives the designated data packet, it determines the monitoring period based on the designated data packet. Specifically, it first determines the initial time based on the time when the designated data packet is first received during the monitoring period, and then determines the next monitoring period based on the initial time, that is, determines the monitoring start point and monitoring end point of the next monitoring period.

[0046] Step 103: During the Mth and M+1th monitoring periods, the designated link corresponding to the designated data packet is set to the highest priority.

[0047] In this embodiment of the present invention, after receiving a designated data packet, a terminal device determines a listening period. During any listening period, the designated link corresponding to the designated data packet is set to the highest priority, thereby ensuring normal transmission of the designated data packet. During periods outside of the listening period, the designated link corresponding to the designated data packet is set to a non-highest priority to avoid affecting the normal communication of other links, thereby optimizing the link scheduling process.

[0048] In one embodiment, when M takes a value of 1, the listening starting point of the Mth listening period is the moment when the designated data packet is first received; when M takes a value greater than 1, the listening starting point of the Mth listening period is determined based on the moment when the designated data packet is first received in the M-1th listening period and is separated from the corresponding moment by a first threshold. It can be understood that the terminal device can determine the listening starting point of the next listening period based on the moment (initial moment) when the designated data packet is first received in the current listening period, while the first listening period, as the first listening period, cannot have its listening starting point determined based on the moment when the first designated data packet is received in the previous listening period. For the first listening period, the terminal device will determine the moment when the designated data packet is first received in the first listening period as the listening starting point of the first listening period.

[0049] In a real-world scenario, when a terminal device first establishes a connection with another device, it sets the designated link to a non-highest priority by default and monitors in real time whether it has received a designated data packet. Upon receiving a designated data packet, the terminal device determines the moment of receipt of the first designated data packet as the initial time. The first listening period starts at this initial time, and the second listening period starts at a time after this initial time and a distance from this initial time of a first threshold. During the first and second listening periods, the terminal device sets the designated link to the highest priority. When the second listening period begins, the terminal device continues to monitor in real time. If a designated data packet is received, the terminal device resets the moment of receipt of the first designated data packet during the second listening period as the initial time, and uses this initial time to determine the listening start point for the third listening period. The listening start point for the third listening period is also after this initial time and a distance from this initial time of a first threshold. If the terminal device does not receive a designated data packet during the second listening period, the terminal device does not reset the third listening period, and the process ends. The process continues until the terminal device receives a designated data packet again, resets the first listening period, and begins the next cycle.

[0050] In one embodiment, when a terminal device determines any listening period, it divides the listening period into a primary listening period and a secondary listening period, wherein the duration between the listening start and end of the primary listening period is a first numerical value, and the duration between the listening start and end of the secondary listening period is a second numerical value. The first numerical value and the second numerical value can be the same or different, and can be changed accordingly according to actual circumstances. The primary listening period precedes the secondary listening period, and the listening end of the primary listening period is the listening start of the secondary listening period. If the terminal device receives a designated data packet during the secondary listening period, the listening end of the secondary listening period is extended each time the designated data packet is received. Specifically, the listening end of the secondary listening period is re-determined using the time when the designated data packet is received as a reference point, and the updated listening end of the secondary listening period is located after the reference point and the difference from the reference point is the second numerical value. For example, if a listening period covers a time period from 0 to 10 (units omitted), where the primary listening period is from 0 to 6 and the secondary listening period is from 6 to 10, if the terminal device receives the designated data packet at time 8, the listening end of the secondary listening period is updated using this time as the reference point. Here, the second value is 4, and the monitoring end point of the secondary monitoring period is updated to be at time 12. If the designated data packet is not received again between 8 and 12, the monitoring period ends after time 12.

[0051] In the embodiment of the present invention, the time period in which the designated data packet may be received can be more flexibly covered by setting the primary monitoring period and the secondary monitoring period.

[0052] The link priority determination method provided by the embodiment of the present invention is further described below with a specific embodiment. After the smartphone establishes a connection with the Bluetooth headset via Bluetooth, the smartphone can send an A2DP data packet to the Bluetooth headset via Bluetooth. As the data receiving end, the Bluetooth headset cannot determine in advance when the smartphone will send the A2DP data packet, that is, the start time is uncertain; nor can it determine in advance when the smartphone will stop sending the A2DP data packet, that is, the end time is uncertain. The smartphone sends A2DP data packets periodically, usually with a period of about 20ms. Based on the above characteristics, the Bluetooth headset can 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, which will neither miss the A2DP data packet nor affect the utilization of the entire baseband. The reception of the first A2DP data packet by the Bluetooth headset can be regarded as the beginning of this process, and the process ends until no A2DP data packet is received within a certain listening period. In order to make the description clearer, the terminal device is regarded as entering the listening mode when it receives the A2DP data packet, and as entering the normal mode when the process ends, such as Figure 2 As shown in the figure, once the Bluetooth headset is connected to the smartphone, it switches between normal mode and monitoring mode. Figure 3 Taking the Bluetooth headset as an example, the process of switching from normal mode to monitoring mode is further described. Figure 3 A rectangle in the middle represents a fixed duration, a rectangle filled with black represents the duration of receiving the A2DP data packet during the listening period, a rectangle filled with a dotted gradient represents the duration of not receiving the A2DP data packet during the listening period, and a blank rectangle represents the duration included in the non-listening period. The highest rectangle represents the duration included in the main listening period, the first duration (rectangle with subscript 1) is the duration included in the main listening period, the second rectangle with the highest height is the duration included in the secondary listening period, the fourth duration (rectangle with subscript 4) is the duration included in the secondary listening period, the shortest rectangle is the duration included in the non-listening period, and the sixth duration (rectangle with subscript 6) is the duration included in the non-listening period. In this embodiment of the present invention, the Bluetooth headset sets the first value to 3, the main listening period includes 3 fixed durations, the second value is set to 2, and the secondary listening period includes 2 fixed durations. The Bluetooth headset receives the A2DP data packet within the first moment (the starting point of the first duration), enters the monitoring mode, sets the first moment as the initial moment, and determines the first monitoring period and the second monitoring period. The monitoring starting point of the first monitoring period is the first moment, and the monitoring starting point of the second monitoring period is the first threshold away from the first moment. Here, the first threshold is set to 12 fixed durations. Figure 3It can be seen that the Bluetooth headset received A2DP data packets in the first and second durations, but did not receive A2DP data packets in the third to fifth durations. The monitoring end point of the secondary monitoring period will not be extended. The first to fifth durations are the first monitoring period, and the sixth to 12th durations are the non-monitoring period. The Bluetooth headset will set the A2DP link in the first to fifth durations to the highest priority, and the A2DP link in the sixth to 12th durations to the non-highest priority.

[0053] The second listening period is initially from the 13th to the 17th duration. From the 13th to the 16th duration, the Bluetooth headset did not receive the A2DP data packet. At the second moment (the starting point of the 17th duration), the A2DP data packet was received for the first time. The Bluetooth headset re-determined the second moment as the initial moment, and determined the listening starting point of the third listening period based on this initial moment. The third listening period is also 12 fixed durations away from this initial moment. The 16th to the 17th duration is the second sub-listening period (the sub-listening period of the second listening period). If the A2DP data packet is received within the 17th duration, the Bluetooth headset will update the listening end point of the second sub-listening period. If the A2DP data packet is received again within the 18th duration, the Bluetooth headset will update the above-mentioned listening end point again. The updated listening is always the second value (here are two fixed durations) away from the moment when the A2DP data packet was last received, that is, the listening end point is within the 20th duration. After the update, the second listening period is from the 13th to the 20th time period, and the Bluetooth headset sets the A2DP link to the highest priority from the 13th to the 20th time period. The 21st to the 28th are non-listening periods, and the Bluetooth headset sets the A2DP link to non-highest priority within this range.

[0054] The 29th to 33rd duration is the third listening period. During this period, the Bluetooth headset does not receive any A2DP data packets, and the Bluetooth headset does not determine the next listening period. It exits the listening mode at the 33rd duration. When the A2DP data packet is received again, the Bluetooth headset switches from normal mode to listening mode again and repeats the above process.

[0055] Figure 3 The rectangle shown is only used as an example to describe the link priority determination method of the embodiment of the present invention, and does not limit the present method. For example, Figure 3 The rectangle in can also represent an instant in time.

[0056] Figure 4 Schematic diagram of another link priority determination method provided by an embodiment of the present invention. Figure 4 As shown, this may include:

[0057] Step 401: Receive a data packet.

[0058] After the terminal device establishes a Bluetooth connection with other devices, it can receive data packets sent by the other end.

[0059] Step 402: Determine whether it is an A2DP data packet.

[0060] The terminal device determines whether the received data packet is an A2DP data packet. If so, the process proceeds to step 403 ; otherwise, the process continues to detect.

[0061] Step 403: Enter monitoring mode, configure parameters, and determine the next monitoring period.

[0062] After the terminal device enters the monitoring mode, it will determine the monitoring start point of the next monitoring period according to the initial time. The configured parameters may include a first threshold, a first value, a second value, and the determined monitoring start point and monitoring end point.

[0063] Step 404: Whether an A2DP data packet is received during the current monitoring period.

[0064] If an A2DP data packet is received during the current monitoring period, the process proceeds to step 405 ; otherwise, the process proceeds to step 406 .

[0065] Step 405: Determine the next monitoring period.

[0066] Step 406: Exit monitoring mode.

[0067] After the terminal device exits the monitoring mode, it continues to detect data packets. After receiving the A2DP data packet again, the above process is repeated.

[0068] In the embodiment of the present invention, the terminal device determines multiple monitoring periods and sets the designated link to the highest priority only during the monitoring period, which ensures that the designated data packet will not be missed and reduces the impact on the scheduling of other links.

[0069] Figure 5 This is a schematic diagram of the structure of a link priority determination device provided by an embodiment of the present invention. The device can be used as a specific device to implement the link priority determination method provided by an embodiment of the present invention, such as Figure 5 As shown, the apparatus may include: a determination module 510 and a processing module 520 .

[0070] The determination module 510 is used to determine the moment when the specified data packet is first received in the Mth monitoring period as the initial moment; the determination module is also used to determine the M+1th monitoring period based on the initial moment, and the monitoring starting point of the M+1th monitoring period is located after the initial moment and is away from the initial moment by a first threshold.

[0071] The processing module is used to set the designated link corresponding to the designated data packet to the highest priority during the Mth and M+1th monitoring periods.

[0072] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 6 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0073] like Figure 6 As shown, the electronic device is implemented as 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 connecting different system components (including the memory 630 and the processor 610).

[0074] Communication bus 640 represents one or more 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. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnection (PCI) bus.

[0075] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0076] The 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 / non-volatile computer system storage media. Figure 6Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a Compact Disc Read Only Memory (hereinafter referred to as: CD-ROM), a Digital Video Disc Read Only Memory (hereinafter referred to as: DVD-ROM), or other optical media) may be provided. In these cases, each drive can be connected to the communication bus 640 via one or more data medium interfaces. The memory 630 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0077] A program / utility having a set (at least one) of program modules may be stored in memory 630. Such program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described herein.

[0078] The electronic device may also communicate with one or more external devices, and may also communicate with one or more devices that enable a user to interact with the electronic device, or with any device that enables the electronic device to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through the communication interface 620. In addition, the electronic device may also communicate with the network adapter ( Figure 6 The network adapter can communicate with other modules of the electronic device through the communication bus 640. It should be understood that although Figure 6 Not shown, 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 arrays (Redundant Arrays of Independent Drives; hereinafter referred to as: RAID) systems, tape drives, and data backup storage systems.

[0079] The processor 610 executes various functional applications and data processing by running the programs stored in the memory 630, such as implementing the link priority determination method provided in the embodiment of the present invention.

[0080] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the link priority determination method provided by the embodiment of the present invention.

[0081] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.

[0082] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0083] 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.

[0084] In the description of this specification, the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.

[0085] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0086] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.

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

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

[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for determining link priority, characterized in that: include: When a designated data packet is received for the first time during the Mth monitoring period, the time when the designated data packet is received for the first time is determined as the initial time; Determine, based on the initial time, an M+1th monitoring period, where a monitoring start point of the M+1th monitoring period is located after the initial time and is spaced from the initial time by a first threshold; Wherein, during the Mth and M+1th monitoring periods, the designated link corresponding to the designated data packet is set to the highest priority.

2. The method according to claim 1, characterized in that The method further comprises: When the value of M is 1, the monitoring start point of the Mth monitoring period is the moment when the designated data packet is first received; When the value of M is an integer greater than 1, the monitoring starting point of the Mth monitoring period is determined according to the time when the designated data packet is first received in the M-1th monitoring period and is away from the corresponding time by a first threshold.

3. The method according to claim 2, characterized in that The Mth monitoring period is divided into an Mth main monitoring period and an Mth secondary monitoring period; The duration between the monitoring start point and the monitoring end point of the Mth main monitoring period is a first value, and the duration between the monitoring start point and the monitoring end point of the Mth secondary monitoring period is a second value.

4. The method according to claim 3, characterized in that The method further comprises: If the designated data packet is received within the Mth sub-listening period, the listening end point of the Mth sub-listening period is extended each time the designated data packet is received.

5. The method according to claim 4, characterized in that The step of extending the monitoring end point of the Mth secondary monitoring period after receiving the designated data packet each time includes: The monitoring end point of the Mth sub-monitoring period is re-determined with the time when the designated data packet is received as a reference point, and the updated monitoring end point of the Mth sub-monitoring period is located after the reference point and the difference between the updated monitoring end point and the reference point is the second value.

6. The method according to claim 5, characterized in that The method further comprises: If the designated data packet is not received during the Mth listening period, the determination of the M+1th listening period is not performed.

7. The method according to claim 6, characterized in that The method further comprises: During a period outside the monitoring period, the designated link corresponding to the designated data packet is set to a non-highest priority.

8. A link priority determination device, characterized in that: include: A determining module, configured to, when a designated data packet is received for the first time in the Mth monitoring period, determine the time when the designated data packet is first received as the initial time; The determining module is further configured to determine an M+1th monitoring period based on the initial moment, wherein a monitoring start point of the M+1th monitoring period is located after the initial moment and is spaced from the initial moment by a first threshold; The processing module is used to set the designated link corresponding to the designated data packet to the highest priority during the Mth and M+1th monitoring periods.

9. An electronic device, characterized in that: include: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions, and the processor calls the program instructions to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Wireless communication management method and device

    CN105704653A

  • Prioritizing Short-Range Wireless Packets for Time-Sensitive Applications

    US20170093727A1