Method, device, wireless terminal and storage medium for monitoring wireless links
By determining the position offset between the synchronization information and the wake-up indication mark in the beacon frame in the wireless terminal, the wireless link is woken up in advance, which solves the problem of high power consumption when the wireless link monitors the beacon frame and achieves lower power consumption. power consumption and greater efficiency.
Patent Information
- Application Number
- CN202110087580.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-01-22
AI Technical Summary
In the wireless link between the wireless terminal and the router, the power consumption during the process of monitoring beacon frames is high, especially when there is no data interaction for a long time. Frequent wake-up and sleep states lead to an increase in current power consumption.
By determining the position offset information between the synchronization information and the wake-up indication mark in the beacon frame, the position of the wake-up indication mark is determined in advance, thereby starting to monitor the beacon frame at the wake-up indication mark, delaying the starting time of the listening cycle, and reducing the number of wireless The monitoring time of the link reduces power consumption.
It effectively reduces the power consumption of wireless links listening to beacon frames, reduces the current consumption caused by frequent switching of wireless links between sleep and wake-up states, and improves battery life and device efficiency.
Smart Images

Figure CN114828168B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a method, device, wireless terminal and storage medium for monitoring a wireless link. Background Art
[0002] After the wireless terminal is connected to the router in the local area network, the wireless terminal and the router do not need to exchange data most of the time. During the time when there is no data exchange between the wireless terminal and the router, the router will periodically send a beacon frame (Beacon) to the wireless terminal through the access point (AP). The Beacon is used to indicate whether the router has downlink data that needs to be sent to the wireless terminal. Therefore, in order to save power consumption, the wireless link of the wireless terminal is always in a dormant state. Only when a Beacon indicating that the router has downlink data that needs to be sent to the wireless terminal is monitored, the wireless terminal will wake up the wireless link to exchange data with the router based on the wireless link. Summary of the invention
[0003] The embodiment of the present application provides a method, device, wireless terminal and storage medium for monitoring a wireless link in a wireless terminal, which can reduce the power consumption of monitoring a wireless link. The technical solution is as follows:
[0004] In one aspect, a method for monitoring a wireless link in a wireless terminal is provided, the method comprising:
[0005] determining a position of synchronization information in the beacon frame based on predetermined synchronization information;
[0006] Determine the position of the wake-up indication mark according to the position of the synchronization information and the position offset information, wherein the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark; and
[0007] Based on the position of the wake-up indication marker, the wake-up indication marker is monitored.
[0008] On the other hand, a device for monitoring a wireless link in a wireless terminal is provided, the device comprising a configuration module, a timing module, a synchronization module, a receiving module and a decision module;
[0009] The configuration module is used to configure the target time to the timing module based on the position of the synchronization information in the beacon frame; configure the synchronization information of the synchronization module to the predetermined synchronization information based on the predetermined synchronization information; and configure the decision module based on the wake-up indication identifier;
[0010] The timing module is used to wake up the wireless link at a target time based on the configuration of the configuration module;
[0011] The synchronization module is used to determine synchronization information in a received beacon frame based on the predetermined synchronization information;
[0012] The receiving module is configured to start receiving the beacon frame from the position of the synchronization information; and
[0013] The decision module is used to determine whether to wake up the wireless link based on the wake-up indication identifier.
[0014] In another aspect, a device for monitoring a wireless link in a wireless terminal is provided, the device comprising:
[0015] A first determining module, configured to determine a position of synchronization information in a beacon frame based on predetermined synchronization information;
[0016] a second determining module, configured to determine the position of the wake-up indication mark according to the position of the synchronization information and position offset information, wherein the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark; and
[0017] The monitoring module is used to monitor the wake-up indication mark based on the position of the wake-up indication mark.
[0018] On the other hand, a wireless terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the method for monitoring a wireless link as described in the above aspects.
[0019] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by the processor to implement the method for monitoring a wireless link as described in the above aspect.
[0020] On the other hand, a computer program product is provided. The computer program product stores at least one program code. The at least one program code is loaded and executed by a processor to implement the method for monitoring a wireless link described in the above aspect.
[0021] In an embodiment of the present application, the beacon frame includes a wake-up indicator and synchronization information located before the wake-up indicator. Therefore, when monitoring the beacon frame, the position of the wake-up indicator can be determined based on the position and position offset information of the synchronization information, and the beacon frame is monitored at the position where the wake-up indicator is located, so there is no need to monitor the information before the synchronization information in the beacon frame, which delays the start time of each monitoring cycle when monitoring the wireless link, reduces the duration of monitoring the beacon frame, and thus reduces the power consumption of the wireless link monitoring the beacon frame. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the structure of a wireless terminal provided by an exemplary embodiment of the present application is shown;
[0023] Figure 2 A schematic diagram of monitoring a beacon frame according to an exemplary embodiment of the present application is shown;
[0024] Figure 3 A flowchart of a method for monitoring beacon frames shown in an exemplary embodiment of the present application is shown;
[0025] Figure 4 A schematic diagram showing a frame structure of a beacon frame shown in an exemplary embodiment of the present application;
[0026] Figure 5 A block diagram of an apparatus for monitoring a wireless link according to an exemplary embodiment of the present application is shown;
[0027] Figure 6 A flowchart of a method for monitoring a wireless link is shown in an exemplary embodiment of the present application;
[0028] Figure 7 A schematic diagram of monitoring a beacon frame according to an exemplary embodiment of the present application is shown;
[0029] Figure 8 A schematic diagram of monitoring a beacon frame according to an exemplary embodiment of the present application is shown;
[0030] Fig. 9 A structural block diagram of a device for monitoring a wireless link provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0032] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0033] Please refer to Figure 1, which shows a block diagram of a wireless terminal 100 provided by an exemplary embodiment of the present application. In some embodiments, the wireless terminal 100 is a wireless terminal such as a smart phone, a tablet computer, a wearable device, etc. that can access a wireless local area network as a wireless station. The wireless terminal 100 in the present application includes at least one or more of the following components: a processor 110, a memory 120, and a wireless link 130.
[0034] In some embodiments, the processor 110 includes one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire wireless terminal 100, and executes various functions and processes data of the wireless terminal 100 by running or executing program codes stored in the memory 120, and calling data stored in the memory 120. In some embodiments, the processor 110 is implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a separate chip.
[0035] In some embodiments, the processor 110 is used to control the working condition of the wireless link 130, and accordingly, the processor 110 is a processor integrated with a wireless fidelity (Wireless Fidelity, Wi-Fi) chip. In some embodiments, the Wi-Fi chip is a core with the ability to process a single Wi-Fi. In other embodiments, the Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual concurrent (Dual Band Dual Concurrent, DBDC) chip, or a dual-band synchronous (Dual Band Simultaneous, DBS) chip, etc. In the embodiments of the present application, this is not specifically limited.
[0036] In some embodiments, the memory 120 includes a random access memory (RAM), and in some embodiments, the memory 120 includes a read-only memory (ROM). In some embodiments, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 can be used to store program codes. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book) created according to the use of the wireless terminal 100, etc.
[0037] In some embodiments, the memory 120 stores the identifier of the network node connected to the wireless link 130 , the identifier of the wireless link, etc.
[0038] The wireless link 130 is used to connect to an access point (AP) and receive downlink data sent by the AP. The wireless link is a wireless link in the 2.4 GHz frequency band.
[0039] In some embodiments, the wireless terminal 100 further includes a display screen. The display screen is a display component for displaying a user interface. In some embodiments, the display screen is a display screen with a touch function, through which a user can use a finger, a touch pen, or any other suitable object to perform touch operations on the display screen. In some embodiments, the display screen is generally arranged on the front panel of the wireless terminal 100. In some embodiments, the display screen is designed to be a full screen, a curved screen, a special-shaped screen, a double-sided screen, or a folding screen. In some embodiments, the display screen is also designed to be a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
[0040] In addition, those skilled in the art will appreciate that the structure of the wireless terminal 100 shown in the above drawings does not limit the wireless terminal 100, and the wireless terminal 100 includes more or fewer components than shown, or combines certain components, or arranges components differently. For example, the wireless terminal 100 also includes components such as a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, and a Bluetooth module, which will not be described in detail here.
[0041] After the wireless terminal is connected to the AP, there is no need for data exchange between the wireless terminal and the AP most of the time. During the time when there is no data exchange between the wireless terminal and the AP, the AP will periodically send a beacon frame (Beacon) to the wireless terminal. The Beacon is used to indicate whether the AP has downlink data to send to the wireless terminal. Therefore, in order to save power, the wireless link of the wireless terminal is always in a dormant state. Only when the wireless terminal monitors the Beacon that indicates that the router has downlink data to send to the wireless terminal, the wireless terminal will wake up the wireless link to exchange data with the router based on the wireless link. See Figure 2 The wireless terminal generates a receiving current at the time corresponding to each beacon frame, and receives the beacon frame through the receiving current. It can be seen that the power consumption of the wireless link in the wireless terminal depends on three factors, namely, the sleep current of the wireless link in the sleep state, the receiving current when receiving Beacon, and the receiving processing time of Beacon.
[0042] For example, let's take an AP with a beacon frame transmission period of 100ms as an example. The AP sends a beacon frame to the wireless link at the beacon frame transmission time (TBTT, Target Beacon Transmission Time) every 100ms. Correspondingly, the wireless terminal wakes up the wireless link to receive the beacon frame at the TBTT. The average current power consumption of the wireless link is related to the current size of the wireless link and the duration of each state under different link states, see formula 1.
[0043] Formula 1:
[0044] Current_avg=(Current_bottom*(100-T_beacon)+Current_rx*T_beacon) / 100
[0045] Among them, Current_avg is the average current power consumption of the wireless link in a beacon frame receiving cycle; Current_bottom is the current power consumption of the wireless link in the sleep state, Current_rx is the current power consumption of the wireless link in the wake-up state, and T_beacon is the wake-up duration of the wireless link in a beacon frame receiving cycle. Since the receiving current of the wireless link is usually more than ten times or even hundreds of times higher than the current in the sleep state, in the same beacon frame receiving cycle, the larger T_beacon is, the higher Current_avg is.
[0046] The system on chip (SOC) of the Wi-Fi chip includes a CPU, a media access control sublayer protocol layer / physical protocol layer (MAC / PHY, MAC, Media Access Control; PHY, Physical Layer) chip and a wireless link, etc. In the process of receiving and sending data, it is necessary to cooperate between these chips and the wireless link. Usually, the reception process of the beacon frame is implemented through the following steps, including: the wireless terminal powers on the wireless link at a fixed time before TBTT through a hardware circuit to wake up the wireless link. After the wireless link is awakened, it waits for a period of time to reach a stable state, and receives the beacon frame in a stable state. The PHY header in the beacon frame is detected and demodulated to obtain the length of the beacon frame and the starting point of the MAC header, and the beacon frame is demodulated based on the length of the beacon frame and the starting point of the MAC header.
[0047] In the related art, in order to reduce the energy consumption of receiving beacon frames, the method of waking up the wireless link by software is improved, and the process of waking up the wireless link regularly and parsing the beacon frame is set in the hardware digital circuit (HW). Figure 3 , it wakes up itself and the wireless link regularly through the MAC / PHY digital circuit. After receiving the beacon frame, it parses the PHY header and MAC header in the beacon to determine whether the beacon frame contains a wake-up indicator for indicating the data to be sent. If the wake-up indicator indicates that there is no downlink data to be sent, the wireless link will not be woken up, the HW and wireless link will be closed again, and the system will return to sleep mode. The CPU does not need to be involved in this process. Therefore, compared with the software solution, it saves the extra CPU current power consumption caused by the CPU waking up the wireless link regularly and parsing the beacon frame.
[0048] In the above-mentioned related technologies, the wireless link is awakened and the beacon frame is parsed by hardware. In this process, the HW is awakened regularly before TBTT. Among them, the transmission rate of the wireless beacon frame (Wi-Fi Beacon) in the 2.4GHz frequency band usually adopts 1Mbps in the 802.11b standard, and the modulation method is binary phase shift keying (BPSK). Among them, the PHY header and the MAC payload both use the same modulation method. See Figure 4 , Figure 4 The frame structure of the beacon frame with a transmission rate of 1Mbps in the 802.11b standard. The frame structure includes a physical layer convergence protocol preamble (PLCP preamble, Physical Layer Convergence Protocol preamble), a physical layer convergence protocol header (PLCP header) and a sublayer service data unit (PSDU, Physical Service Data Unit). The PLCP preamble includes a synchronization structure (Synchronization) and a frame start delimiter (SFD, Start of Frame Delimiter); the PLCP header includes a signal (signal), a service (service), a length (length) and a check code (CRC, Cyclic Redundancy Check); the PSDU includes a MAC header (Media Access Control header), a fixed part (fixed part), a wake-up indication mark (DTIM, Delivery Traffic indication) and other information (other IE).
[0049] During the parsing process, the PHY header is used as the starting position, and the received beacon frame is parsed according to the pre-defined standard synchronization information to determine the position of the PLCP preamble in the beacon frame, thereby determining the starting position of the PHY header. The position of the wake-up indicator is determined according to the starting position of the PHY header and the length of different frame sequences in the beacon frame, and whether to wake up the wireless link is determined based on the data of the position of the wake-up indicator.
[0050] In the above-mentioned related technologies, it is necessary to receive a complete beacon frame and then parse the complete beacon frame. The process of receiving and parsing the beacon frame consumes a lot of power.
[0051] In an embodiment of the present application, the beacon frame includes a wake-up indicator and synchronization information located before the wake-up indicator. Therefore, when monitoring the beacon frame, the position of the wake-up indicator can be determined based on the position and position offset information of the synchronization information, and the beacon frame is monitored at the position where the wake-up indicator is located, so there is no need to monitor the information before the synchronization information in the beacon frame, which delays the start time of each monitoring cycle when monitoring the wireless link, reduces the duration of monitoring the beacon frame, and thus reduces the power consumption of the wireless link monitoring the beacon frame.
[0052] Please refer to Figure 5 , which shows a structural block diagram of a device for monitoring a wireless link in a wireless terminal provided by an embodiment of the present application. The device for monitoring a wireless link can be implemented as all or part of the processor 110 through software, hardware, or a combination of both. The device includes:
[0053] Configuration module, timing module, synchronization module, receiving module and decision module;
[0054] The configuration module is used to configure the target time to the timing module based on the position of the synchronization information in the beacon frame; based on the predetermined synchronization information, configure the synchronization information of the synchronization module to the predetermined synchronization information; and configure the decision module based on the wake-up indication identifier;
[0055] The timing module is used to wake up the wireless link at a target time based on the configuration of the configuration module;
[0056] The synchronization module is used to determine the synchronization information in the received beacon frame based on the predetermined synchronization information; the receiving module is used to start receiving the beacon frame from the position of the synchronization information; and the decision module is used to determine whether to wake up the wireless link based on the wake-up indication identifier.
[0057] In some embodiments, the configuration module is also used to determine the position of the synchronization information in the beacon frame based on predetermined synchronization information; determine the position of the wake-up indication mark according to the position and position offset information of the synchronization information, and the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark; and determine the target time based on the position offset.
[0058] In an embodiment of the present application, the beacon frame includes a wake-up indicator and synchronization information located before the wake-up indicator. Therefore, when monitoring the beacon frame, the position of the wake-up indicator can be determined based on the position and position offset information of the synchronization information, and the beacon frame is monitored at the position where the wake-up indicator is located, so there is no need to monitor the information before the synchronization information in the beacon frame, which delays the start time of each monitoring cycle when monitoring the wireless link, reduces the duration of monitoring the beacon frame, and thus reduces the power consumption of the wireless link monitoring the beacon frame.
[0059] Please refer to Figure 6 , which shows a flowchart of a method for waking up a wireless link shown in an exemplary embodiment of the present application. The execution subject in the embodiment of the present application may be the terminal 100, or the processor 110 in the terminal 100 or the operating system in the terminal 100. This embodiment is described by taking the execution subject as the terminal 100 as an example. The method includes:
[0060] Step 601: The wireless terminal determines the location of the synchronization information in the beacon frame by pre-determining the synchronization information.
[0061] Among them, the synchronization information is adjacent to the wake-up indication mark, the synchronization information is before the wake-up indication mark, and for the beacon frame sent by each access node, the position offset information between the synchronization information and the wake-up indication mark in the beacon frame is fixed. The predetermined synchronization information is a sequence with fixed content. For example, the predetermined synchronization information includes any fixed field in the media access control sublayer protocol layer (MAC, Media Access Control) field or the physical protocol layer header (PHY header, PHY, Physical Layer). In some embodiments, the predetermined synchronization information is a sequence carrying specific information of the access node. For example, the predetermined synchronization information is a service set identifier (SSID, Service Set Identifier). That is, the predetermined synchronization information is the node identifier of the access node. For example, the predetermined synchronization information is the wireless name of the router connected by the wireless link, etc. In some embodiments, the predetermined synchronization information is a sequence carrying fixed information of the access node and a sequence of other information. For example, the predetermined synchronization information is SSID+supported rate (supported rate). In this implementation, by increasing the length of the predetermined synchronization information, the accuracy of detecting the predetermined synchronization information is improved. The wake-up indication mark is used to indicate the situation of downlink data to be sent in the network node. For example, the wake-up indication identifier is a TIM IE (Traffic Indication Map Element) field or a DTIM (Delivery Traffic Indication) field, etc. It should be noted that different types of wake-up indication identifiers are located at the same position in the frame structure of the beacon frame.
[0062] In this step, the wireless terminal configures the target time in the period of monitoring the beacon frame based on the position of the synchronization information. Accordingly, the wireless link of the wireless terminal includes a configuration module, a timing module, a synchronization module, a receiving module and a judgment module. Figure 5The wireless terminal configures the timing module, synchronization module and decision module through the configuration module in the hardware circuit. The wireless terminal configures the timing module through the configuration module so that the timing module can wake up the wireless link at the target time and receive the beacon frame through the wireless link.
[0063] In this step, the wireless terminal determines the location of the synchronization information based on the matching degree between each sequence in the monitoring information and the predetermined synchronization information. The process is implemented by the following steps (A1)-(A2), including:
[0064] (A1) The wireless terminal determines the matching degree between the preset synchronization information and the sequence in the monitoring information.
[0065] The matching degree between the predetermined synchronization information and the sequence in the monitoring information is determined by the similarity between the predetermined synchronization information and each sequence. The wireless terminal performs a correlation operation on the received monitoring information and the predetermined synchronization information to obtain the matching degree between the predetermined synchronization information and each sequence in the monitoring information. Each sequence in the monitoring information is a sequence determined based on the structure of the beacon frame.
[0066] (A2) The wireless terminal determines the sequence with the highest matching degree as the synchronization information, and determines the position of the synchronization information.
[0067] The wireless terminal determines the sequence with the highest matching degree with the predetermined synchronization information from the multiple sequences. For example, the wireless terminal sorts the matching degrees corresponding to the multiple sequences to obtain a sorting result, and determines the sequence with the highest matching degree with the predetermined synchronization information from the sorting result.
[0068] The wireless terminal determines the sequence with the highest matching degree as the synchronization information, and determines the position of the sequence with the highest matching degree as the position of the synchronization information.
[0069] In this implementation, the position of the synchronization information is determined by determining the degree of match between each sequence in the monitoring information and the synchronization information, and then the position of the synchronization information in the monitoring information is determined to complete the synchronization, thereby ensuring that the wireless terminal can determine the position of the wake-up indication mark through the monitored monitoring information.
[0070] The wireless terminal determines the synchronization information corresponding to the current wireless node based on the data interaction between the wireless terminal and the access node, and configures the timing module of the wireless link based on the synchronization information, so that the wireless link can receive the wake-up indication identifier in the beacon frame based on the synchronization information. The wireless terminal starts to receive the beacon frame from the position of the synchronization information. The process of receiving the beacon frame is implemented by the following steps (1)-(4), including:
[0071] (1) The wireless terminal determines the amount of data before the synchronization information in the beacon frame.
[0072] The wireless terminal determines the amount of data before the synchronization information in the beacon frame based on the frame structure of the beacon frame. The amount of data is the number of bytes in the sequence before the synchronization information in the beacon frame. After establishing a connection with the access node, the wireless terminal receives the beacon frame sent by the access node, parses the beacon frame, and determines the amount of data before the synchronization information based on the parsing result obtained.
[0073] (2) The wireless terminal determines the transmission time required to receive the data volume based on the data volume and the transmission rate of the wireless link.
[0074] In this step, the wireless terminal determines the quotient of the data volume and the transmission rate as the transmission time required to receive the data volume.
[0075] (3) The wireless terminal delays the start time of the monitoring period by the transmission duration to obtain the target time.
[0076] The target time is the new start time of monitoring the beacon frame. The wireless terminal determines the monitoring period of monitoring the beacon frame based on the original monitoring strategy, delays the start time of each monitoring period by the transmission duration, and obtains the target time of each monitoring period of monitoring the beacon frame.
[0077] In this step, the wireless terminal delays the start time of different beacon frame monitoring periods by the transmission duration, thereby delaying the time for the wireless terminal to wake up the wireless link.
[0078] (4) The wireless terminal receives the beacon frame starting from the target time.
[0079] One point that needs to be explained is that different access nodes correspond to different synchronization information, and the distance between the synchronization information and the wake-up indication mark is also different. Prior to this step, the wireless terminal configures the synchronization information of the access node through the configuration module. Accordingly, when the wireless terminal accesses the access node for the first time, it stores the synchronization information corresponding to the beacon frame of the access node. After establishing a connection with the access node, the predetermined synchronization information corresponding to the access node is obtained according to the connected access node, and the timing module is configured based on the predetermined synchronization information through the configuration model, so that the timing module can receive the monitoring information at the target time of each monitoring cycle.
[0080] After each connection to an access node, the wireless terminal configures the target time for monitoring the access node. Each time the wireless terminal connects to an access node, the target time for monitoring the access node is determined through steps (1)-(3). In other embodiments, the configuration process of the timing module of the wireless terminal is performed when the wireless circuit establishes a connection with the access node for the first time. After the configuration is completed, the wireless terminal stores the corresponding relationship between the target time and the access node. When the wireless terminal connects to the access node next time, the target time corresponding to the node identifier is determined according to the node identifier of the access node. Accordingly, when the wireless terminal establishes a connection with the access node, the wireless terminal configures the starting time of the beacon frame monitoring period corresponding to the access node. The wireless terminal stores the corresponding relationship between the access node and the target time locally. After each connection to the access point, it is determined whether the access point is accessed for the first time. If it is the first access, the steps (1)-(3) are executed; if it is not the first access, the starting time of the monitoring period corresponding to the access point is determined according to the corresponding relationship between the access point and the target time.
[0081] Another point that needs to be explained is that the wireless link is a wireless link in the 2.4 GHz frequency band. Among them, the wireless link is a wireless link in a single Wi-Fi scenario, or the wireless link is a wireless link in a dual Wi-Fi scenario. In the embodiment of the present application, this is not specifically limited. Among them, the dual Wi-Fi scenario refers to a scenario in which a wireless link connects two access nodes through two wireless links at the same time. The two access nodes are access nodes in the same router, or the two access nodes are access nodes in different routers. In the embodiment of the present application, this is not specifically limited. In addition, in the dual Wi-Fi scenario, the frequency bands of the two wireless links of the wireless terminal are the same or different, for example, both wireless links are wireless links in the 2.4 GHz frequency band; or, of the two wireless links, one wireless link is a wireless link in the 2.4 GHZ frequency band, and the other wireless link is a wireless link in the 5 GHz, 6 GHz, or other frequency bands.
[0082] Step 602: The wireless terminal determines the position of the wake-up indication mark according to the position and position offset information of the synchronization information.
[0083] The position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark.
[0084] The offset between the wake-up indication indicator and the synchronization information in the monitoring information is fixed. In this step, the wireless terminal determines the wake-up indication identifier in the monitored monitoring information based on the position and position offset information of the synchronization information.
[0085] The position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark.
[0086] The wireless terminal uses the synchronization information as a starting point in the monitored information and shifts the position offset corresponding to the position offset information backward in the monitored information to obtain the position of the wake-up indication mark.
[0087] Prior to this step, when the wireless terminal establishes a connection with the access node, it parses the beacon frame sent by the access node to determine the node identifier of the access node and the position of the wake-up indication identifier in the beacon frame. The wireless terminal determines the position offset between the position of the wake-up indication identifier and the position of the synchronization information, and records the position offset as the position offset information of the access node. In this step, the wireless terminal determines the position offset information corresponding to the node identifier from the node identifier and the position offset information based on the node identifier of the currently connected access node. Figure 5 The configuration module configures the decision module according to the location offset information corresponding to the access node. In this step, the wireless terminal determines the location of the wake-up indication mark based on the location offset information corresponding to the access node through the decision module.
[0088] The position offset information is the sum of the length of the synchronization information and the length of other information between the synchronization information and the wake-up indicator. For example, the length of the synchronization information in the beacon frame is Tag length: 16; the lengths of other information after the synchronization information are Tag length: 8 and Tag length: 1, then the value offset information is determined to be 25.
[0089] Step 603: The wireless terminal monitors the wake-up indication marker based on the position of the wake-up indication marker.
[0090] After entering the sleep state, the wireless terminal wakes up regularly in each monitoring cycle to receive the beacon frame sent by the access node.
[0091] In this step, the wireless terminal determines the start time of each listening cycle as the target time. That is, the wireless terminal controls the wireless link to wake up at the target time of each listening cycle, receives the listening information in the beacon frame from the target time of the listening cycle, and determines whether to wake up the wireless link based on the wake-up indication in the monitored listening information. This process is implemented by the following steps, including:
[0092] (1) The wireless terminal monitors through the wireless link and obtains monitoring information.
[0093] The monitoring information is a partial sequence in a beacon frame. In this step, the wireless link wakes up the wireless link at a target time corresponding to each monitoring cycle, receives a partial sequence in a beacon frame, and obtains the monitoring information.
[0094] It should be noted that the monitoring information is part of the information in the beacon frame. In some embodiments, in response to monitoring the wake-up indication mark, the wireless terminal stops monitoring. Figure 7 In this implementation, the wireless terminal is in a sleep state before the target time and does not receive the information corresponding to the target time in the beacon frame. The wireless link is awakened at the target time and receives part of the monitoring information in the beacon frame. After receiving the wake-up indication mark in the beacon frame, it stops monitoring the beacon frame corresponding to the current monitoring cycle and continues to sleep until the next monitoring cycle.
[0095] In this implementation, when the wireless terminal monitors the beacon frame, it does not monitor the monitoring information before the target time, and stops monitoring after monitoring the wake-up indication mark. In this way, not only does it not need to wake up the wireless link before the target time, but it also enters the sleep state after monitoring the wake-up indication mark, further saving the time for monitoring the beacon frame, and thereby reducing the power consumption of monitoring the beacon frame.
[0096] In some embodiments, in response to monitoring the wake-up indication identifier, the wireless terminal continues to monitor until the current monitoring cycle is completed. Figure 8 In this implementation, the wireless terminal is in a sleep state before the target time, and does not receive the information corresponding to the target time in the beacon frame. The wireless link is awakened at the target time and receives part of the monitoring information in the beacon frame until the monitoring period ends. In this implementation, when the wireless terminal monitors the beacon frame, it does not monitor the monitoring information before the target time. In this way, the wireless link does not need to be awakened before the target time, which saves the time of monitoring the beacon frame and reduces the power consumption of monitoring the beacon frame.
[0097] (2) The wireless terminal determines the location of the wake-up indication mark from the monitoring information.
[0098] (3) The wireless terminal parses the wake-up indication identifier from the monitoring information based on the location.
[0099] In this step, the wireless terminal parses the position of the monitoring information to obtain a wake-up indication mark.
[0100] In this implementation, the wireless terminal sets synchronization information so that it can re-determine the starting time for monitoring the beacon frame based on the location of the synchronization information, and monitor the beacon frame based on the new beacon frame starting time, thereby monitoring the complete beacon frame, reducing the duration of monitoring the beacon frame, and thereby reducing the power consumption of the wireless link monitoring the beacon frame.
[0101] One point that needs to be explained is that after parsing the wake-up indication identifier, if the wake-up indication identifier is used to indicate that the wireless link needs to be awakened, the wireless terminal wakes up the wireless link and sends a wake-up indication message to the access node connected to the wireless link, indicating that the wireless link has been awakened. If the wake-up indication identifier is used to indicate that the wireless link does not need to be awakened, after the wireless link enters the sleep state, it continues to monitor the beacon frame in the next monitoring cycle.
[0102] In an embodiment of the present application, the beacon frame includes a wake-up indicator and synchronization information located before the wake-up indicator. Therefore, when monitoring the beacon frame, the position of the wake-up indicator can be determined based on the position and position offset information of the synchronization information, and the beacon frame is monitored at the position where the wake-up indicator is located, so there is no need to monitor the information before the synchronization information in the beacon frame, which delays the start time of each monitoring cycle when monitoring the wireless link, reduces the duration of monitoring the beacon frame, and thus reduces the power consumption of the wireless link monitoring the beacon frame.
[0103] Please refer to Fig. 9 , which shows a structural block diagram of a device for monitoring a wireless link in a wireless terminal provided by an embodiment of the present application. The device for monitoring a wireless link can be implemented as all or part of the processor 110 through software, hardware, or a combination of both. The device includes:
[0104] A first determining module 901 is used to determine the position of synchronization information in a beacon frame based on predetermined synchronization information;
[0105] A second determining module 902, configured to determine the position of the wake-up indication mark according to the position of the synchronization information and the position offset information, wherein the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark; and
[0106] The monitoring module 903 is used to parse the wake-up indication mark.
[0107] In some embodiments, the first determining module 901 includes:
[0108] A first determining unit, configured to determine a matching degree between the predetermined synchronization information and a sequence in the monitoring information; and
[0109] The second determining unit is used to determine the sequence with the highest matching degree as the synchronization information, and determine the position of the synchronization information.
[0110] In some embodiments, the apparatus further comprises:
[0111] The receiving module is used to start receiving the beacon frame from the position of the synchronization information.
[0112] In some embodiments, the receiving module includes:
[0113] A third determining unit, configured to determine the amount of data before the synchronization information in the beacon frame;
[0114] a fourth determining unit, configured to determine a transmission duration required to receive the amount of data based on the amount of data and a transmission rate of the wireless link;
[0115] an extension unit, configured to extend the start time of the monitoring period by the transmission duration to obtain the target time; and
[0116] The receiving unit is used to receive the beacon frame starting from the target time.
[0117] In some embodiments, the monitoring module 903 is further configured to stop monitoring in response to monitoring the wake-up indication mark; or,
[0118] The monitoring module 903 is further configured to continue monitoring in response to monitoring the wake-up indication identifier until the current monitoring cycle is completed.
[0119] In some embodiments, the predetermined synchronization information includes any fixed field in a MAC field or a PHY header.
[0120] In some embodiments, the wake-up indication identifier includes a TIM IE field.
[0121] In some embodiments, the synchronization information is adjacent to the wake-up indication mark.
[0122] In an embodiment of the present application, the beacon frame includes a wake-up indicator and synchronization information located before the wake-up indicator. Therefore, when monitoring the beacon frame, the position of the wake-up indicator can be determined based on the position and position offset information of the synchronization information, and the beacon frame is monitored at the position where the wake-up indicator is located, so there is no need to monitor the information before the synchronization information in the beacon frame, which delays the start time of each monitoring cycle when monitoring the wireless link, reduces the duration of monitoring the beacon frame, and thus reduces the power consumption of the wireless link monitoring the beacon frame.
[0123] The embodiment of the present application further provides a computer-readable medium, wherein the computer-readable medium stores at least one program code, and the at least one program code is loaded by the processor and executes the following steps:
[0124] determining a position of synchronization information in the beacon frame based on predetermined synchronization information;
[0125] Determine the position of the wake-up indication mark according to the position of the synchronization information and the position offset information, where the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark; and
[0126] The wake-up indication identifier is parsed.
[0127] In some embodiments, determining the position of the synchronization information in the beacon frame based on the predetermined synchronization information includes:
[0128] Determining a degree of match between the predetermined synchronization information and a sequence in the monitoring information; and
[0129] The sequence with the highest matching degree is determined as the synchronization information, and the position of the synchronization information is determined.
[0130] In some embodiments, the method further comprises:
[0131] The beacon frame is received starting from the position of the synchronization information.
[0132] In some embodiments, starting to receive the beacon frame from the location of the synchronization information includes:
[0133] determining the amount of data preceding the synchronization information in the beacon frame;
[0134] Determining a transmission time required to receive the amount of data based on the amount of data and a transmission rate of the wireless link;
[0135] Delaying the start time of the monitoring period by the transmission duration to obtain a target time; and
[0136] Starting from the target time, the beacon frame is received.
[0137] In some embodiments, the method further comprises:
[0138] In response to monitoring the wake-up indication mark, stop monitoring; or,
[0139] In response to monitoring the wake-up indication mark, continue monitoring until the current monitoring cycle is completed.
[0140] In some embodiments, the predetermined synchronization information packet is a MAC field or any fixed field in a PHY header.
[0141] In some embodiments, the wake-up indication identifier includes a TIM IE field.
[0142] In some embodiments, the synchronization information is adjacent to the wake-up indication mark.
[0143] The embodiment of the present application further provides a computer program product, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the following steps:
[0144] determining a position of synchronization information in the beacon frame based on predetermined synchronization information;
[0145] Determine the position of the wake-up indication mark according to the position of the synchronization information and the position offset information, where the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication mark; and
[0146] The wake-up indication identifier is parsed.
[0147] In some embodiments, determining the position of the synchronization information in the beacon frame based on the predetermined synchronization information includes:
[0148] Determining a degree of match between the predetermined synchronization information and a sequence in the monitoring information; and
[0149] The sequence with the highest matching degree is determined as the synchronization information, and the position of the synchronization information is determined.
[0150] In some embodiments, the method further comprises:
[0151] The beacon frame is received starting from the position of the synchronization information.
[0152] In some embodiments, starting to receive the beacon frame from the location of the synchronization information includes:
[0153] determining the amount of data preceding the synchronization information in the beacon frame;
[0154] Determining a transmission time required to receive the amount of data based on the amount of data and a transmission rate of the wireless link;
[0155] Delaying the start time of the monitoring period by the transmission duration to obtain a target time; and
[0156] Starting from the target time, the beacon frame is received.
[0157] In some embodiments, the method further comprises:
[0158] In response to monitoring the wake-up indication mark, stop monitoring; or,
[0159] In response to monitoring the wake-up indication mark, continue monitoring until the current monitoring cycle is completed.
[0160] In some embodiments, the predetermined synchronization information packet is a MAC field or any fixed field in a PHY header.
[0161] In some embodiments, the wake-up indication identifier includes a TIM IE field.
[0162] In some embodiments, the synchronization information is adjacent to the wake-up indication mark.
[0163] Those skilled in the art should be able to appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. Storage media is any available medium that a general or special-purpose computer can access.
[0164] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for monitoring a wireless link in a wireless terminal, characterized in that: The method comprises: Determine the position of the synchronization information in the beacon frame based on predetermined synchronization information, wherein the predetermined synchronization information includes any fixed field in the MAC field or the PHY header; Starting receiving the beacon frame from the position of the synchronization information; Determine the position of the wake-up indication identifier in the beacon frame according to the position and position offset information of the synchronization information, wherein the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication identifier, and the wake-up indication identifier includes a TIM IE field; and Based on the position of the wake-up indication marker, the wake-up indication marker is monitored.
2. The method according to claim 1, characterized in that Determining the position of synchronization information in the beacon frame based on predetermined synchronization information includes: Determining a degree of match between the predetermined synchronization information and a sequence in the monitoring information; and The sequence with the highest matching degree is determined as the synchronization information, and the position of the synchronization information is determined.
3. The method according to claim 1, characterized in that The starting to receive the beacon frame from the position of the synchronization information comprises: determining an amount of data preceding the synchronization information in the beacon frame; Determining a transmission duration required to receive the amount of data based on the amount of data and a transmission rate of the wireless link; Delaying the start time of the monitoring period by the transmission duration to obtain the target time; and Starting from the target time, the beacon frame is received.
4. The method according to claim 1, characterized in that The method further comprises: In response to monitoring the wake-up indication mark, stop monitoring; or, In response to monitoring the wake-up indication identifier, continue monitoring until the current monitoring cycle is completed.
5. The method according to any one of claims 1 to 4, characterized in that: The synchronization information is adjacent to the wake-up indication mark.
6. A device for monitoring a wireless link in a wireless terminal, characterized in that: The device comprises: a configuration module, a timing module, a synchronization module, a receiving module and a judgment module; The configuration module is used to determine the amount of data before the synchronization information in the beacon frame based on the position of the synchronization information in the beacon frame; determine the transmission time required to receive the amount of data based on the data amount and the transmission rate of the wireless link; delay the start time of the monitoring period by the transmission time to obtain the target time; configure the target time to the timing module; configure the synchronization information of the synchronization module to the predetermined synchronization information based on the predetermined synchronization information, the predetermined synchronization information includes any fixed field in the MAC field or the PHY header; and configure the decision module according to the position offset information, the position offset information is used to indicate the position offset between the synchronization information and the wake-up indication identifier, and the wake-up indication identifier includes the TIM IE field; The timing module is used to wake up the wireless link based on the target time configured by the configuration module; The synchronization module is used to determine synchronization information in a received beacon frame based on the predetermined synchronization information; The receiving module is configured to start receiving the beacon frame from the position of the synchronization information; and The decision module is used to determine whether to wake up the wireless link based on the wake-up indication identifier.
7. The device according to claim 6, characterized in that The configuration module is further used to determine the position of the synchronization information in the beacon frame based on the predetermined synchronization information; and determine the position of the wake-up indication mark according to the position of the synchronization information and the position offset information.
8. A device for monitoring a wireless link in a wireless terminal, characterized in that: The device comprises: A first determining module, configured to determine a position of synchronization information in a beacon frame based on predetermined synchronization information, wherein the predetermined synchronization information includes any fixed field in a MAC field or a PHY header; A receiving module, configured to start receiving the beacon frame from the position of the synchronization information; a second determining module, configured to determine a position of a wake-up indication identifier in the beacon frame according to a position and position offset information of the synchronization information, wherein the position offset information is used to indicate a position offset between the synchronization information and the wake-up indication identifier, and the wake-up indication identifier includes a TIM IE field; and The monitoring module is used to monitor the wake-up indication mark based on the position of the wake-up indication mark.
9. The device according to claim 8, characterized in that The first determining module comprises: A first determining unit, configured to determine a matching degree between the predetermined synchronization information and a sequence in the monitoring information; and The second determining unit is configured to determine the sequence with the highest matching degree as the synchronization information, and determine the position of the synchronization information.
10. The device according to claim 8, characterized in that The receiving module comprises: A third determining unit, configured to determine the amount of data before the synchronization information in the beacon frame; a fourth determining unit, configured to determine a transmission duration required to receive the amount of data based on the amount of data and a transmission rate of the wireless link; an extension unit, configured to delay the start time of the monitoring period by the transmission duration to obtain a target time; and A receiving unit is used to receive the beacon frame starting from the target time.
11. The device according to claim 8, characterized in that The monitoring module is further configured to stop monitoring in response to monitoring the wake-up indication identifier; or, The monitoring module is further configured to continue monitoring in response to monitoring the wake-up indication identifier until the current monitoring cycle is completed.
12. The device according to any one of claims 8 to 11, characterized in that: The synchronization information is adjacent to the wake-up indication mark.
13. A wireless terminal, characterized in that: The wireless terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the method for monitoring a wireless link as described in any one of claims 1 to 5.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for monitoring a wireless link as claimed in any one of claims 1 to 5.
