WO2024067356A1 - 网络连接方法、装置、电子设备和可读存储介质 - Google Patents

网络连接方法、装置、电子设备和可读存储介质 Download PDF

Info

Publication number
WO2024067356A1
WO2024067356A1 PCT/CN2023/120452 CN2023120452W WO2024067356A1 WO 2024067356 A1 WO2024067356 A1 WO 2024067356A1 CN 2023120452 W CN2023120452 W CN 2023120452W WO 2024067356 A1 WO2024067356 A1 WO 2024067356A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile communication
network
communication network
pdn connection
electronic device
Prior art date
Application number
PCT/CN2023/120452
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 WO2024067356A1 publication Critical patent/WO2024067356A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Definitions

  • the present application belongs to the field of communication technology, and specifically relates to a network connection method, device, electronic device and readable storage medium.
  • the purpose of the embodiments of the present application is to provide a network connection method, device, electronic device and readable storage medium, which can solve the problem of traffic consumption that does not meet user expectations in the prior art.
  • an embodiment of the present application provides a network connection method, the method comprising:
  • PDN packet data network
  • the first PDN connection is transferred from the first mobile communication network to the second mobile communication network, the first PDN connection is disconnected.
  • an embodiment of the present application provides a network connection device, the method comprising:
  • An establishing module configured to establish a first packet data network PDN connection through a first mobile communication network
  • a sending module used for sending registration request information to the second mobile communication network when the data network of the electronic device is in a closed state
  • the disconnection module is used to disconnect the first PDN connection when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network.
  • an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory,
  • the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
  • an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
  • a first packet data network PDN connection is established through a first mobile communication network, wherein if the data network is in a closed state, it means that the user does not need to use the data network. Therefore, when the data network of the electronic device is in a closed state, a registration request message is sent to the second mobile communication network, and when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network, the first PDN connection is disconnected.
  • the first PDN connection can be completely disconnected, and it can be ensured that the electronic device will no longer receive information sent by the network device side when the data network is in a closed state.
  • the first PDN connection is disconnected when the first PDN connection is transferred to the second mobile communication network, which meets the requirements of the operator. As a result, the data traffic generated by the electronic device can be saved and the power of the electronic device can be saved.
  • FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG2 is a flow chart of a network connection method provided in an embodiment of the present application.
  • FIG3 is a structural diagram of a network connection device provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • FIG. 5 is a second schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application.
  • first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated before and after are in an "or” relationship.
  • Packet Data Network a data connection between electronic devices and network equipment, a data connection used by users to access the network.
  • Modem is the abbreviation of modulator and demodulator, a kind of computer hardware, which can translate the digital signal of the computer into analog signal that can be transmitted along the ordinary telephone line, and these analog signals can be received by another modem at the other end of the line and translated into the language that the computer can understand. This simple process completes the communication between two computers.
  • An application processor is a very large-scale integrated circuit that expands audio and video functions and dedicated interfaces based on a low-power central processing unit.
  • the 4th generation mobile communication technology (4G) is a technology that can transmit high-quality video images with image transmission quality comparable to high-definition television. 4G mobile communication technology can find the fastest and most efficient communication path between multiple different network systems, platforms and wireless communication interfaces to perform the most immediate transmission, reception and positioning operations.
  • the 5th generation mobile communication technology is a new generation of broadband mobile communication technology with the characteristics of high speed, low latency and large connection.
  • 5G communication facilities are the network infrastructure for realizing the interconnection between man, machine and things.
  • Main card a subscriber identity module (SIM) that provides data services in electronic devices.
  • SIM subscriber identity module
  • Sleep mode intelligently determines the user's sleep period and disables data network functions during the preset time period, supporting only necessary functions such as phone calls and text messages.
  • the network connection method provided in the embodiment of the present application can be applied to at least the following application scenarios, which are described below.
  • the electronic device uses the data network in the process of interacting with the network device, where the network device can be a core network.
  • the network device can be a core network.
  • the main card is responsible for providing voice and data services
  • the secondary card is only responsible for providing voice services.
  • the secondary card In order to quickly switch between the main and secondary cards, the secondary card also establishes a PDN connection. In this way, when the secondary card is switched to the main card, there is no need to create a new PDN connection, which can ensure the switching speed and facilitate user use.
  • the traffic is also consumed very quickly. In order to save power and traffic. Users sometimes take the initiative to turn off the data network.
  • the quasi-state of operation of the electronic device expected by the user is that after turning off the data network, there will be no traffic consumption and it will be more power-saving.
  • many electronic devices will also provide sleep mode to users. When the preset time period is reached, if the user turns off the screen and stands by, the electronic device will automatically enter sleep mode, turn off the data network, and disconnect the data connection between the AP and the MODEM. If the electronic device is currently registered under 5G, the PDN connection will be disconnected immediately, that is, the data connection between the MODEM and the network device will be disconnected. In this way, the AP will not send data to the MODEM, and the network will not send data to the MODEM. There will be no data paging, allowing the MODEM to have more time to sleep and achieve the purpose of saving power.
  • the PDN connection is not allowed to be disconnected, that is, the data connection between the MODEM and the network device is not allowed to be disconnected.
  • the network device can still page the primary card or the secondary card at any time.
  • the statistical results based on big data show that when the electronic device is in a 5G weak signal area, if the data network is turned off, the probability of the main card staying on the 4G network is very high. In other words, the probability of the above specific scenario occurring is very high.
  • the main card does not disconnect the PDN connection, and the MODEM still maintains the data connection with the network device.
  • the PDN connection will switch seamlessly from 4G to 5G.
  • the network device can continue to send data to the MODEM.
  • the specific process includes: the network device sends the first data to the MODEM, and after the MODEM establishes the Radio Resource Control (RRC) link, since the data connection between the AP and the MODEM has been disconnected, the first data received by the MODEM cannot be sent to the AP, and the AP cannot receive and process the first data, resulting in the network device not receiving the confirmation from the application software on the AP side.
  • the network device may repeatedly send the first data to the electronic device, so that the MODEM can sleep for a short time, which consumes a lot of power and consumes a lot of mobile phone traffic without the user's knowledge.
  • shutting down the data network of the primary card will not affect the secondary card.
  • the secondary card switches from 4G to 5G, the PDN connection also switches seamlessly to 5G.
  • the statistical results based on big data show that the power consumption caused by frequent paging of the secondary card under 5G is greater than that of frequent paging under 4G.
  • Frequent paging on the secondary card not only brings power consumption problems, but also the secondary card responds to paging to establish an air interface link, which will also occupy the Radio Frequency (RF) resources, affecting the smoothness of the primary card business.
  • RF Radio Frequency
  • the embodiments of the present application provide a network connection method, device, electronic device and storage medium, which can solve the problem of traffic consumption that does not meet user expectations in the related art.
  • FIG. 2 is a flow chart of a network connection method provided in an embodiment of the present application.
  • the network connection method may include steps 210 to 230.
  • the method is applied to a network connection device, and is specifically as follows:
  • Step 210 Establish a first packet data network (PDN) connection through a first mobile communication network.
  • PDN packet data network
  • the first mobile communication network is 4G.
  • Step 220 When the data network of the electronic device is in a closed state, send a registration request message to the second mobile communication network.
  • the network resources consumed by the second mobile communication network are greater than the network resources consumed by the first mobile communication network.
  • the first mobile communication network is 4G and the second mobile communication network is 5G.
  • a registration request message is sent to the second mobile communication network.
  • the first PDN connection can be disconnected by taking advantage of the opportunity of registering with the second mobile communication network.
  • step 220 the following steps may also be included:
  • the first PDN connection is transferred from the first mobile communication network to the second mobile communication network according to the preset protocol conversion information.
  • the first PDN connection is transferred from the first mobile communication network to the second mobile communication network.
  • the Internet Protocol (IP) address of the electronic device when using the first mobile communication network can still be used, that is, the IP address does not change.
  • the network switching condition includes at least one of the following:
  • the signal strength of the second mobile communication network is greater than a preset threshold
  • a second instruction sent by the network device is received, where the second instruction is used to instruct switching to a second mobile communication network.
  • the information can be converted according to the preset protocol to transfer the first PDN connection from 4G to 5G.
  • the first PDN connection can seamlessly switch between 4G and 5G.
  • the first PDN connection can be transferred from 4G to 5G according to the preset protocol conversion information.
  • the first instruction can be a setting instruction for the data network in the setting list by the user.
  • the first PDN connection can be transferred from 4G to 5G according to the preset protocol conversion information.
  • the second instruction can be a setting instruction of the network device for the data network.
  • step 220 the following steps may also be included:
  • the data network is switched to a closed state.
  • the data network can be turned off by inputting a turn-off input to the data network.
  • the turn-off input to the data network is received from the user, the data network is switched to a turn-off state.
  • switching the data network to a closed state may specifically include: when in a preset time period and without receiving a user operation, switching the data network to a closed state.
  • the preset operation state may be a sleep mode preset in the electronic device.
  • the preset time period may be a preset sleep time period, such as 12:00 pm to 6:00 am. If the preset time period is reached and no user operation is received, it means that the user does not need to use the data network at this time.
  • the step of switching the data network to the closed state may specifically include: the AP sends a data network disconnection instruction to the MODEM to switch the data network to the closed state.
  • Step 230 disconnect the first PDN connection when transferring the first PDN connection from the first mobile communication network to the second mobile communication network.
  • the PDN connection under 5G will be transferred to 4G, and there is no need to establish a PDN connection under 4G.
  • the PDN connection can include the user's IP address and network access information.
  • network access information refers to a network access technology, which is a parameter that must be configured when accessing the Internet through an electronic device. It determines the access method used by the electronic device to access the network.
  • step 230 may specifically include the following steps:
  • a disconnection request message is sent to the network device, where the disconnection request message is used to request the network device to disconnect the first PDN connection.
  • the registration acceptance information corresponding to the registration request information When the registration acceptance information corresponding to the registration request information is received, it indicates that the first PDN connection has been transferred from the first mobile communication network to the second mobile communication network. That is, after the electronic device switches to 5G, if the MODEM finds that the data network of the electronic device is in a closed state, it notifies the network device to disconnect the first PDN connection.
  • the network device after the network device disconnects the first PDN connection, the network device does not know the IP address of the electronic device, and can no longer send data to the IP address of the electronic device, that is, the electronic device is completely disconnected from the data network and will not generate traffic data.
  • This implementation complies with the operator's agreement and does not disconnect the first PDN connection in 4G.
  • the first PDN connection is disconnected in 5G.
  • the above steps 210 to 230 are performed based on the first user identity identification SIM card, and the method may further include:
  • the second PDN connection is disconnected.
  • the first SIM card is the primary card, and the above steps 210 to 230 are performed based on the first SIM card, which may specifically include:
  • the first SIM card When the data network is in a closed state, the first SIM card is controlled to send a registration request message for the second mobile communication network to the network device, so that when the registration acceptance message corresponding to the registration request message is received later, a disconnection request message is sent to the network device, so that the MODEM can have more time to sleep and does not consume the traffic of the electronic device.
  • the second SIM card is a secondary card. After the secondary card is switched from 4G to 5G, there is no need to determine whether the data network is closed.
  • the second SIM card can be directly controlled to send registration request information for the second mobile communication network to the network device for subsequent request to disconnect the second PDN connection.
  • the second PDN connection can be directly requested to be disconnected, which can save network resources.
  • the second SIM card can be directly controlled to send registration request information for the second mobile communication network to the network device. Since the secondary card does not provide data services, disconnecting the second PDN connection will not affect the user experience, and can avoid frequent data paging in the second mobile communication network, and prevent the second SIM card from occupying the resources of the first SIM card and consuming traffic.
  • the above steps 210 to 230 are performed based on the third SIM card, and the method may further include:
  • the fourth SIM card When the fourth SIM card is in the network environment of the second mobile communication network, the fourth SIM card is prohibited from establishing a PDN connection.
  • the third SIM card is a primary card
  • the fourth SIM card is a secondary card. If the fourth SIM card is in the network environment of the second mobile communication network, the fourth SIM card is prohibited from establishing a PDN connection.
  • the secondary card since the secondary card does not provide data services, prohibiting the fourth SIM card from establishing a PDN connection will not affect the user experience, and can avoid frequent data paging in the second mobile communication network and prevent the fourth SIM card from occupying the resources of the third SIM card and consuming traffic.
  • the AP upon receiving a user input to start the data network, the AP sends a PDN connection request to the MODEM to immediately resume establishing the PDN connection.
  • a first packet data network PDN connection is established through a first mobile communication network, wherein if the data network is in a closed state, it means that the user does not need to use the data network. Therefore, when the data network of the electronic device is in a closed state, a registration request message is sent to the second mobile communication network, and when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network, the first PDN connection is disconnected.
  • the first PDN connection can be completely disconnected, and it can be ensured that the electronic device will no longer receive information sent by the network device side when the data network is in a closed state.
  • the first PDN connection is disconnected when the first PDN connection is transferred to the second mobile communication network, which meets the requirements of the operator. As a result, the data traffic generated by the electronic device can be saved and the power of the electronic device can be saved.
  • the network connection method provided in the embodiment of the present application can be executed by a network connection device.
  • the network connection device provided in the embodiment of the present application is described by taking the network connection method executed by the network connection device as an example.
  • FIG3 is a block diagram of a network connection device provided in an embodiment of the present application, wherein the device 300 includes:
  • the establishing module 310 is configured to establish a first packet data network PDN connection through a first mobile communication network.
  • the sending module 320 is used to send registration request information to the second mobile communication network when the data network of the electronic device is in a closed state.
  • the disconnection module 330 is configured to disconnect the first PDN connection when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network.
  • the device 300 may further include: a transfer module, configured to transfer the first PDN connection from the first mobile communication network to the second mobile communication network according to preset protocol conversion information when a network switching condition is met.
  • a transfer module configured to transfer the first PDN connection from the first mobile communication network to the second mobile communication network according to preset protocol conversion information when a network switching condition is met.
  • the disconnection module 330 is specifically configured to:
  • a disconnection request message is sent to the network device, where the disconnection request message is used to request the network device to disconnect the first PDN connection.
  • the device 300 may further include:
  • the first switching module is used to switch the data network to a closed state when receiving a user's input to close the data network.
  • the second switching module is used to switch the data network to a closed state when the electronic device is in a target operating state.
  • the network switching condition includes at least one of the following:
  • the signal strength of the second mobile communication network is greater than a preset threshold
  • a second instruction sent by the network device is received, where the second instruction is used to instruct switching to a second mobile communication network.
  • the steps that the establishing module 310, the sending module 320 and the disconnecting module 330 are used to perform are performed based on the first user identity identification SIM card, and the apparatus 300 may further include:
  • a first sending module configured to send registration request information to a second mobile communication network when a second PDN connection is established through the first mobile communication network based on the second SIM card;
  • the disconnection module 330 is further configured to disconnect the second PDN connection when the second PDN connection is transferred from the first mobile communication network to the second mobile communication network based on the second SIM card.
  • the steps that the establishing module 310, the sending module 320 and the disconnecting module 330 are used to perform are performed, and the apparatus 300 may further include:
  • the prohibition module is used to prohibit the fourth SIM card from establishing a PDN connection when the fourth SIM card is in the network environment of the second mobile communication network.
  • a first packet data network PDN connection is established through the first mobile communication network, wherein if the data network is in a closed state, it means that the user does not need to use the data network. Therefore, when the data network of the electronic device is in a closed state, a registration request message is sent to the second mobile communication network, and when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network, the first PDN connection is disconnected.
  • the first PDN connection can be completely disconnected, and it can be ensured that the electronic device will no longer receive information sent by the network device side when the data network is in a closed state.
  • the first PDN connection is disconnected when the first PDN connection is transferred to the second mobile communication network, which meets the requirements of the operator. As a result, the data traffic generated by the electronic device can be saved and the power of the electronic device can be saved.
  • the network connection device in the embodiments of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal or other device other than a terminal.
  • the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR)/virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc.
  • It may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or an automatic machine, etc., and the embodiments of the present application do not make specific limitations.
  • the network connection device of the embodiment of the present application may be a device having an action system.
  • the action system may be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiment of the present application.
  • the network connection device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
  • an embodiment of the present application also provides an electronic device 410, including a processor 411, a memory 412, and a program or instruction stored in the memory 412 and executable on the processor 411.
  • a processor 411 When the program or instruction is executed by the processor 411, each step of any of the above-mentioned network connection method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG5 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510.
  • the electronic device 500 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 510 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
  • a power source such as a battery
  • the electronic device structure shown in FIG5 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the processor 510 is configured to establish a first packet data network PDN connection through a first mobile communication network.
  • the network module 502 is used to send registration request information to the second mobile communication network when the data network of the electronic device is in a closed state.
  • the processor 510 is further configured to disconnect the first PDN connection when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network.
  • the processor 510 is further configured to transfer the first PDN connection from the first mobile communication network to the second mobile communication network according to preset protocol conversion information when a network switching condition is met.
  • the network module 502 is further used to send a disconnection request message to the network device when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network, where the disconnection request message is used to request the network device to disconnect the first PDN connection.
  • the processor 510 is further configured to switch the data network to a closed state upon receiving a user input for closing the data network.
  • the processor 510 is further configured to switch the data network to a closed state when the electronic device is in a target operating state.
  • the network module 502 is further configured to send registration request information to the second mobile communication network when the second PDN connection is established through the first mobile communication network based on the second SIM card;
  • the processor 510 is further configured to disconnect the second PDN connection when the second PDN connection is transferred from the first mobile communication network to the second mobile communication network based on the second SIM card.
  • the processor 510 is further configured to, when the fourth SIM card is in the network environment of the second mobile communication network, prohibit the fourth SIM card from establishing a PDN connection.
  • a first packet data network PDN connection is established through a first mobile communication network, wherein if the data network is in a closed state, it means that the user does not need to use the data network. Therefore, when the data network of the electronic device is in a closed state, a registration request message is sent to the second mobile communication network, and when the first PDN connection is transferred from the first mobile communication network to the second mobile communication network, the first PDN connection is disconnected.
  • the first PDN connection can be completely disconnected, and it can be ensured that the electronic device will no longer receive information sent by the network device side when the data network is in a closed state.
  • the first PDN connection is disconnected when the first PDN connection is transferred to the second mobile communication network, which meets the requirements of the operator. As a result, the data traffic generated by the electronic device can be saved and the power of the electronic device can be saved.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of the static picture or video image obtained by the image capture device (such as a camera) in the video image capture mode or the image capture mode.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
  • the user input unit 507 includes a touch panel 5071 and at least one of other input devices 5072.
  • the touch panel 5071 is also called a touch screen.
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 5072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, action rods, which are not repeated here.
  • the memory 509 can be used to store software programs and various data, including but not limited to applications and action systems.
  • the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 510.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 509 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or an electrically erasable programmable read-only memory (EEPROM). Or flash memory.
  • ROM read-only memory
  • PROM programmable read-only memory
  • EPROM erasable programmable read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM, SLDRAM synchronous link dynamic random access memory
  • Direct Rambus RAM Direct Rambus RAM
  • the processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 510.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the program or instruction is executed by a processor, each process of the above-mentioned network connection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
  • An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned network connection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • An embodiment of the present application provides a computer program product, which is stored in a storage medium.
  • the program product is executed by at least one processor to implement the various processes of the above-mentioned network connection method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the above embodiment method can be implemented by means of software plus a necessary general hardware platform, or by hardware, but in many cases the former is a better implementation method.
  • the technical solution of the present application, or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, disk, CD), and includes several instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

Landscapes

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

Abstract

本申请公开了一种网络连接方法、装置、电子设备和可读存储介质,属于通信技术领域。其中,所述方法包括:通过第一移动通信网络建立第一分组数据网络PDN连接;在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息;在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。

Description

网络连接方法、装置、电子设备和可读存储介质
相关申请的交叉引用
本申请要求在2022年09月27日提交中国专利局、申请号为202211182901.8、名称为“网络连接方法、装置、电子设备和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于通信技术领域,具体涉及一种网络连接方法、装置、电子设备和可读存储介质。
背景技术
随着信息技术的发展,人们习惯使用电子设备进行线上的社交、工作和学习等,在没有无线网络的环境中,只能使用移动通信网络,即数据网络进行上网。由于数据网络是按流量计费的,大多用户会选择在不需要使用数据网络的情况下,关闭数据网络以降低流量消费。
目前,有些情况下,用户关闭了数据网络之后,仍然可以接收网络设备侧发送的信息,由此,造成用不符合用户预期的流量消耗。
发明内容
本申请实施例的目的是提供一种网络连接方法、装置、电子设备和可读存储介质,能够解决在现有技术中产生不符合用户预期的流量消耗的问题。
第一方面,本申请实施例提供了一种网络连接方法,该方法包括:
通过第一移动通信网络建立第一分组数据网络PDN连接;
在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息;
在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。
第二方面,本申请实施例提供了一种网络连接装置,该方法包括:
建立模块,用于通过第一移动通信网络建立第一分组数据网络PDN连接;
发送模块,用于在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息;
断开模块,用于在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器, 所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请的实施例中,通过第一移动通信网络建立第一分组数据网络PDN连接,其中,若数据网络处于关闭状态,则说明用户不需要使用数据网络,因此,在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息,在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。这里,在对第二移动通信网络进行注册上网的过程中,能够彻底断开第一PDN连接,能够保证电子设备在数据网络处于关闭状态时,不会再收到网络设备侧发送的信息。而且是在第一PDN连接转移至第二移动通信网络的情况下,断开第一PDN连接,符合运营商的要求。由此,能够节约电子设备产生的数据流量以及能够节约电子设备的电量。
附图说明
图1是本申请实施例提供的一种应用场景的示意图;
图2是本申请实施例提供的一种网络连接方法的流程图;
图3是本申请实施例提供的一种网络连接装置的结构图;
图4是本申请实施例的电子设备的硬件结构示意图之一;
图5是本申请实施例的电子设备的硬件结构示意图之二。
具体实施例
下面将结合本申请实施例的附图,对本申请实施例的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
分组数据网(Packet Data Network,PDN),电子设备与网络设备侧之间的数据连接,用户用访问网络的数据连接。
调制解调器(MODEM),是调制器和解调器的缩写,一种计算机硬件,它能把计算机的数字信号翻译成可沿普通电话线传送的模拟信号,而这些模拟信号又可被线路另一端的另一个调制解调器接收,并译成计算机可懂的语言。这一简单过程完成了两台计算机间的通信。
应用处理器(Application Processor,AP),是在低功耗中央处理器的基础上扩展音视频功能和专用接口的超大规模集成电路。
第4代移动通信(the 4th generation mobile communication technology,4G),能够传输高质量视频图像且图像传输质量与高清晰度电视不相上下的技术。4G移动通信技术可以在多个不同的网路系统、平台与无线通信介面之间找到最快速与最有效率的通信路径,以进行最即时的传输、接收与定位等动作。
第5代移动通信(the 5th generation mobile communication technology,5G),是具有高速率、低时延和大连接特点的新一代宽带移动通信技术,5G通讯设施是实现人机物互联的网络基础设施。
主卡,电子设备中提供数据业务的用户身份识别卡(Subscriber Identity Module,SIM)。
副卡,电子设备中不提供数据业务的SIM卡。
睡眠模式,通过智能判断用户的睡眠时段,在处于预设时间段的情况下,停用数据网络功能,仅支持使用电话和短信等必要功能。
本申请实施例提供的网络连接方法至少可以应用于下述应用场景中,下面进行说明。
如图1所示,电子设备在与网络设备交互的过程中,实现数据网络的使用,其中网络设备可以为核心网。目前,电子设备大多支持双卡。其中,主卡负责提供语音和数据服务,副卡只负责提供语音服务。为了快速切换主副卡,副卡也建立了PDN连接,这样,当副卡切换为主卡时,不用新建PDN连接,能够保证切换速度,方便用户使用。
其中,当主卡驻留在5G时,流量也消耗的很快。为了节省电量和流量。用户有时会主动关闭数据网络。用户预期的电子设备运行准状态是,关闭数据网络后,就不会有流量消耗,也会更加省电。为了提高续航时间,很多电子设备也会提供睡眠模式给用户,当到了预设时间段,如果用户灭屏待机,电子设备会自动进入睡眠模式,关闭数据网络,断开AP和MODEM的数据连接,如果电子设备当前注册在5G下,会立即断开PDN连接,即断开了MODEM和网络设备之间的数据连接。这样,AP不会发送数据给MODEM,网络也不会发送数据给MODEM。也就不会有数据方面的寻呼,让MODEM有更多时间休眠,达到省电的目的。
但是,对于特定场景中,当电子设备处于4G的网络环境时,若关闭数据网络,则不允许断开PDN连接,即不允许断开MODEM与网络设备之间的数据连接,这时,网络设备仍然可以随时寻呼主卡或副卡。
基于大数据的统计结果表示,在电子设备处于5G弱信号区域时,如果关闭数据网络,主卡驻留4G网络的概率很高。也就是说,上述特定场景的出现概率很高。
在该特定场景中,在关闭数据网络之后,主卡并没有断开PDN连接,MODEM仍然保持与网络设备之间的数据连接。主卡由4G切换到5G后,PDN连接会由4G无缝切换到5G。
也就是说,虽然关闭了电子设备的数据网络,主卡还是保持了和网络设备之间的数据连接。网络设备可以继续给MODEM发送数据。具体过程包括:网络设备向MODEM发送第一数据,MODEM建立无线资源控制(Radio Resource Control,RRC)链接之后,由于AP和MODEM之间的数据连接已经断掉了,所以MODEM接收的第一数据不能发送给AP,AP也就无法接收和处理第一数据,导致网络设备收不到来自AP侧应用软件的确认,网络设备可能会反复发送第一数据给电子设备,使得MODEM可以休眠的时间很短,耗电严重,同时也在用户不知情的情况下大量消耗手机的流量。
另外,关闭主卡的数据网络不会影响副卡,当副卡由4G切换到5G后,PDN连接也无缝切换到了5G,基于大数据的统计结果表示,副卡在5G下的频繁寻呼带来的功耗要比4G下的频繁寻呼的功耗大。副卡上的频繁寻呼不仅带来功耗问题,副卡响应寻呼建立空口链接,还会抢占射频(Radio Frequency,RF)资源,导致影响主卡业务的流畅性。
针对相关技术出现的问题,本申请实施例提供一种网络连接方法、装置、电子设备及存储介质,能够解决相关技术中,产生不符合用户预期的流量消耗的问题。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的网络连接方法进行详细地说明。
图2为本申请实施例提供的一种网络连接方法的流程图。
如图2所示,该网络连接方法可以包括步骤210-步骤230,该方法应用于网络连接装置,具体如下所示:
步骤210,通过第一移动通信网络建立第一分组数据网络PDN连接。
比如,第一移动通信网络为4G。
步骤220,在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息。
其中,第二移动通信网络消耗的网络资源大于第一移动通信网络消耗的网络资源。比如,第一移动通信网络为4G,第二移动通信网络为5G。
一旦电子设备由第一移动通信网络转移至第二移动通信网络,如果检测到曾经关闭了数据网络,即数据网络处于关闭状态,就向第二移动通信网络发送注册请求信息。
由于每次连接网络都要注册,即需要向网络设备发送对第二移动通信网络的注册请求信息,所以可以借助对第二移动通信网络注册的机会断开第一PDN连接。
后续如果因5G信号弱,再次切换到4G,4G下也不会有第一PDN连接的存在。从而实现了在4G或5G网络下,网络都不会频繁寻呼MODEM。
在一种可能的实施例中,在步骤220之前,还可以包括以下步骤:
在满足网络切换条件的情况下,按照预设协议转换信息,将第一PDN连接由第一移动通信网络转移至第二移动通信网络。
其中,将第一PDN连接由第一移动通信网络转移至第二移动通信网络,具体表现为在切换为第二移动通信网络之后,电子设备在使用第一移动通信网络时的网际互连协议(Internet Protocol,IP)地址仍可以使用,即IP地址不发生变化。
其中,网络切换条件,包括以下至少一项:
第二移动通信网络的信号强度大于预设阈值;
接收到用户输入的第一指令,第一指令用于指示切换至第二移动通信网络;
接收到网络设备发送的第二指令,第二指令用于指示切换至第二移动通信网络。
在第二移动通信网络的信号强度大于预设阈值的情况下,可以按照预设协议转换信息,将第一PDN连接由4G转移至5G。
其中,根据网络协议要求,由4G切换到5G,或者由5G切换到4G,为了业务的流畅,第一PDN连接可以无缝地在4G和5G之间切换。
在接收到用户输入的第一指令的情况下,可以按照预设协议转换信息,将第一PDN连接由4G转移至5G。其中,第一指令可以为用户在设置列表中对于数据网络的设置指令。
在接收到网络设备发送的第二指令的情况下,可以按照预设协议转换信息,将第一PDN连接由4G转移至5G。其中,第二指令可以为网络设备对于数据网络的设置指令。
在一种可能的实施例中,在步骤220之前,还可以包括以下步骤:
在接收到用户对数据网络的关闭输入的情况下,将数据网络切换至关闭状态;或者,
在电子设备处于目标运行状态的情况下,将数据网络切换至关闭状态。
如果用户不需要使用数据网络,可以通过对数据网络实施关闭输入,在接收到用户对数据网络的关闭输入的情况下,将数据网络切换至关闭状态。
在处于预设运行状态的情况下,将数据网络切换至关闭状态,具体可以包括:在处于预设时间段,且未接收到用户操作的情况下,将数据网络切换至关闭状态。
其中,预设运行状态可以为电子设备预先设置的睡眠模式。预设时间段,可以为预设的睡眠时间段,比如晚上12:00-凌晨6:00。如果处于预设时间段,且未接收到用户操作,说明此时用户不需要使用数据网络。
其中,将数据网络切换至关闭状态具体可以包括:AP向MODEM发送数据网络断开指令,以用于将数据网络切换至关闭状态。
步骤230,在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。
大数据显示,因为5G信号强度弱,电子设备才会通过4G建立第一PDN连接,但电子设备一直尝试优先提供5G服务,所以4G切换到5G的概率非常高,4G切换到5G 后,4G下的第一PDN连接会无缝转移到5G下,5G下无需额外建立第一PDN连接。
同理,由5G切换到4G,5G下的PDN连接会转移到4G下,4G下也无需再建立PDN连接。其中,PDN连接可以包括,用户的IP地址和网络接入信息。其中,网络接入信息指一种网络接入技术,是通过电子设备上网时必须配置的一个参数,它决定了电子设备通过何种接入方式来访问网络。
在一种可能的实施例中,步骤230,具体可以包括以下步骤:
在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,向网络设备发送断开请求信息,断开请求信息用于请求网络设备断开第一PDN连接。
在接收到注册请求信息对应的注册接受信息的情况下,说明第一PDN连接已经由第一移动通信网络转移至第二移动通信网络。即电子设备切换到5G后,如果MODEM发现电子设备的数据网络处于关闭状态,就通知网络设备断开第一PDN连接。
其中,网络设备断开第一PDN连接之后,网络设备就不知道电子设备的IP地址了,也就无法继续向电子设备的IP地址发送数据,即电子设备彻底断开了数据网络,不会产生流量数据。
该实现遵守了运营商的协议,没有在4G下断开第一PDN连接。在5G下断开了第一PDN连接。
由此,能够防止主副卡4G到5G切换后,仍然保持第一PDN连接,导致网络可以频繁寻呼终端带来的功耗问题和流量消耗问题。提升了用户体验。
在一种可能的实施例中,基于第一用户身份识别SIM卡执行上述步骤210-步骤230,方法还可以包括:
基于第二SIM卡通过第一移动通信网络建立第二PDN连接的情况下,向第二移动通信网络发送注册请求信息;
在基于所述第二SIM卡将所述第二PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开第二PDN连接。
其中,第一SIM卡为主卡,基于第一SIM卡执行上述步骤210-步骤230,具体可以包括:
在数据网络处于关闭状态的情况下,控制第一SIM卡向网络设备发送对第二移动通信网络的注册请求信息。以用于后续在接收到注册请求信息对应的注册接受信息的情况下,向网络设备发送断开请求信息,MODEM能有更多时间休眠,且不消耗电子设备的流量。
其中,第二SIM卡为副卡,副卡由4G切到5G后,无需判断是否有关闭数据网络,可直接控制第二SIM卡向网络设备发送对第二移动通信网络的注册请求信息,以用于后续请求断开第二PDN连接。这里,可以直接请求断开第二PDN连接,能够节约网络资源。
这里,基于第二SIM卡通过第一移动通信网络建立第二PDN连接的情况下,无需 判断数据网络是否处于关闭状态,可以直接控制第二SIM卡向网络设备发送对第二移动通信网络的注册请求信息,由于副卡不提供数据服务,所以断开第二PDN连接不会影响用户体验,并且能够避免第二移动通信网络下频繁的数据寻呼,避免第二SIM卡抢占第一SIM卡的资源和消耗流量。
在一种可能的实施例中,基于第三SIM卡执行上述步骤210-步骤230,方法还可以包括:
在第四SIM卡处于第二移动通信网络的网络环境中的情况下,禁止第四SIM卡建立PDN连接。
其中,第三SIM卡为主卡,第四SIM卡为副卡。如果第四SIM卡处于第二移动通信网络的网络环境中,则禁止第四SIM卡建立PDN连接。
这里,由于副卡不提供数据服务,所以禁止第四SIM卡建立PDN连接,不会影响用户体验,并且能够避免第二移动通信网络下频繁的数据寻呼,避免第四SIM卡抢占第三SIM卡的资源和消耗流量。
在一种可能的实施例中,在接收到用户对数据网络的开启输入的情况下,AP向MODEM发送PDN连接请求,用于立即恢复建立PDN连接。
在本申请的实施例中,通过第一移动通信网络建立第一分组数据网络PDN连接,其中,若数据网络处于关闭状态,则说明用户不需要使用数据网络,因此,在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息,在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。这里,在对第二移动通信网络进行注册上网的过程中,能够彻底断开第一PDN连接,能够保证电子设备在数据网络处于关闭状态时,不会再收到网络设备侧发送的信息。而且是在第一PDN连接转移至第二移动通信网络的情况下,断开第一PDN连接,符合运营商的要求。由此,能够节约电子设备产生的数据流量以及能够节约电子设备的电量。
本申请实施例提供的网络连接方法,执行主体可以为网络连接装置。本申请实施例中以网络连接装置执行网络连接方法为例,说明本申请实施例提供的网络连接装置。
图3是本申请实施例提供的一种网络连接装置的框图,该装置300包括:
建立模块310,用于通过第一移动通信网络建立第一分组数据网络PDN连接。
发送模块320,用于在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息。
断开模块330,用于在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。
在一种可能的实施例中,该装置300还可以包括:转移模块,用于在满足网络切换条件的情况下,按照预设协议转换信息,将第一PDN连接由第一移动通信网络转移至第二移动通信网络。
在一种可能的实施例中,断开模块330,具体用于:
在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,向网络设备发送断开请求信息,断开请求信息用于请求网络设备断开第一PDN连接。
在一种可能的实施例中,该装置300还可以包括:
第一切换模块,用于在接收到用户对数据网络的关闭输入的情况下,将数据网络切换至关闭状态。
第二切换模块,用于在电子设备处于目标运行状态的情况下,将数据网络切换至关闭状态。
在一种可能的实施例中,网络切换条件,包括以下至少一项:
第二移动通信网络的信号强度大于预设阈值;
接收到用户输入的第一指令,第一指令用于指示切换至第二移动通信网络;
接收到网络设备发送的第二指令,第二指令用于指示切换至第二移动通信网络。
在一种可能的实施例中,基于第一用户身份识别SIM卡执行如建立模块310、发送模块320和断开模块330被用于执行的步骤,该装置300还可以包括:
第一发送模块,用于基于第二SIM卡通过第一移动通信网络建立第二PDN连接的情况下,向第二移动通信网络发送注册请求信息;
断开模块330,还用于在基于所述第二SIM卡将所述第二PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开第二PDN连接。
在一种可能的实施例中,基于第三SIM卡执行如建立模块310、发送模块320和断开模块330被用于执行的步骤,该装置300还可以包括:
禁止模块,用于在第四SIM卡处于第二移动通信网络的网络环境中的情况下,禁止第四SIM卡建立PDN连接。
综上,通过第一移动通信网络建立第一分组数据网络PDN连接,其中,若数据网络处于关闭状态,则说明用户不需要使用数据网络,因此,在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息,在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。这里,在对第二移动通信网络进行注册上网的过程中,能够彻底断开第一PDN连接,能够保证电子设备在数据网络处于关闭状态时,不会再收到网络设备侧发送的信息。而且是在第一PDN连接转移至第二移动通信网络的情况下,断开第一PDN连接,符合运营商的要求。由此,能够节约电子设备产生的数据流量以及能够节约电子设备的电量。
本申请实施例中的网络连接装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还 可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例的网络连接装置可以为具有动作系统的装置。该动作系统可以为安卓(Android)动作系统,可以为ios动作系统,还可以为其他可能的动作系统,本申请实施例不作具体限定。
本申请实施例提供的网络连接装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图4所示,本申请实施例还提供一种电子设备410,包括处理器411,存储器412,存储在存储器412上并可在处理器411上运行的程序或指令,该程序或指令被处理器411执行时实现上述任一网络连接方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例的电子设备包括上述的移动电子设备和非移动电子设备。
图5为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。
本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器510,用于通过第一移动通信网络建立第一分组数据网络PDN连接。
网络模块502,用于在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息。
处理器510,还用于在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。
可选地,处理器510,还用于在满足网络切换条件的情况下,按照预设协议转换信息,将第一PDN连接由第一移动通信网络转移至第二移动通信网络。
可选地,网络模块502,还用于在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,向网络设备发送断开请求信息,断开请求信息用于请求网络设备断开第一PDN连接。
可选地,处理器510,还用于在接收到用户对数据网络的关闭输入的情况下,将数据网络切换至关闭状态。
处理器510,还用于在电子设备处于目标运行状态的情况下,将数据网络切换至关闭状态。
可选地,网络模块502,还用于基于第二SIM卡通过第一移动通信网络建立第二PDN连接的情况下,向第二移动通信网络发送注册请求信息;
处理器510,还用于在基于所述第二SIM卡将所述第二PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开第二PDN连接。
可选地,处理器510,还用于在第四SIM卡处于第二移动通信网络的网络环境中的情况下,禁止第四SIM卡建立PDN连接。
在本申请的实施例中,通过第一移动通信网络建立第一分组数据网络PDN连接,其中,若数据网络处于关闭状态,则说明用户不需要使用数据网络,因此,在电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息,在将第一PDN连接由第一移动通信网络转移至第二移动通信网络的情况下,断开第一PDN连接。这里,在对第二移动通信网络进行注册上网的过程中,能够彻底断开第一PDN连接,能够保证电子设备在数据网络处于关闭状态时,不会再收到网络设备侧发送的信息。而且是在第一PDN连接转移至第二移动通信网络的情况下,断开第一PDN连接,符合运营商的要求。由此,能够节约电子设备产生的数据流量以及能够节约电子设备的电量。
应理解的是,本申请实施例中,输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频图像捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频图像的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072中的至少一种。触控面板5071,也称为触控屏触控屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、动作杆,在此不再赘述。存储器509可用于存储软件程序以及各种数据,包括但不限于应用程序和动作系统。处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理动作系统、用户页面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器509可以包括易失性存储器或非易失性存储器,或者,存储器x09可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM) 或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器509包括但不限于这些和任意其它适合类型的存储器。
处理器510可包括一个或多个处理单元;可选的,处理器510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述网络连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述网络连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述网络连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法 可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (18)

  1. 一种网络连接方法,其中,应用于电子设备,所述方法包括:
    通过第一移动通信网络建立第一分组数据网络PDN连接;
    在所述电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息;
    在将所述第一PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开所述第一PDN连接。
  2. 根据权利要求1所述的方法,其中,在所述向第二移动通信网络发送注册请求信息之前,所述方法还包括:
    在满足网络切换条件的情况下,按照预设协议转换信息,将所述第一PDN连接由所述第一移动通信网络转移至所述第二移动通信网络。
  3. 根据权利要求1所述的方法,其中,所述在将所述第一PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开所述第一PDN连接,包括:
    在将所述第一PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,向网络设备发送断开请求信息,所述断开请求信息用于请求所述网络设备断开所述第一PDN连接。
  4. 根据权利要求1所述的方法,其中,在所述向第二移动通信网络发送注册请求信息之前,所述方法还包括:
    在接收到用户对所述数据网络的关闭输入的情况下,将所述数据网络切换至关闭状态;或者,
    在所述电子设备处于目标运行状态的情况下,将所述数据网络切换至关闭状态。
  5. 根据权利要求2所述的方法,其中,所述网络切换条件,包括以下至少一项:
    所述第二移动通信网络的信号强度大于预设阈值;
    接收到用户输入的第一指令,所述第一指令用于指示切换至所述第二移动通信网络;
    接收到网络设备发送的第二指令,所述第二指令用于指示切换至所述第二移动通信网络。
  6. 根据权利要求1所述的方法,其中,基于第一用户身份识别SIM卡执行如权利要求1所述方法的步骤,所述方法还包括:
    基于第二SIM卡通过所述第一移动通信网络建立第二PDN连接的情况下,向所述第二移动通信网络发送所述注册请求信息;
    在基于所述第二SIM卡将所述第二PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开所述第二PDN连接。
  7. 根据权利要求1所述的方法,其中,基于第三SIM卡执行如权利要求1所述方法的步骤,所述方法还包括:
    在第四SIM卡处于所述第二移动通信网络的网络环境中的情况下,禁止所述第四 SIM卡建立PDN连接。
  8. 一种网络连接装置,其中,所述装置包括:
    建立模块,用于通过第一移动通信网络建立第一分组数据网络PDN连接;
    发送模块,用于在所述电子设备的数据网络处于关闭状态的情况下,向第二移动通信网络发送注册请求信息;
    断开模块,用于在将所述第一PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开所述第一PDN连接。
  9. 根据权利要求8所述的装置,其中,所述装置还包括:
    转移模块,用于在满足网络切换条件的情况下,按照预设协议转换信息,将所述第一PDN连接由所述第一移动通信网络转移至所述第二移动通信网络。
  10. 根据权利要求8所述的装置,其中,断开模块,具体用于:
    在将所述第一PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,向网络设备发送断开请求信息,所述断开请求信息用于请求所述网络设备断开所述第一PDN连接。
  11. 根据权利要求8所述的装置,所述装置还包括:
    第一切换模块,用于在接收到用户对所述数据网络的关闭输入的情况下,将所述数据网络切换至关闭状态;
    第二切换模块,用于在所述电子设备处于目标运行状态的情况下,将所述数据网络切换至关闭状态。
  12. 根据权利要求9所述的装置,其中,所述网络切换条件,包括以下至少一项:
    所述第二移动通信网络的信号强度大于预设阈值;
    接收到用户输入的第一指令,所述第一指令用于指示切换至所述第二移动通信网络;
    接收到网络设备发送的第二指令,所述第二指令用于指示切换至所述第二移动通信网络。
  13. 根据权利要求8所述的装置,其中,基于第一用户身份识别SIM卡执行如所述建立模块、所述发送模块和所述断开模块被用于执行的步骤,所述装置还包括:
    第一发送模块,用于基于第二SIM卡通过所述第一移动通信网络建立第二PDN连接的情况下,向所述第二移动通信网络发送所述注册请求信息;
    所述断开模块,还用于在基于所述第二SIM卡将所述第二PDN连接由所述第一移动通信网络转移至所述第二移动通信网络的情况下,断开所述第二PDN连接。
  14. 根据权利要求8所述的装置,其中,基于第三SIM卡执行如所述建立模块、所述发送模块和所述断开模块被用于执行的步骤,所述装置还包括:
    禁止模块,用于在第四SIM卡处于所述第二移动通信网络的网络环境中的情况下,禁止所述第四SIM卡建立PDN连接。
  15. 一种电子设备,其中,包括处理器和存储器,所述存储器存储可在所述处理器 上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1~7任一项所述的方法的步骤。
  16. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1~7任一项所述的方法的步骤。
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-7所述的方法。
  18. 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-7任一项所述的方法。
PCT/CN2023/120452 2022-09-27 2023-09-21 网络连接方法、装置、电子设备和可读存储介质 WO2024067356A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211182901.8 2022-09-27
CN202211182901.8A CN115580942A (zh) 2022-09-27 2022-09-27 网络连接方法、装置、电子设备和可读存储介质

Publications (1)

Publication Number Publication Date
WO2024067356A1 true WO2024067356A1 (zh) 2024-04-04

Family

ID=84583632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/120452 WO2024067356A1 (zh) 2022-09-27 2023-09-21 网络连接方法、装置、电子设备和可读存储介质

Country Status (2)

Country Link
CN (1) CN115580942A (zh)
WO (1) WO2024067356A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170265239A1 (en) * 2016-03-09 2017-09-14 Qualcomm Incorporated Efficient transition between a trusted wlan and a wwan
US20190098528A1 (en) * 2016-05-25 2019-03-28 Huawei Technologies Co., Ltd. Data service control method and related device
US20190190775A1 (en) * 2016-08-25 2019-06-20 Adrian Buckley Policing of packet switched services
CN111602428A (zh) * 2018-02-05 2020-08-28 华为技术有限公司 一种切换方法及装置
WO2022065788A1 (ko) * 2020-09-22 2022-03-31 삼성전자 주식회사 Rcs 데이터를 수신 또는 전송하는 전자 장치 및 전자 장치의 동작 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170265239A1 (en) * 2016-03-09 2017-09-14 Qualcomm Incorporated Efficient transition between a trusted wlan and a wwan
US20190098528A1 (en) * 2016-05-25 2019-03-28 Huawei Technologies Co., Ltd. Data service control method and related device
US20190190775A1 (en) * 2016-08-25 2019-06-20 Adrian Buckley Policing of packet switched services
CN111602428A (zh) * 2018-02-05 2020-08-28 华为技术有限公司 一种切换方法及装置
WO2022065788A1 (ko) * 2020-09-22 2022-03-31 삼성전자 주식회사 Rcs 데이터를 수신 또는 전송하는 전자 장치 및 전자 장치의 동작 방법

Also Published As

Publication number Publication date
CN115580942A (zh) 2023-01-06

Similar Documents

Publication Publication Date Title
US11843721B2 (en) Method and terminal for supporting voice service and data service simultaneously
CN103294562B (zh) 双操作系统共用周边装置的方法以及电子装置
WO2024001955A1 (zh) 通信处理方法及装置、终端和可读存储介质
WO2023169434A1 (zh) 通信方法和装置
US20230139150A1 (en) Method and apparatus for processing call initiation anomaly
WO2022194002A1 (zh) 语音业务切换方法、装置和用户设备
WO2020048477A1 (zh) 终端驻留方法、信息传输方法、终端及网络设备
WO2024027745A1 (zh) 网络连接方法、电子设备、可读存储介质和芯片
CN112153753B (zh) 网络连接方法及装置
WO2023216964A1 (zh) 语音通话方法、装置及电子设备
WO2024007960A1 (zh) 双连接测量控制方法和电子设备
WO2023061347A1 (zh) 通话处理方法、装置、电子设备及存储介质
US20230088033A1 (en) Wi-fi control method and apparatus and electronic device
WO2024067356A1 (zh) 网络连接方法、装置、电子设备和可读存储介质
CN114143842B (zh) 小区接入方法、装置
EP4307755A1 (en) Method for accessing network, network side device, and terminal
US8248980B2 (en) Wireless communication method, telecommunication processing device and telecommunication system
WO2022268012A1 (zh) 资源处理方法、装置、电子设备及存储介质
CN108243411A (zh) 多系统移动终端及其控制方法
WO2022218224A1 (zh) 信息处理方法、装置、终端及网络侧设备
WO2021249438A1 (zh) 模式切换方法、终端及网络侧设备
WO2023185929A1 (zh) 资源控制方法、装置、终端及网络侧设备
WO2022218189A1 (zh) 消息处理方法、装置、设备和存储介质
CN111913557A (zh) 一种基于服务需要的自动开关机系统及其方法
CN114071797A (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: 23870588

Country of ref document: EP

Kind code of ref document: A1