WO2023160126A1 - 一种通信方法和电子设备 - Google Patents

一种通信方法和电子设备 Download PDF

Info

Publication number
WO2023160126A1
WO2023160126A1 PCT/CN2022/138127 CN2022138127W WO2023160126A1 WO 2023160126 A1 WO2023160126 A1 WO 2023160126A1 CN 2022138127 W CN2022138127 W CN 2022138127W WO 2023160126 A1 WO2023160126 A1 WO 2023160126A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
electronic device
mobile phone
screen
access
Prior art date
Application number
PCT/CN2022/138127
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 WO2023160126A1 publication Critical patent/WO2023160126A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • 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 equipment, and in particular to a communication method and electronic equipment.
  • the present application provides a communication method and an electronic device, which can select an appropriate time to suppress the electronic device from staying in an SA after the screen of the electronic device is off, so as to avoid adverse effects on user experience due to the suppression of the SA.
  • the present application provides a communication method, the method includes: first, when the duration of the electronic device in the off-screen state reaches a first preset duration, determining whether the electronic device is in the fifth generation mobile communication technology independent group Network 5G SA mode and whether to run background services. After that, when the electronic device is in 5G SA mode and the electronic device is not running background business, perform 5G SA suppression operation; when the electronic device is in 5G SA mode and the electronic device is running background business, perform 5G SA suppression after the background business operation ends operate.
  • 5G SA suppression operations include: reducing the priority of electronic devices to access 5G SA networks, or turning off the ability of electronic devices to access 5G SA networks.
  • the electronic device after the electronic device enters the off-screen state for a certain period of time, when its own access network is a 5G SA network, it can decide whether to perform 5G SA suppression operations based on whether there are background services, that is, to make the user terminal Access other networks except 5G SA network, such as 4G. Specifically, the electronic device can execute the 5G SA suppression operation when the background service is not running; and perform the 5G SA suppression operation after the background service is running when the background service is running. In this way, the act of suppressing the access of electronic devices to the 5G SA network (i.e. performing 5G SA suppression operations) will not affect the running background services, and will not adversely affect the user experience.
  • 5G SA network i.e. performing 5G SA suppression operations
  • the method further includes: when the electronic device is not in the 5G SA mode, the electronic device performs the 5G SA suppression operation.
  • the method further includes:
  • the electronic device If the electronic device resides in a network of the first network standard, and the time when the electronic device performs the 5G SA suppression operation and the time when the electronic device begins to reside in the network of the first network standard If the duration is less than the second preset duration, the electronic device performs an SA recovery operation; or, if the electronic device has no network service, and the electronic device performs the 5G SA suppression operation and the electronic device starts If the duration between moments without network service is less than a second preset duration, the electronic device executes an SA recovery operation.
  • the SA recovery operation includes: increasing the priority of the electronic device to access the 5G SA network, or enabling the ability of the electronic device to access the 5G SA network; the first network standard is 2G or 3G.
  • the electronic device can perform the 5G SA suppression operation after the screen is turned off, if the electronic device is quickly connected to a network with a slow data transmission speed, that is, a network that does not meet most business requirements, the 5G SA recovery operation will be performed in time , so that electronic devices can be normally connected to the 5G SA network to ensure the user experience.
  • 5G SA network for example, there is a 4G network but the signal is poor, or there is no 4G network and only 5G SA network, 3G network and 2G network exist, Or there is only 5G SA network
  • the method further includes: if the electronic device resides in the network of the second network standard and continues to reside for the second preset duration , the electronic device does not perform the 5G SA recovery operation; the second network standard includes 4G or LTE.
  • the electronic device can ensure that after the 5G SA suppression operation is performed after the screen is turned off, if the electronic device has been connected to the network with a faster data transmission speed and meets most business needs for a certain period of time, the electronic device will continue to connect to the 5G SA. network inhibition.
  • the method further includes: if the electronic device determines that only the 5G SA network and/or the network of the first network standard are provided in the current area, And the 5G SA suppression operation is to turn off the ability of the electronic device to access the 5G SA network, then the electronic device performs a 5G SA recovery operation.
  • the 5G SA recovery operation is performed to cancel the access to the 5G SA for the electronic device.
  • the suppression of the network enables electronic devices to be smoothly connected to the 5G SA network, ensuring the user experience.
  • reducing the priority of electronic devices accessing 5G SA network includes: reducing the priority of electronic devices accessing 5G SA network to be lower than that of electronic devices accessing the second network standard Network priority.
  • the electronic device when the electronic device lowers the priority of the electronic device to access the 5G SA network, the electronic device still has the ability to access the 5G SA network. Because the priority of electronic devices accessing 5G SA is lower than the priority of electronic devices accessing the network of the second network standard, if there is a network of the second network standard in the area where the electronic device is located at this time, such as a 4G network, the electronic device The resident network will be switched from 5G SA to the network of the second network standard. So as to prevent electronic devices from accessing the 5G SA network.
  • increasing the priority of electronic equipment access to 5G SA includes: increasing the priority of electronic equipment access to 5G SA network to be higher than the priority of electronic equipment access to the second network standard class.
  • the method further includes: the electronic device detects that the screen is changed from the off-screen state to the on-screen state, the electronic device performs the 5G SA recovery operation, and When the electronic device resides on a 5G SA network when the screen was turned on the previous time, it displays the signal identification corresponding to the 5G SA; when the electronic device resides on a network of the second network standard and lasts for a third preset duration, The electronic device displays a signal identifier corresponding to the network standard of the network where the electronic device currently resides.
  • the method further includes: switching the network where the electronic device resides from the network of the second network standard to the 5G SA network, and the electronic device Normally display the signal identification corresponding to the network standard of the network where the electronic device currently resides.
  • the electronic device after the electronic device performs the 5G SA suppression operation in the off-screen state, when the electronic device switches from the off-screen to the bright screen, it is possible to give the electronic device enough time to switch the resident network.
  • the electronic device displays the signal logo corresponding to the 5G SA until the switching is completed, avoiding the jump of the signal logo, and ensuring the user's perception and experience.
  • the background service is a service running in the background of the electronic device and requiring network support.
  • the present application provides an electronic device, which includes: a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; wherein, the memory stores computer program codes, and the computer program
  • the code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device is made to execute the communication method provided in the first aspect.
  • the present application provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the communication method provided in the first aspect.
  • the present application provides a computer program product, the computer program product includes executable instructions, and when the computer program product runs on an electronic device, the electronic device executes the communication method provided in the first aspect.
  • FIG. 1 is a schematic diagram of the principle of a communication method provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a first schematic flow diagram of a communication method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a scene of an off-screen operation provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another screen-off operation provided by the embodiment of the present application.
  • FIG. 6 is a second schematic flow diagram of a communication method provided by an embodiment of the present application.
  • FIG. 7 is a third schematic flow diagram of a communication method provided by an embodiment of the present application.
  • FIG. 8 is a fourth schematic flow diagram of a communication method provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a scene of switching between on and off screens of a mobile phone provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a supplementary communication method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a scene where a mobile phone displays a signal identifier provided in an embodiment of the present application
  • FIG. 12 is a schematic structural diagram of an electronic device provided by the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
  • 5G SA Independent networking
  • Standalone networking is one of the network structure implementation solutions of the 5th generation mobile communication technology (5G).
  • 5G SA architecture user terminals access the 5G core network through 5G NR (New Radio) to complete various services.
  • 5G NR New Radio
  • the data transmission speed in the network of 5G SA structure is much higher than that of previous communication standards, such as LTE (long term evolution, long term evolution), 4G (the 4th generation mobile communication technology, fourth generation communication technology) and so on.
  • the current performance of 5G SA is not perfect, and there are problems such as call failure, ping-pong effect, and excessive power consumption of user terminals that affect user experience.
  • the ability of the user terminal to access 5G SA will be turned off after a certain period of time (for example, 60 seconds) after the user terminal is off the screen, and the user terminal will be turned off when the screen is turned on. Then enable the user terminal's ability to access 5G SA.
  • Turning off the 5G SA after the user terminal turns off the screen will cause the user terminal to switch to access the network, and the user terminal to switch to the access network may cause the user terminal to interrupt or stop the ongoing service of the user terminal.
  • the service will be interrupted or stopped. The service can only continue after the user needs to operate the user terminal again. However, in this way, the user's experience of using the user terminal will be reduced.
  • the present application provides a communication method, which can be applied to an electronic device, and the electronic device can be an electronic device capable of accessing the 5G SA network and all wireless communication networks before 5G.
  • the electronic device enters a screen-off state in response to a screen-off event. After entering the off-screen state for a certain period of time, the electronic device can decide whether to perform 5G SA suppression based on whether there are background services when its own access network is a 5G SA network. Through 5G SA suppression, as far as possible, user terminals can access other networks other than 5G SA, such as 4G.
  • the above-mentioned electronic devices may be mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) devices, notebook computers, ultra-mobile personal computers (ultra- Mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other devices with display screens, this application does not impose any restrictions on the specific types of electronic devices.
  • FIG. 2 shows a schematic structural diagram of an electronic device 100 provided in this application.
  • 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, and a battery 142 , antenna 1, 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, display screen 193, a subscriber identification module (subscriber identification module, SIM) card interface 194, and a camera 195, etc.
  • 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, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • 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.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • 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
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the AP can be used to determine the timing for the electronic device to perform the 5G SA suppression operation or the 5G SA recovery operation
  • the modem processor can specifically perform the 5G SA suppression operation or the 5G SA recovery operation
  • a controller can be the nerve center and command center of an electronic device.
  • 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 external memory interface 120 can be used to connect an external non-volatile memory, so as to expand the storage capacity of the electronic device.
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external non-volatile memory.
  • the internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and data of users and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • Touch sensor also known as "touch device”.
  • the touch sensor can be arranged on the display screen 193, and the touch sensor and the display screen 193 form a touch screen, also called “touch screen”.
  • the touch sensor is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 193 .
  • the touch sensor may also be disposed on the surface of the electronic device, which is different from the position of the display screen 193 .
  • the touch sensor can detect the user's operation on the display screen of the mobile phone, and the processor 110 analyzes and executes the functions corresponding to the operation, such as turning off the screen and turning on the screen.
  • the pressure sensor is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • a pressure sensor may be provided on the display screen 193 .
  • pressure sensors such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes.
  • the electronic device 10 determines the intensity of the pressure from the change in capacitance.
  • the electronic device 10 detects the intensity of the touch operation according to the pressure sensor.
  • the electronic device 10 may also calculate the touched position according to the detection signal of the pressure sensor.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the keys 190 include a power key, a volume key and the like.
  • the mobile phone when the mobile phone is in a bright screen state, if the user presses the power button, the mobile phone will generate a corresponding first pressing signal and send it to the processor 110 .
  • the processor 110 controls the display screen 193 to turn off, so that the mobile phone enters a screen-off state.
  • the processor 110 controls the display screen 193 to turn on the screen, so that the mobile phone enters the state of the screen on.
  • 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.
  • FIG. 2 is only an exemplary description when the form of the electronic device is a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (such as a smart watch, a smart bracelet), etc., the structure of the electronic device may include fewer components than those shown in Figure 2 The structure may also include more structures than those shown in FIG. 2 , which is not limited here.
  • the communication method provided by the present application will be introduced below by taking the electronic device as a mobile phone as an example.
  • FIG. 3 it is a schematic flowchart of the communication method provided by the present application.
  • the method includes S301-S304:
  • the mobile phone enters a screen-off state in response to the screen-off event.
  • the user can turn off the screen of the mobile phone to make the mobile phone enter the off-screen state, or the mobile phone enters the off-screen state at a specific time.
  • the screen-off operation of the user on the mobile phone and the specific timing of the screen-off are the screen-off events in this application.
  • the off-screen operation can be implemented in the following ways:
  • the screen-off operation may be a user's press operation on a power button (or called a power-on button or a screen-lock button) of the phone when the phone is in a bright-screen state.
  • a power button or called a power-on button or a screen-lock button
  • the mobile phone may receive a user's pressing operation on the power key 401 .
  • the pressing operation as shown in (b) in FIG. 4 , the mobile phone can turn off the screen and enter the off-screen state.
  • the power button often has multiple functions, and changes in the number of times and duration of pressing will correspond to different functions.
  • the pressing operation here may be one of pressing situations corresponding to multiple functions of the power button, for example, a short-time pressing.
  • the mobile phone itself may have a one-key lock screen function.
  • the one-key screen-locking option may be displayed on the desktop of the mobile phone.
  • the screen-locking operation may be a user's trigger operation on the one-key screen-locking option, such as a click operation.
  • the mobile phone may receive a user's trigger operation on the one-key lock screen option 501 on the desktop of the mobile phone.
  • the mobile phone can turn off the screen and enter the off-screen state.
  • the screen-off operation may be any feasible operation, which is not specifically limited in the present application.
  • the specific timing for turning off the screen may be when the user puts the mobile phone close to the ear and performs a call service.
  • the mobile phone can determine whether the mobile phone is currently picked up by the user and placed close to the ear for a call by using its front-facing camera or a ranging sensor arranged on one side of the mobile phone screen. If it is determined that the user picks up the phone close to the ear to make a call, it means that the user probably only needs to use the call service at present, and the mobile phone can control the screen to turn off and enter the screen-off state.
  • the specific timing for turning off the screen may be after the user does not perform any operations on the mobile phone for a certain period of time (for example, 30s). Specifically, if the mobile phone is in the bright screen state and does not receive any operation from the user within a certain period of time, such as moving the mobile phone, touching the mobile phone screen, etc., it indicates that the user has no need to operate the mobile phone at present, for example, the user only needs to Use the mobile phone to run the listening application in the background to listen to the song. At this time, the mobile phone can control the screen to turn off and enter the screen-off state. It should be understood that if the mobile phone is in a bright screen state and performs services running in the foreground such as playing videos, the mobile phone will not perform the above operations.
  • a certain period of time for example, 30s.
  • the mobile phone can start a timer when it enters the off-screen state, and the upper limit of the timer can be the first preset duration mentioned in this application, for example, 60s. Afterwards, when the mobile phone is in the off-screen state and the timer counts up to the upper limit (or called the timer overtime), the mobile phone can determine that the duration of the off-screen state is equal to the first preset duration. After that, the mobile phone can start to judge whether it is currently residing on the 5G SA network. In this application, if the mobile phone resides on the 5G SA network, it is considered that the mobile phone is in 5G SA mode.
  • the mobile phone when it establishes a connection with a network of a certain network standard and resides in the network, it will obtain a network type (network type) identifier of the network.
  • the network type identifier is used to indicate the specific network standard or network type of the network.
  • the mobile phone can determine the network standard of the network where it currently resides based on the network type identifier. Further, it can be judged whether the mobile phone is currently on the 5G SA network.
  • step S302 When the judgment result of step S302 is that the duration of the mobile phone being in the off-screen state reaches the first preset time length, when the mobile phone is currently residing in the 5G SA network, execute S303; the judgment result in step S302 is that the mobile phone is in the off-screen state When the duration of the state reaches the first preset duration and the mobile phone is not currently resident on the 5G SA network, execute S304.
  • the subsequent direct suppression of the mobile phone's access to the 5G SA network may cause the ongoing background business of the mobile phone to be interrupted or interrupted due to the mobile phone switching from the 5G SA network to other networks. Stop, affecting user experience. For example, referring to the first implementation mode in the above-mentioned specific timing of turning off the screen, when the mobile phone is in the state of turning off the screen, there must be a background service of the call service running.
  • the determination step of S302 above may not be performed.
  • the mobile phone executes S303 when it is determined that it is currently camped on a 5G SA network, and it only needs to execute S304 when it is determined that it is currently camped on a network other than the 5G SA network.
  • the mobile phone determines whether it runs background services.
  • how the mobile phone judges whether it runs a background service can be obtained by checking its own process.
  • the mobile phone can also determine whether it runs background services in any other feasible manner.
  • background services specifically refer to services that run in the background of the mobile phone and require network support, such as call services with the screen off, download services with the screen off, and so on.
  • all services it performs are services running in the background, and the background services mentioned in this application are services that require network support among these services.
  • the suppression of the mobile phone's access to the 5G SA network may affect the user's experience. Therefore, it is necessary to continuously determine whether the background business is running, that is, execute S303 . After that, after the background business operation is over, that is, when the mobile phone no longer runs with background business, the suppression of the mobile phone's access to the 5G SA network is carried out.
  • the background service running on the mobile phone may not end in a short time.
  • S303 may be executed at intervals.
  • the period of time can be determined according to the actual running conditions of various services and the performance of the mobile phone itself, for example, it can be 10s.
  • the time interval between two executions of S303 can be determined by starting a timer on the mobile phone.
  • Fig. 3 referring to Fig. 6, in the case that the mobile phone determines that it is not running background services, execute S303A:
  • S303A the mobile phone starts the timer timer1 to start timing, and executes S303 after the timer1 finishes timing.
  • timing upper limit of timer1 may be the aforementioned period of time.
  • timer1 will reset and stop timing after the timing is over, until it is restarted next time.
  • the timer1 can also be terminated after the timing ends, and then execute S303 and determine that the mobile phone is running with background services, and generate and start a new timer1 again.
  • the judgment step of S303 above may not be performed.
  • the mobile phone executes S304 when it is determined that it is not running background services. Execute S304.
  • the mobile phone performs a 5G SA suppression operation.
  • the mobile phone can set corresponding access priorities for networks of different network standards.
  • the access priorities for networks of different network standards can be set by the mobile phone when it leaves the factory. The higher the access priority, the more preferential access or camping. For example, if a mobile phone supports access to the four network standards of 2G, 3G, 4G, and 5G SA, and the access priority is 5G SA, 4G, 3G, and 2G in descending order. Then the mobile phone will give priority to accessing the 5G SA network.
  • signal strengths of different networks may also be considered as a reference, which is not specifically described in the present application.
  • the 5G SA suppression operation may include: reducing the priority of the mobile phone to access the 5G SA network, that is, reducing the access priority of the 5G SA.
  • reducing the priority of mobile phone access to the 5G SA network may be specifically reducing the priority of mobile phone access to the 5G SA network to a priority lower than that of mobile phone access to the network of the second network standard.
  • the second network standard includes the network standard before 5G is produced, and the data transmission speed corresponding to the second network standard is greater than the preset threshold.
  • the preset threshold may be a data transmission speed that can satisfy most services.
  • the preset threshold may be a theoretical maximum data transmission speed of the network of the first network standard.
  • the first network standard may be a low-speed network such as 3G and 2G.
  • the second network standard may be a high-speed network such as 4G or LTE.
  • the second network standard can be 4G
  • Reducing the priority of mobile phone access to the 5G SA network can specifically reduce the access priority of 5G SA to below that of 4G.
  • the mobile phone when the mobile phone lowers the priority of mobile phone access to 5G SA, the mobile phone still has the ability to access 5G SA, but because the access priority of 5G SA is lowered, if there is a second If the network standard is used, such as a 4G network, the network where the mobile phone resides will be switched from 5G SA to the network of the second network standard. How the mobile phone switches the resident network from 5G SA to other networks can use any feasible method, and this application does not make specific restrictions on this.
  • the network standard such as a 4G network
  • the mobile phone in order for the mobile phone to perform the 5G SA suppression operation, the mobile phone will not reside in the network of the first network standard but in the network of the second network standard.
  • the mobile phone can be connected to the priority of the 5G SA network. Reduce the priority of the network that is only lower than the mobile phone's access to the second network standard to the bottom. In this way, in this application, in the case where networks of all network standards exist in the area where the mobile phone is located, it can be considered that the mobile phone will reside in the network of the second network standard after step S304 is executed.
  • reducing the priority of mobile phones accessing 5G SA networks can also be replaced by increasing the priority of mobile phones accessing the network of the second network standard.
  • the priority of the network of the second network standard may be raised above the priority of mobile phones accessing the 5G SA network. Its effect is equivalent to reducing the priority of mobile phones accessing 5G SA network.
  • the 5G SA suppression operation may include: closing the ability of the mobile phone to access the 5G SA network. In this case, because the mobile phone can no longer access the 5G SA network, it will inevitably choose to reside and access other networks.
  • the 5G SA suppression operation can also be any other feasible operation, as long as it can be guaranteed that the mobile phone will switch to another network after the 5G SA suppression operation is performed.
  • the mobile phone after the mobile phone enters the off-screen state for a certain period of time, when its own access network is a 5G SA network, it can decide whether to perform 5G SA suppression operations based on whether there are background services, that is, as much as possible Allows user terminals to access networks other than 5G SA networks, such as 4G networks.
  • the mobile phone can execute the 5G SA suppression operation when the background service is not running; when the background service is running, the 5G SA suppression operation can be performed after the background service is finished. In this way, the act of inhibiting the mobile phone from accessing the 5G SA network (i.e. performing the 5G SA inhibition operation) will not affect the running background business, and will not adversely affect the user experience.
  • the area where the mobile phone is located may have poor network conditions other than the 5G SA network. For example, there is a 4G network but the signal is poor, or there is no 4G network and only 5G SA, 3G and 2G networks exist, or only 5G SA network exists.
  • the mobile phone may stay on a low-speed network such as 3G or 2G, or have no network service.
  • S304 may further include S305-S307:
  • the mobile phone determines the network standard of the network where it resides within the second preset time period.
  • how the mobile phone determines the network standard of the network on which it resides can refer to the relevant expressions after S302 above, and will not be repeated here.
  • the mobile phone may start a timer after performing step S305, and the upper limit of the timer may be the second preset duration mentioned in this application, for example, 5s.
  • the timer reaches the timing upper limit, it indicates that the mobile phone has reached the second preset duration after performing the 5G SA suppression operation.
  • the mobile phone in the case where networks of all network standards exist in the area where the mobile phone is located, it can be considered that the mobile phone will reside in the network of the second network standard after performing step S304.
  • the process of executing S305 if the duration of the mobile phone camping on the network of the second network standard is less than the second preset duration, and within the second preset duration after step S304 is executed, If the mobile phone switches from the network of the second network standard to the first network standard, or the mobile phone is in no network service after staying in the network of the second network standard for a period of time, it indicates that the mobile phone is inhibiting the connection.
  • the mobile phone After entering the 5G SA network, due to the limitation of the network in the area where the mobile phone is located, the mobile phone is connected to the first network standard network with slow data transmission speed within a short period of time or the mobile phone has no network service. And this will make most of the mobile phone business impossible. At this time, it is necessary to cancel the restriction on the mobile phone's access to the 5G SA network, and perform the 5G SA recovery operation, that is, perform S306 after S305.
  • the duration that the mobile phone stays in the network of the second network standard is less than the second preset time length, which can refer to the moment when the mobile phone performs the 5G SA suppression operation and the time when the mobile phone switches from the network of the second network standard to the second network standard.
  • the time duration between the network moments of a network standard is less than the second preset time length.
  • the mobile phone after the mobile phone performs the 5G SA suppression operation, the mobile phone first resides and accesses the network of the second network standard for a period of time (less than the second preset duration), and then resides and accesses the network of the first network standard.
  • Web-based network after the mobile phone performs the 5G SA suppression operation, the mobile phone first resides and accesses the network of the second network standard for a period of time (less than the second preset duration), and then resides and accesses the network of the first network standard. Web-based network.
  • the duration of the mobile phone staying in the network of the second network standard is less than the second preset duration, which can refer to the time between the moment when the mobile phone performs the 5G SA suppression operation and the moment when the mobile phone starts to have no network service.
  • the duration is shorter than the second preset duration.
  • the mobile phone after the mobile phone performs the 5G SA suppression operation, the mobile phone first resides and connects to the network of the second network standard for a period of time (less than the second preset duration), and then becomes no network service.
  • the mobile phone cannot reside in the network of the second network standard.
  • the mobile phone may reside on the network of the first network standard or have no network service.
  • in the process of executing S305 if the mobile phone resides in the network of the first network standard, or the mobile phone has no network service, it indicates that after the mobile phone is prohibited from accessing the 5G SA network, it will make the mobile phone Most of the business cannot be carried on normally. At this time, it is necessary to cancel the restriction on the mobile phone's access to the 5G SA network to perform the 5G SA recovery operation, that is, perform S306 after S305.
  • the first network standard includes the network standard before the generation of the second network standard (that is, the second network standard may include the network standard after the generation of the first network standard), and the data transmission speed corresponding to the first network standard is lower than the preset threshold.
  • the second network standard is 4G
  • the first network standard may be 3G, 2G and so on.
  • the data transmission speed of a certain network theory is lower than the preset threshold, it can be considered that the network cannot meet the needs of most services on the mobile phone, which has a great impact on the user experience, for example, the application heartbeat data packet cannot be sent normally or the application Program notification messages may not be received.
  • the 5G SA recovery operation includes: increasing the priority of mobile phones accessing the 5G SA network.
  • the priority of the network may be to increase the priority of the mobile phone's access to the 5G SA network to a priority higher than that of the mobile phone's access to the network of the second network standard.
  • increasing the priority of mobile phones to access the 5G SA network can also be replaced by reducing the priority of mobile phones to access the network of the second network standard.
  • the priority of the network of the second network standard may be lowered to that of the mobile phone accessing the 5G SA network. Its effect is equivalent to increasing the priority of mobile phones accessing 5G SA network.
  • the 5G SA restoration operation includes: enabling the ability of the mobile phone to access the 5G SA network.
  • the 5G SA network in this case, if there is a 5G SA network in the area where the mobile phone is located at this time, and the 5G SA network itself has the highest access priority and the highest data transmission rate, based on the purpose of giving users a better experience, the network where the mobile phone resides will Switch from the first network standard network or no network service to the 5G SA network.
  • the mobile phone in the case that all networks of network standards exist in the area where the mobile phone is located, it can be considered that the mobile phone will reside in the network of the second network standard after performing step S304.
  • the process of executing S305 if the mobile phone resides in the network of the second network standard within the second preset time period, it indicates that the mobile phone is connected to the 5G SA network. After suppression, the data transmission speed of the mobile phone itself to access the network can meet the requirements of most services. At this time, it is not necessary to perform the 5G SA network recovery operation and keep it as it is, that is, execute S307.
  • the mobile phone performs a 5G SA recovery operation.
  • the mobile phone does not perform the 5G SA recovery operation.
  • the mobile phone can ensure that after the screen is turned off and the 5G SA access is suppressed, when the mobile phone is connected to a network with a faster data transmission speed, because this network can meet most of the business needs of the mobile phone, so It also ensures the user experience.
  • the mobile phone after the mobile phone executes S307 and its preceding steps to make the mobile phone reside in the network of the second network standard, the user may move with the mobile phone. After that, the mobile phone may be in an area where only 5G SA and/or the first network standard network exist.
  • the mobile phone will reside and connect to the network of the first network standard middle.
  • the data transmission speed of the network of the first network standard is relatively slow, which will have a negative impact on most services, thus reducing the user's experience of using the mobile phone.
  • the mobile phone If the mobile phone is located in an area where there are only 5G SA networks and networks of the first network standard, and the 5G SA suppression operation is to disable the ability of the mobile phone to access the 5G SA network, the mobile phone will stay and connect to the first network standard. In the network of the network standard. However, the data transmission speed of the network of the first network standard is relatively slow, which will have a negative impact on most services, thus reducing the user's experience of using the mobile phone.
  • the method further includes S308:
  • the mobile phone determines that only the 5G SA network and/or the first network standard network are provided in the current area, and the 5G SA suppression operation is to disable the mobile phone's ability to access the 5G SA network, the mobile phone performs a 5G SA recovery operation.
  • the mobile phone can determine which network standard networks exist in the area where the mobile phone is located by performing network type detection on the network in the area where the mobile phone is located.
  • the specific detection method may be any feasible method, which is not specifically limited in this application.
  • step S308 may also be S308A:
  • S308A The function of S308A is the same as that of S308.
  • the 5G SA recovery operation is performed to cancel the connection to the mobile phone.
  • the suppression of access to the 5G SA network enables the mobile phone to smoothly access the 5G SA network, ensuring the user experience.
  • the mobile phone will perform a 5GSA recovery operation after the screen is switched from off to on, so that the mobile phone can normally access any network.
  • the mobile phone has performed the 5G SA recovery operation when the screen is off, it can remain the same after the screen is on.
  • the network where the mobile phone resides after the screen is turned on is switched from the second network standard network to 5G
  • the SA network process may take several seconds or even ten seconds, so the mobile phone will display the signal logo corresponding to the second network standard for a period of time when the screen is on. Afterwards, after the network where the mobile phone resides is switched to 5G SA, the mobile phone will display the signal logo corresponding to 5G SA.
  • the mobile phone resides on the 5G SA network when the screen was turned on last time, and the signal identifier "5G" corresponding to the 5G SA is displayed in the signal identifier display area 901.
  • the mobile phone enters the off-screen state.
  • the mobile phone will perform the 5G SA suppression operation when it is determined that the preset conditions are met, so that the mobile phone resides and accesses the signal identification corresponding to the second network standard.
  • the preset condition may be relevant information that needs to be determined before the mobile phone performs the 5G SA operation in the foregoing embodiments, and details are not repeated here.
  • the mobile phone can switch from off-screen to on-screen, and enter the on-screen state as shown in (c) in FIG. 9 .
  • the mobile phone displays the signal identifier corresponding to the second network standard in the signal identifier display area 901 .
  • the mobile phone may specifically display "4G" in the signal identification display area 901 .
  • the screen-on event may be a screen-on operation corresponding to the screen-off operation or a specific screen-on timing corresponding to a specific screen-off timing.
  • the screen-on operation may be an operation of pressing a power key (or called a power-on key or a screen-lock key) of the mobile phone by the user when the mobile phone is in a screen-off state.
  • the mobile phone may receive a user's pressing operation on the power key 401 .
  • the pressing operation as shown in (a) in FIG. 4 , the mobile phone can turn on the screen and enter the bright screen state.
  • the pressing operation here may be one of pressing situations corresponding to multiple functions of the power button, for example, a short-time pressing.
  • the screen brightening operation may be any feasible operation, which is not specifically limited in the present application.
  • the operation of turning on the screen is taken as an operation of pressing the power button as an example.
  • the specific timing for turning on the screen may be when the user holds the mobile phone close to the ear and performs a call service, when the user holds the mobile phone away from the ear, or when the call ends.
  • the mobile phone can determine whether the mobile phone is currently picked up by the user and placed close to the ear for a call by using its front-facing camera or a ranging sensor arranged on one side of the mobile phone screen. If it is determined that the mobile phone is not close to the ear for a certain distance (for example, 2cm), it indicates that the user probably needs to use other services of the mobile phone, and the mobile phone can control the screen to enter the bright screen state.
  • a certain distance for example, 2cm
  • the specific timing for turning on the screen may be that when the mobile phone receives a call request while the screen is off, the screen is turned on and a call reminder is displayed.
  • the specific time of brightening the screen can also be when the mobile phone receives the notification message of the application.
  • the specific timing of turning on the screen may be any feasible timing, which is not specifically limited in the present application.
  • the mobile phone After that, after the third preset duration, as shown in (d) in FIG. 9 , the mobile phone will display the signal identifier "5G" of 5G SA in the signal identifier display area 901.
  • the third preset duration is the aforementioned period of time.
  • the third preset duration may be 60s.
  • the third preset duration may be the longest time required for the mobile phone to switch the network where it resides in most cases.
  • the communication methods provided by the application may also include S1001-S1005:
  • the mobile phone In the off-screen state, the mobile phone enters the on-screen state in response to the on-screen event.
  • the screen brightening event is taken as an example where the user presses the power button of the mobile phone.
  • the user can press the power key 101 of the mobile phone when necessary.
  • the mobile phone may switch from off-screen to on-screen in response to the screen-on event, and enter the on-screen state as shown in (b) in FIG. 11 .
  • the mobile phone performs a 5G SA restoration operation.
  • the mobile phone can normally access 5G SA.
  • the mobile phone may display the signal identifier "5G" corresponding to 5G SA in the signal identifier display area 102.
  • S1002 and S1003 do not have a necessary sequence, S1002 may be executed first, S1003 may be executed first, or they may be executed together. This application does not specifically limit it.
  • the mobile phone judges whether the duration of the mobile phone staying in the network of the second network standard reaches a third preset duration after entering the screen-on state.
  • the mobile phone can start a timer when it enters the bright screen state, and the upper limit of the timer can be the third preset duration mentioned in this application, for example, 60s. Afterwards, when the mobile phone continues to camp on the network of the second network standard and the timer does not reach the upper limit, it can be determined that the duration of the mobile phone camping on the network of the second network standard is less than the third preset duration. When the mobile phone continues to camp on the network of the second network standard and the timer counts up to the upper limit, it can be determined that the duration of the mobile phone camping on the network of the second network standard reaches the third preset duration.
  • the mobile phone determines that the duration of staying in the network of the second network standard reaches the third preset duration, it indicates that the area where the mobile phone is currently located has no 5G SA network coverage or the 5G SA network signal is not well connected. not on. It is an objective force majeure that the mobile phone does not reside on the 5G SA network at this time. At this time, the mobile phone can normally display the corresponding signal identification according to the network where it currently resides, and there is no need to optimize the transition of the signal identification, that is, execute S1005.
  • the mobile phone determines that the duration of staying in the network of the second network standard is less than the third preset duration, it indicates that the mobile phone may not have completed the switch from the network of the second network standard to the 5G SA network. Therefore, in order to avoid adverse effects on the user's perception and experience, the mobile phone still displays the signal logo corresponding to 5G SA at this time. After that, continue to execute S1004. Until the determination result of S1004 is that the mobile phone determines that the duration of camping on the network of the second network standard reaches the third preset duration.
  • the mobile phone displays the signal identifier corresponding to the network standard of the network where the mobile phone currently resides.
  • the signal identification displayed by the mobile phone in S1005 is the signal identification corresponding to 5G SA.
  • the signal identification displayed by the mobile phone in S1005 is the signal identification corresponding to the second network standard.
  • the mobile phone can display the signal corresponding to the second network standard in the signal identification display area 102 An identifier, such as "4G".
  • the current 5G SA network has not yet been fully deployed, and at the same time, the 5G SA network consumes a lot of power and consumes traffic quickly.
  • most mobile phones that currently support 5G SA networks will provide users with the option to enable/disable the ability of mobile phones to access 5G SA networks, so that users can choose whether to allow mobile phones to connect to 5G SA networks according to their own needs.
  • Enter the 5G SA network exemplaryily, there may be a 5G option in the drop-down menu of the mobile phone. The mobile phone can receive the user's trigger on the 5G option, and turn the mobile phone's ability to access the 5G SA network from on to off or from off to on.
  • the mobile phone When the user closes the ability to access the 5G SA network through the operation of the mobile phone, such as triggering an operation on the 5G option (such as a click operation), so that the mobile phone closes the ability to access the 5G SA network, the mobile phone itself has completed the operation of the mobile phone. Inhibition of accessing 5G SA network. In this case, it is not necessary to implement the technical solution provided by the present application.
  • the above-mentioned electronic device includes corresponding hardware structures and/or software modules for performing each function.
  • the embodiments of the present invention 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. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the present application may divide the above-mentioned electronic device into functional modules according to the above-mentioned method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
  • the present application provides an electronic device, which includes: a processing module 201 and a display module 202 .
  • the processing module 201 is configured to execute most steps of the communication method provided in this application. Specifically, the processing module 201 is configured to execute S301, S302, S303, S303A, S304, S304A, S305, S306, S307, S308, S308A, "response to screen brightening event" in S1001, S1002 and S1004 in the foregoing embodiments.
  • the display module 202 is used to display or is controlled by the processing module to display the content that needs to be displayed in this application. Specifically, the display module 202 is configured to execute "entering the bright screen state" in S1001, S1003, and S1005 in the foregoing embodiments.
  • each module executes operations has been described in detail in the embodiments of the communication method in the foregoing embodiments, and will not be elaborated here again.
  • the present application also provides an electronic device, which includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; wherein, a computer program code is stored in the memory, and the computer program code includes computer instructions , when the computer instruction is executed by the processor, the electronic device is made to execute the communication method provided in the foregoing embodiments.
  • an electronic device which includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; wherein, a computer program code is stored in the memory, and the computer program code includes computer instructions , when the computer instruction is executed by the processor, the electronic device is made to execute the communication method provided in the foregoing embodiments.
  • a computer program code is stored in the memory
  • the computer program code includes computer instructions , when the computer instruction is executed by the processor, the electronic device is made to execute the communication method provided in the foregoing embodiments.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is made to perform the following steps: first, when the duration of the electronic device in the off-screen state reaches a first preset duration, determine whether the electronic device is in the fifth generation mobile communication technology Independent networking 5G SA mode and whether to run background services. After that, when the electronic device is in 5G SA mode and the electronic device is not running the background business, perform the 5G SA suppression operation; when the electronic device is in the 5G SA mode and the electronic device is running the background business, perform the 5G SA suppression operation after the background business operation ends .
  • 5G SA suppression operations include: reducing the priority of electronic devices to access 5G SA networks, or turning off the ability of electronic devices to access 5G SA networks.
  • the electronic device when the computer instruction is executed by the processor, the electronic device further performs the following steps: when the electronic device is not in the 5G SA mode, the electronic device performs the 5G SA suppression operation.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further performs the following steps after the electronic device performs the 5G SA suppression operation: if the electronic device resides in a network of the first network standard, and the electronic device The time between the time when the device performs the 5G SA suppression operation and the time when the electronic device starts to reside in the network of the first network standard is less than a second preset time, then the electronic device performs an SA recovery operation; Or, if the electronic device has no network service, and the time between the moment when the electronic device performs the 5G SA suppression operation and the time when the electronic device starts to have no network service is less than a second preset time length, then the The electronic device performs an SA restoration operation.
  • the SA recovery operation includes: increasing the priority of the electronic device to access the 5G SA network, or enabling the ability of the electronic device to access the 5G SA network; the first network standard is 2G or 3G.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further performs the following steps after the electronic device performs the 5G SA suppression operation: For the second preset duration, the electronic device does not perform the 5G SA recovery operation; the second network standard includes 4G or LTE.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further performs the following steps after the electronic device does not perform the 5G SA recovery operation: If the electronic device determines that only the 5G SA network and/or the first Network standard network, and the 5G SA suppression operation is to turn off the ability of the electronic device to access the 5G SA network, then the electronic device performs the 5G SA recovery operation.
  • lowering the priority of electronic devices accessing 5G SA includes: lowering the priority of electronic devices accessing 5G SA network to be lower than the priority of electronic devices accessing the network of the second network standard.
  • increasing the priority of electronic equipment access to 5G SA includes: increasing the priority of electronic equipment access to 5G SA network to be higher than the network priority of electronic equipment access to the second network standard.
  • the electronic device when the computer instruction is executed by the processor, the electronic device also performs the following steps after the electronic device performs the 5G SA suppression operation: the electronic device detects that the screen is changed from the off-screen state to the bright screen state, and the electronic device executes the 5G SA suppression operation. Resume the operation, and when the network where the electronic device resides is 5G SA when the screen is turned on the last time, display the signal identification corresponding to 5G SA; In the case of the duration, the electronic device displays the signal identifier corresponding to the network standard of the network where the electronic device currently resides.
  • the electronic device when the computer instruction is executed by the processor, the electronic device further performs the following steps after the electronic device displays the signal identification corresponding to 5G SA: the network where the electronic device resides is switched from the network of the second network standard To the 5G SA network, the electronic device normally displays the signal identifier corresponding to the network standard of the network where the electronic device currently resides.
  • the background service is a service that runs in the background of the electronic device and requires network support.
  • the present application also provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device is made to execute the communication method provided by the foregoing embodiments.
  • the present application also provides a computer program product.
  • the computer program product is run on the electronic device, the electronic device is made to execute the communication method provided in the foregoing embodiments.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, 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 unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . 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 above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • a software product which is stored in a storage medium.
  • Several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.

Abstract

本申请提供一种通信方法和电子设备,涉及电子设备领域,能够可以在电子设备灭屏后选择合适的时机对电子设备驻留SA进行抑制,避免因为SA的抑制对用户体验的不良影响。该方法包括:首先,在电子设备处于灭屏状态的持续时长达到第一预设时长时,确定电子设备是否处于第五代移动通信技术独立组网5G SA模式以及是否运行后台业务。之后,当电子设备处于5G SA模式且电子设备未运行后台业务时,执行5G SA抑制操作;当电子设备处于5G SA模式且电子设备在运行后台业务时,在后台业务运行结束后执行5G SA抑制操作。其中,5G SA抑制操作包括:降低电子设备接入5G SA网络的优先级,或者关闭电子设备接入5G SA网络的能力。

Description

一种通信方法和电子设备
本申请要求于2022年02月25日提交国家知识产权局、申请号为202210179984.9、发明名称为“一种通信方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备领域,尤其涉及一种通信方法和电子设备。
背景技术
随着通信网络从第四代移动通信技术(the 4th generation mobile communication technology,4G)向第五代移动通信技术(the 5th generation mobile communication technology,5G)的演进,越来越多的区域内都会部署有5G的独立组网(stand alone,SA)。但是,由于SA建设初期网络建设考虑不完备等原因,目前SA的性能不够完善,存在诸如通话失败、乒乓效应、用户终端功耗过大等影响用户的体验的问题。
发明内容
本申请提供一种通信方法和电子设备,可以在电子设备灭屏后选择合适的时机对电子设备驻留SA进行抑制,避免因为SA的抑制对用户体验的不良影响。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,本申请提供了一种通信方法,该方法包括:首先,在电子设备处于灭屏状态的持续时长达到第一预设时长时,确定电子设备是否处于第五代移动通信技术独立组网5G SA模式以及是否运行后台业务。之后,当电子设备处于5G SA模式且电子设备未运行后台业务时,执行5G SA抑制操作;当电子设备处于5G SA模式且电子设备在运行后台业务时,在后台业务运行结束后执行5G SA抑制操作。其中,5G SA抑制操作包括:降低电子设备接入5G SA网络的优先级,或者关闭电子设备接入5G SA网络的能力。
基于上述技术方案,电子设备可以在进入灭屏状态一定时长后,在自身接入网络为5G SA网络的情况下,基于是否存在后台业务来决定是否执行5G SA抑制操作,即尽可能使得用户终端接入除5G SA网络以外的其他网络中,例如4G。具体的,电子设备可以在未运行有后台业务的情况下,执行5G SA抑制操作;在运行有后台业务的情况下等后台业务运行结束后执行5G SA抑制操作。这样一来,抑制电子设备接入5G SA网络这一行为(即执行5G SA抑制操作)便不会对正在运行的后台业务造成影响,也就不会对用户体验造成不良影响。
在第一方面的一种可能的设计方式中,该方法还包括:当所述电子设备未处于5G SA模式时,所述电子设备执行所述5G SA抑制操作。
基于上述方案,便可以防止电子设备灭屏后从其他网络切换至5G SA网络。
在第一方面的一种可能的设计方式中,在电子设备执行5G SA抑制操作之后,该方法还包括:
若所述电子设备驻留至第一网络制式的网络,且所述电子设备执行所述5G SA抑 制操作的时刻和所述电子设备开始驻留至所述第一网络制式的网络的时刻之间的时长小于第二预设时长,则所述电子设备执行SA恢复操作;或者,若所述电子设备无网络服务,且所述电子设备执行所述5G SA抑制操作的时刻和所述电子设备开始无网络服务的时刻之间的时长小于第二预设时长,则所述电子设备执行SA恢复操作。
其中,所述SA恢复操作包括:提升所述电子设备接入5G SA网络的优先级,或者开启所述电子设备接入5G SA网络的能力;所述第一网络制式是2G或3G。
基于上述方案,电子设备可以在灭屏后执行5G SA抑制操作后,电子设备若很快接入数据传输速度较慢的网络,即不符合大多数业务需求的网络时,及时执行5G SA恢复操作,使电子设备可以正常接入5G SA网络中,保障用户的使用体验。避免了因为电子设备所处的区域有可能除5G SA网络以外的网络的网络条件不好(例如存在4G网络但是信号很差,或者不存在4G网仅存在5G SA网络、3G网络和2G网络,亦或者仅存在5G SA网络)导致电子设备接入一个数据传输速度较慢不符合大多数业务需求的网络,降低了用户的使用体验的情况。
在第一方面的一种可能的设计方式中,在电子设备执行5G SA抑制操作之后,方法还包括:若电子设备驻留在第二网络制式的网络,且持续驻留了第二预设时长,则电子设备不执行5G SA恢复操作;第二网络制式包括4G或LTE。
基于上述方案,电子设备可以保障在灭屏后执行5G SA抑制操作后,电子设备若一定时间内一直接入数据传输速度较快符合大多数业务需求的网络时,继续进行电子设备接入5G SA网络的抑制。
在第一方面的一种可能的设计方式中,电子设备不执行5G SA恢复操作之后,方法还包括:若电子设备确定当前所处区域仅提供5G SA网络和/或第一网络制式的网络,且5G SA抑制操作为关闭电子设备接入5G SA网络的能力,则电子设备执行5G SA恢复操作。
基于上述方案,可以使得电子设备灭屏后执行了5G SA抑制操作后,在其驻留的网络影响或严重影响用户的使用体验时,执行5G SA恢复操作,以取消对电子设备接入5G SA网络的抑制,使电子设备可以顺利接入5G SA网络中,保障了用户的使用体验。
在第一方面的一种可能的设计方式中,降低电子设备接入5G SA的优先级,包括:将电子设备接入5G SA网络的优先级降低至低于电子设备接入第二网络制式的网络的优先级。
这样一来,在电子设备降低电子设备接入5G SA网络的优先级的情况下,电子设备仍然具备接入5G SA网络的能力。因为电子设备接入5G SA的优先级降低至电子设备接入第二网络制式的网络的优先级以下,若此时电子设备所处区域存在第二网络制式的网络,例如4G网络,则电子设备驻留的网络则会从5G SA切换为第二网络制式的网络。从而起到抑制电子设备接入5G SA网络的目的。
在第一方面的一种可能的设计方式中,提升电子设备接入5G SA的优先级,包括:将电子设备接入5G SA网络的优先级提升至高于电子设备接入第二网络制式的优先级。
基于上述方案,因为电子设备已经无法再接入5G SA网络,所以必然会选择其他网络驻留并接入,起到抑制电子设备接入5G SA网络的目的。
在第一方面的一种可能的设计方式中,电子设备执行5G SA抑制操作之后,方法还包括:电子设备检测到从灭屏状态改变为亮屏状态,电子设备执行5G SA恢复操作,并在电子设备在前一次亮屏时驻留的网络为5G SA的情况下,显示5G SA对应的信号标识;在电子设备驻留在第二网络制式的网络并持续第三预设时长的情况下,电子设备显示电子设备当前驻留的网络的网络制式对应的信号标识。
基于上述技术方案,可以在电子设备在灭屏状态执行了5G SA抑制操作后,在电子设备在从灭屏切换为亮屏的情况下,给足电子设备切换驻留网络的时间。在电子设备不可以切换至5G SA网络驻留的情况下,正常显示电子设备接入的网络对应的信号标识,保障了用户对电子设备接入何种网络的知情需求。
在第一方面的一种可能的设计方式中,电子设备显示5G SA对应的信号标识之后,方法还包括:在电子设备驻留的网络由第二网络制式的网络切换至5G SA网络,电子设备正常显示电子设备当前驻留的网络的网络制式对应的信号标识。
基于上述技术方案,可以在电子设备在灭屏状态执行了5G SA抑制操作后,在电子设备在从灭屏切换为亮屏的情况下,给足电子设备切换驻留网络的时间。在电子设备可以切换至5G SA网络驻留但未切换未完成的情况下,使电子设备显示5G SA对应的信号标识直至切换完成,避免了信号标识的跳变,保证用户的观感和使用体验。
在第一方面一种可能的设计方式中,后台业务为运行于电子设备后台且需要网络支持的业务。
第二方面,本申请提供一种电子设备,该电子设备包括:显示屏、存储器和一个或多个处理器;显示屏、存储器与处理器耦合;其中,存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行如第一方面提供的通信方法。
第三方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面提供的通信方法。
第四方面,本申请提供一种计算机程序产品,该计算机程序产品包含可执行指令,当该计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面提供的通信方法。
可以理解地,上述提供的第二方面至第四方面提供的技术方案所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种通信方法的原理示意图;
图2为本申请实施例提供的一种电子设备的硬件结构示意图;
图3为本申请实施例提供的一种通信方法的流程示意图一;
图4为本申请实施例提供的一种灭屏操作的场景示意图;
图5为本申请实施例提供的另一种灭屏操作的场景示意图;
图6为本申请实施例提供的一种通信方法的流程示意图二;
图7为本申请实施例提供的一种通信方法的流程示意图三;
图8为本申请实施例提供的一种通信方法的流程示意图四;
图9为本申请实施例提供的一种手机的亮灭屏转换的场景示意图;
图10为本申请实施例提供的一种通信方法的补充流程示意图;
图11为本申请实施例提供的一种手机显示信号标识的场景示意图;
图12为本申请提供的一种电子设备的结构示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
首先,对本申请中涉及的相关技术术语进行介绍:
独立组网:英文全称standalone,简称为5G SA。独立组网是第五代通信技术(the 5th generation mobile communication technology,5G)网络结构实现方案中的一种。在5G SA架构中,用户终端通过5G NR(New Radio,新空口)接入5G核心网,以完 各类业务。5G SA结构的网络中的数据传输速度远大于之前的通信制式,例如LTE(long term evolution,长期演进)、4G(he 4th generation mobile communication technology,第四代通信技术)等。
由于5G SA建设初期网络建设考虑不完备等原因,目前5G SA的性能不够完善,存在诸如通话失败、乒乓效应、用户终端功耗过大等影响用户的体验的问题。基于此,为了在不影响用户使用体验的基础上降低5G SA对用户体验的影响,会在用户终端灭屏一定时间(例如60S)后关闭用户终端接入5G SA的能力,在用户终端亮屏后开启用户终端接入5G SA的能力。这用户终端灭屏后关闭5G SA会使得用户终端切换接入网络,用户终端切换接入网络则可能会导致用户终端正在进行的业务用户终端中断或停止。如此,如果用户终端在灭屏之后用户终端后台还存在正在进行的业务,则会导致该业务中断或停止。需要用户重新操作用户终端后,该业务才能继续进行。而这样,则会降低用户对用户终端的使用体验。
基于此,本申请提供一种通信方法,该方法可以应用于电子设备,该电子设备可以是具备接入5G SA网络以及5G产生之前的所有无线通信网络的能力的电子设备。参照图1所示,电子设备响应于灭屏事件,进入灭屏状态。在进入灭屏状态一定时长之后,电子设备则可以在自身的接入网络为5G SA网络的情况下,基于是否存在后台业务来决定是否进行5G SA抑制。通过5G SA抑制尽可能使得用户终端接入除5G SA以外的其他网络中,例如4G。这样一来,由于电子设备对5G SA的抑制结合自身是否存在后台业务之一信息的,因此相比于现有的灭屏后直接关闭用户终端接入5G SA网络的能力的方案,可以在更合适的时机对5G SA进行抑制。保障了用户的使用体验。
本申请中,上述电子设备可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等具有显示屏的设备,本申请对电子设备的具体类型不作任何限制。
以电子设备是手机为例。图2示出了本申请提供的中电子设备100的结构示意图。
参照图2所示,电子设备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,用户标识模块(subscriber identification module,SIM)卡接口194,以及摄像头195等。其中,传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在本申请中,AP可以用于确定电子设备执行5G SA抑制操作或者5G SA恢复操作的时机,而调制解调处理器则可以具体执行该5G SA抑制操作或该5G SA恢复操作。
控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器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)接口等。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏193,由触摸传感器与显示屏193组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏193提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备的表面,与显示屏193所处的位置不同。
在本申请中,触摸传感器可以检测到用户作用于手机显示屏上的操作,由处理器110分析并执行该操作对应执行的功能,例如熄屏,亮屏等。
压力传感器用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏193。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器,电极之间的电容改变。电子设备10根据电容的变化确定压力的强度。当有触摸操作作用于显示屏193,电子设备10根据压力传感器检测所述触摸操作强度。电子设备10也可以根据压力传感器的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
按键190包括电源键,音量键等。在本申请中,在手机处于亮屏状态时,若用户对电源键进行按压,则该手机会产生对应的第一按压信号并发送给处理器110。处理器110在接收到第一按压信号后会控制显示屏193熄灭,使得手机进行灭屏状态。在手机处于灭屏状态时,若用户对电源键进行按压,则该手机会产生对应的第二按压信号并发送给处理器110。处理器110在接收到第二按压信号后会控制显示屏193亮屏,使得手机进行亮屏状态。
马达191可以产生振动提示。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。
当然,可以理解的,上述图2所示仅仅为电子设备的形态为手机时的示例性说明。若电子设备是平板电脑,手持计算机,PC,PDA,可穿戴式设备(如:智能手表、智能手环)等其他设备形态时,电子设备的结构中可以包括比图2中所示更少的结构,也可以包括比图2中所示更多的结构,在此不作限制。
基于上述硬件架构,以下以电子设备为手机为例,对本申请提供的通信方法进行介绍。
参照图3所示,为本申请提供的通信方法的流程示意图。参照图3所示,该方法包括S301-S304:
S301、手机响应于灭屏事件,进入灭屏状态。
在用户实际使用手机过程中,若用户暂时不想使用手机或者不需要频繁操作手机的情况下,用户可以通过对手机进行灭屏操作使手机进入灭屏状态,或者手机在特定时机进入灭屏状态。这里用户对手机的灭屏操作和灭屏特定时机便为本申请中的灭屏事件。
其中,灭屏操作可以存在以下几种可实现方式:
在第一种可实现的方式中,灭屏操作可以是手机在亮屏状态下,用户对手机的电源键(或称为开机键、锁屏键)的按压操作。示例性的,参照图4中(a)所示,手机可以接收用户对电源键401的按压操作。响应于该按压操作,参照图4中(b)所示,手机可以熄灭屏幕进入灭屏状态。需要说明的是,一般的,电源按键往往具备有多种功能,按压次数和时长的变化都会对应不同的功能。这里的按压操作则可以是电源按键具备的多种功能对应的按压情况中的一种,例如,一次短时按压。
在第二种可实现的方式中,手机本身可以具备有一键锁屏功能。具体的手机桌面上可以显示有一键锁屏选项,此时锁屏操作则可以是用户对一键锁屏选项的触发操作,例如点击操作。示例性的,参照图5中(a)所示,手机可以接收用户对手机桌面上一键锁屏选项501的触发操作。响应于该触发操作,参照图5中(b)所示,手机可以熄灭屏幕进入灭屏状态。
当然,上述两种实现方式仅为示例,在本申请的其他示例中,灭屏操作还可以是任意可行的操作,本申请对此不做具体限制。
灭屏特定时机则可以存在以下几种实现方式:
在第一种实现方式中,灭屏特定时机可以是用户将手机靠近耳朵并进行通话业务时。具体的,手机在进行通话业务的过程中,手机可以利用其前置摄像头或者设置在手机屏幕一侧的测距传感器确定手机当前是否被用户拿起并靠近耳朵进行通话。如果确定用户拿起靠近耳朵进行通话,那么则表明用户大概率当前仅需要使用通话业务,则手机可以控制屏幕熄灭进入灭屏状态。
在第二种实现方式中,灭屏特定时机可以是用户不对手机做任何操作一定时长(例如30s)后,此处的一定时长可以由用户自行设定或者手机默认设定。具体的,如果手机在亮屏状态且在一定时长内均没有接收到用户的任何操作,例如移动手机,触摸手机屏幕等,则表明用户当前大概率没有操作手机的需求,例如用户此时仅需要利用手机后台运行听歌应用进行听歌。此时,手机则可以控制屏幕熄灭进入灭屏状态。应当理解,如果手机处于亮屏状态并进行播放视频等前台运行的业务则手机不会进行上述操作。
当然,上述两种应用实现仅为示例,在本申请的其他示例中,灭屏特定时机还可以是任意可行的时机,本申请对此不做具体限制。
S302、手机在处于灭屏状态的持续时长达到第一预设时长时,判断手机当前是否驻留在5G SA网络。
一种可实现的方式中,手机可以在进入灭屏状态时,便启动一个定时器,该定时器的计时上限可以为本申请中提到的第一预设时长,例如60s。之后,在手机处于灭屏状态且定时器计时达上限(或称为定时器超时)时,手机则可以确定自身处于灭屏状态的持续时长等于第一预设时长。之后,手机则可以开始判断自身当前是否驻留在5G SA网络。本申请中,如果手机驻留在5G SA网络,则认为手机处于5G SA模式。
具体的,手机在于某个网络制式的网络建立连接并驻留至该网络时,会获取到该网络的网络类型(network type)标识符。该网络类型标识符则用于指示该网络的具体网络制式或网络类型。在本申请中,手机则可以基于该网络类型标识符确定当前驻留 的网络的网络制式。进一步的,也就可以判断手机当前是否驻留在5G SA网络。
当步骤S302的判断结果是手机在处于灭屏状态的持续时长达到第一预设时长时手机当前驻留在5G SA网络的情况下,执行S303;在步骤S302的判断结果是手机在处于灭屏状态的持续时长达到第一预设时长时手机当前没有驻留在5G SA网络的情况下,执行S304。
在确定手机当前驻留在5G SA网络的情况下,如果后续直接对手机接入5G SA网络进行抑制,则可能会导致手机正在进行的后台业务因为手机从5G SA网络切换至其他网络产生中断或停止,影响用户使用体验。例如,参照前述灭屏特定时机中的第一种实现方式中,手机处于灭屏状态时,必然运行有通话业务这一后台业务。
所以这种情况下需要先判断手机是否存在后台业务,即执行S303,之后再决定是否抑制5G SA。
在确定手机当前没有驻留在5G SA网络的情况下,为了防止后续手机在处于存在5G SA的区域中驻留并接入5G SA网络,需要进行手机接入5G SA的抑制,即执行S304。
在本申请的一个示例中,可以不执行上述S302这一判断步骤。在该示例中,手机在确定当前驻留在5G SA网络的情况下执行S303,在确定当前驻留在除5G SA网络以外的其他网络的情况下执行S304即可。
S303、手机判断自身是否运行有后台业务。
具体的,手机如何判断自身是否运行有后台业务可以通过检查自身进程得到。当然,手机也可以是以其他任意可行方式确定自身是否运行有后台业务。在本申请中,后台业务具体指运行在手机后台且需要网络支持的业务,例如灭屏状态下进行的通话业务,灭屏状态下进行下载业务等。另外,需要说明的是,手机进行灭屏状态时,其进行的所有业务都是在后台运行的业务,本申请中所提到的后台业务则是这些业务中需要网络支持的业务。
当S303的判断结果为手机确定自身未运行后台业务的情况下,对手机接入5G SA网络的抑制则不会影响到用户的使用体验。此时,便可以开始对手机接入5G SA网络进行抑制,即执行S304。
当S303的判断结果为手机确定自身运行后台业务的情况下,对手机接入5G SA网络的抑制则可能会影响到用户的使用体验,所以此时需要不断确定后台业务是否运行结束,即执行S303。之后,在后台业务运行结束后即手机不再运行有后台业务的情况下,再进行对手机接入5G SA网络的抑制。
实际中,手机运行的后台业务大概率不是短时间能够结束的,在上述实施例中,若手机运行的后台业务没有结束,是需要反复不断的进行S303的判断的。这样一来,会造成手机运算资源的较大浪费。故而处于节省手机运算资源的目的,在一些实施例中,在首次执行S303且确定手机运行有后台业务后,可以每隔一段时间再执行S303。这里的一段时间可以根据实际各个业务的运行情况和手机本身的性能决定,例如可以是10s。
在一种可实现的方式中,两次S303执行的时间间隔可以由手机启动一个定时器来决定。示例性的,结合图3,参照图6所示,在手机确定自身未运行后台业务的情况 下,执行S303A:
S303A、手机启动定时器timer1开始计时,在timer1计时结束后执行S303。
其中,timer1的计时上限可以为前述提到的一段时间。本申请中,timer1计时结束后便会重置并停止计时,直至下次被重新启动。当然,timer1计时结束后也可以被终止,之后执行S303并确定手机运行有后台业务的情况,再次生成并启动新的timer1。
在本申请的一个示例中,可以不执行上述S303这一判断步骤,手机在确定自身未运行后台业务的情况下执行S304,手机在确定自身运行有后台业务的情况下则在后台业务运行结束后执行S304即可。
S304、手机执行5G SA抑制操作。
在一些实施例中,手机可以为不同网络制式的网络设置相应的接入优先级。针对不同网络制式的网络的接入优先级可以是手机出厂时便设置好的。接入优先级越高,则越优先接入或者驻留。例如,若某个手机支持接入2G、3G、4G、5G SA这四种网络制式的网络,且接入优先级由高至低依次为5G SA、4G、3G、2G。则手机会优先选择接入5G SA网络。在本申请的其他示例中,还可以考虑不同网络的信号强度作为参考,对此本申请不做具体说明。
在这种情况下,5G SA抑制操作可以包括:降低手机接入5G SA网络的优先级,即降低5G SA的接入优先级。具体的,本申请中,降低手机接入5G SA网络的优先级具体可以是将手机接入5G SA网络的优先级降低至低于手机接入第二网络制式的网络的优先级。其中,第二网络制式包括5G产生之前的网络制式,且第二网络制式对应的数据传输速度大于预设阈值。预设阈值可以是能够满足大多数业务的数据传输速度。其中,预设阈值可以是第一网络制式的网络理论上最大的数据传输速度。示例性的,第一网络制式可以是3G、2G等低速网络。第二网络制式则可以是4G、LTE等高速网络。
以手机支持接入2G、3G、4G、5G SA这四种网络制式的网络,且接入优先级由高至低依次为5G SA、4G、3G、2G为例,第二网络制式可以为4G,降低手机接入5G SA网络的优先具体可以是将5G SA的接入优先级降低至4G的接入优先级以下。
这样一来,在手机降低手机接入5G SA的优先级的情况下,手机仍然具备接入5GSA的能力,但是因为5G SA的接入优先级的降低,若此时手机所处区域存在第二网络制式的网络,例如4G网络,则手机驻留的网络会从5G SA切换为第二网络制式的网络。具体手机如何将驻留网络从5G SA切换至其他网络可以采用任意可行的手段,本申请对此不做具体限制。
当然,为了使得手机执行5G SA抑制操作后,手机不会驻留第一网络制式的网络中而是驻留第二网络制式的网络中,本申请中可以将手机接入5G SA网络的优先级降低至仅小于手机接入第二网络制式的网络的优先级至下。如此,本申请中,在手机所处区域所有网络制式的网络均存在的情况下,可以认为手机在执行S304步骤后,会驻留在第二网络制式的网络中。
需要说明的是,降低手机接入5G SA网络的优先级还可以等同替换为提升手机接入第二网络制式的网络的优先级。具体的,可以是将第二网络制式的网络的优先级提高至手机接入5G SA网络的优先级之上。其效果和降低手机接入5G SA网络的优先级 等同。
在另一些实施例,5G SA抑制操作可以包括:关闭手机接入5G SA网络的能力。这种情况下,因为手机已经无法再接入5G SA网络,所以必然会选择其他网络驻留并接入。
在本申请的一个示例中,5G SA抑制操作还可以是其他任意可行的操作,只要可以保证执行5G SA抑制操作后,手机会切换至其他网络即可。
基于上述S301-S304的技术方案,手机可以在进入灭屏状态一定时长后,在自身接入网络为5G SA网络的情况下,基于是否存在后台业务来决定是否执行5G SA抑制操作,即尽可能使得用户终端接入除5G SA网络以外的其他网络中,例如4G网络。具体的,手机可以在未运行有后台业务的情况下,执行5G SA抑制操作;在运行有后台业务的情况下等后台业务运行结束后执行5G SA抑制操作。这样一来,抑制手机接入5G SA网络这一行为(即执行5G SA抑制操作)便不会对正在运行的后台业务造成影响,也就不会对用户体验造成不良影响。
实际中,手机所处的区域有可能除5G SA网络以外的网络的网络条件不好,例如存在4G网但是信号很差,或者不存在4G网络仅存在5G SA、3G和2G网络,亦或者仅存在5G SA网络。在这种情况下,在手机执行了上述S304步骤后,手机可能会驻留至3G或2G等低速网络上,或者无网络服务。
因而,在一些实施例中,结合图3,参照图7所示,S304之后还可以包括S305-S307:
S305、手机在第二预设时长内确定自身驻留的网络的网络制式。
具体的,手机如何确定自身驻留网络的网络制式可以参照前述S302之后的相关表述,此处不再赘述。
一种可实现的方式中,手机可以在执行S305步骤后,启动一个定时器,该定时器的计时上限可以为本申请中提到的第二预设时长,例如5s。在该定时器计时达到计时上限时,则表明手机执行5G SA抑制操作后达到第二预设时长。
如上文所描述的,在手机所处区域所有网络制式的网络均存在的情况下,可以认为手机在执行S304步骤后,会驻留在第二网络制式的网络中。根据本申请实施例的一个示例,在执行S305的过程中,若手机驻留在第二网络制式的网络的持续时长小于第二预设时长,且在执行S304步骤后的第二预设时长内出现手机从驻留在第二网络制式的网络切换至驻留在第一网络制式,或者在第二网络制式的网络的驻留一段时间后手机处于无网络服务的情况,则表明手机在抑制接入5G SA网络后,由于手机所处区域中网络的限制,导致手机短时间内便接入到了数据传输速度较慢的第一网络制式的网络中或者手机无网络服务。而这将使得手机的大多数业务都无法正常进行。此时,则需要取消对手机接入5G SA网络的抑制,执行5G SA恢复操作,即S305后执行S306。
一种可实现的方式中,手机驻留在第二网络制式的网络的持续时长小于第二预设时长,可以指手机执行5G SA抑制操作的时刻和手机从第二网络制式的网络切换至第一网络制式的网络的时刻之间的时长小于第二预设时长。
具体的,这种实现方式中,手机执行5G SA抑制操作后手机先驻留并接入在第二网络制式的网络一段时间(小于第二预设时长)后,驻留并接入至第一网络制式的网络。
另一种可实现的方式中,手机驻留在第二网络制式的网络的持续时长小于第二预设时长,可以指手机执行5G SA抑制操作的时刻和手机开始无网络服务的时刻之间的时长小于第二预设时长。
具体的,这种实现方式中,手机执行5G SA抑制操作后手机先驻留并接入在第二网络制式的网络一段时间(小于第二预设时长)后,变为无网络服务。
此外,如上文所描述的,在手机所处区域不存在第二网络制式(例如4G)的网络或者第二网络制式的网络信号指令差到手机无法接入的情况下,可以认为手机在执行S304步骤后,手机无法驻留在第二网络制式的网络中。此时,手机可能会驻留在第一网络制式的网络或者无网络服务。根据本申请实施例的一个示例,在执行S305的过程中,若手机驻留在第一网络制式的网络中,或者手机无网络服务,则表明手机在抑制接入5G SA网络后,将使得手机的大多数业务无法正常进行。此时则需要取消对手机接入5G SA网络的抑制,来执行5G SA恢复操作,即S305后执行S306。
在本申请中,第二网络制式具体定义可以参照前述实施例中的相关表述,此处不再赘述。第一网络制式包括第二网络制式产生之前的网络制式(即第二网络制式可以包括第一网络制式产生之后的网络制式),且第一网络制式对应的数据传输速度小于预设阈值。例如,第二网络制式为4G时,第一网络制式则可以是3G、2G等。在某个网络理论的数据传输速度小于预设阈值时,可以认为该网络不能够满足手机上大多数业务的需求,对用户的使用体验影响较大,例如应用程序心跳数据包无法正常发送或者应用程序的通知信息可能无法被接收。
一种可实现的方式中,在5G SA抑制操作为降低电子设备接入5G SA网络的优先级的情况下,5G SA恢复操作包括:提升手机接入5G SA网络的优先级。
在降低手机接入5G SA网络的优先级具体可以是将手机接入5G SA网络的优先级降低至低于手机接入第二网络制式的网络的优先级的情况下,提升手机接入5G SA网络的优先级可以是将手机接入5G SA网络的优先级提升至高于手机接入第二网络制式的网络的优先级。
这样一来,在手机提升手机接入5G SA网络的优先级的情况下,因为5G SA网络的接入优先级的增高,若此时手机所处区域存在5G SA网络,则手机驻留的网络会从第一网络制式的网络或无网络服务切换为5G SA网络。具体手机如何切换驻留网络可以采用任意可行的手段,本申请对此不做具体限制。
需要说明的是,提升手机接入5G SA网络的优先级还可以等同替换为降低手机接入第二网络制式的网络的优先级。具体的,可以是将第二网络制式的网络的优先级降低至手机接入5G SA网络的优先级之下。其效果和提升手机接入5G SA网络的优先级等同。
另一种可实现的方式中,在5G SA抑制操作为关闭手机接入5G SA网络的能力的情况下,5G SA恢复操作包括:开启手机接入5G SA网络的能力。这种情况下,若此时手机所处区域存在5G SA网络,而5G SA网络本身的接入优先级最高且数据传输速率最高,基于给用户更好使用体验的目的,手机驻留的网络会从第一网络制式的网络或无网络服务切换为5G SA网络。
如上文所描述的,在手机所处区域所有网络制式的网络均存在的情况下,可以认 为手机在执行S304步骤后,会驻留在第二网络制式的网络中。根据本申请实施例的另一个示例,在执行S305的过程中,若手机在第二预设时长内均驻留在第二网络制式的网络中时,则表明在对手机接入5G SA网络进行抑制后,手机本身接入网络的数据传输速度能够符合大多数业务的要求,此时则可以不执行5G SA网络恢复操作保持原样即可,即执行S307。
S306、手机执行5G SA恢复操作。
S307、手机不执行5G SA恢复操作。
基于上述S305-S307对应的技术方案,手机可以保证灭屏进行5G SA接入抑制后,手机接入一个数据传输速度较快的网络中时,因为该网络可以符合手机中大多数业务需求,所以也就保证用户的使用体验。
在一些实施例中,手机在执行了S307及其前置步骤,使手机驻留在第二网络制式的网络中后,用户可能会携带手机进行移动。之后,手机可能会处于一个仅存在5G SA和/或第一网络制式的网络的区域。
此时,会存在以下几种情况:
(1)若手机所处区域仅存在5G SA网络,且5G SA抑制操作为关闭手机接入5GSA网络的能力,则手机会出现无网络服务的情况,严重影响用户的使用体验。
(2)若手机所处区域仅存在第一网络制式的网络的区域,且5G SA抑制操作为关闭手机接入5G SA网络的能力,则手机会驻留并接入到第一网络制式的网络中。而第一网络制式的网络的数据传输速度较慢,会对大多数业务产生不良影响,这样也就降低了用户对手机的使用体验。
(3)若手机所处区域仅存在5G SA网络和第一网络制式的网络的区域,且5G SA抑制操作为关闭手机接入5G SA网络的能力,则手机会驻留并接入到第一网络制式的网络中。而第一网络制式的网络的数据传输速度较慢,会对大多数业务产生不良影响,这样也就降低了用户对手机的使用体验。
可以看出,在这些情况中,用户对手机的使用体验都会降低。因此为了避免这一点,结合图7,参照图8所示,在S307之后,该方法还包括S308:
S308、若手机确定当前所处区域仅提供5G SA网络和/或第一网络制式的网络,且5G SA抑制操作为关闭手机接入5G SA网络的能力,则手机执行5G SA恢复操作。
其中,手机可以通过对其所在区域的网络进行网络类型的检测,确定其所处区域存在哪些网络制式的网络。具体检测方式可以是任意可行方式,本申请对此不做具体限制。
当然,S308步骤也可以是S308A:
S308A、若手机驻留的网络由第二网络制式切换为第一网络制式或无网络服务,则手机执行5G SA恢复操作。
S308A起到的作用和S308相同。
基于S308或S308A对应的技术方案,可以使得手机灭屏后执行了5G SA抑制操作后,在其驻留的网络影响或严重影响用户的使用体验时,执行5G SA恢复操作,以取消对手机接入5G SA网络的抑制,使手机可以顺利接入5G SA网络中,保障了用户的使用体验。
为了保证用户在手机亮屏时的正常使用,手机在由灭屏切换为亮屏后会执行5GSA恢复操作,从而使得手机可以正常接入任意网络。当然,若手机在灭屏状态时已执行了5G SA恢复操作,亮屏后可以保持原样。
在一些实施例中,若手机在前一次亮屏时驻留在5G SA网络上,且手机灭屏状态仅执行了5G SA抑制操作使手机驻留在第二网络制式的网络上,即未执行前述实施例中S306、S308或S308A。则后续用户在需要使用手机操作手机亮屏时,虽然手机会执行5G SA恢复操作使手机可以接入5G SA网络,但是手机在亮屏后驻留的网络由第二网络制式的网络切换为5G SA网络的过程可能需要几秒乃至十几秒,所以手机在亮屏一段时间内为会显示第二网络制式对应的信号标识。之后,在手机驻留的网络切换为5G SA后,手机才会显示5G SA对应的信号标识。
示例性的,参照图9中(a),手机在前一次亮屏时驻留在5G SA网络上,且在信号标识显示区901显示了5G SA对应的信号标识“5G”。之后,响应于灭屏事件,参照图9中(b)所示,手机进入灭屏状态。之后,手机在进入灭屏状态第一预设时长后,手机则在确定满足预设条件的情况下执行5G SA抑制操作,使手机驻留并接入在第二网络制式对应的信号标识。其中,预设条件可以为前述实施例中手机执行5G SA操作前需要确定的相关信息,此处不再赘述。
然后,手机可以响应于亮屏事件,从灭屏切换为亮屏,进入如图9中(c)所示的亮屏状态。如图9中(c)所示,手机在信号标识显示区901显示第二网络制式对应的信号标识。示例性的,以第二网络制式为4G为例,手机在信号标识显示区901可以具体显示“4G”。
结合前述实施例中灭屏事件的相关表述,亮屏事件可以为与灭屏操作对应的亮屏操作或灭屏特定时机对应的亮屏特定时机。
其中,亮屏操作可以是手机在灭屏状态下,用户对手机的电源键(或称为开机键、锁屏键)的按压操作。示例性的,参照图4中(b)所示,手机可以接收用户对电源键401的按压操作。响应于该按压操作,参照图4中(a)所示,手机可以点亮屏幕进入亮屏状态。需要说明的是,一般的,电源按键往往具备有多种功能,按压次数和时长的变化都会对应不同的功能。这里的按压操作则可以是电源按键具备的多种功能对应的按压情况中的一种,例如,一次短时按压。在本申请的其他示例中,亮屏操作还可以是任意可行的操作,本申请对此不做具体限制。图9中以亮屏操作为对电源键的按压操作为例。
亮屏特定时机则可以存在以下几种实现方式:
在第一种实现方式中,亮屏特定时机可以是用户将手机靠近耳朵并进行通话业务的过程中,将手机拿着远离耳朵时或者通话结束时。具体的,手机在进行通话业务的过程中,手机可以利用其前置摄像头或者设置在手机屏幕一侧的测距传感器确定手机当前是否被用户拿起并靠近耳朵进行通话。如果确定手机并未靠近耳朵一定距离(例如2cm),那么则表明用户大概率还需要使用手机的其他业务,则手机可以控制屏幕进入亮屏状态。
在第二种实现方式中,亮屏特定时机可以是手机在灭屏状态接收到通话请求时,点亮屏幕并显示通话提醒。当然,如果用户设置了其他应用的通知消息也可以唤醒屏 幕的话,亮屏特定时间也可以是手机接收到应用的通知消息时。
当然,上述两种应用实现仅为示例,在本申请的其他示例中,亮屏特定时机还可以是任意可行的时机,本申请对此不做具体限制。
之后,再经过第三预设时长后,参照图9中(d)所示,手机才会在信号标识显示区901显示5G SA的信号标识“5G”。其中,第三预设时长即为前述提到的一段时间。示例性的,第三预设时长可以为60s。第三预设时长可以是大多数情况下,手机切换驻留的网络所需要的最长时间。
可以看出,这样用户在使用手机时,会明显发现信号标识的跳变。用户可能会认为自身具备5G功能的手机出现故障只能连接到4G,或者认为当前区域不存在5G网络,从而给用户造成了不好的使用体验。
基于此,为了避免这种影响用户体验的跳变,在手机在灭屏状态下仅执行了5G SA抑制操作使手机驻留在第二网络制式的网络的情况下,参照图10所示,本申请提供的通信方法还可以包括S1001-S1005:
S1001、手机在灭屏状态下,响应于亮屏事件,进入亮屏状态。
示例性的,以亮屏事件为用户对手机电源键的按压操作为例。参照图11中(a)所示,用户可以在需要的时候对手机的电源键101实施按压操作。之后,响应于该按压操作,手机可以响应于亮屏事件,从灭屏切换为亮屏,进入如图11中(b)所示的亮屏状态。
S1002、手机执行5G SA恢复操作。
基于S1002,手机便可以正常接入5G SA的。
S1003、手机在前一次亮屏时驻留的网络为5G SA网络的情况下,显示5G SA对应的信号标识。
示例性的,如图11中(b)所示,手机可以在信号标识显示区102显示5G SA对应的信号标识“5G”。
本申请中,S1002和S1003不存在必然的先后顺序,可以S1002先执行,也可以S1003先执行,也可以一起执行。对此本申请不做具体限制。
S1004、手机判断在进入亮屏状态后手机驻留在第二网络制式的网络的持续时间是否达到第三预设时长。
具体手机如何判断自身驻留的网络的网络制式,可以参照前述实施例中的相关表述,此处不再赘述。
一种可实现的方式中,手机可以在进入亮屏状态时,便启动一个定时器,该定时器的计时上限可以为本申请中提到的第三预设时长,例如60s。之后,在手机持续驻留在第二网络制式的网络,且该定时器计时未达上限时,则可以确定手机驻留在第二网络制式的网络的持续时间小于第三预设时长。在手机持续驻留在第二网络制式的网络,且该定时器计时达上限时,则可以确定手机驻留在第二网络制式的网络的持续时间达到第三预设时长。
当S1004的判断结果是手机确定驻留在第二网络制式的网络的持续时间达到第三预设时长时,则表明手机当前所处区域本身已经没有5G SA网络覆盖或者5G SA网络信号不好连接不上。此时手机未驻留在5G SA网络上属于客观不可抗力。此时手机可 以按照当前驻留的网络正常显示相应的信号标识,不需要再对信号标识的跳变做优化,即执行S1005。
当S1004的判断结果是手机确定驻留在第二网络制式的网络的持续时间小于第三预设时长时,则表明手机可能还未完成从第二网络制式的网络到5G SA网络的切换。所以为了避免对用户观感和体验的不好影响,此时手机仍然显示5G SA对应的信号标识。之后,则继续执行S1004。直至S1004的判断结果为手机确定驻留在第二网络制式的网络的持续时间达到第三预设时长为止。
S1005、手机显示手机当前驻留的网络的网络制式对应的信号标识。
具体的,在手机在第三预设时长内切换到5G SA网络的动作时,S1005中手机显示的信号标识为5G SA对应的信号标识。在手机在第三预设时长内未完成或者不能完成切换到5G SA网络的动作时,S1005中手机显示的信号标识则为第二网络制式对应的信号标识。
示例性的,在手机在第三预设时长内切换到5G SA网络的动作时,参照图11中(c)所示,手机可以在信号标识显示区102继续显示5G SA对应的信号标识“5G”。
在手机在第三预设时长内未完成或者不能完成切换到5G SA网络的动作时,参照图11中(d)所示,手机则可以在信号标识显示区102显示第二网络制式对应的信号标识,例如“4G”。
基于上述S1001-S1005对应的技术方案,可以在手机在灭屏状态执行了5G SA抑制操作后,在手机在从灭屏切换为亮屏的情况下,给足手机切换驻留网络的时间。在手机可以切换至5G SA驻留但未切换未完成的情况下,使手机显示5G SA对应的信号标识直至切换完成,避免了信号标识的跳变,保证用户的观感和使用体验。
另外,需要说明的是,目前5G SA网络还未完全部署完成,同时5G SA网络功耗较大且消耗流量较快。相应的,出于提高用户体验的目的,目前大多数的支持5G SA网络的手机都会给用户提供开启/关闭手机接入5G SA网络的能力的选项,以使得用户根据自身需求选择是否允许手机接入5G SA网络。示例性,手机的下拉菜单中可以存在5G选项。手机可以接收用户对5G选项的触发,将手机接入5G SA网络的能力由开启变为关闭或者由关闭变为开启。
在用户通过对手机实施的关闭接入5G SA网络的能力的操作,如对5G选项触发操作(例如点击操作),使得手机关闭接入5G SA网络的能力的情况下,手机本身已经完成了手机接入5G SA网络的抑制。此时,则不需要执行本申请提供技术方案。
可以理解的是,上述电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式 实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,参照图12所示,本申请提供了一种电子设备,该电子设备包括:处理模块201和显示模块202。
其中,处理模块201用于执行本申请提供的通信方法的大多数步骤。具体的,处理模块201用于执行前述实施例中的S301、S302、S303、S303A、S304、S304A、S305、S306、S307、S308、S308A、S1001中的“响应亮屏事件”、S1002和S1004。显示模块202则用于显示或被处理模块控制显示本申请中需要显示的内容。具体的,显示模块202用于执行前述实施例中的S1001中“进入亮屏状态”、S1003和S1005。
关于上述的电子设备,其中各个模块执行操作的具体方式已经在前述实施例中的通信方法的实施例中进行了详细描述,此处不再具体阐述。其相关的有益效果也可参照前述通信方法的相关有益效果,此处不再赘述。
本申请还提供一种电子设备,该电子设备包括显示屏、存储器和一个或多个处理器;显示屏、存储器与处理器耦合;其中,存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行如前述实施例提供的通信方法。该电子设备的具体结果可参照图2中所示的电子设备100的结构。
具体的,当计算机指令被处理器执行时,使得电子设备执行如下步骤:首先,在电子设备处于灭屏状态的持续时长达到第一预设时长时,确定电子设备是否处于第五代移动通信技术独立组网5G SA模式以及是否运行后台业务。之后,当电子设备处于5G SA模式且电子设备未运行后台业务时,执行5G SA抑制操作;当电子设备处于5GSA模式且电子设备在运行后台业务时,在后台业务运行结束后执行5G SA抑制操作。其中,5G SA抑制操作包括:降低电子设备接入5G SA网络的优先级,或者关闭电子设备接入5G SA网络的能力。
可选的,当该计算机指令被处理器执行时,使得电子设备还执行如下步骤:当所述电子设备未处于5G SA模式时,所述电子设备执行所述5G SA抑制操作。
可选的,当该计算机指令被处理器执行时,使得电子设备在电子设备执行5G SA抑制操作之后还执行如下步骤:若所述电子设备驻留至第一网络制式的网络,且所述电子设备执行所述5G SA抑制操作的时刻和所述电子设备开始驻留至所述第一网络制式的网络的时刻之间的时长小于第二预设时长,则所述电子设备执行SA恢复操作;或者,若所述电子设备无网络服务,且所述电子设备执行所述5G SA抑制操作的时刻和所述电子设备开始无网络服务的时刻之间的时长小于第二预设时长,则所述电子设备执行SA恢复操作。
其中,所述SA恢复操作包括:提升所述电子设备接入5G SA网络的优先级,或者开启所述电子设备接入5G SA网络的能力;所述第一网络制式是2G或3G。
可选的,当该计算机指令被处理器执行时,使得电子设备在电子设备执行5G SA抑制操作之后,还执行如下步骤:若电子设备驻留在第二网络制式的网络,且持续驻留了第二预设时长,则电子设备不执行5G SA恢复操作;第二网络制式包括4G或LTE。
可选的,当该计算机指令被处理器执行时,使得电子设备在电子设备不执行5G SA 恢复操作之后还执行如下步骤:若电子设备确定当前所处区域仅提供5G SA网络和/或第一网络制式的网络,且5G SA抑制操作为关闭电子设备接入5G SA网络的能力,则电子设备执行5G SA恢复操作。
可选的,降低电子设备接入5G SA的优先级,包括:将电子设备接入5G SA网络的优先级降低至低于电子设备接入第二网络制式的网络的优先级。
可选的,提升电子设备接入5G SA的优先级,包括:将电子设备接入5G SA网络的优先级提升至高于电子设备接入第二网络制式的网络优先级。
可选的,当该计算机指令被处理器执行时,使得电子设备在电子设备执行5G SA抑制操作之后还执行如下步骤:电子设备检测到从灭屏状态改变为亮屏状态,电子设备执行5G SA恢复操作,并在电子设备在前一次亮屏时驻留的网络为5G SA的情况下,显示5G SA对应的信号标识;在电子设备驻留在第二网络制式的网络并持续第三预设时长的情况下,电子设备显示电子设备当前驻留的网络的网络制式对应的信号标识。
进一步可选的,当该计算机指令被处理器执行时,使得电子设备在电子设备显示5G SA对应的信号标识之后还执行如下步骤:在在电子设备驻留的网络由第二网络制式的网络切换至5G SA网络,电子设备正常显示电子设备当前驻留的网络的网络制式对应的信号标识。
可选的,后台业务为运行于电子设备后台且需要网络支持的业务。
本申请还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如前述实施例提供的通信方法。
本申请还提供一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得电子设备执行如前述实施例提供的通信方法。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种通信方法,应用于电子设备,其特征在于,所述方法包括:
    在所述电子设备处于灭屏状态的持续时长达到第一预设时长时,确定所述电子设备是否处于第五代移动通信技术独立组网5G SA模式以及是否运行后台业务;
    当所述电子设备处于5G SA模式且所述电子设备未运行后台业务时,执行5G SA抑制操作;当所述电子设备处于5G SA模式且所述电子设备在运行后台业务时,在后台业务运行结束后执行5G SA抑制操作;
    其中,所述5G SA抑制操作包括:降低所述电子设备接入5G SA网络的优先级,或者关闭所述电子设备接入5GSA网络的能力。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述电子设备未处于5G SA模式时,所述电子设备执行所述5G SA抑制操作。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述电子设备执行5G SA抑制操作之后,所述方法还包括:
    若所述电子设备驻留至第一网络制式的网络,且所述电子设备执行所述5G SA抑制操作的时刻和所述电子设备开始驻留至所述第一网络制式的网络的时刻之间的时长小于第二预设时长,则所述电子设备执行5G SA恢复操作;或者,
    若所述电子设备无网络服务,且所述电子设备执行所述5G SA抑制操作的时刻和所述电子设备开始无网络服务的时刻之间的时长小于第二预设时长,则所述电子设备执行5G SA恢复操作;
    其中,所述5G SA恢复操作包括:提升所述电子设备接入5G SA网络的优先级,或者开启所述电子设备接入5G SA网络的能力;
    所述第一网络制式是第二代移动通信技术2G或第三代移动通信技术3G。
  4. 根据权利要求3所述的方法,其特征在于,在所述电子设备执行SA抑制操作之后,所述方法还包括:
    若所述电子设备驻留在第二网络制式的网络,且持续驻留了所述第二预设时长,则所述电子设备不执行所述5G SA恢复操作;所述第二网络制式包括第四代移动通信技术4G或长期演进技术LTE。
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备不执行所述5G SA恢复操作之后,所述方法还包括:
    若所述电子设备确定当前所处区域仅提供5G SA网络和/或所述第一网络制式的网络,且所述SA抑制操作为关闭所述电子设备接入所述5GSA网络的能力,则所述电子设备执行所述SA恢复操作。
  6. 根据权利要求3-5中任一项所述的方法,其特征在于,所述降低所述电子设备接入5G SA网络的优先级,包括:将所述电子设备接入5G SA网络的优先级降低至低于所述电子设备接入所述第二网络制式的网络的优先级。
  7. 根据权利要求3-6中任一项所述的方法,其特征在于,所述提升所述电子设备接入5G SA网络的优先级,包括:将所述电子设备接入5G SA网络的优先级提升至高于所述电子设备接入所述第二网络制式的优先级。
  8. 根据权利要求3-7中任一项所述的方法,其特征在于,所述电子设备执行5G SA 抑制操作之后,所述方法还包括:
    所述电子设备检测到从灭屏状态改变为亮屏状态;
    所述电子设备执行所述5G SA恢复操作,并且所述电子设备在前一次亮屏时驻留的网络为所述5G SA的情况下,显示所述5G SA对应的信号标识;
    在所述电子设备驻留在所述第二网络制式的网络并持续第三预设时长的情况下,所述电子设备显示所述电子设备当前驻留的网络的网络制式对应的信号标识。
  9. 根据权利要求8所述的方法,其特征在于,所述电子设备显示所述SA对应的信号标识之后,所述方法还包括:
    在所述电子设备驻留的网络由所述第二网络制式的网络切换至所述5G SA网络后,所述电子设备显示所述电子设备当前驻留的网络的网络制式对应的信号标识。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述后台业务为运行于所述电子设备后台且需要网络支持的业务。
  11. 一种电子设备,其特征在于,包括:显示屏、存储器和一个或多个处理器;所述显示屏、所述存储器与所述处理器耦合;其中,所述存储器中存储有计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权利要求1-9任一项所述的通信方法。
  12. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9任一项所述的通信方法。
PCT/CN2022/138127 2022-02-25 2022-12-09 一种通信方法和电子设备 WO2023160126A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210179984.9A CN116709453A (zh) 2022-02-25 2022-02-25 一种通信方法和电子设备
CN202210179984.9 2022-02-25

Publications (1)

Publication Number Publication Date
WO2023160126A1 true WO2023160126A1 (zh) 2023-08-31

Family

ID=87764614

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/138127 WO2023160126A1 (zh) 2022-02-25 2022-12-09 一种通信方法和电子设备

Country Status (2)

Country Link
CN (1) CN116709453A (zh)
WO (1) WO2023160126A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669805A (zh) * 2019-03-09 2020-09-15 华为技术有限公司 网络连接的处理方法、相关设备及计算机存储介质
CN112188576A (zh) * 2020-09-22 2021-01-05 展讯通信(上海)有限公司 5g终端在业务并发时的功耗优化方法、装置、设备及介质
CN112188577A (zh) * 2020-09-27 2021-01-05 Oppo广东移动通信有限公司 小区驻留方法、装置、终端设备及计算机可读存储介质
CN112218347A (zh) * 2020-09-27 2021-01-12 Oppo(重庆)智能科技有限公司 异系统乒乓的抑制方法、装置、终端设备及存储介质
CN112346553A (zh) * 2019-08-06 2021-02-09 三星电子株式会社 用于降低功率消耗的电子装置以及其操作方法
CN112672389A (zh) * 2020-12-24 2021-04-16 北京小米移动软件有限公司 网络切换方法
CN113329436A (zh) * 2021-05-21 2021-08-31 Oppo广东移动通信有限公司 一种连接控制方法、终端及存储介质
CN113395787A (zh) * 2020-03-13 2021-09-14 华为技术有限公司 一种恢复双连接的方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741502B (zh) * 2020-06-19 2022-09-30 青岛海信移动通信技术股份有限公司 移动终端及其移动通信网络切换方法
CN113938994B (zh) * 2020-07-13 2024-01-09 华为技术有限公司 一种通信方法及装置
US11166153B1 (en) * 2020-07-24 2021-11-02 Verizon Patent And Licensing Inc. System and methods for network control of 5G operation mode
CN113099509B (zh) * 2021-03-04 2023-01-20 Oppo广东移动通信有限公司 服务选择方法、装置、终端及存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669805A (zh) * 2019-03-09 2020-09-15 华为技术有限公司 网络连接的处理方法、相关设备及计算机存储介质
CN112346553A (zh) * 2019-08-06 2021-02-09 三星电子株式会社 用于降低功率消耗的电子装置以及其操作方法
CN113395787A (zh) * 2020-03-13 2021-09-14 华为技术有限公司 一种恢复双连接的方法及装置
CN112188576A (zh) * 2020-09-22 2021-01-05 展讯通信(上海)有限公司 5g终端在业务并发时的功耗优化方法、装置、设备及介质
CN112188577A (zh) * 2020-09-27 2021-01-05 Oppo广东移动通信有限公司 小区驻留方法、装置、终端设备及计算机可读存储介质
CN112218347A (zh) * 2020-09-27 2021-01-12 Oppo(重庆)智能科技有限公司 异系统乒乓的抑制方法、装置、终端设备及存储介质
CN112672389A (zh) * 2020-12-24 2021-04-16 北京小米移动软件有限公司 网络切换方法
CN113329436A (zh) * 2021-05-21 2021-08-31 Oppo广东移动通信有限公司 一种连接控制方法、终端及存储介质

Also Published As

Publication number Publication date
CN116709453A (zh) 2023-09-05

Similar Documents

Publication Publication Date Title
RU2691640C2 (ru) Способ и аппаратура для сокращения потребления энергии в мобильном электронном устройстве
WO2017129082A1 (zh) 一种终端控制方法及终端
US20140035873A1 (en) Controlling responsiveness to user inputs on a touch-sensitive display
US11747953B2 (en) Display method and electronic device
KR20150033505A (ko) 전자 장치에서 절전 모드를 수행하는 방법 및 이를 위한 전자 장치
KR20110137190A (ko) 이동통신 단말기의 전원 관리 방법 및 이를 이용하는 이동통신 단말기
WO2010139169A1 (zh) 终端电量节省方法及装置
CN110703944B (zh) 触控数据处理方法、装置、终端及存储介质
WO2014023259A1 (zh) 多功能智能终端及其能量管理方法
CN104423535A (zh) 信息处理设备、信息处理系统和电力控制方法
WO2022262434A1 (zh) 一种功耗优化方法和电子设备
WO2015154376A1 (zh) 一种终端节电方法、装置、终端、计算机程序及载体
CN111443803A (zh) 模式切换方法、装置、存储介质及移动终端
US20190354383A1 (en) Method and device for sound effect processing
CN110602772A (zh) WiFi模块控制方法、控制装置、电子装置及存储介质
CN113672071A (zh) 操作系统运行方法、装置、存储介质及终端
WO2023160126A1 (zh) 一种通信方法和电子设备
CN109753483B (zh) 文件管理应用页面显示方法及装置、移动终端及存储介质
WO2023045921A1 (zh) 显示方法、装置和电子设备
CN111831100B (zh) 电子设备的控制方法、装置、存储介质及电子设备
CN113282361B (zh) 一种窗口的处理方法及电子设备
CN110471622B (zh) 一种sd卡数据写入方法、装置、存储介质及终端
CN114265495A (zh) 应用程序处理方法、智能终端及存储介质
CN110191503B (zh) 音频播放方法、系统、存储介质及移动终端
CN113986558A (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: 22928383

Country of ref document: EP

Kind code of ref document: A1