Method and electronic device for reducing power consumption
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2021-11-16
- Publication Date
- 2026-08-07
AI Technical Summary
[0003]但在一些情况下,网络设备可能会向该电子设备发送一些垃圾数据包,电子设备接收到垃圾数据包之后,对该垃圾数据包进行处理,从而额外增加了电子设备的功耗
Smart Images

Figure CN116137720B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic devices, and more specifically, to a method and electronic device for reducing power consumption. Background Technology
[0002] During the interaction between electronic devices and network devices, the network devices can assign Internet Protocol (IP) addresses to the electronic devices and exchange data normally with them through these IP addresses.
[0003] However, in some cases, network devices may send junk data packets to the electronic device. After receiving the junk data packets, the electronic device processes them, which increases the power consumption of the electronic device. Summary of the Invention
[0004] This application provides a method and electronic device for reducing power consumption, with the aim of reducing the power consumption of the electronic device.
[0005] In a first aspect, a method for reducing power consumption is provided, which can be applied to an electronic device. The method includes: the electronic device detecting a first number of junk data packets received within a first time period; when the electronic device determines that the first number satisfies a first relationship, disconnecting the network connection with a network device and sending a first network connection request to the network device; the electronic device receiving a first paging message sent by the network device in response to the first network connection request; and the electronic device re-establishing a network connection with the network device based on the first paging message.
[0006] In one embodiment of this application, the electronic device can detect the number of junk data packets received within a first time period. When the number meets a first relationship, the electronic device can disconnect from the network device, send a network connection request to the network device, and re-establish a network connection with the network device according to the paging message sent by the network device.
[0007] In this way, when the electronic device re-establishes a network connection with the network device, the network device will assign a new IP address to the electronic device. Therefore, when the network device sends junk data packets to the original IP address, the electronic device will not receive the junk data packets, thereby reducing the power consumption of the electronic device.
[0008] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device determines that the first quantity satisfies the first relationship, including: when the first quantity is greater than a first preset value, the electronic device determines that the first quantity satisfies the first relationship.
[0009] In one embodiment of this application, when the first quantity is greater than the first preset value, it means that the electronic device receives a large number of junk data packets within the first time period. Therefore, it can be determined that the first quantity satisfies the first relationship, so that the electronic device can re-register in order to reduce power consumption.
[0010] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device determines that the first quantity satisfies the first relationship, including: when the ratio of the first quantity to the total number of data packets received by the electronic device within the first time period is greater than a second preset value, the electronic device determines that the first quantity satisfies the first relationship.
[0011] In one embodiment of this application, when the ratio of the first quantity to the total number of data packets received by the electronic device within the first duration is greater than a second preset value, it means that the electronic device receives a large number of junk data packets within the first duration, thereby enabling the electronic device to re-register in order to reduce power consumption.
[0012] Alternatively, in other embodiments, the decision to re-register can be determined by assessing the relationship between a first rate at which the electronic device receives junk data packets within a first time period and a preset rate. For example, when the first rate is greater than the preset rate, the electronic device disconnects from the network device and sends a network connection request to the network device.
[0013] In conjunction with the first aspect, in some implementations of the first aspect, after re-establishing a network connection with the network device, the Internet Protocol (IP) address used by the electronic device to communicate with the network device is different from the IP address used by the electronic device to communicate with the network device before the network connection was re-established.
[0014] In one embodiment of this application, after the electronic device and the network device re-establish a network connection, the network device assigns a new IP address to the electronic device. As a result, when the network device continues to send junk data packets to the old IP address, the electronic device cannot receive the junk data packets, thereby reducing the number of junk data packets received by the electronic device, i.e., reducing the power consumption of the electronic device.
[0015] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when the electronic device determines that the first quantity does not satisfy the first relationship, the electronic device continues to detect a second quantity of garbage data packets received by the electronic device within the first time period; when the electronic device determines that the second quantity is greater than a first preset value, it disconnects the network connection with the network device and sends a network connection request to the network device.
[0016] In this way, if the number of junk data packets received in the first time period does not meet the first relationship, the electronic device can continue to detect the second number of junk data packets received in the next first time period. When the second number is greater than a preset value, the electronic device can re-register, that is, disconnect the network connection with the network device and send a new network connection request to the network device in order to re-establish the network connection with the network device, thereby helping to reduce the power consumption of the electronic device.
[0017] Secondly, a method for reducing power consumption is provided, the method being applied in an electronic device, the method comprising:
[0018] The electronic device sends a third network connection request to the network device; the electronic device receives a second paging message from the network device in response to the third network connection request; the electronic device parses the second paging message, and when it determines that the second paging message is a preset paging message, the electronic device determines whether the electronic device is in a preset state; when it determines that the electronic device is in a preset state, the electronic device ignores the second paging message.
[0019] In this way, before establishing a network connection between the electronic device and the network device, the electronic device can parse the received paging message. When it is determined that the paging message is a preset paging message, it can determine whether the electronic device is in a preset state. When the electronic device is in a preset state, it can ignore the paging message, so that the electronic device does not establish a network connection with the network device. As a result, the electronic device does not receive junk data packets from the network device, thereby reducing the power consumption of the electronic device.
[0020] In conjunction with the second aspect, in some implementations of the second aspect, the second paging message is a packet-switched PS paging message.
[0021] Optionally, the second paging message may be a 5G paging message or a paging message in a future network.
[0022] In conjunction with the second aspect, in some implementations of the second aspect, the preset state includes one of the following states: the data service switch of the electronic device is off; the VoLTE switch of the electronic device is off; the Do Not Disturb switch of the electronic device is on; the electronic device is in an enterprise Wi-Fi connection state.
[0023] In one embodiment of this application, when the electronic device is in the aforementioned preset state, the paging message sent by the network device can be ignored, thereby not establishing a network connection with the network device, and thus reducing the power consumption of the electronic device.
[0024] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes: when it is determined that the second paging message is not a preset paging message, the electronic device establishes a network connection with the network device based on the second paging message.
[0025] In one embodiment of this application, when it is determined that the second paging message is not a preset paging message, the electronic device can establish a network connection with the network device, thereby not affecting the normal communication between the electronic device and the network device.
[0026] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes: when it is determined that the second paging message is a preset paging message, and the electronic device is not in a preset state, the electronic device establishes a network connection with the network device based on the second paging message.
[0027] In one embodiment of this application, when the second paging is a paging message, but the electronic device is not in the aforementioned preset state, the electronic device can establish a network connection with the network device, thereby not affecting the normal communication between the electronic device and the network device.
[0028] Thirdly, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause a power reduction method as described in the first aspect and any possible implementation thereof to be performed.
[0029] Fourthly, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause a power reduction method as described in the second aspect and any possible implementation thereof to be performed.
[0030] Fifthly, a chip is provided, the chip including a processor and a communication interface, the communication interface being used to receive a signal and transmit the signal to the processor, the processor processing the signal such that the power reduction method as described in the first aspect and any possible implementation thereof is executed.
[0031] In a sixth aspect, a chip is provided, the chip including a processor and a communication interface, the communication interface being used to receive a signal and transmit the signal to the processor, the processor processing the signal such that the power reduction method as described in the second aspect and any possible implementation thereof is executed.
[0032] In a seventh aspect, a computer-readable storage medium is provided, wherein computer instructions are stored therein, which, when executed on a computer, cause the power reduction method as described in the first aspect and any possible implementation thereof to be performed.
[0033] Eighthly, a computer-readable storage medium is provided, wherein computer instructions are stored therein, which, when executed on a computer, cause the power reduction method as described in the second aspect and any possible implementation thereof to be performed.
[0034] A ninth aspect provides a computer program product including computer instructions that, when executed on a computer, cause a power reduction method as described in the first aspect and any possible implementation thereof to be performed.
[0035] In a tenth aspect, a computer program product is provided, including computer instructions that, when executed on a computer, cause a power reduction method as described in the second aspect and any possible implementation thereof to be performed. Attached Figure Description
[0036] Figure 1 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.
[0037] Figure 2 This is a schematic diagram of the software structure of the electronic device provided in the embodiments of this application.
[0038] Figure 3 This is a schematic diagram illustrating the interaction process between an electronic device and a network device, as provided in an embodiment of this application.
[0039] Figure 4 This is a schematic diagram of data packet processing inside an electronic device according to an embodiment of this application.
[0040] Figure 5 This is a schematic flowchart illustrating a method for reducing power consumption provided in an embodiment of this application.
[0041] Figure 6 This is a schematic flowchart illustrating another method for reducing power consumption provided in an embodiment of this application.
[0042] Figure 7 This is a schematic flowchart illustrating a method for reducing power consumption provided in an embodiment of this application.
[0043] Figure 8 This is a schematic flowchart illustrating another method for reducing power consumption provided in an embodiment of this application. Detailed Implementation
[0044] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0045] The electronic devices in this application embodiment can refer to user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user device. Electronic devices can also be cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, vehicle-mounted devices, wearable devices, terminal devices in 5G communication networks, or terminal devices in future evolved public land mobile networks (PLMNs), etc., but this application embodiment does not limit these categories.
[0046] The network device in this application embodiment can be a device for communicating with electronic devices. The network device can be a base station (BTS) in a global system of mobile communication (GSM) or code division multiple access (CDMA) system, a base station (nodeB, NB) in a wideband code division multiple access (WCDMA) system, an evolved NodeB (eNB or eNodeB) in an LTE system, a radio controller in a cloud radio access network (CRAN) scenario, or a relay station, access point, vehicle-mounted device, wearable device, network device in a 5G network, or a network device in a future evolved PLMN network, etc. The embodiments of this application are not limited.
[0047] Figure 1A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0048] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0049] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0050] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0051] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0052] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0053] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
[0054] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to realize communication between the processor 110 and the audio module 170.
[0055] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface.
[0056] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160.
[0057] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193.
[0058] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc.
[0059] USB interface 130 is an interface that conforms to the USB standard specification, specifically it can be a Mini USB interface, Micro USB interface, USB Type C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and it can also be used for data transfer between electronic device 100 and peripheral devices.
[0060] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0061] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0062] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110.
[0063] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0064] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0065] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0066] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0067] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.
[0068] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0069] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or a display panel made of materials selected from organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), minimized, microLEDs, micro-OLEDs, or quantum dot light-emitting diodes (QLEDs). In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0070] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0071] The ISP is used to process the data fed back by camera 193. Camera 193 is used to capture still images or videos.
[0072] A digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals.
[0073] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs.
[0074] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
[0075] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.
[0076] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0077] The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.
[0078] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.
[0079] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.
[0080] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.
[0081] The 170D headphone jack is used to connect wired headphones.
[0082] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
[0083] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100.
[0084] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0085] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes).
[0086] Distance sensor 180F is used to measure distance.
[0087] The fingerprint sensor 180H is used to collect fingerprints.
[0088] Touch sensor 180K, also known as "touch panel". Touch sensor 180K can be set on display screen 194. Touch sensor 180K and display screen 194 together form touch screen, also known as "touch screen".
[0089] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from vibrating bone fragments in the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals.
[0090] Button 190 includes the power button, volume buttons, etc.
[0091] Motor 191 can generate vibration alerts.
[0092] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0093] The SIM card interface 195 is used to connect the SIM card.
[0094] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
[0095] Figure 2 This is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.
[0096] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0097] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0098] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0099] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0100] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0101] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0102] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0103] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0104] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0105] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0106] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0107] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0108] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0109] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0110] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0111] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0112] A 2D graphics engine is a graphics engine for 2D drawing.
[0113] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0114] Before introducing the technical solution of the method for reducing the power consumption of electronic devices according to the embodiments of this application, a brief introduction to some of the terms involved in this application will be given first.
[0115] Junk packets: The type of data packets received by the electronic device is consistent with the type of data included in the preset processing rule table; or, the type of data packets received by the electronic device is consistent with the type of data included in the Transmission Control Protocol (TCP) or Internet Protocol (IP) protocol stack; or, the type of data packets received by the electronic device is consistent with the type of custom-processable data in the electronic device.
[0116] Figure 3 This is a schematic diagram illustrating the interaction process between an electronic device and a network device, as provided in an embodiment of this application. Figure 3 As shown, the interaction process may include steps 310 to 350.
[0117] 310. Electronic devices send network connection requests to network devices.
[0118] For example, in response to a user turning on a data switch, an electronic device sends a network connection request to a network device.
[0119] 320. After receiving a network request, the network device establishes a network connection with the electronic device and assigns an IP address to the electronic device.
[0120] It should be understood that in this step, after receiving a network request from an electronic device, the network device can send a paging message to the electronic device. Upon receiving the paging message, the electronic device establishes a network connection with the network device, allowing it to use the network normally. Once the network connection is established, the network device can assign an IP address to the electronic device. This IP address serves as the identifier for the electronic device, and the network device can use this IP address to exchange network data packets with the electronic device.
[0121] 330, The electronic device sends the first data packet to the network device.
[0122] For example, the first data packet is used to request certain data.
[0123] 340. After receiving the first data packet sent by the electronic device, the network device sends a second data packet to the electronic device.
[0124] For example, after receiving the first data packet sent by the electronic device, the network device sends the data it requests to the electronic device.
[0125] 350. Network devices send junk data packets to electronic devices.
[0126] In some cases, network devices may send junk data packets in addition to normal data packets to electronic devices. Processing these junk data packets after receiving them will increase the power consumption of the electronic devices.
[0127] Currently, electronic devices generally adopt a communication mode based on application processor (AP) and modem. When electronic devices exchange data with network devices, the modem in the electronic device demodulates the data packets transmitted from the network device to the electronic device and sends them to the AP. After processing the data packets, the AP sends the signals that need to be sent to the modem, which modulates them and sends them to the radio frequency transceiver, antenna, etc., so as to send the signals to the network devices.
[0128] Figure 4 This is a schematic diagram illustrating the internal data packet processing of an electronic device according to an embodiment of this application. Figure 4 As shown, the electronic device 400 may include at least an application processor AP410 and a modem 420.
[0129] During the communication between electronic device 400 and network device, modem 420 demodulates the data packets from network device and sends them to AP 410. AP 410 processes the data packets and then transmits the data to be sent to modem 420.
[0130] The AP410's transmission control protocol (TCP) or IP protocol stack transport layer contains the port number of the program running on the electronic device 400 and the IP address of the electronic device. For electronic devices connected to the network, the IP address is the identifier of the electronic device 400, and network devices can use this IP address to interact with the electronic device 400.
[0131] See Figure 4During the data interaction between electronic device 400 and network device, modem 420 and AP 410 both need to work. In some cases, electronic device 400 may continuously receive junk data packets from network device. At this time, modem 420 and AP 410 need to continuously process these junk data packets, thereby increasing the power consumption of electronic device 400.
[0132] To reduce the power consumption of electronic devices, a data processing rule table can be preset in the modem. When the type of data packet received by the modem is consistent with the data type included in the data processing rule table, or when the type of data packet received by the modem is consistent with the data type specified by the preset TCP / IP protocol stack, the modem processes the data packet without sending it to the AP, thereby reducing the power consumption of the AP and thus reducing the power consumption of the electronic devices.
[0133] The above technical solutions reduce the power consumption of the AP, but the modem still needs to continue to work, resulting in a relatively high power consumption of the electronic device.
[0134] In view of this, embodiments of this application provide a method for reducing power consumption, which can reduce the power consumption of electronic devices.
[0135] The following will combine Figures 5-6 The power consumption reduction methods described in the embodiments of this application are explained in detail.
[0136] Figure 5 This is a schematic flowchart illustrating a method for reducing power consumption provided in an embodiment of this application. Figure 5 As shown, this method can be applied to electronic devices, and the method may include steps 510 to 560.
[0137] 510. The electronic device sends a second network connection request to the network device.
[0138] The second network connection request is used to request that the electronic device be connected to the network.
[0139] In one example, the electronic device is powered off, and in response to the user's power-on operation, the electronic device sends a second network connection request to the network device.
[0140] In another example, in response to a user turning on a data switch, the electronic device sends a second network connection request to the network device.
[0141] In another example, if the electronic device is in a state where an application is open, such as Huawei Video, then in response to the user clicking on a video, the electronic device sends a second network connection request to the network device.
[0142] 520, Electronic devices and network devices establish network connections.
[0143] After receiving the second network connection request, the network device can send a paging message to the electronic device. After receiving the paging message sent by the network device, the electronic device establishes a network connection with the network device.
[0144] After a network device establishes a network connection with an electronic device, an IP address can be assigned to the electronic device, allowing the network device to interact with the electronic device through that IP address.
[0145] It should be understood that steps 510 to 520 are optional steps. In some embodiments, the technical solution may also start from step 530, that is, the electronic device is already in a network connection state.
[0146] 530, the electronic device detects the first number of junk data packets received within a first time period.
[0147] In one example, a spam packet detection device can be installed in an electronic device. For instance, by installing a spam packet detection device in a modem within an electronic device, the number of spam packets received by the electronic device over a period of time can be detected.
[0148] In another example, a function to detect the number of junk packets can be set up in an electronic device, for example, by placing the junk packet detection module into the modem of the electronic device.
[0149] It should be understood that the first duration can be preset, such as 5 minutes. The specific value of the first duration is not limited in the embodiments of this application.
[0150] 540, determine whether the first quantity is greater than the preset quantity.
[0151] In one possible implementation, if the first quantity is greater than the preset quantity, it indicates that the electronic device has received a large number of junk data packets within the first time period, and then step 550 can be executed.
[0152] In another possible implementation, if the first quantity is less than or equal to a preset quantity, it indicates that the electronic device has received a small number of junk data packets within the first duration, and the electronic device continues to detect the number of junk data packets received in the next first duration.
[0153] It should be understood that the preset quantity can be 10, 20, etc., and the specific value of the preset quantity is not limited in the embodiments of this application.
[0154] In other embodiments, the electronic device may also determine whether to send a first network connection request to the network device by judging the relationship between the ratio of the first quantity to the total number of data packets received by the electronic device in the first time period and a preset value.
[0155] For example, if the ratio of the first quantity to the total number of data packets received by the electronic device within the first time period is greater than a preset value, it means that the number of junk data packets received by the electronic device within the first time period is relatively large, and then step 550 can be executed.
[0156] In other embodiments, other metrics of the junk data packet can be used to determine whether to resend the first network connection request to the network device, such as the speed at which junk data packets are received.
[0157] 550, The electronic device sends a first network connection request to the network device.
[0158] When the first quantity is determined to be greater than the preset quantity, the electronic device sends a first network connection request to the network device. The first network connection request is used to request the re-establishment of a network connection with the network device.
[0159] For example, if it is determined that the first quantity is greater than the preset quantity, the modem in the electronic device is triggered to re-register with the network. When the modem re-registers with the network, the electronic device will send a first network connection request to the network device.
[0160] It should be understood that in step 550, before the electronic device sends the first network connection request to the network device, the electronic device will disconnect the previous network connection with the network device.
[0161] 560, the electronic device re-establishes a network connection with the network device.
[0162] After receiving the first network connection request, the network device can send a paging message to the electronic device. After receiving the paging message, the electronic device can re-establish a network connection with the network device.
[0163] When an electronic device re-establishes a network connection with a network device, the network device will reassign an IP address to the electronic device. The network device can then interact with the electronic device using this newly assigned IP address. When the network device continues to push junk data packets to the original IP address, the electronic device will not receive these junk data packets, thereby reducing the power consumption of the electronic device.
[0164] In one embodiment of this application, after an electronic device establishes a network connection with a network device, it can detect the number of junk data packets received within a certain period of time. When the number of junk data packets exceeds a preset number, the electronic device can resend a network connection request to the network device and re-establish a network connection with the network. As a result, the network device can assign a new IP address to the electronic device. Thus, when the network device continues to push junk data packets to the original IP address, the electronic device will not receive junk data packets, thereby reducing the power consumption of the electronic device.
[0165] It should be understood that after an electronic device is assigned a new IP address, although the electronic device will not receive junk data packets sent by the network device to the original IP address, the electronic device may still receive some junk data packets under the new IP address. Therefore, the electronic device can continue to detect the number of junk data packets received under the new IP address within a certain period of time and can continue the process described in steps 530-560 above.
[0166] The above text combined Figure 5 This paper introduces a technical solution that, after a network device and a terminal device establish a network connection, when the terminal device receives a large number of junk packets within a preset time period, the terminal device can obtain a new IP address by re-establishing a connection with the network device, thereby reducing the number of junk data packets received by the terminal device and thus reducing the power consumption of the terminal device.
[0167] The following will combine Figure 6 This application presents a technical solution in which the terminal device does not establish a network connection with the network device, thereby reducing the power consumption of the terminal device.
[0168] Figure 6 This is a schematic flowchart illustrating another method for reducing power consumption provided in an embodiment of this application. Figure 6 As shown, the method may include steps 610 to 670.
[0169] 610. An electronic device sends a third network connection request to a network device.
[0170] The third network connection request is used to request that the electronic device be connected to the network.
[0171] 620, Electronic devices receive paging messages sent by network devices.
[0172] In this process, after receiving a third network connection request, the network device sends the paging message to the electronic device.
[0173] For example, the paging message may be a packet switching (PS) paging, or it may be a circuit switching (CS) paging, or it may be a paging message in 5G. This application embodiment does not limit this.
[0174] 630, the electronic device parses the paging message.
[0175] The electronic device can parse the received paging message and identify the type of the paging message.
[0176] For example, if the electronic device parses the paging message and finds that the type of the paging message is a PS paging message, it means that when the electronic device establishes a network connection with the network device, the network connection is a 4G communication network connection.
[0177] For example, if the electronic device parses the paging message and finds that the type of the paging message is a PC paging message, it means that when the electronic device establishes a network connection with the network device, the network connection is a 2G or 3G communication network connection.
[0178] 640. The electronic device determines whether the paging message is a preset paging message.
[0179] Specifically, when the electronic device determines that the paging message is a preset paging message, step 650 can be executed; when the electronic device determines that the paging message is not a preset paging message, step 670 can be executed.
[0180] In one example, the default paging message is a PS paging message.
[0181] In another example, the default paging message is the CS paging message.
[0182] In another example, the preset paging message is a paging message in a 5G communication network.
[0183] 650, The electronic device determines whether it is in a preset state.
[0184] When the electronic device determines that it is in a preset state, step 660 can be executed; when the electronic device determines that it is not in a preset state, step 670 can be executed.
[0185] For example, the preset state can be a data service switch off state, a voiceover long-term evolution (VOLTE) switch off state, a do-not-disturb switch on state, or an enterprise Wi-Fi connection state.
[0186] It should be understood that when an electronic device is in a corporate Wi-Fi connection state, it means that the electronic device is connected to Wi-Fi, but the electronic device can only use the Wi-Fi to access fixed applications, websites, etc., that is, the electronic device can only access a portion of the network.
[0187] 660, the electronic device ignores the paging message.
[0188] In step 660, once the electronic device determines that it is in a preset state, it can ignore the paging message, that is, the electronic device will not establish a network connection with the network device. As a result, the electronic device will not receive junk data packets sent by the network device, thereby reducing the power consumption of the electronic device.
[0189] 670. Electronic devices establish network connections with network devices.
[0190] The electronic device can establish a 3G communication network connection, a 4G communication network connection, or a 5G communication network connection with a network device, etc., but this application embodiment does not limit this.
[0191] In one possible implementation, when the preset paging message is a PS paging message, if the electronic device determines that the received paging message is not a PS paging message, the electronic device can establish a 4G communication network connection with the network device.
[0192] In another possible implementation, when the preset paging message is a 5G paging message, if the electronic device determines that the received paging message is not a 5G paging message, the electronic device can establish a 5G communication network connection with the network device.
[0193] In one embodiment of this application, before an electronic device establishes a network connection with a network device, the electronic device can parse the received paging message and determine whether the paging message is a preset paging message. When the paging message is a preset paging message, it is determined whether the electronic device is in a preset state. When the electronic device is in a preset state, the received paging message can be ignored, that is, the electronic device does not establish a network connection with the network device, thereby reducing the power consumption of the electronic device.
[0194] Figure 7 This is a schematic flowchart illustrating a method for reducing power consumption provided in an embodiment of this application. This method can be applied to electronic devices, such as... Figure 7 As shown, the method may include steps 710 to 740.
[0195] 710, the electronic device detects a first number of junk data packets received within a first time period.
[0196] It should be understood that the first duration can be a preset duration, such as 5 minutes, 10 minutes, etc. This application does not limit the specific value of the first duration.
[0197] 720. When the electronic device determines that the first quantity satisfies the first relationship, it disconnects the network connection with the network device and sends a first network connection request to the network device.
[0198] When the electronic device determines that the first quantity satisfies the first relationship, it can trigger a re-registration operation, that is, it can disconnect the network connection with the network device and send a first network connection request to the network device.
[0199] It should be understood that before and after re-registration, the electronic device may be connected to different network devices or the same network device, and this application embodiment does not limit this.
[0200] In one possible implementation, the electronic device determines that the first quantity satisfies a first relationship, including:
[0201] When the first quantity is greater than the first preset value, the electronic device determines that the first quantity satisfies the first relationship.
[0202] When the first quantity is greater than the first preset value, it means that the electronic device receives a large number of junk data packets within the first time period. Therefore, it can be determined that the first quantity satisfies the first relationship, so the electronic device can re-register in order to reduce power consumption.
[0203] It should be understood that the specific value of the first preset value is not limited in the embodiments of this application. For example, the first preset value can be 20, 30, etc.
[0204] In another possible implementation, the electronic device determines that the first quantity satisfies a first relationship, including:
[0205] When the ratio of the first quantity to the total number of data packets received by the electronic device within the first time period is greater than a second preset value, the electronic device determines that the first quantity satisfies the first relationship.
[0206] When the ratio of the first quantity to the total number of data packets received by the electronic device within the first time period is greater than the second preset value, it means that the electronic device has received a large number of junk data packets within the first time period, so the electronic device can re-register in order to reduce power consumption.
[0207] It should be understood that the specific value of the second preset value is not limited in the embodiments of this application. For example, the second preset value can be 0.5, 0.4, etc.
[0208] Alternatively, in other embodiments, the decision to re-register can be determined by assessing the relationship between a first rate at which the electronic device receives junk data packets within a first time period and a preset rate. For example, when the first rate is greater than the preset rate, the electronic device disconnects from the network device and sends a network connection request to the network device.
[0209] It should be understood that other methods may be used to determine whether to perform a re-registration operation in the embodiments of this application, and the embodiments of this application are not limited thereto.
[0210] 730, the electronic device receives a first paging message sent by the network device in response to the first network connection request.
[0211] It should be understood that when an electronic device sends a first network connection request to a network device, the network device will send a first paging message based on the first network connection request.
[0212] 740, the electronic device re-establishes a network connection with the network device based on the first paging message.
[0213] Electronic devices can re-establish network connections with network devices based on the first paging message.
[0214] In one embodiment of this application, the electronic device can detect the number of junk data packets received within a first time period. When the number meets a first relationship, the electronic device can disconnect from the network device, send a network connection request to the network device, and re-establish a network connection with the network device according to the paging message sent by the network device.
[0215] In this way, when the electronic device re-establishes a network connection with the network device, the network device will assign a new IP address to the electronic device. Therefore, when the network device sends junk data packets to the original IP address, the electronic device will not receive the junk data packets, thereby reducing the power consumption of the electronic device.
[0216] Optionally, after re-establishing a network connection with the network device, the Internet Protocol (IP) address used by the electronic device to communicate with the network device is different from the IP address used by the electronic device to communicate with the network device before the network connection was re-established.
[0217] In one embodiment of this application, after the electronic device and the network device re-establish a network connection, the network device assigns a new IP address to the electronic device. As a result, when the network device continues to send junk data packets to the old IP address, the electronic device cannot receive the junk data packets, thereby reducing the number of junk data packets received by the electronic device, i.e., reducing the power consumption of the electronic device.
[0218] Optionally, when the electronic device determines that the first quantity does not satisfy the first relationship, the electronic device continues to detect a second quantity of garbage data packets received by the electronic device within the first time period;
[0219] When the electronic device determines that the second quantity is greater than the first preset value, it disconnects the network connection with the network device and sends a network connection request to the network device.
[0220] In this way, if the number of junk data packets received in the first time period does not meet the first relationship, the electronic device can continue to detect the second number of junk data packets received in the next first time period. When the second number is greater than a preset value, the electronic device can re-register, that is, disconnect the network connection with the network device and send a new network connection request to the network device in order to re-establish the network connection with the network device, thereby helping to reduce the power consumption of the electronic device.
[0221] Figure 8 This is a schematic flowchart illustrating another method for reducing power consumption provided in this application. This method can be applied to electronic devices, such as... Figure 8 As shown, the method may include steps 810 to 840.
[0222] 810, the electronic device sends a third network connection request to the network device.
[0223] Before establishing a network connection with a network device, an electronic device sends a network connection request to the network device to request access to the network.
[0224] For example, in response to a user turning on the data switch, the electronic device sends a network connection request to the network device. Alternatively, if the electronic device is powered off, it sends a network connection request to the network device in response to a user turning it on. Or, if the electronic device is running an application, such as Huawei Video, it sends a network connection request to the network device in response to a user clicking on a video.
[0225] 820, the electronic device receives a second paging message sent by the network device in response to the third network connection request.
[0226] After receiving a third network connection request from an electronic device, a network device can send a second paging message.
[0227] 830, the electronic device parses the second paging message, and when it is determined that the second paging message is a preset paging message, the electronic device determines whether the electronic device is in a preset state.
[0228] When an electronic device receives a second paging message from a network device, it can first parse the second paging message. If it determines that the second paging message is a preset paging message, it can then determine whether the electronic device is in a preset state.
[0229] It should be understood that the preset paging message can be a PS paging message, a PC paging message, a paging message in 5G or future communication networks, etc.
[0230] 840. When it is determined that the electronic device is in a preset state, the electronic device ignores the second paging message.
[0231] When an electronic device determines that it is in a preset state, it can ignore the second paging message, that is, it will not establish a network connection with the network device.
[0232] In this way, before establishing a network connection between the electronic device and the network device, the electronic device can parse the received paging message. When it is determined that the paging message is a preset paging message, it can determine whether the electronic device is in a preset state. When the electronic device is in a preset state, it can ignore the paging message, so that the electronic device does not establish a network connection with the network device. As a result, the electronic device does not receive junk data packets from the network device, thereby reducing the power consumption of the electronic device.
[0233] Optionally, the preset state can be one of the following states:
[0234] The data service switch of the electronic device is in the off state;
[0235] The electronic device is in the LOLTE (Long Term Evolution Voice Bearer) switch off state.
[0236] The do-not-disturb switch of the electronic device is turned on;
[0237] The electronic device is connected to the enterprise Wi-Fi network.
[0238] It should be understood that when an electronic device is in a corporate Wi-Fi connection state, it means that the electronic device is connected to Wi-Fi, but the electronic device can only use the Wi-Fi to access fixed applications, websites, etc., that is, the electronic device can only access a portion of the network.
[0239] Optionally, the second paging message is a PS paging message.
[0240] Optionally, the method further includes: when it is determined that the second paging message is not a preset paging message, the electronic device establishes a network connection with the network device based on the second paging message.
[0241] In one embodiment of this application, when it is determined that the second paging message is not a preset paging message, the electronic device can establish a network connection with the network device, thereby not affecting the normal communication between the electronic device and the network device.
[0242] Optionally, the method further includes: when it is determined that the second paging message is a preset paging message, and the electronic device is not in a preset state, the electronic device establishes a network connection with the network device based on the second paging message.
[0243] In one embodiment of this application, when the second paging is a paging message, but the electronic device is not in the aforementioned preset state, the electronic device can establish a network connection with the network device, thereby not affecting the normal communication between the electronic device and the network device.
[0244] This application also provides an electronic device, including one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by one or more processors, cause a power reduction method as described in any of the possible implementations above to be performed.
[0245] This application also provides an apparatus, including various modules or units for implementing the above functions.
[0246] This application embodiment also provides a chip, the chip including a processor and a communication interface, the communication interface being used to receive signals and transmit the signals to the processor, the processor processing the signals such that the power reduction method as described in any of the possible implementations above is executed.
[0247] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0248] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0249] This embodiment also provides a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the power reduction method described in the above embodiment to be performed.
[0250] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to achieve the power reduction method described in the above embodiment.
[0251] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the power reduction methods in the above-described method embodiments.
[0252] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0253] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0254] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0255] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0256] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0257] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0258] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0259] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for reducing power consumption, characterized in that, The method is applied in an electronic device, and the method includes: The electronic device detects a first number of junk data packets received within a first time period; When the electronic device determines that the first quantity satisfies the first relationship, it disconnects the network connection with the network device and sends a first network connection request to the network device. The electronic device receives a first paging message sent by the network device in response to the first network connection request; The electronic device re-establishes a network connection with the network device based on the first paging message.
2. The method according to claim 1, characterized in that, The electronic device determines that the first quantity satisfies the first relationship, including: When the first quantity is greater than the first preset value, the electronic device determines that the first quantity satisfies the first relationship.
3. The method according to claim 1, characterized in that, The electronic device determines that the first quantity satisfies the first relationship, including: When the ratio of the first quantity to the total number of data packets received by the electronic device within the first time period is greater than a second preset value, the electronic device determines that the first quantity satisfies the first relationship.
4. The method according to any one of claims 1-3, characterized in that, After re-establishing a network connection with the network device, the Internet Protocol (IP) address used by the electronic device to communicate with the network device is different from the IP address used by the electronic device to communicate with the network device before the network connection was re-established.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: When the electronic device determines that the first quantity does not satisfy the first relationship, the electronic device continues to detect the second quantity of garbage data packets received by the electronic device within the first time period; When the electronic device determines that the second quantity is greater than the first preset value, it disconnects the network connection with the network device and sends a network connection request to the network device.
6. An electronic device, characterized in that, include: One or more processors; One or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by one or more processors, cause the method for reducing power consumption as described in any one of claims 1-5 to be performed.
7. A chip, characterized in that, The chip includes a processor and a communication interface, the communication interface being used to receive signals and transmit the signals to the processor, the processor processing the signals such that the power reduction method as described in any one of claims 1-5 is executed.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the method for reducing power consumption as described in any one of claims 1-5 to be performed.
Citation Information
Patent Citations
Data processing system, method and device
CN113301103A
Paging Method, Device, And System
US20180206207A1