Method, device, equipment and storage medium for determining working mode of wifi receiver
By configuring the Wi-Fi receiver to 802.11b protocol 1Mbps mode and performing sleep or wake-up operations based on the beacon frame parsing results, the problem of high power consumption of the Wi-Fi receiver in the 2.4GHz band is solved, and power consumption is reduced.
Patent Information
- Application Number
- CN202210269310.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-03-18
AI Technical Summary
With the continuous updates to the Wi-Fi standard, Wi-Fi receivers consume a lot of power when receiving various beacon frames in the 2.4GHz band.
Configure the Wi-Fi receiver to a preset receiving mode, conforming to the 802.11b protocol and with a transmission rate of 1Mbps. Receive beacon frames sent by the access point based on a preset period, and parse notification indication messages to determine whether to sleep or wake up.
By only receiving beacon frames that conform to the 802.11b protocol and have a transmission rate of 1 Mbps, the power consumption of the Wi-Fi receiver is reduced.
Smart Images

Figure CN114650625B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of determining the working mode of a wireless Internet access receiver, and in particular relates to a method, device, electronic equipment and computer storage medium for determining the working mode of a wireless Internet access (wifi) receiver. Background Art
[0002] As Wi-Fi standards continue to be updated, Wi-Fi receivers are becoming more and more complex. In the 2.4 GHz frequency band, there are a variety of beacon frames that comply with corresponding communication protocols. When a Wi-Fi receiver receives these beacon frames, it consumes a lot of power.
[0003] Therefore, how to reduce the power consumption of the wifi receiver is a technical problem that those skilled in the art need to solve urgently. Summary of the invention
[0004] The embodiments of the present invention provide a method, a device, an electronic device and a computer storage medium for determining an operating mode of a wifi receiver, which can reduce the power consumption of the wifi receiver.
[0005] In a first aspect, an embodiment of the present invention provides a method for determining an operating mode of a wifi receiver, wherein the wifi receiver is configured as a preset receiving mode, the preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1 Mbps in the 2.4 GHz frequency band, and the method includes:
[0006] Based on a preset period, receiving a beacon frame corresponding to a preset receiving mode sent by an access point (AP);
[0007] Parsing a traffic indication message (TIM) or a delivery traffic indication message (DTIM) in a beacon frame to obtain a parsing result;
[0008] According to the analysis result, the WiFi receiver is put to sleep or awakened.
[0009] Optionally, according to the analysis result, a sleep operation or a wake-up operation is performed on the wifi receiver, including:
[0010] When the analysis result shows that the AP has target data to be sent, a wake-up operation is performed on the wifi receiver according to the analysis result.
[0011] Optionally, after performing a wake-up operation on the wifi receiver, the method further includes:
[0012] Send a data acquisition request for target data to the AP;
[0013] The target data sent by the AP in response to the data acquisition request is received.
[0014] Optionally, according to the analysis result, a sleep operation or a wake-up operation is performed on the wifi receiver, including:
[0015] When the analysis result is that the AP does not have target data to be sent, the WiFi receiver is put into sleep mode according to the analysis result.
[0016] In a second aspect, an embodiment of the present invention provides a device for determining a working mode of a wireless Internet access wifi receiver, wherein the wifi receiver is configured as a preset receiving mode, the preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1 Mbps in the 2.4 GHz frequency band, and the device includes:
[0017] A first receiving module is used to receive a beacon frame corresponding to a preset receiving mode and sent by an access point AP based on a preset period;
[0018] A parsing module, used for parsing a notification indication message TIM or a delivery notification indication message DTIM in a beacon frame to obtain a parsing result;
[0019] The operation execution module is used to execute a sleep operation or a wake-up operation on the WiFi receiver according to the analysis result.
[0020] Optionally, the operation execution module includes:
[0021] The first operation execution unit is used to perform a wake-up operation on the wifi receiver according to the analysis result when the analysis result shows that the AP has target data to be sent.
[0022] Optionally, after performing a wake-up operation on the wifi receiver, the device further includes:
[0023] A sending module, used for sending a data acquisition request for target data to the AP;
[0024] The second receiving module is used to receive target data sent by the AP in response to the data acquisition request.
[0025] Optionally, the operation execution module includes:
[0026] The second operation execution unit is used to perform a sleep operation on the wifi receiver according to the analysis result when the analysis result is that the AP does not have target data to be sent.
[0027] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0028] a processor and a memory storing computer program instructions;
[0029] When the processor executes the computer program instructions, the method for determining the working mode of the wireless Internet access Wi-Fi receiver in the first aspect or any optional implementation of the first aspect is implemented.
[0030] In a fourth aspect, an embodiment of the present invention provides a computer storage medium having computer program instructions stored thereon, which, when executed by a processor, implements a method for determining an operating mode of a wireless Internet access Wi-Fi receiver in the first aspect or any optional implementation of the first aspect.
[0031] The working mode determination method, device, electronic device and computer storage medium of the wifi receiver of the embodiment of the present invention can reduce the power consumption of the wifi receiver. The working mode determination method of the wifi receiver receives the beacon frame corresponding to the preset receiving mode sent by the AP based on a preset period; parses the TIM or DTIM in the beacon frame to obtain the parsing result; and performs a sleep operation or a wake-up operation on the wifi receiver according to the parsing result. Among them, the preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1Mbps in the 2.4GHz frequency band. It can be seen that the wifi receiver in this method is configured as a preset receiving mode, so it can only receive the beacon frame corresponding to the preset receiving mode, that is, it only receives the beacon frame that complies with the 802.11b protocol and has a transmission rate of 1Mbps, so it can reduce the power consumption of the wifi receiver. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 It is a flow chart of a method for determining a working mode of a wifi receiver provided by an embodiment of the present invention;
[0034] Figure 2 It is a schematic diagram of a receiving mode switching of a wifi receiver provided by an embodiment of the present invention;
[0035] Figure 3 It is a structural diagram of a device for determining a working mode of a wifi receiver provided by an embodiment of the present invention;
[0036] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0038] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0039] As Wi-Fi standards continue to be updated, Wi-Fi receivers are becoming more and more complex. In the 2.4 GHz frequency band, there are a variety of beacon frames that comply with corresponding communication protocols. When a Wi-Fi receiver receives these beacon frames, it consumes a lot of power.
[0040] In order to solve the problems of the prior art, the embodiments of the present invention provide a method, device, electronic device and computer storage medium for determining the working mode of a wifi receiver. The working mode determination method of a wifi receiver provided by the embodiments of the present invention is first introduced below.
[0041] Figure 1 The flowchart of a method for determining the working mode of a wifi receiver provided by an embodiment of the present invention is shown. The wifi receiver is configured as a preset receiving mode, which is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1Mbps in the 2.4GHz frequency band. Figure 1 As shown, the working mode determination method of the wifi receiver may include the following steps:
[0042] S101. Based on a preset period, receive a beacon frame corresponding to a preset receiving mode and sent by an AP.
[0043] S102: parse the TIM or DTIM in the beacon frame to obtain a parsing result.
[0044] S103: According to the analysis result, a sleep operation or a wake-up operation is performed on the wifi receiver.
[0045] In one embodiment, according to the analysis result, performing a sleep operation or a wake-up operation on the wifi receiver includes:
[0046] When the analysis result shows that the AP has target data to be sent, a wake-up operation is performed on the wifi receiver according to the analysis result.
[0047] In one embodiment, after performing a wake-up operation on the wifi receiver, the method further includes:
[0048] Send a data acquisition request for target data to the AP;
[0049] The target data sent by the AP in response to the data acquisition request is received.
[0050] In one embodiment, according to the analysis result, performing a sleep operation or a wake-up operation on the wifi receiver includes:
[0051] When the analysis result is that the AP does not have target data to be sent, the WiFi receiver is put into sleep mode according to the analysis result.
[0052] The working mode determination method of the wifi receiver receives the beacon frame corresponding to the preset receiving mode sent by the AP based on a preset period; parses the TIM or DTIM in the beacon frame to obtain the parsing result; and performs a sleep operation or a wake-up operation on the wifi receiver according to the parsing result. The preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1Mbps in the 2.4GHz frequency band. It can be seen that the wifi receiver in the method is configured as the preset receiving mode, so it can only receive the beacon frame corresponding to the preset receiving mode, that is, it only receives the beacon frame that complies with the 802.11b protocol and has a transmission rate of 1Mbps, so it can reduce the power consumption of the wifi receiver. The method only turns on the 2.4GHz11b 1M receiving mode of the wifi receiver and turns off other receiving modes except 11b 1M, so it can reduce the power consumption of the wifi receiver.
[0053] In one embodiment, after the 2.4GHz 11b 1M receiving mode of the wifi receiver is turned on, it can also be switched to the full receiving mode. Figure 2 As shown, after the 2.4GHz 11b 1M receiving mode of the wifi receiver is turned on, when it is determined that TIM or DTIM is valid, it can be switched to the 2.4GHz full receiving mode. Correspondingly, the sleep operation can also be performed in the 2.4GHz full receiving mode and switched to the 2.4GHz 11b 1M receiving mode.
[0054] like Figure 3 As shown, an embodiment of the present invention further provides a device for determining a working mode of a wifi receiver, wherein the wifi receiver is configured as a preset receiving mode, the preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1 Mbps in the 2.4 GHz frequency band, and the device includes:
[0055] The first receiving module 301 is used to receive a beacon frame corresponding to a preset receiving mode and sent by an access point AP based on a preset period;
[0056] The parsing module 302 is used to parse the notification indication message TIM or the delivery notification indication message DTIM in the beacon frame to obtain a parsing result;
[0057] The operation execution module 303 is used to execute a sleep operation or a wake-up operation on the WiFi receiver according to the analysis result.
[0058] Optionally, in one embodiment, the operation execution module 303 includes:
[0059] The first operation execution unit is used to perform a wake-up operation on the wifi receiver according to the analysis result when the analysis result shows that the AP has target data to be sent.
[0060] Optionally, in one embodiment, after performing a wake-up operation on the wifi receiver, the device further includes:
[0061] A sending module, used for sending a data acquisition request for target data to the AP;
[0062] The second receiving module is used to receive target data sent by the AP in response to the data acquisition request.
[0063] Optionally, in one embodiment, the operation execution module 303 includes:
[0064] The second operation execution unit is used to perform a sleep operation on the wifi receiver according to the analysis result when the analysis result is that the AP does not have target data to be sent.
[0065] Figure 3 Each module in the device shown has the function of realizing Figure 1The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.
[0066] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown.
[0067] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.
[0068] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0069] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In one example, memory 402 may include a removable or non-removable (or fixed) medium, or memory 402 is a non-volatile solid-state memory. Memory 402 may be inside or outside the electronic device.
[0070] In one example, the memory 402 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0071] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement Figure 1 The method in the embodiment shown in the figure is achieved Figure 1 The corresponding technical effects achieved by executing the methods / steps in the example shown are not repeated here for the sake of brevity.
[0072] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0073] The communication interface 403 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0074] Bus 410 includes hardware, software or both, and the components of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), Hyper Transport (Hyper Transport, HT) interconnection, industry standard architecture (Industry Standard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0075] In addition, the embodiment of the present invention can be implemented by providing a computer storage medium. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, Figure 1 The method for determining the working mode of the wireless Internet access Wi-Fi receiver shown.
[0076] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0077] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0078] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0079] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for determining the working mode of a wireless Internet access wifi receiver, characterized in that: The wifi receiver is configured as a preset receiving mode, the preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1 Mbps in the 2.4 GHz frequency band, and the method includes: Based on a preset period, receiving a beacon frame sent by an access point AP corresponding to the preset receiving mode; Parsing the notification indication message TIM or the delivery notification indication message DTIM in the beacon frame to obtain a parsing result; According to the analysis result, performing a sleep operation or a wake-up operation on the wifi receiver; The performing a sleep operation or a wake-up operation on the wifi receiver according to the analysis result includes: When the analysis result is that the AP does not have target data to be sent, according to the analysis result, performing the sleep operation on the wifi receiver; Based on a preset period, beacon frames corresponding to a preset receiving mode and sent by an AP are received; TIM or DTIM in the beacon frames are parsed to obtain parsing results; according to the parsing results, a sleep operation or a wake-up operation is performed on the wifi receiver; wherein the preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1Mbps in the 2.4GHz frequency band; the wifi receiver is configured to the preset receiving mode, so it can only receive beacon frames corresponding to the preset receiving mode, that is, it only receives beacon frames that comply with the 802.11b protocol and have a transmission rate of 1Mbps, so it can reduce the power consumption of the wifi receiver.
2. The method for determining the working mode of a wireless Internet access wifi receiver according to claim 1, characterized in that: The performing a sleep operation or a wake-up operation on the wifi receiver according to the analysis result includes: When the analysis result is that the AP has target data to be sent, the wake-up operation is performed on the wifi receiver according to the analysis result.
3. The method for determining the working mode of a wireless Internet access wifi receiver according to claim 2, characterized in that: After performing the wake-up operation on the wifi receiver, the method further includes: Sending a data acquisition request for the target data to the AP; The target data sent by the AP in response to the data acquisition request is received.
4. A device for determining the working mode of a wireless Internet access wifi receiver, characterized in that: The wifi receiver is configured as a preset receiving mode, the preset receiving mode is a receiving mode that complies with the 802.11b protocol and has a transmission rate of 1 Mbps in the 2.4 GHz frequency band, and the device includes: A first receiving module is used to receive a beacon frame corresponding to the preset receiving mode and sent by an access point AP based on a preset period; A parsing module, used for parsing the notification indication message TIM or the delivery notification indication message DTIM in the beacon frame to obtain a parsing result; An operation execution module, used for executing a sleep operation or a wake-up operation on the wifi receiver according to the analysis result; The operation execution module includes: The second operation execution unit is used to execute the sleep operation on the wifi receiver according to the analysis result when the analysis result is that the AP does not have target data to be sent.
5. The working mode determination device of the wireless Internet access wifi receiver according to claim 4, characterized in that: The operation execution module includes: The first operation execution unit is used to perform the wake-up operation on the wifi receiver according to the analysis result when the analysis result is that the AP has target data to be sent.
6. The device for determining the working mode of a wireless Internet access wifi receiver according to claim 5, characterized in that: After performing the wake-up operation on the wifi receiver, the device further includes: A sending module, used for sending a data acquisition request for the target data to the AP; The second receiving module is used to receive the target data sent by the AP in response to the data acquisition request.
7. An electronic device, characterized in that: The electronic device comprises: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the method for determining the working mode of a wireless Internet access wifi receiver as described in any one of claims 1-3.
8. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the method for determining the working mode of the wireless Internet access wifi receiver as described in any one of claims 1-3 is implemented.
