WO2023088106A1 - 降低功耗的方法和电子设备 - Google Patents

降低功耗的方法和电子设备 Download PDF

Info

Publication number
WO2023088106A1
WO2023088106A1 PCT/CN2022/129630 CN2022129630W WO2023088106A1 WO 2023088106 A1 WO2023088106 A1 WO 2023088106A1 CN 2022129630 W CN2022129630 W CN 2022129630W WO 2023088106 A1 WO2023088106 A1 WO 2023088106A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
network
paging message
network connection
network device
Prior art date
Application number
PCT/CN2022/129630
Other languages
English (en)
French (fr)
Inventor
李童心
童笑
石帅
郭浩平
付亚臣
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023088106A1 publication Critical patent/WO2023088106A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W68/00User notification, e.g. alerting and paging, for incoming communication, change of service or the like
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of electronic technology, and more particularly, to a method for reducing power consumption and an electronic device.
  • the network device can assign an Internet protocol (internet protocol, IP) address to the electronic device, and perform normal data exchange with the electronic device through the IP address.
  • IP Internet protocol
  • the network device may send some junk data packets to the electronic device, and the electronic device processes the junk data packets after receiving the junk data packets, thereby additionally increasing the power consumption of the electronic device.
  • Embodiments of the present application provide a method for reducing power consumption and an electronic device, so as to reduce the power consumption of the electronic device.
  • a method for reducing power consumption is provided, and the method can be applied to an electronic device, and the method includes: the electronic device detects a first number of junk data packets received within a first duration; When the electronic device determines that the first number satisfies the first relationship, disconnect the network connection with the network device, and send a first network connection request to the network device; the electronic device receives the network connection request sent by the network device In response to the first paging message of the first network connection request; the electronic device re-establishes a network connection with the network device according to the first paging message.
  • the electronic device can detect the number of junk data packets received within the first duration, and when the number satisfies the first relationship, the electronic device can disconnect from the network device and send a message to the network The device sends a network connection request, and re-establishes a network connection with the network device according to the paging message sent by the network device.
  • the network device 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 can reduce the power consumption of electronic equipment.
  • the electronic device determining that the first quantity satisfies a first relationship includes: when the first quantity is greater than a first preset value, the electronic device The device determines that the first quantity satisfies the first relationship.
  • the first number when the first number is greater than the first preset value, it means that the number of junk data packets received by the electronic device within the first duration is large, and it can be determined that the first number satisfies the first relationship, so that the electronic device can perform re-registration in order to reduce power consumption.
  • the electronic device determining that the first quantity satisfies a first relationship includes: when the first quantity and the electronic device are in the first duration When the ratio of the total number of received data packets is greater than a second preset value, the electronic device determines that the first number satisfies the first relationship.
  • the ratio of the first number to the total number of data packets received by the electronic device within the first duration is greater than the second preset value, it means that the junk data packets received by the electronic device within the first duration The number is large, so that the electronic device can perform re-registration in order to reduce power consumption.
  • whether to perform re-registration may also be determined by judging the relationship between the first speed at which the electronic device receives junk data packets within the first time period and a preset speed. For example, when the first speed is greater than the preset speed, the electronic device disconnects from the network device and sends a network connection request to the network device.
  • the Internet Protocol IP address and The IP address used for communication with the network device before the network device re-establishes the network connection is different.
  • the network device after 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, so that when the network device continues to send junk data packets to the old IP address, the electronic device The junk data packets cannot be received, thereby reducing the number of junk data packets received by the electronic device, that is, reducing the power consumption of the electronic device.
  • 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 electronic device The second number of junk data packets received within the first duration; when the electronic device determines that the second number is greater than a first preset value, disconnect the network connection with the network device, and send a message to the A network device sends a network connection request.
  • the electronic device can continue to detect the second amount of junk data packets received within the next first duration, and when the second amount is greater than the predetermined
  • 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 a network connection with the network device, which is conducive to reducing the power consumption of the electronic device .
  • a method for reducing power consumption is provided, the method is applied to an electronic device, and the method includes:
  • the electronic device sends a third network connection request to the network device; the electronic device receives a second paging message sent by the network device in response to the third network connection request; the electronic device parses the second paging message A paging message, 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; when it is determined that the electronic device is in a preset state, the The electronic device ignores the second paging message.
  • the electronic device can analyze the received paging message, and when it is determined that the paging message is a preset paging message, it can be determined whether the electronic device is in a preset state. When the device is in the default state, the paging message can be ignored, so that the electronic device does not establish a network connection with the network device, so that the electronic device cannot receive junk data packets from the network device, thereby reducing the power consumption of the electronic device.
  • the second paging message is a packet switched PS paging message.
  • the second paging message is a 5G paging message, or a paging message in a future network.
  • the preset state includes one of the following states: the data service switch of the electronic device is off; the long-term evolution voice bearer VOLTE of the electronic device The switch is off; the DND switch of the electronic device is on; the electronic device is connected to the enterprise Wi-Fi.
  • the paging message sent by the network device may be ignored, so as not to establish a network connection with the network device, thereby reducing power consumption of the electronic device.
  • the method further includes: when it is determined that the second paging message is not a preset paging message, the electronic device The call message establishes a network connection with the network device.
  • the electronic device may establish a network connection with the network device, so that normal communication between the electronic device and the network device may not be affected.
  • 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 according to the second paging message.
  • the electronic device when the second paging is a paging message, but the electronic device is not in the above-mentioned preset state, the electronic device can establish a network connection with the network device, so as not to affect the connection between the electronic device and the network. Normal communication of the device.
  • an electronic device including: one or more processors; one or more memories; one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions , when the instruction is executed by one or more processors, the method for reducing power consumption as described in the first aspect and any possible implementation manner thereof is executed.
  • an electronic device including: one or more processors; one or more memories; one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions , when the instruction is executed by one or more processors, the method for reducing power consumption as described in the second aspect and any possible implementation manner thereof is executed.
  • a chip in a fifth aspect, includes a processor and a communication interface, the communication interface is used to receive a signal, and transmit the signal to the processor, and the processor processes the signal, The method for reducing power consumption as described in the first aspect and any possible implementation manner thereof is executed.
  • a chip in a sixth aspect, includes a processor and a communication interface, the communication interface is used to receive a signal, and transmit the signal to the processor, and the processor processes the signal, The method for reducing power consumption as described in the second aspect and any possible implementation manner thereof is executed.
  • a computer-readable storage medium is provided.
  • Computer instructions are stored in the computer-readable storage medium.
  • the computer instructions are run on a computer, the The method for reducing power consumption described in the implementation is performed.
  • a computer-readable storage medium is provided.
  • Computer instructions are stored in the computer-readable storage medium.
  • the second aspect and any possible The method for reducing power consumption described in the implementation is performed.
  • a ninth aspect provides a computer program product, including computer instructions, when the computer instructions are run on a computer, the method for reducing power consumption as described in the first aspect and any possible implementation thereof be executed.
  • a computer program product including computer instructions.
  • the computer instructions When the computer instructions are run on a computer, the method for reducing power consumption as described in the second aspect and any possible implementation thereof be executed.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • Fig. 3 is a schematic diagram of an interaction process between an electronic device and a network device according to an embodiment of the present application.
  • Fig. 4 is a schematic diagram of an electronic device internally processing a data packet provided by an embodiment of the present application.
  • Fig. 5 is a schematic flowchart of a method for reducing power consumption provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of another method for reducing power consumption provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a method for reducing power consumption provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of another method for reducing power consumption provided by an embodiment of the present application.
  • the electronic equipment in the embodiments of the present application may refer to user equipment, access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user device.
  • the electronic device may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a Functional handheld devices, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in the fifth generation (5generation, 5G) communication network or future evolution of the public land mobile communication network (public land mobile network (PLMN), etc., which are not limited in this embodiment of the present application.
  • 5G fifth generation
  • PLMN public land mobile network
  • the network device in the embodiment of the present application may be a device for communicating with an electronic device, and the network device may be a global system of mobile communication (GSM) system or a code division multiple access (CDMA)
  • GSM global system of mobile communication
  • CDMA code division multiple access
  • the base transceiver station (BTS) in the system can also be the base station (nodeB, NB) in the wideband code division multiple access (WCDMA) system, or the evolved base station (evolutionary base station) in the LTE system.
  • NB base station
  • WCDMA wideband code division multiple access
  • evolutionary base station evolved base station
  • nodeB eNB or eNodeB
  • it can also be a wireless controller in a cloud radio access network (cloud radio access network, CRAN) scenario
  • the network device can be a relay station, an access point, a vehicle device, a wearable device, and a 5G
  • the embodiment of the present application does not limit the network equipment in the network or the network equipment in the future evolved PLMN network.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • SDA serial data line
  • SCL serial clock line
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), or an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode, or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light emitting diode
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed or quantum dot light emitting diodes (quantum dot light emitting diodes, QLED) and other materials. Fabricated display panels.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • Camera 193 is used to capture still images or video.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • an external memory card such as a Micro SD card
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used for connecting wired earphones.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
  • the distance sensor 180F is used to measure the distance.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal.
  • the keys 190 include a power key, a volume key and the like.
  • the motor 191 can generate a vibrating reminder.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are application program layer, application program framework layer, Android runtime and system library, and kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • Android runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • Junk data packet the type of data packet received by the electronic device is consistent with the type of data included in the preset processing rule table; or, the type of data packet received by the electronic device is consistent with the transmission control protocol (transmission control protocol, TCP) or Internet Protocol
  • TCP transmission control protocol
  • IP Internet Protocol
  • the type of data included in the (internet protocol, IP) protocol stack is consistent; or, the type of the data packet received by the electronic device is consistent with the type of data that can be processed by the electronic device.
  • Fig. 3 is a schematic diagram of an interaction process between an electronic device and a network device according to an embodiment of the present application. As shown in FIG. 3 , the interaction process may include steps 310 to 350 .
  • the electronic device sends a network connection request to the network device.
  • the electronic device in response to the user's operation of turning on the data switch, the electronic device sends a network connection request to the network device.
  • the network device After receiving the network request, the network device establishes a network connection with the electronic device, and assigns an IP address to the electronic device.
  • the network device may send a paging message to the electronic device, and after receiving the paging message, the electronic device establishes a network connection with the network device, so that the electronic device can Use the network normally.
  • the network device can assign an IP address to the electronic device, and the IP address is an identification of the electronic device, and the network device can exchange network data packets with the electronic device through the IP address.
  • the electronic device sends the first data packet to the network device.
  • the first data packet is used to request certain data.
  • the network device After receiving the first data packet sent by the electronic device, the network device sends the second data packet to the electronic device.
  • the network device after receiving the first data packet sent by the electronic device, the network device sends the requested data to the electronic device.
  • the network device sends junk data packets to the electronic device.
  • network devices may also send some junk data packets. After receiving the junk data packets, the electronic devices process the junk data packets, which will increase the power consumption.
  • electronic equipment generally adopts a communication mode based on an application processor (AP) and a modem (modem).
  • AP application processor
  • modem modem
  • the modem in the electronic equipment decodes the After the adjustment, it is sent to the AP.
  • the AP processes the data packet, it sends the signal to be sent to the modem.
  • the modem After being modulated by the modem, it is sent to the radio frequency transceiver, antenna, etc. to send the signal to the network device.
  • Fig. 4 is a schematic diagram of an electronic device internally processing a data packet provided by an embodiment of the present application.
  • the electronic device 400 may at least include an application processor AP410 and a modem 420 .
  • the modem 420 demodulates the data packet from the network device and sends it to the AP 410 . After the AP 410 processes the data packet, it transmits the data to be sent to the modem 420 .
  • the address is an identifier of the electronic device 400, and the network device can perform data interaction with the electronic device 400 through the IP address.
  • both the modem 420 and the AP 410 need to work.
  • the electronic device 400 may continue to receive junk data packets from the network device.
  • the modem 420 and the AP 410 need to process these junk data packets all the time, thus increasing the power consumption of the electronic device 400 .
  • the data processing rule table can be preset in the modem, when the type of the data packet received by the modem is consistent with the data type included in the data processing rule table, or, the type of the data packet received by the modem If it is consistent with the data type stipulated by the preset TCP/IP protocol stack protocol, the modem will process the data packet without sending the data packet to the AP, thereby reducing the power consumption of the AP and further reducing the power consumption of the electronic equipment. power consumption.
  • the above-mentioned technical solution reduces the power consumption of the AP, but the modem still needs to work continuously, so that the power consumption of the electronic equipment is relatively high.
  • an embodiment of the present application provides a method for reducing power consumption, and the technical solution can reduce power consumption of an electronic device.
  • Fig. 5 is a schematic flowchart of a method for reducing power consumption provided by an embodiment of the present application. As shown in FIG. 5 , the method may be applied to an electronic device, and the method may include steps 510 to 560 .
  • the electronic device sends a second network connection request to the network device.
  • the second network connection request is used to request the electronic device to access the network.
  • the electronic device is in a power-off state, and in response to a user's power-on operation, the electronic device sends a second network connection request to the network device.
  • the electronic device in response to the user's operation of turning on the data switch, the electronic device sends a second network connection request to the network device.
  • the electronic device is in a state of opening an application, such as Huawei Video, and in response to an operation of clicking a certain video by the user, the electronic device sends a second network connection request to the network device.
  • an application such as Huawei Video
  • the electronic device establishes a network connection with the network device.
  • the network device may send a paging message to the electronic device, and the electronic device establishes a network connection with the network device after receiving the paging message sent by the network device.
  • an IP address may be assigned to the electronic device, so that the network device may perform data interaction with the electronic device through the IP address.
  • step 510 to step 520 are optional steps, and in some embodiments, the technical solution may also start from step 530, that is, the electronic device is already in the network connection state.
  • the electronic device detects a first number of junk data packets received within a first duration.
  • an apparatus for detecting junk data packets may be set in an electronic device.
  • a device for detecting junk data packets is provided in a modem in an electronic device, so that the quantity of junk data packets received by the electronic device within a period of time can be detected.
  • the function of detecting the number of junk data packets can be set in the electronic device, for example, the function module for detecting the number of junk data packets can be built into a modem in the electronic device.
  • the first duration may be preset, for example, the first duration is 5 minutes, and the embodiment of the present application does not limit the specific value of the first duration.
  • step 550 may be executed.
  • the electronic device receives a small number of junk data packets within the first time period, and the electronic device continues to detect the next The number of junk packets received in the first duration.
  • the preset number may be 10, 20, etc., and the embodiment of the present application does not limit the specific value of the preset number.
  • the electronic device may also determine whether to send the first Network connection request.
  • step 550 can be executed.
  • the electronic device sends a first network connection request to the network device.
  • the electronic device when it is determined that the first number is greater than the preset number, the electronic device sends a first network connection request to the network device, where the first network connection request is used to request to re-establish a network connection with the network device.
  • the modem in the electronic device is triggered to re-register with the network, and when the modem re-registers with the network, the electronic device is triggered to send a first network connection request to the network device.
  • step 550 before the electronic device sends the first network connection request to the network device, the electronic device disconnects the previous network connection with the network device.
  • the electronic device re-establishes a network connection with the network device.
  • the network device may send a paging message to the electronic device, and after receiving the paging message, the electronic device may re-establish a network connection with the network device.
  • the network device When the electronic device re-establishes a network connection with the network device, the network device will re-allocate an IP address for the electronic device, and the network device can exchange data with the electronic device through the newly assigned IP address.
  • the junk data packet When the junk data packet is pushed, the electronic device cannot receive the junk data packet, so that the power consumption of the electronic device can be reduced.
  • the electronic device after the electronic device establishes a network connection with the network device, it can detect the number of junk data packets received within a period of time. When the number of junk data packets is greater than the preset number, the electronic device The network connection request can be sent to the network device again, and the network connection can be re-established with the network, so that the network device can assign a new IP address to the electronic device, so that when the network device continues to push junk data packets to the original IP address, the electronic device The device does not receive junk data packets, which in turn reduces the power consumption of electronic devices.
  • 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 of the above steps 530-560.
  • the terminal device after the network device establishes a network connection with the terminal device, when the number of garbage packets received by the terminal device within a preset period of time is large, the terminal device obtains a new IP address by re-establishing a connection with the network device , so that the number of junk data packets received by the terminal device can be reduced, thereby reducing the power consumption of the terminal device.
  • FIG. 6 is a schematic flowchart of another method for reducing power consumption provided by an embodiment of the present application. As shown in FIG. 6 , the method may include step 610 to step 670 .
  • the electronic device sends a third network connection request to the network device.
  • the third network connection request is used to request the electronic device to access the network.
  • the electronic device receives the paging message sent by the network device.
  • the network device sends the paging message to the electronic device after receiving the third network connection request.
  • the paging message may be a packet switching (packet switching, PS) paging, or the paging message may also be a circuit switching (circuit switching, CS) paging, or the paging message may also be
  • the paging message in 5G is not limited in this embodiment of the present application.
  • the electronic device parses the paging message.
  • the electronic device can analyze the received paging message and identify the type of the paging message.
  • the electronic device parses the paging message and obtains that the type of the paging message is a PS paging message, which means that when the electronic device establishes a network connection with the network device, the network connection is a 4G communication network connection.
  • the electronic device parses the paging message and obtains that the type of the paging message is a PC paging message, which 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.
  • the electronic device determines whether the paging message is a preset paging message.
  • step 650 when the electronic device judges that the paging message is a preset paging message, step 650 may be executed; when the electronic device judges that the paging message is not a preset paging message, step 670 may be performed.
  • the preset paging message is a PS paging message.
  • the preset paging message is a CS paging message.
  • the preset paging message is a paging message in a 5G communication network.
  • the electronic device determines whether the electronic device is in a preset state.
  • step 660 when the electronic device determines that the electronic device is in a preset state, step 660 may be performed; when the electronic device determines that the electronic device is not in a preset state, step 670 may be performed.
  • the preset state may be a data service switch off state, a long-term evolution voice bearer (voice over long-term evolution, VOLTE) switch off state, a do not disturb switch on state, and an enterprise Wi-Fi connection state.
  • VOLTE voice over long-term evolution
  • the electronic device is in the enterprise Wi-Fi connection state means that the electronic device is in the Wi-Fi connection state, but the electronic device can only use the Wi-Fi to access fixed applications, websites, etc., that is, the electronic device only Ability to access parts of the network.
  • the electronic device ignores the paging message.
  • the electronic device can ignore the paging message, that is, the electronic device does not establish a network connection with the network device, so that the electronic device may not receive the paging message sent by the network device.
  • Garbage data packets which can reduce the power consumption of electronic equipment.
  • the electronic device establishes a network connection with the network device.
  • the electronic device may establish a 3G communication network connection, a 4G communication network connection, or a 5G communication network connection with the network device, which is not limited in this embodiment of the present application.
  • the electronic device may establish a 4G communication network connection with the network device .
  • the electronic device may communicate with the network device Establish a 5G communication network connection.
  • the electronic device before the electronic device establishes a network connection with the 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 When it is a preset paging message, it is determined whether the electronic device is in a preset state, and 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 The power consumption of electronic equipment can be reduced.
  • FIG. 7 is a schematic flowchart of a method for reducing power consumption provided by an embodiment of the present application. The method may be applied to an electronic device, and as shown in FIG. 7 , the method may include steps 710 to 740.
  • the electronic device detects a first number of junk data packets received within a first duration.
  • the first duration may be a preset duration, for example, the first duration is 5 minutes, 10 minutes, etc., and the application does not limit the specific value of the first duration.
  • a re-registration operation may be triggered, that is, the network connection with the network device may be disconnected, and a first network connection request may be sent to the network device.
  • the electronic device may be connected to a different network device or the same network device, which is not limited in this embodiment of the present application.
  • the electronic device determining that the first quantity satisfies a first relationship includes:
  • the electronic device determines that the first quantity satisfies the first relationship.
  • the first number is greater than the first preset value, it means that the number of junk data packets received by the electronic device within the first duration is relatively large, and it can be determined that the first number satisfies the first relationship, so that the electronic device can perform re-registration In order to reduce power consumption.
  • the first preset value may be 20, 30 and so on.
  • the electronic device determining that the first quantity satisfies a first relationship includes:
  • the electronic device determines that the first number satisfies the first relationship .
  • the ratio of the first number to the total number of data packets received by the electronic device within the first time length is greater than the second preset value, it means that the electronic device receives a large number of junk data packets within the first time length, so that the electronic device can Re-registration is performed to reduce power consumption.
  • the embodiment of the present application does not limit the specific value of the second preset value, for example, the second preset value may be 0.5, 0.4 and so on.
  • whether to perform re-registration may also be determined by judging the relationship between the first speed at which the electronic device receives junk data packets within the first time period and a preset speed. For example, when the first speed is greater than the preset speed, the electronic device disconnects from the network device and sends a 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 network device sends the first paging message according to the first network connection request.
  • the electronic device re-establishes a network connection with the network device according to the first paging message.
  • the electronic device may re-establish a network connection with the network device according to the first paging message.
  • the electronic device can detect the number of junk data packets received within the first duration, and when the number satisfies the first relationship, the electronic device can disconnect from the network device and send a message to the network The device sends a network connection request, and re-establishes a network connection with the network device according to the paging message sent by the network device.
  • the network device 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 can reduce the power consumption of electronic equipment.
  • the Internet Protocol IP address used by the electronic device to communicate with the network device and the The IP addresses used by network devices to communicate are different.
  • the network device after 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, so that when the network device continues to send junk data packets to the old IP address, the electronic device The junk data packets cannot be received, thereby reducing the number of junk data packets received by the electronic device, that is, reducing the power consumption of the electronic device.
  • the electronic device determines that the first number does not satisfy the first relationship, the electronic device continues to detect a second number of junk data packets received by the electronic device within the first duration;
  • the electronic device determines that the second number is greater than the first preset value, disconnect the network connection with the network device, and send a network connection request to the network device.
  • the electronic device can continue to detect the second amount of junk data packets received within the next first duration, and when the second amount is greater than the predetermined
  • 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 a network connection with the network device, which is conducive to reducing the power consumption of the electronic device .
  • FIG. 8 is a schematic flowchart of another method for reducing power consumption provided by an embodiment of the present application.
  • the method may be applied to an electronic device, and as shown in FIG. 8 , the method may include step 810 to step 840 .
  • the electronic device sends a third network connection request to the network device.
  • the electronic device Before establishing a network connection with the network device, the electronic device will send a network connection request to the network device to request access to the network.
  • the electronic device in response to the user's operation of turning on the data switch, the electronic device sends a network connection request to the network device.
  • the electronic device is in a power-off state, and in response to the user's power-on operation, the electronic device sends a network connection request to the network device.
  • the electronic device when the electronic device is in the state of opening an application, such as in Huawei Video, the electronic device sends a network connection request to the network device in response to an operation of clicking a certain video by the user.
  • the electronic device receives a second paging message sent by the network device in response to the third network connection request.
  • the network device may send the second paging message.
  • the electronic device parses the second paging message, and when determining that the second paging message is a preset paging message, the electronic device determines whether the electronic device is in a preset state.
  • the electronic device after the electronic device receives the second paging message sent by the network device, it can first parse the second paging message, and when it is determined that the second paging message is a preset paging message, continue to judge whether the electronic device is in default state.
  • the preset paging message may be a PS paging message, a PC paging message, a paging message in 5G or a future communication network, and the like.
  • the electronic device ignores the second paging message.
  • the second paging message may be ignored, that is, no network connection is established with the network device.
  • the electronic device can analyze the received paging message, and when it is determined that the paging message is a preset paging message, it can be determined whether the electronic device is in a preset state. When the device is in the default state, the paging message can be ignored, so that the electronic device does not establish a network connection with the network device, so that the electronic device cannot receive junk data packets from the network device, thereby reducing the power consumption of the electronic device.
  • the preset state may be one of the following states:
  • the data service switch of the electronic device is off;
  • the long-term evolution voice bearer VOLTE switch of the electronic device is off;
  • the do-not-disturb switch of the electronic device is turned on;
  • the electronic device is in an enterprise Wi-Fi connection state.
  • the electronic device is in the enterprise Wi-Fi connection state means that the electronic device is in the Wi-Fi connection state, but the electronic device can only use the Wi-Fi to access fixed applications, websites, etc., that is, the electronic device only Ability to access parts of the network.
  • the second paging message is a PS paging message.
  • the method further includes: when determining that the second paging message is not a preset paging message, the electronic device establishes a network connection with the network device according to the second paging message.
  • the electronic device may establish a network connection with the network device, so that normal communication between the electronic device and the network device may not be affected.
  • 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 The message is related to establishing a network connection with the network.
  • the electronic device when the second paging is a paging message, but the electronic device is not in the above-mentioned preset state, the electronic device can establish a network connection with the network device, so as not to affect the connection between the electronic device and the network. Normal communication of the device.
  • the embodiment of the present application also provides an electronic device, including one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions, When the instruction is executed by one or more processors, the method for reducing power consumption as described in any possible implementation manner above is executed.
  • the embodiment of the present application also provides an apparatus, including various modules or units for realizing the above functions.
  • the embodiment of the present application also provides a chip, the chip includes a processor and a communication interface, the communication interface is used to receive a signal, and transmit the signal to the processor, and the processor processes the signal, The method for reducing power consumption as described in any one of the foregoing possible implementation manners is executed.
  • the electronic device includes hardware and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the functional modules of the electronic device may be divided according to the above method example.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on a computer, the method for reducing power consumption in the above-mentioned embodiments is executed.
  • This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to implement the method for reducing power consumption in the above embodiment.
  • an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the methods for reducing power consumption in the above method embodiments.
  • the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above-mentioned The beneficial effects of the corresponding method will not be repeated here.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例提供了一种降低功耗的方法和电子设备,该方法可以应用于电子设备中,该方法包括:所述电子设备检测在第一时长内接收到的垃圾数据包的第一数量;当所述电子设备确定所述第一数量满足第一关系时,断开与网络设备的网络连接,并向所述网络设备发送第一网络连接请求;所述电子设备接收所述网络设备发送的响应于所述第一网络连接请求的第一寻呼消息;所述电子设备根据所述第一寻呼消息重新与所述网络设备建立网络连接。该技术方案有利于降低电子设备的功耗。

Description

降低功耗的方法和电子设备
本申请要求于2021年11月16日提交中国专利局、申请号为202111357066.2、申请名称为“降低功耗的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,并且更具体地,涉及一种降低功耗的方法和电子设备。
背景技术
电子设备在与网络设备交互的过程中,网络设备可以为电子设备分配互联网协议(internet protocol,IP)地址,并通过该IP地址与电子设备进行正常的数据交换。
但在一些情况下,网络设备可能会向该电子设备发送一些垃圾数据包,电子设备接收到垃圾数据包之后,对该垃圾数据包进行处理,从而额外增加了电子设备的功耗。
发明内容
本申请实施例提供一种降低功耗的方法和电子设备,以期降低电子设备的功耗。
第一方面,提供了一种降低功耗的方法,所述方法可以应用于电子设备中,所述方法包括:所述电子设备检测在第一时长内接收到的垃圾数据包的第一数量;当所述电子设备确定所述第一数量满足第一关系时,断开与网络设备的网络连接,并向所述网络设备发送第一网络连接请求;所述电子设备接收所述网络设备发送的响应于所述第一网络连接请求的第一寻呼消息;所述电子设备根据所述第一寻呼消息重新与所述网络设备建立网络连接。
在本申请的一个实施例中,电子设备可以检测在第一时长内接收到的垃圾数据包的数量,当该数量满足第一关系时,电子设备可以断开与网络设备的连接,并向网络设备发送网络连接请求,并根据网络设备发送的寻呼消息重新与该网络设备建立网络连接。
这样,当电子设备重新与该网络设备建立网络连接时,网络设备会为电子设备分配新的IP地址,因此,当网络设备向原先的IP地址发送垃圾数据包时,该电子设备不会接收到该垃圾数据包,从而可以降低电子设备的功耗。
结合第一方面,在第一方面的某些实现方式中,所述电子设备确定所述第一数量满足第一关系,包括:当所述第一数量大于第一预设值时,所述电子设备确定所述第一数量满足所述第一关系。
在本申请的一个实施例中,当第一数量大于第一预设值时,意味着电子设备在第一时长内接收的垃圾数据包的数量较多,则可以确定该第一数量满足第一关系,从而电子设备可以进行重注册以期降低功耗。
结合第一方面,在第一方面的某些实现方式中,所述电子设备确定所述第一数量满足第一关系,包括:当所述第一数量与所述电子设备在所述第一时长内接收的数据包的总数 的比值大于第二预设值时,所述电子设备确定所述第一数量满足所述第一关系。
在本申请的一个实施例中,当第一数量与电子设备在第一时长内接收的数据包的总数的比值大于第二预设值,意味着电子设备在第一时长内接收的垃圾数据包的数量较多,从而电子设备可以进行重注册以期降低功耗。
可选地,在另一些实施例中,也可以通过判断该电子设备在第一时长内接收垃圾数据包的第一速度与预设速度之间的关系,确定是否进行重注册。例如,当该第一速度大于预设速度时,该电子设备断开与网络设备的连接,并向网络设备发送网络连接请求。
结合第一方面,在第一方面的某些实现方式中,在重新与所述网络设备建立网络连接之后,所述电子设备与所述网络设备进行通信的互联网协议IP地址和所述电子设备与所述网络设备重新建立网络连接之前与所述网络设备进行通信的IP地址不同。
在本申请的一个实施例中,电子设备与网络设备重新建立网络连接之后,网络设备会电子设备分配新的IP地址,从而当网络设备继续向旧的IP地址发送垃圾数据包时,该电子设备无法接收到该垃圾数据包,从而减少了电子设备接收的垃圾数据包的数量,即降低了电子设备的功耗。
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:当所述电子设备确定所述第一数量未满足第一关系时,所述电子设备继续检测所述电子设备在所述第一时长内接收到的垃圾数据包的第二数量;当所述电子设备确定所述第二数量大于第一预设值时,断开与网络设备的网络连接,并向所述网络设备发送网络连接请求。
这样,当第一时长内接收的垃圾数据包的数量未满足第一关系时,该电子设备可以继续检测在下一第一时长内接收的垃圾数据包的第二数量,当该第二数量大于预设值时,电子设备可以进行重注册,即断开与网络设备的网络连接,并向网络设备发送新的网络连接请求,以期重新与网络设备建立网络连接,从而有利于降低电子设备的功耗。
第二方面,提供了一种降低功耗的方法,所述方法应用于电子设备中,所述方法包括:
所述电子设备向网络设备发送第三网络连接请求;所述电子设备接收所述网络设备发送的响应于所述第三网络连接请求的第二寻呼消息;所述电子设备解析所述第二寻呼消息,当确定所述第二寻呼消息为预设寻呼消息时,所述电子设备确定所述电子设备是否处于预设状态;当确定所述电子设备处于预设状态时,所述电子设备忽略所述第二寻呼消息。
这样,在电子设备与网络设备建立网络连接之前,电子设备可以解析接收到的寻呼消息,当确定该寻呼消息为预设寻呼消息时,确定电子设备是否处于预设状态,当该电子设备处于预设状态时,可以忽略该寻呼消息,从而该电子设备不与网络设备建立网络连接,从而该电子设备接收不到来自网络设备的垃圾数据包,从而可以降低电子设备的功耗。
结合第二方面,在第二方面的某些实现方式中,所述第二寻呼消息为分组交换PS寻呼消息。
可选地,该第二寻呼消息为5G寻呼消息、或未来网络中的寻呼消息等。
结合第二方面,在第二方面的某些实现方式中,所述预设状态包括如下状态中的一种:所述电子设备的数据业务开关关闭状态;所述电子设备的长期演进语音承载VOLTE开关关闭状态;所述电子设备的免打扰开关打开状态;所述电子设备处于企业Wi-Fi连接状态。
在本申请的一个实施例中,当电子设备处于上述预设状态中时,可以忽略网络设备发送的寻呼消息,从而不与网络设备建立网络连接,进而降低电子设备的功耗。
结合第二方面,在第二方面的某些实现方式中,所述方法还包括:当确定所述第二寻 呼消息不为预设寻呼消息时,所述电子设备根据所述第二寻呼消息与所述网络设备建立网络连接。
在本申请的一个实施例中,当确定第二寻呼消息不为预设寻呼消息时,电子设备可以与网络设备建立网络连接,从而可以不影响电子设备与网络设备的正常通信。
结合第二方面,在第二方面的某些实现方式中,所述方法还包括:当确定所述第二寻呼消息为预设寻呼消息时,且所述电子设备未处于预设状态时,所述电子设备根据所述第二寻呼消息与所述网络涉笔建立网络连接。
在本申请的一个实施例中,当该第二寻呼为寻呼消息,但该电子设备未处于上述预设状态时,电子设备可以与网络设备建立网络连接,从而可以不影响电子设备与网络设备的正常通信。
第三方面,提供了一种电子设备,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如第一方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
第四方面,提供了一种电子设备,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如第二方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
第五方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如第一方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
第六方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如第二方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
第七方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如第一方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
第八方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如第二方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
第九方面,提供了一种计算机程序产品,包括计算机指令,当所述计算机指令在计算机上运行时,使得如第一方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
第十方面,提供了一种计算机程序产品,包括计算机指令,当所述计算机指令在计算机上运行时,使得如第二方面及其任一种可能的实现方式中所述的降低功耗的方法被执行。
附图说明
图1是本申请实施例提供的电子设备的结构示意图。
图2是本申请实施例提供的电子设备的软件结构示意图。
图3是本申请实施例提供的一种电子设备与网络设备交互过程的示意图。
图4是本申请实施例提供的一种电子设备内部处理数据包的示意图。
图5是本申请实施例提供的一种降低功耗的方法的示意性流程图。
图6是本申请实施例提供的另一种降低功耗的方法的示意性流程图。
图7是本申请实施例提供的一种降低功耗的方法的示意性流程图。
图8是本申请实施例提供的另一种降低功耗的方法的示意性流程图。
具体实施方式
下面将结合附图,对本申请实施例中的技术方案进行描述。
本申请实施例中的电子设备可以指用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。电子设备还可以是蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,第五代(5generation,5G)通信网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请实施例对此并不限定。
本申请实施例中的网络设备可以是用于与电子设备通信的设备,该网络设备可以是全球移动通讯(global system of mobile communication,GSM)系统或码分多址(code division multiple access,CDMA)中的基站(base transceiver Station,BTS),也可以是宽带码分多址(wideband code division multiple access,WCDMA)系统中的基站(nodeB,NB),还可以是LTE系统中的演进型基站(evolutional nodeB,eNB或eNodeB),还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器,或者该网络设备可以为中继站、接入点、车载设备、可穿戴设备以及5G网络中的网络设备或者未来演进的PLMN网络中的网络设备等,本申请实施例并不限定。
图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network  processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),也可以采用有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed或量子点发光二极管(quantum dot light emitting diodes,QLED)等材料中的一种所制作的显示面板。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。 处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。
距离传感器180F,用于测量距离。
指纹传感器180H用于采集指纹。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。
马达191可以产生振动提示。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管 理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图、图像渲染、合成和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
在介绍本申请实施例的降低电子设备功耗的方法的技术方案之前,首先对本申请涉及的部分名词做简单的介绍。
垃圾数据包:电子设备接收的数据包的类型与预设处理规则表中包括的数据的类型一致;或者,电子设备接收的数据包的类型与传输控制协议(transmission control protocol,TCP)或互联网协议(internet protocol,IP)协议栈中包括的数据的类型一致;或者,电子设备接收的数据包的类型与电子设备中自定义可处理数据类型一致。
图3是本申请实施例提供的一种电子设备与网络设备交互过程的示意图。如图3所示, 该交互过程可以包括步骤310至步骤350。
310,电子设备向网络设备发送网络连接请求。
示例性地,响应于用户打开数据开关的操作,电子设备向网络设备发送网络连接请求。
320,网络设备接收到网络请求之后,与电子设备建立网络连接,并为该电子设备分配IP地址。
应理解,该步骤中,网络设备在接收到电子设备的网络请求之后,可以向电子设备发送寻呼消息,电子设备接收到该寻呼消息后,与网络设备建立网络连接,从而该电子设备可以正常的使用网络。当电子设备与网络设备建立网络连接之后,网络设备可以为该电子设备分配IP地址,该IP地址是该电子设备的标识,网络设备可以通过该IP地址与电子设备进行网络数据包的交换。
330,电子设备向网络设备发送第一数据包。
示例性地,该第一数据包用于请求某些数据。
340,网络设备接收到电子设备发送的第一数据包之后,向电子设备发送第二数据包。
示例性地,该网络设备接收到电子设备发送的第一数据包之后,向电子设备发送其请求的数据。
350,网络设备向电子设备发送垃圾数据包。
在一些情况下,网络设备除了向电子设备发送正常的数据包之外,还可能发送一些垃圾数据包,电子设备接收到该垃圾数据包之后对该垃圾数据包进行处理,将会增加电子设备的功耗。
当前,电子设备一般采用基于(application processor,AP)和调制解调器(modem)的通信模式,在当电子设备与网络设备进行数据交换时,电子设备中的调制解调器将网络设备传输至电子设备的数据包解调后发送给AP,AP对该数据包进行处理后,将需要发送的信号发送给调制解调器,由调制解调器调制后发送给射频收发机、天线等,以将该信号发送给网络设备。
图4是本申请实施例提供的一种电子设备内部处理数据包的示意图。如图4所示,该电子设备400至少可以包括应用处理器AP410和调制解调器420。
在电子设备400与网络设备通信的过程中,调制解调器420将来自网络设备的数据包解调后发送给AP410,AP410对该数据包进行处理之后,将需要发送的数据传输给调制解调器420。
在AP410的传输控制协议(transmission control protocol,TCP)或IP协议栈的传输层中具有电子设备400上所运行程序的端口号和电子设备的IP地址,对于接入网络的电子设备来说,IP地址是该电子设备400的标识,网络设备可以通过该IP地址与电子设备400进行数据交互。
参见图4,电子设备400与网络设备进行数据交互的过程中,调制解调器420和AP410都需要进行工作,在一些情况下,电子设备400可能会持续接收到来自网络设备的垃圾数据包,此时,调制解调器420和AP410需要一直处理这些垃圾数据包,从而增加了电子设备400的功耗。
为了降低电子设备的功耗,可以在调制解调器中预设数据处理规则表,当调制解调器接收到的数据包的类型与数据处理规则表中包括的数据类型一致,或,调制解调器接收到的数据包的类型与预设TCP/IP协议栈协议规定的数据类型一致的情况下,由该调制解调 器进行该数据包的处理,不需要将该数据包发送至AP,从而可以降低AP的功耗,进而降低电子设备的功耗。
上述技术方案降低了AP的功耗,但是调制解调器仍需持续进行工作,从而使得电子设备的功耗较大。
有鉴于此,本申请实施例提供一种降低功耗的方法,该技术方案可以降低电子设备的功耗。
下面将结合图5-图6详细介绍本申请实施例中的降低功耗的方法。
图5是本申请实施例提供的一种降低功耗的方法的示意性流程图。如图5所示,该方法可以应用于电子设备中,该方法可以包括步骤510至步骤560。
510,电子设备向网络设备发送第二网络连接请求。
其中,该第二网络连接请求用于请求将电子设备接入网络。
在一个示例中,电子设备处于关机状态,响应于用户开机的操作,电子设备向网络设备发送第二网络连接请求。
在另一个示例中,响应于用户打开数据开关的操作,电子设备向网络设备发送第二网络连接请求。
在另一个示例中,电子设备处于打开应用的状态中,如华为视频中,则响应于用户点击某个视频的操作,电子设备向网络设备发送第二网络连接请求。
520,电子设备与网络设备建立网络连接。
其中,网络设备接收到该第二网络连接请求之后,可以向该电子设备发送寻呼消息,该电子设备接收到网络设备发送的寻呼消息之后,与网络设备建立网络连接。
在网络设备与电子设备建立网络连接之后,可以为该电子设备分配IP地址,从而网络设备可以通过该IP地址与电子设备进行数据交互。
应理解,该步骤510至步骤520为可选步骤,在一些实施例中,该技术方案也可以从步骤530开始,即该电子设备已经处于网络连接状态。
530,电子设备检测在第一时长内接收到的垃圾数据包的第一数量。
在一个示例中,可以在电子设备中设置垃圾数据包检测装置。例如,在电子设备中的调制解调器中设置垃圾数据包检测装置,从而可以检测电子设备在一段时间内接收到的垃圾数据包的数量。
在另一个示例中,可以在电子设备中设置检测垃圾数据包数量的功能,例如,将该检测垃圾数据包数量的功能模块置入电子设备中的调制解调器中。
应理解,该第一时长可以是预先设置的,如该第一时长为5分钟,本申请实施例对该第一时长的具体取值不予限定。
540,判断第一数量是否大于预设数量。
在一种可能的实现方式中,若该第一数量大于预设数量,则说明该电子设备在第一时长内接收到的垃圾数据包的数量较多,则可以执行步骤550。
在另一种可能的实现方式中,若该第一数量小于或等于预设数量,说明该电子设备在第一时长内接收到的垃圾数据包的数量较少,则该电子设备继续检测在下一个第一时长内接收到的垃圾数据包的数量。
应理解,该预设数量可以10、20等,本申请实施例对该预设数量的具体取值不予限定。
在另一些实施例中,电子设备也可以通过判断该第一数量与电子设备在第一时长内接收的数据包的总数的比值与预设值之间的关系,确定是否向网络设备发送第一网络连接请求。
例如,当第一数量与电子设备在第一时长内接收的数据包的总数的比值大于预设值时,则意味着在第一时长内,电子设备接收到的垃圾数据包的数量占比较大,则可以执行步骤550。
在其他的实施例中,还可以通过该垃圾数据包的其他指标确定是否重新向网络设备发送第一网络连接请求,如接收垃圾数据包的速度等。
550,电子设备向网络设备发送第一网络连接请求。
其中,在确定第一数量大于预设数量的情况下,该电子设备向网络设备发送第一网络连接请求,该第一网络连接请求用于请求重新与网络设备建立网络连接。
示例性地,在确定第一数量大于预设数量的情况下,触发电子设备中的调制解调器重新注册网络,当调制解调器重新注册网络时,会触发电子设备向网络设备发送第一网络连接请求。
应理解,该步骤550中,电子设备向网络设备发送第一网络连接请求之前,该电子设备会断开之前与网络设备之间的网络连接。
560,电子设备重新与网络设备建立网络连接。
其中,网络设备在接收到该第一网络连接请求之后,可以向电子设备发送寻呼消息,在电子设备接收到寻呼消息之后,可以重新与网络设备建立网络连接。
电子设备重新与网络设备建立网络连接时,网络设备会重新为电子设备分配IP地址,则网络设备可以通过该新分配的IP地址与电子设备进行数据交互,则当网络设备继续向原来的IP地址推送垃圾数据包时,该电子设备接收不到垃圾数据包,从而可以降低电子设备的功耗。
在本申请的一个实施例中,电子设备与网络设备建立网络连接之后,可以检测在一段时间内接收到的垃圾数据包的数量,当该垃圾数据包的数量大于预设数量时,该电子设备可以重新向网络设备发送网络连接请求,并重新与网络建立网络连接,从而网络设备可以为该电子设备分配新的IP地址,从而当网络设备继续向原来的IP地址推送垃圾数据包时,该电子设备接收不到垃圾数据包,进而可以降低电子设备的功耗。
应理解,当电子设备分配到新的IP地址之后,尽管该电子设备接收不到网络设备向原来的IP地址发送的垃圾数据包,但是电子设备在新的IP地址下可能仍会接收一些垃圾数据包,则该电子设备可以继续检测在新的IP地址下在一定时长内接收的垃圾数据包的数量,并可以继续上述步骤530-560的过程。
上文结合图5介绍了在网络设备与终端设备建立网络连接之后,当终端设备在预设时长内接收的垃圾包的数量较多时,终端设备通过重新与网络设备建立连接来获取新的IP地址,从而可以减少终端设备接收垃圾数据包的数量,从而降低终端设备的功耗的目的技术方案。
下文将结合图6介绍本申请实施例中,终端设备与网络设备不建立网络连接,从而降低终端设备功耗的技术方案。
图6是本申请实施例提供的另一种降低功耗的方法的示意性流程图。如图6所示,该方法可以包括步骤610至步骤670。
610,电子设备向网络设备发送第三网络连接请求。
其中,该第三络连接请求用于请求将电子设备接入网络。
620,电子设备接收网络设备发送的寻呼消息。
其中,网络设备在接收到第三网络连接请求之后,向电子设备发送该寻呼消息。
示例性地,该寻呼消息可以是分组交换(packet switching,PS)寻呼,或者,该寻呼消息也可以是电路交换(circuit switching,CS)寻呼,或者,该寻呼消息也可以是5G中的寻呼消息,本申请实施例对此不予限定。
630,电子设备解析该寻呼消息。
其中,该电子设备可以解析接收到的寻呼消息,识别该寻呼消息的类型。
示例性地,电子设备解析该寻呼消息,得到该寻呼消息的类型为PS寻呼消息,则意味着电子设备与网络设备建立网络连接时,该网络连接为4G通信网络连接。
示例性地,电子设备解析该寻呼消息,得到该寻呼消息的类型为PC寻呼消息,则意味着电子设备与网络设备建立网络连接时,该网络连接为2G或3G通信网络连接。
640,电子设备判断该寻呼消息是否为预设寻呼消息。
其中,当电子设备判断该寻呼消息为预设寻呼消息时,可以执行步骤650;当电子设备判断该寻呼消息不为预设寻呼消息时,可以是在步骤670。
在一个示例中,该预设寻呼消息为PS寻呼消息。
在另一个示例中,该预设寻呼消息为CS寻呼消息。
在另一个示例中,该预设寻呼消息为5G通信网络中的寻呼消息。
650,电子设备确定该电子设备是否处于预设状态。
其中,当电子设备确定该电子设备处于预设状态时,可以执行步骤660;当电子设备确定该电子设备未处于预设状态时,可以执行步骤670。
示例性地,该预设状态可以为数据业务开关关闭状态、长期演进语音承载(voice over long-term evolution,VOLTE)开关关闭状态、免打扰开关打开状态、企业Wi-Fi连接状态。
应理解,电子设备处于企业Wi-Fi连接状态指的是,电子设备处于Wi-Fi连接状态,但是该电子设备仅能使用该Wi-Fi访问固定的应用程序、网址等,即该电子设备仅能够访问部分网络。
660,电子设备忽略该寻呼消息。
该步骤660中,当电子设备确定该电子设备处于预设状态之后,该电子设备可以忽略该寻呼消息,即电子设备不予网络设备建立网络连接,从而该电子设备可以不接收网络设备发送的垃圾数据包,从而可以降低电子设备的功耗。
670,电子设备与网络设备建立网络连接。
其中,该电子设备可以与网络设备建立3G通信网络连接、4G通信网络连接、或5G通信网络连接等,本申请实施例对此不予限定。
在一种可能的实现方式中,当预设寻呼消息为PS寻呼消息时,电子设备确定接收的寻呼消息不为PS寻呼消息时,该电子设备可以与网络设备建立4G通信网络连接。
在另一种可能的实现方式中,当预设寻呼消息为5G中的寻呼消息时,电子设备确定接收的寻呼消息不为5G中的寻呼消息时,该电子设备可以与网络设备建立5G通信网络连接。
在本申请的一个实施例中,在电子设备与网络设备建立网络连接之前,电子设备可以 解析接收到的寻呼消息,并判断该寻呼消息是否为预设寻呼消息,当该寻呼消息为预设寻呼消息时,确定该电子设备是否处于预设状态,当该电子设备处于预设状态时,可以忽略接收到的寻呼消息,即该电子设备不与网络设备建立网络连接,从而可以降低电子设备的功耗。
图7是本申请实施例提供的一种降低功耗的方法的示意性流程图。该方法可以应用于电子设备中,如图7所示,该方法可以包括步骤710至步骤740。
710,所述电子设备检测在第一时长内接收到的垃圾数据包的第一数量。
应理解,该第一时长可以是预设时长,例如,该第一时长为5分钟、10分钟等,本申请对该第一时长的具体取值不予限定。
720,当所述电子设备确定所述第一数量满足第一关系时,断开与网络设备的网络连接,并向所述网络设备发送第一网络连接请求。
其中,当电子设备确定该第一数量满足第一关系时,可以触发重注册的操作,即可以断开与网络设备的网络连接,并向网络设备发送第一网络连接请求。
应理解,在重注册之前与重注册之后,电子设备连接的可以是不同的网络设备,也可以是相同的网络设备,本申请实施例对此不予限定。
在一种可能的实现方式中,所述电子设备确定所述第一数量满足第一关系,包括:
当所述第一数量大于第一预设值时,所述电子设备确定所述第一数量满足所述第一关系。
当第一数量大于第一预设值时,意味着电子设备在第一时长内接收的垃圾数据包的数量较多,则可以确定该第一数量满足第一关系,从而电子设备可以进行重注册以期降低功耗。
应理解,该本申请实施例对该第一预设值的具体取值不予限定,例如,该第一预设值可以是20、30等。
在另一种可能的实现方式中,所述电子设备确定所述第一数量满足第一关系,包括:
当所述第一数量与所述电子设备在所述第一时长内接收的数据包的总数的比值大于第二预设值时,所述电子设备确定所述第一数量满足所述第一关系。
当第一数量与电子设备在第一时长内接收的数据包的总数的比值大于第二预设值,意味着电子设备在第一时长内接收的垃圾数据包的数量较多,从而电子设备可以进行重注册以期降低功耗。
应理解,本申请实施例对该第二预设值的具体取值不予限定,例如,该第二预设值可以是0.5、0.4等。
可选地,在另一些实施例中,也可以通过判断该电子设备在第一时长内接收垃圾数据包的第一速度与预设速度之间的关系,确定是否进行重注册。例如,当该第一速度大于预设速度时,该电子设备断开与网络设备的连接,并向网络设备发送网络连接请求。
应理解,本申请实施例中还可以以其他方式确定是否进行重注册操作,本申请实施例不予限定。
730,所述电子设备接收所述网络设备发送的响应于所述第一网络连接请求的第一寻呼消息。
应理解,当电子设备向网络设备发送第一网络连接请求后,网络设备会根据该第一网络连接请求发送第一寻呼消息。
740,所述电子设备根据所述第一寻呼消息重新与所述网络设备建立网络连接。
电子设备可以根据该第一寻呼消息重新与网络设备建立网络连接。
在本申请的一个实施例中,电子设备可以检测在第一时长内接收到的垃圾数据包的数量,当该数量满足第一关系时,电子设备可以断开与网络设备的连接,并向网络设备发送网络连接请求,并根据网络设备发送的寻呼消息重新与该网络设备建立网络连接。
这样,当电子设备重新与该网络设备建立网络连接时,网络设备会为电子设备分配新的IP地址,因此,当网络设备向原先的IP地址发送垃圾数据包时,该电子设备不会接收到该垃圾数据包,从而可以降低电子设备的功耗。
可选地,在重新与所述网络设备建立网络连接之后,所述电子设备与所述网络设备进行通信的互联网协议IP地址和所述电子设备与所述网络设备重新建立网络连接之前与所述网络设备进行通信的IP地址不同。
在本申请的一个实施例中,电子设备与网络设备重新建立网络连接之后,网络设备会电子设备分配新的IP地址,从而当网络设备继续向旧的IP地址发送垃圾数据包时,该电子设备无法接收到该垃圾数据包,从而减少了电子设备接收的垃圾数据包的数量,即降低了电子设备的功耗。
可选地,当所述电子设备确定所述第一数量未满足第一关系时,所述电子设备继续检测所述电子设备在所述第一时长内接收到的垃圾数据包的第二数量;
当所述电子设备确定所述第二数量大于第一预设值时,断开与网络设备的网络连接,并向所述网络设备发送网络连接请求。
这样,当第一时长内接收的垃圾数据包的数量未满足第一关系时,该电子设备可以继续检测在下一第一时长内接收的垃圾数据包的第二数量,当该第二数量大于预设值时,电子设备可以进行重注册,即断开与网络设备的网络连接,并向网络设备发送新的网络连接请求,以期重新与网络设备建立网络连接,从而有利于降低电子设备的功耗。
图8是本申请实施例提供的另一种降低功耗的方法的示意性流程图。该方法可以应用于电子设备中,如图8所示,该方法可以包括步骤810至步骤840。
810,所述电子设备向网络设备发送第三网络连接请求。
电子设备与网络设备建立网络连接之前,会向网络设备发送网络连接请求,以请求接入网络中。
示例性地,响应于用户打开数据开关的操作,该电子设备向网络设备发送网络连接请求。或者,电子设备处于关机状态,响应于用户开机的操作,电子设备向网络设备发送网络连接请求。又或者,电子设备处于打开应用的状态中,如华为视频中,则响应于用户点击某个视频的操作,电子设备向网络设备发送网络连接请求。
820,所述电子设备接收所述网络设备发送的响应于所述第三网络连接请求的第二寻呼消息。
网络设备接收到电子设备发送的第三网络连接请求后,可以发送第二寻呼消息。
830,所述电子设备解析所述第二寻呼消息,当确定所述第二寻呼消息为预设寻呼消息时,所述电子设备确定所述电子设备是否处于预设状态。
其中,电子设备接收到网络设备发送的第二寻呼消息后,可以先解析该第二寻呼消息,当确定该第二寻呼消息为预设寻呼消息时,继续判断该电子设备是否处于预设状态。
应理解,该预设寻呼消息可以是PS寻呼消息、PC寻呼消息、5G或未来通信网络中 的寻呼消息等。
840,当确定所述电子设备处于预设状态时,所述电子设备忽略所述第二寻呼消息。
当电子设备确定该电子设备处于预设状态时,可以忽略该第二寻呼消息,即不与网络设备建立网络连接。
这样,在电子设备与网络设备建立网络连接之前,电子设备可以解析接收到的寻呼消息,当确定该寻呼消息为预设寻呼消息时,确定电子设备是否处于预设状态,当该电子设备处于预设状态时,可以忽略该寻呼消息,从而该电子设备不与网络设备建立网络连接,从而该电子设备接收不到来自网络设备的垃圾数据包,从而可以降低电子设备的功耗。
可选地,该预设状态可以是如下状态的一种:
所述电子设备的数据业务开关关闭状态;
所述电子设备的长期演进语音承载VOLTE开关关闭状态;
所述电子设备的免打扰开关打开状态;
所述电子设备处于企业Wi-Fi连接状态。
应理解,电子设备处于企业Wi-Fi连接状态指的是,电子设备处于Wi-Fi连接状态,但是该电子设备仅能使用该Wi-Fi访问固定的应用程序、网址等,即该电子设备仅能够访问部分网络。
可选地,该所述第二寻呼消息为PS寻呼消息。
可选地,所述方法还包括:当确定所述第二寻呼消息不为预设寻呼消息时,所述电子设备根据所述第二寻呼消息与所述网络设备建立网络连接。
在本申请的一个实施例中,当确定第二寻呼消息不为预设寻呼消息时,电子设备可以与网络设备建立网络连接,从而可以不影响电子设备与网络设备的正常通信。
可选地,所述方法还包括:当确定所述第二寻呼消息为预设寻呼消息时,且所述电子设备未处于预设状态时,所述电子设备根据所述第二寻呼消息与所述网络涉笔建立网络连接。
在本申请的一个实施例中,当该第二寻呼为寻呼消息,但该电子设备未处于上述预设状态时,电子设备可以与网络设备建立网络连接,从而可以不影响电子设备与网络设备的正常通信。
本申请实施例还提供一种电子设备,包括一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如前文中任一种可能的实现方式中所述的降低功耗的方法被执行。
本申请实施例还提供一种装置,包括用于实现上述功能的各个模块或单元。
本申请实施例还提供一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如前文中任一种可能的实现方式中所述的降低功耗的方法被执行。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申 请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在计算机上运行时,使得上述实施例中的降低功耗的方法被执行。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的降低功耗的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的降低功耗的方法。
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机 存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (15)

  1. 一种降低功耗的方法,其特征在于,所述方法应用于电子设备中,所述方法包括:
    所述电子设备检测在第一时长内接收到的垃圾数据包的第一数量;
    当所述电子设备确定所述第一数量满足第一关系时,断开与网络设备的网络连接,并向所述网络设备发送第一网络连接请求;
    所述电子设备接收所述网络设备发送的响应于所述第一网络连接请求的第一寻呼消息;
    所述电子设备根据所述第一寻呼消息重新与所述网络设备建立网络连接。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备确定所述第一数量满足第一关系,包括:
    当所述第一数量大于第一预设值时,所述电子设备确定所述第一数量满足所述第一关系。
  3. 根据权利要求1所述的方法,其特征在于,所述电子设备确定所述第一数量满足第一关系,包括:
    当所述第一数量与所述电子设备在所述第一时长内接收的数据包的总数的比值大于第二预设值时,所述电子设备确定所述第一数量满足所述第一关系。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,在重新与所述网络设备建立网络连接之后,所述电子设备与所述网络设备进行通信的互联网协议IP地址和所述电子设备与所述网络设备重新建立网络连接之前与所述网络设备进行通信的IP地址不同。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:
    当所述电子设备确定所述第一数量未满足第一关系时,所述电子设备继续检测所述电子设备在所述第一时长内接收到的垃圾数据包的第二数量;
    当所述电子设备确定所述第二数量大于第一预设值时,断开与网络设备的网络连接,并向所述网络设备发送网络连接请求。
  6. 一种降低功耗的方法,其特征在于,所述方法应用于电子设备中,所述方法包括:
    所述电子设备向网络设备发送第三网络连接请求;
    所述电子设备接收所述网络设备发送的响应于所述第三网络连接请求的第二寻呼消息;
    所述电子设备解析所述第二寻呼消息,当确定所述第二寻呼消息为预设寻呼消息时,所述电子设备确定所述电子设备是否处于预设状态;
    当确定所述电子设备处于预设状态时,所述电子设备忽略所述第二寻呼消息。
  7. 根据权利要求6所述的方法,其特征在于,所述第二寻呼消息为分组交换PS寻呼消息。
  8. 根据权利要求6或7所述的方法,其特征在于,所述预设状态包括如下状态中的一种:
    所述电子设备的数据业务开关关闭状态;
    所述电子设备的长期演进语音承载VOLTE开关关闭状态;
    所述电子设备的免打扰开关打开状态;
    所述电子设备处于企业Wi-Fi连接状态。
  9. 根据权利要求6-8中任一项所述的方法,其特征在于,所述方法还包括:
    当确定所述第二寻呼消息不为预设寻呼消息时,所述电子设备根据所述第二寻呼消息与所述网络设备建立网络连接。
  10. 根据权利要求6-8中任一项所述的方法,其特征在于,所述方法还包括:
    当确定所述第二寻呼消息为预设寻呼消息时,且所述电子设备未处于预设状态时,所述电子设备根据所述第二寻呼消息与所述网络设备建立网络连接。
  11. 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如权利要求1-5中任一项所述的降低功耗的方法被执行。
  12. 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如权利要求6-10中任一项所述的降低功耗的方法被执行。
  13. 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如权利要求1-5中任一项所述的降低功耗的方法被执行。
  14. 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如权利要求6-10中任一项所述的降低功耗的方法被执行。
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如权利要求1-5、或6-10中任一项所述的降低功耗的方法被执行。
PCT/CN2022/129630 2021-11-16 2022-11-03 降低功耗的方法和电子设备 WO2023088106A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111357066.2 2021-11-16
CN202111357066.2A CN116137720A (zh) 2021-11-16 2021-11-16 降低功耗的方法和电子设备

Publications (1)

Publication Number Publication Date
WO2023088106A1 true WO2023088106A1 (zh) 2023-05-25

Family

ID=86334161

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/129630 WO2023088106A1 (zh) 2021-11-16 2022-11-03 降低功耗的方法和电子设备

Country Status (2)

Country Link
CN (1) CN116137720A (zh)
WO (1) WO2023088106A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130051303A1 (en) * 2011-08-22 2013-02-28 Telefonaktiebolaget L M Ericsson (Publ) Virtual access point using single service set identifiers
CN107172609A (zh) * 2017-03-29 2017-09-15 联想(北京)有限公司 一种控制方法及电子设备
CN111030800A (zh) * 2015-05-22 2020-04-17 高通股份有限公司 用于无执照lte的控制流增强的方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130051303A1 (en) * 2011-08-22 2013-02-28 Telefonaktiebolaget L M Ericsson (Publ) Virtual access point using single service set identifiers
CN111030800A (zh) * 2015-05-22 2020-04-17 高通股份有限公司 用于无执照lte的控制流增强的方法和装置
CN107172609A (zh) * 2017-03-29 2017-09-15 联想(北京)有限公司 一种控制方法及电子设备

Also Published As

Publication number Publication date
CN116137720A (zh) 2023-05-19

Similar Documents

Publication Publication Date Title
WO2021164554A1 (zh) 通知处理系统、方法以及电子设备
WO2022257977A1 (zh) 电子设备的投屏方法和电子设备
US11683850B2 (en) Bluetooth reconnection method and related apparatus
WO2021051986A1 (zh) 设备之间建立连接的方法及电子设备
EP4084486B1 (en) Cross-device content projection method, and electronic device
WO2021043046A1 (zh) 一种资源管控方法及设备
WO2021179924A1 (zh) 一种显示蓝牙设备标识的方法及电子设备
CN114079893B (zh) 蓝牙通信方法、终端设备及计算机可读存储介质
WO2021017894A1 (zh) 一种使用远程sim模块的方法及电子设备
US20240073978A1 (en) Method for monitoring link and terminal device
US20220353819A1 (en) Method for Reducing Power Consumption of Mobile Terminal and Mobile Terminal
WO2023005282A1 (zh) 一种消息推送方法及装置
WO2022083465A1 (zh) 电子设备的投屏方法及其介质和电子设备
WO2021179990A1 (zh) 一种应用服务器的访问方法及终端
WO2021244175A1 (zh) 射频切换方法及装置
AU2019416232B2 (en) Connection establishment method, and terminal apparatus
CN114915996A (zh) 通信异常处理方法及相关装置
WO2021147678A1 (zh) 一种数据传输的方法及电子设备
WO2023071540A1 (zh) 基于分布式通话录音同步方法、电子设备及可读存储介质
WO2023088106A1 (zh) 降低功耗的方法和电子设备
EP4287014A1 (en) Display method, electronic device, and system
CN117348894A (zh) 一种软件升级方法、终端设备及系统
WO2023071382A1 (zh) 确定nat穿越策略的方法及设备
WO2023051098A1 (zh) 设备查找方法、电子设备及系统
WO2023274026A1 (zh) 电子设备交互方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22894643

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022894643

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022894643

Country of ref document: EP

Effective date: 20240507