A method, apparatus, device, medium and program product for processing beacon frames
By receiving part of beacon frames in the site device and stop receiving when the premature end condition is met, the problem of high power consumption in the prior art is solved, and the accurate wake-up of the site device is achieved.
Patent Information
- Application Number
- CN202411260056.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2044-09-09
Smart Images

Figure CN119052904B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of communication technologies, and in particular, to a method, apparatus, device, medium, and program product for processing beacon frames. Background Art
[0002] Currently, a Station (STA) device can enter the wake-up state from the sleep state based on the listening interval, receive a beacon frame sent by an Access Point (AP) device, and after receiving the complete beacon frame, determine whether to control the entire STA device to enter the sleep state from the wake-up state according to the Traffic Indication Map (TIM) field in the beacon frame.
[0003] However, the methods in the related art need to receive the complete beacon frame, resulting in a relatively high power consumption problem in the methods of the related art.
[0004] Therefore, there is an urgent need for a method for processing beacon frames that can reduce power consumption. Summary of the Invention
[0005] Embodiments of the present application provide a method, apparatus, device, medium, and program product for processing beacon frames, which can reduce power consumption.
[0006] In a first aspect, embodiments of the present application provide a method for processing beacon frames, which is applied to an STA device. The method includes:
[0007] Receiving a partial beacon frame sent by an AP device;
[0008] Stopping receiving the beacon frame when it is determined that the partial beacon frame meets the early termination condition;
[0009] Controlling the STA device to enter the wake-up state when it is determined that the partial beacon frame meets the wake-up condition.
[0010] In one implementation, stopping receiving the beacon frame when it is determined that the partial beacon frame meets the early termination condition includes:
[0011] Obtaining target information in the partial beacon frame; the target information includes the TIM field and / or the element field;
[0012] Stopping receiving the beacon frame when it is determined that the partial beacon frame meets the early termination condition according to the target information.
[0013] In one implementation, the TIM field includes a Delivery Traffic Indication Map (DTIM) count value and indication information corresponding to the STA device;
[0014] When it is determined that some beacon frames meet the early termination condition according to the target information, stopping receiving beacon frames includes:
[0015] Determining whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device;
[0016] If so, stop receiving beacon frames.
[0017] In one implementation, determining whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information includes:
[0018] When the length of some beacon frames reaches the maximum TIM field length, determining whether the TIM field includes the indication information corresponding to the station device;
[0019] If not, stop receiving beacon frames;
[0020] If so, determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information.
[0021] In one implementation, the method further includes:
[0022] If not, when the length of some beacon frames reaches the maximum element field length and the target information does not include the element field, stop receiving beacon frames.
[0023] In one implementation, when it is determined that some beacon frames meet the wake-up condition, controlling the station device to enter the wake-up state includes:
[0024] When it is determined that some beacon frames meet at least one of the following conditions, determining that some beacon frames meet the wake-up condition and controlling the station device to enter the wake-up state:
[0025] The TIM field includes the indication information corresponding to the station device, and the indication information is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device;
[0026] The DTIM count value in the traffic indication map DTIM in the TIM field is zero;
[0027] When the length of some beacon frames reaches the maximum element field length, the target information includes the element field;
[0028] The station device receives beacon frames sent by other access point devices.
[0029] In one implementation, when it is determined that some beacon frames meet the early termination condition, stopping receiving beacon frames includes:
[0030] Determine whether a partial beacon frame meets the complete reception condition according to the current time and the target beacon transmission time;
[0031] If so, receive the complete beacon frame, and perform time synchronization processing according to the time stamp in the complete beacon frame;
[0032] If not, stop receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition.
[0033] In one implementation, stopping receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition includes:
[0034] Determine whether the value of the enable register indicates that the early termination function is enabled;
[0035] If so, stop receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition; the value of the enable register is set by the processor of the station device.
[0036] In one implementation, the element field is a Channel Switching Announcement (CSA) element.
[0037] In one implementation, the method is applied to a network card in a station device; receiving a partial beacon frame sent by an access point device includes:
[0038] Receive a partial beacon frame sent by an access point device when the network card is in the wake-up state.
[0039] In a second aspect, an embodiment of the present application provides a processing device for beacon frames, which is applied to a station device. The device includes:
[0040] A receiving module, configured to receive a partial beacon frame sent by an access point device;
[0041] A processing module, configured to stop receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition;
[0042] The processing module is further configured to control the station device to enter the wake-up state when it is determined that the partial beacon frame meets the wake-up condition.
[0043] In one implementation, the processing module is specifically configured to:
[0044] Obtain target information in the partial beacon frame; the target information includes a Traffic Indication Map (TIM) field and / or an element field;
[0045] Stop receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition according to the target information.
[0046] In one implementation, the TIM field includes a Delivery Traffic Indication Map (DTIM) count value and indication information corresponding to the station device;
[0047] The processing module is specifically configured to:
[0048] Determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device;
[0049] If so, stop receiving beacon frames.
[0050] In one implementation, the processing module is specifically configured to:
[0051] When the length of some beacon frames reaches the maximum TIM field length, determine whether the TIM field includes the indication information corresponding to the station device;
[0052] If not, stop receiving beacon frames;
[0053] If so, determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information.
[0054] In one implementation, the processing module is further configured to:
[0055] If not, when the length of some beacon frames reaches the maximum element field length and the target information does not include an element field, stop receiving beacon frames.
[0056] In one implementation, the processing module is specifically configured to:
[0057] When it is determined that some beacon frames meet at least one of the following conditions, determine that some beacon frames meet the wake-up condition and control the station device to enter the wake-up state:
[0058] The TIM field includes the indication information corresponding to the station device, and the indication information is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device;
[0059] The Delivery Traffic Indication Map (DTIM) count value in the TIM field is zero;
[0060] When the length of some beacon frames reaches the maximum element field length, the target information includes an element field;
[0061] The station device receives a beacon frame sent by another access point device.
[0062] In one implementation, the processing module is specifically configured to:
[0063] Determine whether a partial beacon frame meets the complete reception condition according to the current time and the target beacon transmission time;
[0064] If so, receive the complete beacon frame and perform time synchronization processing according to the timestamp in the complete beacon frame;
[0065] If not, stop receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition.
[0066] In one implementation, the processing module is specifically configured to:
[0067] Determine whether the value of the enable register indicates that the early termination function is enabled;
[0068] If so, stop receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition; the value of the enable register is set by the processor of the station device.
[0069] In one implementation, the element field is a Channel Switching Announcement (CSA) element.
[0070] In one implementation, the method is applied to the network card in the station device; the receiving module is specifically configured to:
[0071] Receive the partial beacon frame sent by the access point device when the network card is in the wake-up state.
[0072] In a third aspect, an embodiment of the present application provides a chip, on which a computer program is stored. When the computer program is executed by the chip, the method according to any one of the first aspect is implemented.
[0073] In a fourth aspect, an embodiment of the present application provides a chip module, on which a computer program is stored. When the computer program is executed by the chip module, the method according to any one of the first aspect is implemented.
[0074] In a fifth aspect, an embodiment of the present application provides a station device, including: a memory and a processor;
[0075] The memory stores computer execution instructions;
[0076] The processor executes the computer execution instructions stored in the memory, so that the processor executes the method according to the first aspect.
[0077] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the method according to the first aspect.
[0078] In a seventh aspect, an embodiment of the present application provides a computer program product, including computer-executable instructions, which, when executed by a processor, cause the method according to the first aspect to be executed.
[0079] An embodiment of the present application provides a method, apparatus, device, medium, and program product for processing beacon frames. In this method, a station device can receive partial beacon frames sent by an access point device, and stop receiving beacon frames when it is determined that the partial beacon frames meet the early termination condition. The station device can control the station device to enter the wake-up state when it is determined that the partial beacon frames meet the wake-up condition. In the above manner, without receiving a complete beacon frame, when it is determined that the partial beacon frames meet the early termination condition, the reception of beacon frames can be stopped, reducing power consumption. Additionally, in the above manner, when it is determined that the partial beacon frames meet the wake-up condition, the station device is controlled to enter the wake-up state, achieving accurate wake-up of the station device. Description of the Drawings
[0080] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0081] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application;
[0082] Figure 2a A flowchart of a method for processing beacon frames provided by an embodiment of the present application Figure 1 ;
[0083] Figure 2b A schematic diagram of receiving beacon frames provided by an embodiment of the present application;
[0084] Figure 2c A schematic diagram of each stage provided by an embodiment of the present application;
[0085] Figure 2d A schematic diagram of the voltage change of a station device provided by an embodiment of the present application;
[0086] Figure 3 A second flowchart of a method for processing beacon frames provided by an embodiment of the present application;
[0087] Figure 4 A schematic diagram of the structure of a device for processing beacon frames provided by an exemplary embodiment of the present application;
[0088] Figure 5This is a schematic structural diagram of the site device provided by the embodiments of the present application. Detailed implementation manners
[0089] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0090] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned accompanying drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0091] Glossary:
[0092] Beacon Frame: In a wireless local area network, it is a management frame regularly sent according to the beacon interval. Usually, it is sent by an Access Point (AP) device to announce the existence of the wireless local area network and contains information about the network, such as the Service Set Identifier. The beacon frame can also include a timestamp. The beacon frame can also include a Traffic Indication Map (TIM) element.
[0093] Traffic Indication Map (TIM): It is a list that indicates data frames (data packets) queued on the access point device waiting to be transmitted to each Station (STA) device. After each station device receives the beacon frame, it will check the TIM field to determine whether there are data frames (data packets) waiting to be received. If so, the station device will remain awake to receive the data frame; if not, the station device will enter the sleep state (low power mode).
[0094] Delivery Traffic Indication Map (DTIM): It is a counter that indicates the arrival of the next broadcast data frame (or multicast data frame). When the DTIM count value reaches zero, the access point device will send a broadcast data frame or a multicast data frame. All station devices need to wake up when the DTIM count value reaches zero to receive possible broadcast data frames or multicast data frames.
[0095] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of this application.
[0096] Please refer to Figure 1 , this application scenario includes an access point device 10 and multiple station devices. Exemplarily, Figure 1 Three station devices are shown, namely station device 20, station device 30, and station device 40.
[0097] Among them, the access point device 10 can communicate and connect with multiple station devices.
[0098] In this application scenario, taking the station device 20 as an example. The station device 20 can enter the wake-up state from the sleep state based on the listening interval and receive the beacon frame sent by the access point device 10.
[0099] After the station device 20 receives the complete beacon frame, it needs to determine whether to control the entire station device 20 to enter the sleep state from the wake-up state according to the Traffic Indication Map (TIM) field in the beacon frame.
[0100] However, the method in the related art needs to receive the complete beacon frame, which leads to the problem of high power consumption in the method of the related art.
[0101] Based on the above technical problems, an embodiment of this application provides a method for processing a beacon frame. The station device can receive a partial beacon frame sent by the access point device and stop receiving the beacon frame when it is determined that the partial beacon frame meets the early end condition. The station device can control the station device to enter the wake-up state when it is determined that the partial beacon frame meets the wake-up condition. In the above way, there is no need to receive the complete beacon frame, and the beacon frame reception can be stopped when it is determined that the partial beacon frame meets the early end condition, reducing the power consumption. In addition, in the above way, when it is determined that the partial beacon frame meets the wake-up condition, the station device is controlled to enter the wake-up state, realizing the accurate wake-up of the station device.
[0102] Next, the technical solutions shown in this application will be described in detail through specific embodiments. It should be noted that the following several embodiments can exist independently or be combined with each other. For the same or similar content, it will not be repeated in different embodiments.
[0103] Figure 2a Flow schematic of a beacon frame processing method provided by an embodiment of this application Figure 1 . Please refer to Figure 2a , this method may include:
[0104] S201: Receive a partial beacon frame sent by an access point device.
[0105] In this embodiment, when the station device is in a sleep state (also known as the sleep mode), the access point can store and process the data frames to be sent to the station device.
[0106] The access point device can send beacon frames to multiple station devices in a broadcast manner according to the beacon interval. That is to say, the access point device can send beacon frames to multiple station devices in a broadcast manner at the target beacon transmission time (TBTT for short). It should be noted that TBTT is determined by the beacon interval.
[0107] In one implementation, the beacon frame may include a Traffic Indication Map (TIM) field.
[0108] Among them, the TIM field includes indication information corresponding to multiple station devices, and the indication information is the first indication information or the second indication information. The first indication information indicates that the access point device stores the data frame corresponding to the station device; the second indication information indicates that the access point device does not store the data frame corresponding to the station device. In one implementation, the TIM field may include multiple bits, and each bit corresponds to a station device. For a station device, when the value of the bit corresponding to the station device is 1, the access point device stores the data frame corresponding to the station device, and the station device needs to enter the wake-up state to receive the unicast data frame; when the value of the bit corresponding to the station device is 0, the access point device does not store the data frame corresponding to the station device.
[0109] In addition, the TIM field further includes a Delivery Traffic Indication Map (DTIM) count value. It should be noted that when the DTIM count value is zero, the beacon frame is a DTIM frame. When the beacon frame is a DTIM beacon frame, the access point device needs to send a broadcast data frame (or a multicast data frame). Correspondingly, each station device needs to enter the wake-up state to receive the broadcast data frame (or the multicast data frame). That is to say, the station device can enter the wake-up state when receiving a DTIM frame to receive the broadcast data frame (or the multicast data frame). It should also be noted that when the Beacon DTIM Period is 3, the access point device needs to send a DTIM beacon frame every 3 TBTTs, that is, every other two non-DTIM beacon frames (i.e., TIM beacon frames). Correspondingly, the station device needs to enter the wake-up state every 3 TBTTs to receive the broadcast data frame (or the multicast data frame).
[0110] In one implementation, the beacon frame may include an element field. In one implementation, the element field may be a Channel Switch Announcement (CSA) element. It should be noted that the CSA element is used to indicate channel switching.
[0111] In one implementation, the beacon frame may further include a timestamp.
[0112] The station device can regularly enter the wake-up state from the sleep state according to the Listen Interval. In one implementation, the Listen Interval may be N times the Beacon Interval, where N is a positive integer greater than or equal to 1.
[0113] The station device can receive some beacon frames sent by the access point device when in the wake-up state. In one implementation, the station device can receive some beacon frames in the 2.4 GHz band or the GHz band.
[0114] Figure 2b This is a schematic diagram of receiving a beacon frame provided by an embodiment of the present application. As Figure 2b shown, the station device can receive some beacon frames when Receive Enable (RX_EN) is enabled. Among them, some beacon frames include a TIM field (which can also be referred to as a TIM element).
[0115] In one implementation, the network card in the station device can enter the wake-up state from the sleep state regularly according to the listening period. When the network card is in the wake-up state, the network card can receive beacon frames sent by the access point device. By the above method of only timing the wake-up of the network card, the power consumption is reduced.
[0116] S202: When it is determined that some beacon frames meet the early termination condition, stop receiving beacon frames.
[0117] In this embodiment, the station device can determine whether some beacon frames meet the early termination condition.
[0118] The station device can stop receiving beacon frames when it is determined that some beacon frames meet the early termination condition.
[0119] In one implementation, the station device has an enable register. The value of the enable register is used to indicate whether to enable the early termination function. For example, when the value of the enable register is 1, it indicates enabling the early termination function; when the value of the enable register is 0, it indicates disabling the early termination function. Another example is that when the value of the enable register is 0, it indicates that the station device enables the early termination function; when the value of the enable register is 1, it indicates that the station device disables the early termination function.
[0120] When the station device determines that the value of the enable register indicates enabling the early termination function and determines that some beacon frames meet the early termination condition, it stops receiving beacon frames.
[0121] It should be noted that the value of the enable register can be set by the processor of the station device. More specifically, the value of the enable register can be set by software running on the processor (such as the central processing unit) of the station device.
[0122] Next, the process of the station device stopping receiving beacon frames when it is determined that some beacon frames meet the early termination condition will be described.
[0123] In one implementation, the station device obtains target information in some beacon frames. The target information includes the TIM field and / or the element field. When the station device determines that some beacon frames meet the early termination condition according to the target information, it stops receiving beacon frames.
[0124] Next, the process of the station device stopping receiving beacon frames when it is determined that some beacon frames meet the early termination condition according to the target information will be described.
[0125] In one implementation:
[0126] The TIM field includes a DTIM count value and indication information corresponding to the station device.
[0127] The station device can determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information. Here, the first indication information indicates that the access point device stores the data frame corresponding to the station device.
[0128] If so, the station device determines that some beacon frames meet the early termination condition, and the station device can stop receiving beacon frames.
[0129] If not, the station device determines that some beacon frames do not meet the early termination condition, and the station device can receive complete beacon frames.
[0130] In one implementation:
[0131] The station device can determine whether the TIM field includes the indication information corresponding to the station device when the length of some beacon frames reaches the maximum TIM field length (TIM_Max_Len).
[0132] If not, the station device determines that some beacon frames meet the early termination condition, and the station device can stop receiving beacon frames.
[0133] If so, the station device can determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information (the first indication information indicates that the access point device stores the data frame corresponding to the station device). If so, the station device determines that some beacon frames meet the early termination condition, and the station device can stop receiving beacon frames. If not, the station device determines that some beacon frames do not meet the early termination condition, and the station device can receive complete beacon frames.
[0134] In one implementation:
[0135] The station device can determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information. Here, the first indication information indicates that the access point device stores the data frame corresponding to the station device.
[0136] If so, the station device determines that some beacon frames meet the early termination condition, and the station device can stop receiving beacon frames.
[0137] Otherwise, when the length of a partial beacon frame reaches the maximum element field length and the target information does not include an element field, the station device determines that the partial beacon frame meets the early termination condition and stops receiving beacon frames. In one implementation, when the element field is a CAS element, the station device determines that the partial beacon frame meets the early termination condition and stops receiving beacon frames when the length of the partial beacon frame reaches the maximum CAS element length (CSA Max Len) and the target information does not include an element field. Additionally, when the length of a partial beacon frame reaches the maximum element field length and the target information includes an element field, the station device determines that the partial beacon frame does not meet the early termination condition and receives the complete beacon frame.
[0138] In addition, it should be noted that the element field can also be any one or more of the following:
[0139] Including an Extended Channel Switch Announcement element;
[0140] Modification of the EDCA (enhanced distributed channel access) parameters element;
[0141] Including a Quiet element;
[0142] Modification of the DSSS Parameter Set;
[0143] Modification of the CF Parameter Set element;
[0144] Modification of the HT Operation element;
[0145] Including a WideBandwidth Channel Switch element;
[0146] Inclusion of a Channel Switch Wrapper element
[0147] Inclusion of an Operating Mode Notification element
[0148] Inclusion of a Quiet Channel element
[0149] Modification of the VHT (very high throughput) Operation element
[0150] Modification of the HE (high efficient) Operation element
[0151] Insertion of a Broadcast TWT element
[0152] Inclusion of the BSS Color Change Announcement element
[0153] Modification of the MU EDCA Parameter Set element
[0154] Modification of the Spatial Reuse Parameter Set element
[0155] S203: When it is determined that some beacon frames meet the wake-up condition, control the station device to enter the wake-up state.
[0156] In this embodiment, the station device can control itself to enter the wake-up state when it is determined that some beacon frames meet the wake-up condition.
[0157] Next, the process of the station device determining whether some beacon frames meet the wake-up condition will be described.
[0158] In one implementation:
[0159] When the station device determines that some beacon frames meet at least one of the following conditions, it can determine that some beacon frames meet the wake-up condition and control the station device to enter the wake-up state:
[0160] The TIM field includes the indication information corresponding to the station device, and the indication information is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device;
[0161] The Delivery Traffic Indication Map (DTIM) count value in the TIM field is zero;
[0162] When the length of some beacon frames reaches the maximum element field length, the target information includes the element field; that is, when the length of some beacon frames reaches the maximum element field length, the station device can obtain the element field (such as the CAS element) from some beacon frames;
[0163] The station device receives the beacon frame sent by other access point devices. It should be noted that the beacon frame sent by other access point devices can be a beacon frame whose destination address is not the station device.
[0164] When the station device determines that some beacon frames meet the wake-up condition, it controls the station device to enter the wake-up state.
[0165] In one implementation, the network card can turn off the power save (PS) module when it determines that some beacon frames meet the wake-up condition, and wake up the software in the processor (such as the central processing unit) of the station device to make it run.
[0166] In addition, in one implementation, the station device can start timing when it determines that the DTIM count value in the TIM field is zero, and determine whether it receives the broadcast data frame (or multicast data frame) sent by the access point device when the timing duration reaches the waiting duration; if so, it controls the station device to enter the wake-up state. Through the above method, the energy consumption can be reduced.
[0167] In addition, Figure 2c This is a schematic diagram of each stage provided by the embodiments of the present application. Figure 2d This is a schematic diagram of the voltage change of the station device provided by the embodiments of the present application. Table 1 is the duration table of each stage.
[0168] As Figure 2c 、 Figure 2d and shown in Table 1, the station device can regularly enter the wake-up state from the sleep state according to the listening period. That is, from the sleep stage, through the stable stage and the power-on stage, it enters the wake-up state.
[0169] The station device can wait for the beacon frame sent by the access point device during the beacon frame waiting stage.
[0170] The station device can receive some beacon frames during the beacon frame receiving stage.
[0171] The station device can stop receiving beacon frames when it determines that some beacon frames meet the early termination condition. The station device can determine whether some beacon frames meet the wake-up condition.
[0172] When the station device determines that some beacon frames do not meet the wake-up condition, it can control the station device to power off, that is, re-enter the sleep state.
[0173] It should be noted that the station device determines whether some beacon frames meet the early termination condition and the wake-up condition by using the network card when the network card is in the wake-up state. Correspondingly, when the network card determines that some beacon frames do not meet the wake-up condition, it can control the network card to power off, that is, the network card re-enters the sleep state. During this process, other components of the station device (such as the processor) can be in the sleep state.
[0174] When the station device determines that some beacon frames meet the wake-up condition, it can control the station device to enter the wake-up state.
[0175] Table 1 Duration table for each stage
[0176]
[0177] In addition, it should be noted that when the station device determines that some beacon frames do not meet the early termination condition, the station device can, after obtaining the complete beacon frame, control the station device to enter the wake-up state when it determines that the complete beacon frame meets the wake-up condition.
[0178] Advantageous effects of this embodiment: In this embodiment, the station device can receive some beacon frames sent by the access point device and stop receiving beacon frames when it determines that some beacon frames meet the early termination condition. The station device can control the station device to enter the wake-up state when it determines that some beacon frames meet the wake-up condition. Through the above method, there is no need to receive the complete beacon frame, and the beacon frame reception can be stopped when it is determined that some beacon frames meet the early termination condition, reducing the power consumption. In addition, through the above method, when it is determined that some beacon frames meet the wake-up condition, the station device is controlled to enter the wake-up state, realizing the accurate wake-up of the station device.
[0179] Figure 3 It is the second flowchart of a method for processing beacon frames provided by an embodiment of the present application. Please refer to Figure 3 , the method may include:
[0180] S301: Receive partial beacon frames sent by an access point device.
[0181] In this embodiment, a station device can receive partial beacon frames sent by an access point device.
[0182] The specific implementation process is the same as that of S201 and will not be elaborated here.
[0183] S302: Determine whether the partial beacon frame meets the complete reception condition according to the current time and the target beacon transmission time.
[0184] In this embodiment, the station device can determine whether the partial beacon frame meets the complete reception condition according to the current time and the target beacon transmission time (Target Beacon Transmission Time, abbreviated as TBTT). It should be noted that TBTT is determined by the Beacon Interval.
[0185] If so, execute S303;
[0186] If not, execute S304.
[0187] In one implementation, the station device can determine whether the current time is the time after N TBTTs. Here, N is a positive integer greater than 1.
[0188] If so, the station device can determine that the beacon frame meets the complete reception condition and execute S302;
[0189] If not, the station device can determine that the beacon frame does not meet the complete reception condition and execute S303.
[0190] S303: Receive a complete beacon frame and perform time synchronization processing according to the timestamp in the complete beacon frame.
[0191] In this embodiment, the station device can receive a complete beacon frame when it determines that the beacon frame meets the complete reception condition, and perform time synchronization processing according to the timestamp in the complete beacon frame.
[0192] In addition, in one implementation, the station device can control the station device to enter the wake-up state when it determines that the complete beacon frame meets the wake-up condition.
[0193] Next, the process of the station device controlling the station device to enter the wake-up state when it determines that the complete beacon frame meets the wake-up condition will be described.
[0194] Next, the process of the station device determining whether the complete beacon frame meets the wake-up condition will be described.
[0195] In one implementation:
[0196] The station device can determine that the complete beacon frame meets the wake-up condition and control the station device to enter the wake-up state when it determines that the complete beacon frame meets at least one of the following conditions:
[0197] The TIM field includes the indication information corresponding to the station device, and the indication information is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device;
[0198] The DTIM count value of the transmission traffic indication map DTIM in the TIM field is zero;
[0199] When the search length reaches the maximum element field length, the target information includes the element field; that is, when the search length reaches the maximum element field length, the station device can obtain the element field (such as the CAS element) from the complete beacon frame;
[0200] The station device receives a beacon frame sent by another access point device. It should be noted that the beacon frame sent by another access point device can be a beacon frame whose destination address is not the station device.
[0201] S304: Stop receiving beacon frames when it is determined that the partial beacon frame meets the early termination condition.
[0202] In this embodiment, the station device can determine whether the partial beacon frame meets the early termination condition when it determines that the beacon frame does not meet the complete reception condition.
[0203] The station device can stop receiving beacon frames when it determines that the partial beacon frame meets the early termination condition.
[0204] The specific implementation process is the same as that of S202 and will not be elaborated here.
[0205] S305: Control the station device to enter the wake-up state when it is determined that the partial beacon frame meets the wake-up condition.
[0206] In this embodiment, the station device can control the station device to enter the wake-up state when it determines that the partial beacon frame meets the wake-up condition.
[0207] The specific implementation process is the same as that of S203 and will not be elaborated here.
[0208] Advantages of this embodiment: The site device can determine whether a beacon frame meets the complete reception condition based on the current time and the target beacon transmission time in advance; if so, directly receive the complete beacon frame. Through the above method, the time synchronization function (TSF) of the site device can be updated based on the timestamp in the complete beacon frame at regular intervals, so that the time of the site device is consistent with the time of the access point device, thereby ensuring the accuracy and coordination of data transmission.
[0209] Figure 4 FIG. is a schematic structural diagram of a processing device for a beacon frame provided by an exemplary embodiment of the present application. Please refer to Figure 4 , the beacon frame processing device 40 includes a receiving module 41 and a processing module 42, where
[0210] The receiving module 41 is configured to receive a partial beacon frame sent by an access point device;
[0211] The processing module 42 is configured to stop receiving the beacon frame when it is determined that the partial beacon frame meets the early end condition;
[0212] The processing module 42 is further configured to control the site device to enter the wake-up state when it is determined that the partial beacon frame meets the wake-up condition.
[0213] The beacon frame processing device provided by the embodiment of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, which will not be elaborated here.
[0214] In one implementation, the processing module 42 is specifically configured to:
[0215] Obtain target information in the partial beacon frame; the target information includes a traffic indication map TIM field and / or an element field;
[0216] Stop receiving the beacon frame when it is determined that the partial beacon frame meets the early end condition according to the target information.
[0217] The beacon frame processing device provided by the embodiment of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, which will not be elaborated here.
[0218] In one implementation, the TIM field includes a transmission traffic indication map DTIM count value and indication information corresponding to the site device;
[0219] The processing module 42 is specifically configured to:
[0220] Determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device.
[0221] If so, stop receiving beacon frames.
[0222] The beacon frame processing device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, which will not be elaborated here.
[0223] In one implementation manner, the processing module 42 is specifically configured to:
[0224] When the length of some beacon frames reaches the maximum TIM field length, determine whether the TIM field includes the indication information corresponding to the station device.
[0225] If not, stop receiving beacon frames.
[0226] If so, determine whether the DTIM count value is zero and the indication information corresponding to the station device is the first indication information.
[0227] The beacon frame processing device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, which will not be elaborated here.
[0228] In one implementation manner, the processing module 42 is further configured to:
[0229] If not, when the length of some beacon frames reaches the maximum element field length and the target information does not include the element field, stop receiving beacon frames.
[0230] The beacon frame processing device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, which will not be elaborated here.
[0231] In one implementation manner, the processing module 42 is specifically configured to:
[0232] When it is determined that some beacon frames meet at least one of the following conditions, determine that some beacon frames meet the wake-up condition, and control the station device to enter the wake-up state:
[0233] The TIM field includes the indication information corresponding to the station device, and the indication information is the first indication information; wherein, the first indication information indicates that the access point device stores the data frame corresponding to the station device.
[0234] The transmission traffic indication map DTIM count value in the TIM field is zero.
[0235] When the length of a partial beacon frame reaches the maximum element field length, the target information includes an element field;
[0236] The station device receives a beacon frame sent by another access point device.
[0237] The beacon frame processing device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects are similar, which will not be elaborated here.
[0238] In one implementation, the processing module 42 is specifically configured to:
[0239] Determine whether a partial beacon frame meets the complete reception condition according to the current time and the target beacon transmission time;
[0240] If so, receive the complete beacon frame and perform time synchronization processing according to the timestamp in the complete beacon frame;
[0241] If not, stop receiving the beacon frame when it is determined that the partial beacon frame meets the early termination condition.
[0242] The beacon frame processing device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects are similar, which will not be elaborated here.
[0243] In one implementation, the processing module 42 is specifically configured to:
[0244] Determine whether the value of the enabled register indicates that the early termination function is enabled;
[0245] If so, stop receiving the beacon frame when it is determined that the partial beacon frame meets the early termination condition; the value of the enabled register is set by the processor of the station device.
[0246] The beacon frame processing device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects are similar, which will not be elaborated here.
[0247] In one implementation, the element field is a Channel Switching Announcement (CSA) element.
[0248] The beacon frame processing device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects are similar, which will not be elaborated here.
[0249] In one implementation, the method is applied to the network card in the station device; the receiving module 41 is specifically configured to:
[0250] Receive a partial beacon frame sent by an access point device when the network card is in the wake-up state.
[0251] The beacon frame processing apparatus provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments. The implementation principles and beneficial effects are similar and will not be elaborated here.
[0252] The embodiments of the present application further provide a chip. Understandably, the chip can be a fifth-generation mobile communication technology (5th Generation Mobile Communication Technology, abbreviated as 5G) chip.
[0253] A computer program is stored on the chip. When the computer program is executed by the chip, the method as shown in the above method embodiment is implemented.
[0254] The embodiments of the present application further provide a chip module. Understandably, the chip module can be a 5G chip module.
[0255] A computer program is stored on the chip module. When the computer program is executed by the chip module, the method as shown in the above method embodiment is implemented.
[0256] Figure 5 It is a schematic structural diagram of the site device provided by the embodiments of the present application. Understandably, the site device can be a 5G chip module.
[0257] Please refer to Figure 5 , the site device 50 may include a processor 51 and a memory 52. Exemplarily, the processor 51 and the memory 52 are interconnected with each other through a bus 53.
[0258] The memory 52 stores computer-executable instructions;
[0259] The processor 51 executes the computer-executable instructions stored in the memory 52, so that the processor 51 executes the method as shown in the above method embodiment.
[0260] All or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a readable memory. When the program is executed, it executes the steps including the above method embodiments; and the foregoing memory (storage medium) includes: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppydisk), optical disc (English: optical disc) and any combination thereof.
[0261] Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method of the above method embodiment.
[0262] Accordingly, an embodiment of the present application may also provide a computer program product, including computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method shown in the above method embodiment is executed.
[0263] These computer-executable instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the process Figure 1 one process or multiple processes and / or blocks Figure 1 the functions specified in one block or multiple blocks.
[0264] These computer-executable instructions may also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide for implementing the process Figure 1 one process or multiple processes and / or blocks Figure 1 the steps of the functions specified in one block or multiple blocks.
[0265] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these changes and modifications.
[0266] In the present application, the term "including" and its variants may refer to non-limiting inclusion; the term "or" and its variants may refer to "and / or". In the present application, terms such as "first" and "second" are used to distinguish similar objects and do not necessarily have to describe a specific order or sequence. In the present application, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may indicate: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
Claims
1. A method for processing a beacon frame, characterized in that: Applied to a site device, the method comprises: receiving a portion of beacon frames sent by an access point device; When it is determined that the part of beacon frames meets the early termination condition, stop receiving beacon frames; When it is determined that the part of beacon frames meets the wake-up condition, controlling the site device to enter the wake-up state; The step of stopping receiving beacon frames when it is determined that the part of beacon frames meets the early termination condition includes: Acquire a transmission traffic indication map DTIM count value and indication information corresponding to the site device in the partial beacon frame; Determine whether the DTIM count value is zero and the indication information corresponding to the site device is first indication information; wherein the first indication information indicates that the access point device stores the data frame corresponding to the site device; If yes, stop receiving beacon frames.
2. The method according to claim 1, characterized in that The determining whether the DTIM count value is zero and the indication information corresponding to the site device is the first indication information includes: In a case where the length of the partial beacon frame reaches the maximum TIM field length, determining whether the TIM field includes indication information corresponding to the site device; If not, stop receiving beacon frames; If so, determine whether the DTIM count value is zero and whether the indication information corresponding to the site device is the first indication information.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining an element field in the partial beacon frame; If not, when the length of the partial beacon frame reaches the maximum element field length and the target information does not include the element field, the beacon frame is stopped from being received.
4. The method according to any one of claims 1 to 3, characterized in that: When it is determined that the part of beacon frames meets the wake-up condition, controlling the site device to enter the wake-up state includes: In the case where it is determined that the part of the beacon frames satisfies at least one of the following conditions, it is determined that the part of the beacon frames satisfies the wake-up condition, and the site device is controlled to enter the wake-up state: The TIM field includes indication information corresponding to the site device, and the indication information is first indication information; wherein the first indication information indicates that the access point device stores the data frame corresponding to the site device; The transmission traffic indication map DTIM count value in the TIM field is zero; In a case where the length of the partial beacon frame reaches the maximum element field length, the target information includes the element field; The station device receives a beacon frame sent by other access point devices.
5. The method according to any one of claims 1 to 3, characterized in that: The method of stopping receiving beacon frames when it is determined that the part of beacon frames meets the early termination condition further includes: Determining whether the partial beacon frame meets the complete reception condition according to the current time and the target beacon transmission time; If yes, receiving the complete beacon frame and performing time synchronization according to the timestamp in the complete beacon frame; If not, then when it is determined that the part of beacon frames meets the early termination condition, the receiving of beacon frames is stopped.
6. The method according to any one of claims 1 to 3, characterized in that: The step of stopping receiving beacon frames when it is determined that the part of beacon frames meets the early termination condition includes: Determine whether the value of the enable register indicates that the early end function is enabled; If so, when it is determined that the part of beacon frames meets the early termination condition, the beacon frames are stopped from being received; the value of the enable register is set by the processor of the site device.
7. The method according to claim 3, characterized in that The element field is the channel switch announcement CSA element.
8. The method according to any one of claims 1 to 3, characterized in that: The method is applied to a network card in a site device; the receiving of a portion of a beacon frame sent by an access point device comprises: When the network card is in the awake state, the part of the beacon frames sent by the access point device is received.
9. A beacon frame processing device, characterized in that: Applied to site equipment, the device comprises: A receiving module, used for receiving part of the beacon frames sent by the access point device; A processing module, configured to stop receiving beacon frames when it is determined that the part of beacon frames meets the early termination condition; The processing module is further configured to control the site device to enter a wake-up state when it is determined that the part of the beacon frames meets the wake-up condition; The processing module is specifically used to obtain the transmission traffic indication map DTIM count value and the indication information corresponding to the site device in the part of the beacon frames; determine whether the DTIM count value is zero and the indication information corresponding to the site device is the first indication information; wherein the first indication information indicates that the access point device stores the data frame corresponding to the site device; if so, stop receiving the beacon frame.
10. A site device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product, characterized in that The method comprises computer-executable instructions, which, when executed by a processor, enable the method according to any one of claims 1 to 8 to be performed.
Citation Information
Patent Citations
Data transmission method and device
CN113286330A