CN114885395A - Data communication method, electronic device, and computer storage medium - Google Patents

Data communication method, electronic device, and computer storage medium Download PDF

Info

Publication number
CN114885395A
CN114885395A CN202210802110.4A CN202210802110A CN114885395A CN 114885395 A CN114885395 A CN 114885395A CN 202210802110 A CN202210802110 A CN 202210802110A CN 114885395 A CN114885395 A CN 114885395A
Authority
CN
China
Prior art keywords
application
network
cellular data
message
service
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210802110.4A
Other languages
Chinese (zh)
Other versions
CN114885395B (en
Inventor
阳军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210802110.4A priority Critical patent/CN114885395B/en
Publication of CN114885395A publication Critical patent/CN114885395A/en
Application granted granted Critical
Publication of CN114885395B publication Critical patent/CN114885395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to the technical field of intelligent terminals and provides a data communication method, electronic equipment and a computer storage medium. The data communication method is applied to electronic equipment, the electronic equipment is connected with an independent networking network, the electronic equipment comprises a connection service, a telephone manager, a wireless interface layer and a modulation and demodulation processor, and the data communication method comprises the following steps: in response to an instruction of the first application to connect to the wireless communication network, sending a first request network message of the first application to the phone manager through the connection service, the first request network message requesting a handover from the independent networking network to the wireless communication network; sending network release request messages of other application programs to the telephone manager through the connection service, wherein the network release request messages are used for requesting to suspend the cellular data connection; intercepting, by any one of a telephony manager, a radio interface layer, and a modem processor, a message deactivating cellular data traffic.

Description

Data communication method, electronic device, and computer storage medium
Technical Field
The present application relates to the field of intelligent terminal technologies, and in particular, to a data communication method, an electronic device, and a computer storage medium.
Background
Currently, in an application scenario of a 5G independent networking (SA), when an electronic device is switched from an SA network to another wireless communication network (e.g., Wi-Fi), a cellular Data service needs to be deactivated, and a Protocol Data Unit (PDU) session needs to be released. When the electronic device is handed off from Wi-Fi to SA network, the cellular data service needs to be activated and a PDU session is established.
However, during the process of deactivating or activating the cellular data service by the electronic device, a problem of network connection failure may occur. If the electronic device frequently deactivates or activates cellular data services, PDU sessions are frequently released or established, resulting in an increased probability of network connection failure.
Disclosure of Invention
The present application provides a data communication method, an electronic device, and a computer storage medium that can reduce the probability of network connection failure when deactivating or activating cellular data services.
A first aspect of the present application provides a data communication method applied to an electronic device, where the electronic device is connected to an independent networking network, the electronic device includes a connection service, a telephone manager, a wireless interface layer, and a modem processor, and the data communication method includes: in response to an instruction of the first application to connect to the wireless communication network, sending a first request network message of the first application to the phone manager through the connection service, the first request network message for requesting a handover from the independent networking network to the wireless communication network, the first request network message including a first application identification for identifying the corresponding first application; sending network release request messages of other application programs to the telephone manager through the connection service, wherein the network release request messages of the other application programs are used for requesting to suspend the cellular data connection, and the other application programs refer to all application programs except the first application program on the electronic equipment; intercepting, by any one of a telephony manager, a radio interface layer, and a modem processor, a message deactivating cellular data traffic.
With the data communication method of this embodiment, the electronic device maintains the protocol data unit session after first activating the cellular data service, without deactivating the cellular data service. In the network switching process, the cellular data service does not need to be deactivated, so that the probability of network connection failure can be reduced, and the service delay can be reduced.
In one embodiment, after intercepting the message deactivating the cellular data traffic by any one of the phone manager, the radio interface layer, and the modem processor, the data communication method further comprises: concealing an identification of the cellular data service, the identification of the cellular data service being used to indicate that an application is using or is ready to use cellular data.
By adopting the data communication method of the embodiment, when the electronic equipment does not deactivate the cellular data service, the electronic equipment hides the identifier of the cellular data service, thereby prompting the user to: the application does not use cellular data. In the network switching process, the user can know the cellular data connection state by looking up the identification of the cellular data service, and does not sense that the cellular data service is not deactivated.
In another embodiment, before hiding the identity of the cellular data service, the data communication method further comprises: and sending first indication information to a user interface of the electronic equipment through the telephone manager, wherein the first indication information is used for indicating that the user interface hides the identification of the cellular data service.
By adopting the data communication method of the embodiment, the electronic device sends the first indication information to the user interface through the telephone manager to indicate the user interface to hide the identifier of the cellular data service, so as to prompt the user to: the application does not use the cellular data.
In another embodiment, the message deactivating the cellular data service comprises a first message requesting deactivation of the cellular data service or a second message requesting release of the protocol data unit session.
In another embodiment, intercepting, by any one of a telephony manager, a radio interface layer, and a modem processor, a message to deactivate cellular data traffic comprises: intercepting, by a telephony manager or a radio interface layer, a first message; alternatively, the second message is intercepted by the modem processor.
In another embodiment, the data communication method further includes: in response to an instruction of the second application to connect to the cellular network, sending a second request network message for the second application to the telephony manager through the connection service, the second request network message for requesting cellular data traffic, the second request network message including a second application identification for identifying a corresponding second application, the second application being any one of the first application and the remaining applications; sending a resume cellular data connection message to the connectivity service through any one of the telephony manager, the radio interface layer and the modem processor, the resume cellular data connection message for informing the connectivity service to resume the suspended cellular data connection; an identification of the cellular data service is displayed.
With the data communication method of the present embodiment, after the electronic device is switched from the SA network to the wireless communication network, when the second application of the electronic device requests cellular data traffic, the electronic device transmits a resume cellular data connection message to the connection service through any one of the phone manager, the radio interface layer, and the modem processor to resume the suspended cellular data connection. The electronic device displays the identification of the cellular data service via the user interface, thereby prompting the user to: the application is using or preparing to use the cellular data.
In another embodiment, prior to displaying the identity of the cellular data service, the data communication method further comprises: and sending second indication information to the user interface of the electronic equipment through the telephone manager, wherein the second indication information is used for indicating the user interface to display the identification of the cellular data service.
With the data communication method of this embodiment, the electronic device sends the second indication information to the user interface through the phone manager to indicate the user interface to display the identifier of the cellular data service, so as to prompt the user to: the application is using or preparing to use the cellular data.
In another embodiment, the data communication method further includes: in response to an instruction by the second application to suspend the cellular data connection, sending a network release request message of the second application to the telephony manager via the connection service, the network release request message of the second application requesting suspension of the cellular data connection; intercepting, by any one of a telephony manager, a radio interface layer, and a modem processor, a message deactivating cellular data traffic.
With the data communication method of the present embodiment, after the second application has used up the cellular data, the electronic device suspends the cellular data connection by transmitting the network release request message of the second application, thereby switching from the SA network to the wireless communication network again.
In another embodiment, the data communication method further includes: in response to an instruction of the third application to connect to the cellular network, sending a third request network message for the third application to the telephony manager through the connection service, the third request network message for requesting cellular data traffic, the third request network message including a third application identification, the third application identification for identifying a corresponding third application, the third application being any one of the first application and the remaining applications other than the second application; sending a resume cellular data connection message to the connection service through any one of the phone manager, the radio interface layer, and the modem processor; an identification of the cellular data service is displayed.
With the data communication method of the present embodiment, after the second application has used up the cellular data and before the electronic device transmits the first indication information to the user interface through the telephone manager, the third application requests the cellular data service, and the electronic device transmits a resume cellular data connection message to the connection service through any one of the telephone manager, the radio interface layer, and the modem processor to resume the suspended cellular data connection. The electronic device displays the identification of the cellular data service via the user interface, thereby prompting the user to: the application is using or preparing to use the cellular data.
In another embodiment, the data communication method further includes: in response to an instruction by the first application to disconnect the wireless communication network, sending a network release request message of the first application to the telephony manager via the connection service, the network release request message of the first application requesting restoration of the cellular data connection; sending a resume cellular data connection message to the connectivity service through any one of the telephony manager, the radio interface layer and the modem processor, the resume cellular data connection message for informing the connectivity service to resume the suspended cellular data connection; an identification of the cellular data service is displayed.
With the data communication method of the present embodiment, after the electronic device sends the first indication information to the user interface through the phone manager, the first application requests disconnection of the wireless communication network connection, thereby switching from the wireless communication network to the SA network, and the electronic device sends a resume cellular data connection message to the connection service through any one of the phone manager, the wireless interface layer, and the modem processor, to resume the suspended cellular data connection. The electronic device displays the identification of the cellular data service via the user interface, thereby prompting the user to: the application is using or preparing to use the cellular data.
A second aspect of the present application provides an electronic device, which includes a processor and a memory, wherein the processor implements the data communication method provided by the first aspect of the present application by executing a computer program or code stored in the memory.
A third aspect of the present application provides a computer storage medium for storing a computer program or code which, when executed by a processor, implements the data communication method provided by the first aspect of the present application.
It is understood that the specific implementation and advantageous effects of the electronic device provided in the second aspect and the computer storage medium provided in the third aspect of the present application are the same as those of the data communication method provided in the first aspect of the present application, and are not described herein again.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an electronic device provided in the present application.
Fig. 2 is a schematic system architecture diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an interface for an electronic device to display an identification of a cellular data service.
Fig. 4 is a schematic diagram of an information interaction scenario in which an electronic device deactivates a cellular data service.
Fig. 5 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 1 of the present application.
Fig. 6 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 2 of the present application.
Fig. 7 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 3 of the present application.
Fig. 8 is an interface schematic diagram of an electronic device hiding an identification of a cellular data service.
Fig. 9 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 4 of the present application.
Fig. 10 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 5 of the present application.
Fig. 11 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 6 of the present application.
Fig. 12 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 7 of the present application.
Fig. 13 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 8 of the present application.
Detailed Description
In the embodiments of the present application, "at least one" means one or more, "and" a plurality "means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, e.g., A and/or B may represent: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The terms "first," "second," "third," "fourth," and the like in the description and in the claims and drawings of the present application, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
It should be further noted that the methods disclosed in the embodiments of the present application or the methods shown in the flowcharts include one or more steps for implementing the methods, and the execution orders of the steps may be interchanged with each other, and some steps may be deleted without departing from the scope of the claims.
The data communication method provided by the embodiment of the present application is applied to an electronic device, and the electronic device may be connected to a wireless communication network (e.g., Wi-Fi) or a cellular network (e.g., SA network).
In order to more clearly describe the content in the embodiments of the present application, the electronic device provided in the embodiments of the present application is described below.
Fig. 1 is a schematic diagram of a hardware structure of an electronic device 100 provided in the present application.
As shown in fig. 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 120, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a Modem processor (Modem), a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. A memory may also be provided in processor 110 for storing instructions and data.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I1C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I1C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). The I2S interface may be used for audio communication. The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave.
A Modem (Modem) (not shown in fig. 1) runs on the baseband chip and the coprocessor, and a Subscriber Identity Module (SIM) card Module is disposed in the Modem, and can be used to provide functions related to SIM information, such as network registration and authentication, through the SIM card Module in the Modem. Illustratively, when the user uses the electronic equipment with the Modem, a series of SIM card functions can be realized by triggering the local application. The SIM card may be an entity card (or referred to as a hard card), or a virtual SIM card (or referred to as a soft card), and may include an embedded SIM-SIM (embedded-SIM, eSIM), and the like.
The Modem may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the Modem may be a stand-alone device. In other embodiments, the Modem may be disposed in the same device with the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLAN), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for service exception alerting, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like.
In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1. The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing the digital signal.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The internal memory 121 may include one or more Random Access Memories (RAMs) and one or more non-volatile memories (NVMs). In the embodiment of the present application, the internal memory 121 may also be referred to as a memory.
The external memory interface 120 may be used to connect an external nonvolatile memory to extend the storage capability of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are saved in an external nonvolatile memory.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be an open mobile electronic device 100 platform (OMTP) standard interface of 3.5mm, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the desktop card displayed on the display interface may be updated with the positioning of the gyro sensor 180B.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for identifying the posture of the electronic equipment 100, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signals acquired by the bone conduction sensor 180M, and the heart rate detection function is realized.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 may be inserted into multiple frame cards simultaneously. The types of the multi-frame cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Fig. 2 is a schematic system architecture diagram of the electronic device 100 according to an embodiment of the present disclosure.
It will be appreciated that the layered architecture of the electronic device divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, an android system is divided into four layers, which are an application Layer, an application framework Layer, a Radio Interface Layer (RIL), and a Modem processor (Modem) Layer from top to bottom.
For the electronic device 100 in fig. 2, data interaction between the application layer and the application framework layer can be performed through a conventional interface. Data interaction between the application framework Layer and the RIL can be carried out through a Hardware Abstraction Layer Interface Definition Language (HIDL) Interface. The RIL and the Modem layer can perform data interaction based on a chip architecture of the electronic equipment. For example, the RIL and the Modem layer perform data interaction by means of PCI Express (peripheral component interconnect Express, PCIE) or memory sharing.
The application layer may include a series of applications. Applications may include, but are not limited to, gallery, sms, navigation, bluetooth, and video applications, among others.
The Application framework layer provides an Application Programming Interface (API) and a Programming framework for the Application program of the Application layer. The application framework layer includes a number of predefined functions. As shown in fig. 2, the application framework layer may include a Telephony manager (Telephony) and a connectivity service (connectitvievice).
Wherein the phone manager is configured to provide management functions for cellular related services of the electronic device 100. For example, a phone manager is used to provide management of call states (including on, off, etc.) and cellular data connection states (including connected to, disconnected from, establishing, disconnecting from, etc.) a cellular network.
The connectivity service is used to manage the manner in which data traffic is used by the electronic device 100. The manner in which the electronic device 100 uses the data service may include the electronic device using the data service through a cellular network, or Wi-Fi, or a network cable, etc. The connection service may receive change information and notify the change information by acquiring an interface of the other service. The connection service learns the cellular data connection status through the phone manager. The connection service may display or hide the identity of the cellular data traffic (e.g., identity 301 shown in fig. 3) after knowing the cellular data connection status. Specifically, after knowing that the cellular data connection status is established, the connection service displays an identifier of the cellular data service, thereby prompting the user to: the electronic device is already connected to the cellular network and the application is using or preparing to use the cellular data. After knowing that the cellular data connection state is disconnected, the connection service hides the identifier of the cellular data service, thereby prompting the user to: the electronic device is not connected to the cellular network and the application does not use cellular data. It is understood that cellular networks may include 2G networks, 3G networks, 4G networks, and 5G networks (e.g., SA networks), among others.
In a possible implementation manner, the application framework layer may further include: a window manager, a notification manager, a content manager, a view system, and a resource manager (not shown in fig. 2), which are not limited in this embodiment of the present application.
Wherein, the window manager is used for managing the window program. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, touch the screen, drag the screen, intercept the screen and the like. The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, phone books, etc. The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures. The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The RIL is an interface layer between the application framework layer and the Modem layer, and is responsible for the transmission of the operation of the control plane of the cellular related service and the reliable transmission of data. The RIL may include a Radio Interface Layer Daemon (rild), and the rild may include: ril service module. For example, the ril service module may be configured to forward the SIM command sent by the telephony manager via the HIDL interface to the Modem layer, and forward response data corresponding to the SIM command returned by the Modem layer and a status or notification actively reported by the Modem layer to the telephony manager.
The Modem layer includes a modulation and demodulation processor (Modem), and the Modem may include: protocol stack and card processing module. The protocol stack can include 2G protocol stack, 3G protocol stack, 4G protocol stack, 5G protocol stack and other wireless communication protocol stacks.
The card processing module may include a module associated with the SIM card. Such as a SIM card module, a local SIM card module, and a SIM card slot driver, etc. Wherein, the SIM card slot driver can be connected with an SIM hard card.
A SIM card module: for providing network registration, authentication, etc. functions related to the SIM information. The SIM card module may support a local SIM card call mode provided by the local SIM card module.
Local SIM card module: the SIM card slot driver is used for realizing the access to the local SIM card information.
In a possible implementation manner, a SIM card slot driver and a SIM hard card may be disposed in the Modem of the electronic device 100; alternatively, the SIM card slot driver and the SIM card may not be provided in the Modem of the electronic device 100, and the electronic device 100 may use a local eSIM at this time.
The above schematic diagram of the android system architecture is merely illustrative and not limiting. Although the embodiment of the present application is described by taking the android system as an example, the basic principle is also applied to the iOS-based system TM Or WINDOWS TM And the like operating the system.
It will be appreciated that when electronic device 100 switches from Wi-Fi to SA network, the cellular data service needs to be activated and a PDU session established. When the electronic device 100 is switched from the SA network to the Wi-Fi, the cellular data service needs to be deactivated, and the PDU session is released.
An application scenario of the embodiment of the present application is described below by taking an example that when the electronic device 100 is in an SA network and is switched from the SA network to Wi-Fi, the cellular data service needs to be deactivated, and a PDU session is established.
Fig. 4 is a schematic diagram of an information interaction scenario in which electronic device 100 deactivates cellular data services. When the electronic device 100 is connected to the SA network first and then to the Wi-Fi network, the electronic device 100 switches from the SA network to the Wi-Fi network, and the SA network is disconnected. At this point, the electronic device 100 needs to deactivate the cellular data service and release the PDU session.
Specifically, as shown in fig. 4, the electronic apparatus 100 includes a connection service, a telephone manager, an RIL, and a Modem. First, the electronic apparatus 100 transmits a release network Request (ReleaseNetwork Request) message for requesting termination of a cellular data connection to the phone manager through the connection service (see step S401).
After receiving the release network request message through the phone manager, the electronic device 100 sends a Deactivate Data call request (Deactivate Data call request) message (see step S402) to the RIL, where the Deactivate Data call request message (i.e., the first message) is used to request deactivation of the cellular Data service.
After receiving the deactivation data call request Message through the RIL, the electronic device 100 sends the deactivation data call request Message to the Modem through a high-pass information Interface (QMI) or an AT command (AT command) (see step S403). The AT command is a unified Modem command standard.
After receiving the data call deactivation request message through the Modem, the electronic device 100 sends a release PDU session request (ReleasePDU sessionRequest) message to the network device (e.g., the base station) (see step S404), where the release PDU session request message (i.e., the second message) is used to request release of the PDU session.
The network device releases the PDU session in response to the release PDU session request message (see step S405), thereby terminating the cellular data connection.
Then, the network device sends a Release PDU session complete (Release PDU session complete) message to the Modem of the electronic device 100 (see step S406), where the Release PDU session complete message is used to notify the Modem of the electronic device 100 that the network side has released the PDU session.
After receiving the PDU release session complete message through the Modem, the electronic device 100 sends a Data call response (deactivated Data call response) message to the RIL (see step S407), where the Data call response message is used to notify the RIL that the network side has deactivated the cellular Data service.
After receiving the deactivation data call response message through the RIL, the electronic device 100 transmits a deactivation data call response message to the phone manager (see step S408).
After receiving the data call deactivation response message through the phone manager, the electronic device 100 sends a Release network response (Release network response) message to the connection service (see step S409), where the Release network response message is used to notify the connection service that the network side has terminated the cellular data connection.
After the electronic device 100 receives the release network response message through the connection service, the network card driver of the cellular data service is removed or disabled (see step S410), and the deactivation of the cellular data service is completed.
It will be appreciated that during deactivation or activation of cellular data services by electronic device 100, a network connection failure problem may occur. If the electronic device 100 frequently deactivates or activates the cellular data service, the PDU session is frequently released or established, which results in an increased probability of network connection failure and may cause a larger signaling overhead, resulting in a larger service delay.
In view of this, embodiments of the present application provide a data communication method, which maintains a PDU session without deactivating a cellular data service after the cellular data service is activated for the first time. In the network switching process, the cellular data service does not need to be frequently deactivated or activated, so that the probability of network connection failure can be reduced, and the service delay is reduced.
Specifically, when electronic device 100 switches from the SA network to Wi-Fi, the PDU session is maintained and the application preferentially uses Wi-Fi, hiding the identity of the cellular data service, thereby prompting the user to: the application does not use the cellular data. Alternatively, the application uses both Wi-Fi and cellular data to display an identification of cellular data services, thereby prompting the user to: the application is using or preparing to use the cellular data. When the electronic device 100 switches from Wi-Fi to SA network, the PDU session does not need to be established again, displaying the identity of the cellular data service. In the network switching process, the user can know the cellular data connection state by looking up the identification of the cellular data service, and does not perceive that the cellular data service is not deactivated.
The following specifically describes the data communication method provided in the embodiments of the present application, taking embodiments 1 to 3 as examples.
It should be noted that the data communication method provided in the embodiment of the present application is applied to the electronic device 100. The electronic device 100 includes a connection service, a phone manager, a RIL, and a Modem.
In addition, for convenience of description, embodiments 1 to 3 each take as an example a scenario in which the electronic device 100 is in an SA network and switches from the SA network to Wi-Fi.
Example 1
Fig. 5 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 1.
As shown in fig. 5, the data communication method may include the steps of:
s501, sending a Release Network Request (Release Network Request) message to the phone manager through the connection service.
Wherein the release network request message is for requesting suspension of the cellular data connection. Suspending the cellular data connection refers to deactivating the cellular data without disconnecting the cellular data connection.
S502, after receiving the network release Request message through the phone manager, the Call manager does not send a Data Call deactivation Request (deactivation Data Call Request) message to the RIL.
It will be appreciated that the Data communication method shown in fig. 5 does not Deactivate the cellular Data service by intercepting the Deactivate Data Call Request message in step S402 shown in fig. 4. Specifically, when the electronic device 100 is switched from the SA network to the Wi-Fi network, the deactivation data call request message is intercepted without sending the deactivation data call request message to the RIL through the phone manager, so that the PDU session can be maintained, the cellular data service is not deactivated, the probability of network connection failure can be reduced, and the service delay can be reduced.
Example 2
Fig. 6 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 2.
As shown in fig. 6, the data communication method may include the steps of:
s601, sending a Release Network Request (Release Network Request) message to the phone manager through the connection service.
It is understood that step S601 is the same as step S501 shown in fig. 5, and is not described here again.
S602, after receiving the network release Request message through the phone manager, sending a Data Call Request (Deactivate Data Call Request) message to the RIL.
Wherein the deactivate data call request message (i.e., the first message) is used to request deactivation of the cellular data service.
S603, after receiving the data call deactivation request message through the RIL, the RIL does not send the data call deactivation request message to the Modem.
It is to be understood that the Data communication method shown in fig. 6 does not Deactivate the cellular Data service by intercepting the Deactivate Data Call Request message in step S403 shown in fig. 4. Specifically, when the electronic device 100 is switched from the SA network to the Wi-Fi network, the deactivation data call request message is not sent to the Modem through the RIL, that is, the deactivation data call request message is intercepted, so that the PDU session can be maintained, the cellular data service is not deactivated, the probability of network connection failure can be reduced, and the service delay can be reduced.
Example 3
Fig. 7 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 3.
As shown in fig. 7, the data communication method may include the steps of:
s701, sending a Release Network Request (Release Network Request) message to the phone manager through the connection service.
S702, after receiving the network release Request message through the phone manager, sends a Data Call Request (Deactivate Data Call Request) message to the RIL.
It is understood that steps S701 to S702 are the same as steps S601 to S602 shown in fig. 6, and are not described herein again.
S703, after receiving the data call deactivation request message through the RIL, sends the data call deactivation request message to the Modem through the QMI or AT instruction.
S704, after receiving the data call deactivation Request message through the Modem, does not send a Release PDU session Request (Release PDU session Request) message to the network device.
Wherein the release PDU session request message (i.e., the second message) is for requesting release of the PDU session.
It can be understood that the data communication method shown in fig. 7 does not deactivate the cellular data service by blocking the Release PDU session Request message (Release PDU session Request) in step S404 shown in fig. 4. Specifically, when the electronic device 100 is switched from the SA network to the Wi-Fi network, the PDU session release request message is intercepted without sending the PDU session release request message to the network device through the Modem, so that the PDU session can be maintained, the cellular data service is not deactivated, the probability of network connection failure can be reduced, and the service delay can be reduced.
In some embodiments, after the electronic device 100 performs any one of embodiments 1 to 3, the data communication method may further include: concealing the identity of the cellular data service.
It is appreciated that as shown in fig. 8, when electronic device 100 does not deactivate cellular data services, electronic device 100 may hide the identity of the cellular data services (e.g., 301 shown in fig. 3), thereby prompting the user to: the application does not use the cellular data.
In other embodiments, when the electronic device 100 uses a one-touch login function provided by an operator or uses a cellular data service for Network acceleration, an application calls a Request Network (Request Network) interface, and the data communication method provided by the embodiment of the present application may prompt a user by displaying an identifier (301 shown in fig. 3) of the cellular data service: the application is using or preparing to use the cellular data. Wherein the requesting network interface is for requesting cellular data services. Then, when the electronic device 100 stops using the one-touch login function provided by the operator or stops using the cellular data service to perform Network acceleration, the application calls a Release Network (Release Network) interface, and the data communication method provided in the embodiment of the present application may hide the identifier of the cellular data service again, and may prompt the user: the application does not use the cellular data. Wherein the release network interface is configured to request release of the cellular data service.
The following specifically describes the hiding or displaying of the identifier of the cellular data service by the electronic device 100 by taking embodiments 4 to 8 as examples.
It should be noted that the electronic device 100 hides or displays the identification of the cellular data service on a User Interface (UI) through a phone manager.
For convenience of description, embodiments 4 to 8 each take as an example a scenario in which the electronic device 100 is in an SA network and switches from the SA network to Wi-Fi. Furthermore, embodiments 4 to 8 are all described by taking as an example the case where the cellular data service is not deactivated by the data communication method of embodiment 1.
Example 4
Fig. 9 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 4.
As shown in fig. 9, the data communication method may include the steps of:
s901, in response to an instruction of the first application to connect to the wireless communication network, sending a first request network (RequestNetwork) message of the first application to the phone manager through the connection service.
Wherein the first request network message is for requesting a handover from the SA network to Wi-Fi. The first request network message includes a first application identification for identifying a corresponding first application.
It will be appreciated that each application program has a corresponding application identification. The electronic device 100 can distinguish different application programs by application identification. The application Identifier may include a Package Name (Package Name) or a Unique Identifier (UID) of the application program. The package name is a unique identifier of the application program, for example, the package name of the mobile phone QQ is com. The package name is set by the developer according to non-conflicting rules. The UID is used to identify an application, and is assigned by the system when the application is installed.
For example, the first request network message includes application identifier a, which indicates that application program a corresponding to application identifier a requests to switch from the SA network to Wi-Fi.
It will be appreciated that in some embodiments, when the application detects a signal from the wireless communication network, or when the application needs to connect to the wireless communication network, the electronic device 100 connects to the wireless communication network and then triggers an instruction to connect to the wireless communication network to switch from the SA network to Wi-Fi.
And S902, traversing the request network messages of the other application programs through the connection service.
The remaining applications refer to all applications on the electronic device 100 except the first application.
And S903, sending a Network Release Request (Release Network Request) message of other application programs to the telephone manager through the connection service.
Wherein the release network request message is for requesting suspension of the cellular data connection. The release network request message includes an application identification.
For example, the release network request message includes an application identifier B, which indicates that an application program B corresponding to the application identifier B requests to suspend the cellular data connection.
It can be understood that the specific implementation of the electronic device 100 sending the network release request message may refer to the descriptions of embodiments 1 to 3, and is not described herein again.
S904, the message deactivating the cellular data service is intercepted by any one of the phone manager, the radio interface layer and the modem processor.
For example, when the electronic device 100 connects to the SA network first and then to Wi-Fi, the electronic device 100 switches from the SA network to Wi-Fi, deactivating the cellular data. Specifically, all applications of electronic device 100 use cellular data, i.e., electronic device 100 is connected to the SA network, before the first application requests a connection to Wi-Fi. When a first application requests a Wi-Fi connection, device 100 needs to switch from the SA network to Wi-Fi, suspend the cellular data connection by sending a release network request message for the remaining applications, thereby deactivating the cellular data.
And S905, sending first indication information to the user interface through the telephone manager.
Wherein the first indication information is used for indicating the user interface to hide the identification of the cellular data service.
S906, the identification of the cellular data service is hidden through the user interface.
In this embodiment, when a first application of electronic device 100 requests a Wi-Fi connection, a handover from the SA network to Wi-Fi is achieved by sending a release network request message for the remaining applications to suspend the cellular data connection. The electronic device 100 sends a first indication to the user interface through the phone manager to indicate to the user interface to hide the identification of the cellular data service, thereby prompting the user to: the application does not use the cellular data.
Example 5
Fig. 10 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 5.
As shown in fig. 10, the data communication method may include the steps of:
s1001, in response to an instruction of the first application to connect to the wireless communication Network, sends a first Request Network (Request Network) message of the first application to the phone manager through the connection service.
S1002, traverse the request network messages of the other applications through the connection service.
And S1003, sending a Network Release Request (Release Network Request) message of other application programs to the telephone manager through the connection service.
S1004, intercepting, by any one of the phone manager, the radio interface layer, and the modem processor, a message deactivating the cellular data service.
S1005, sending the first indication information to the user interface through the phone manager.
S1006, the identification of the cellular data service is hidden through the user interface.
It is understood that steps S1001 to S1006 are the same as steps S901 to S906 shown in fig. 9, and are not described again here.
S1007, in response to an instruction of the second application to connect to the cellular Network, sends a second Request Network (Request Network) message of the second application to the phone manager through the connection service.
Wherein the second request network message is for requesting cellular data services. The second request network message includes a second application identification for identifying a corresponding second application program.
For example, the second request network message includes application identifier B, which indicates that application program B corresponding to application identifier B requests the cellular data service.
It is understood that the second application may be the same as the first application or may be different from the first application. The second application is the first application and any of the remaining applications.
It will be appreciated that in some embodiments, the instruction to connect to the cellular network is triggered when the application detects a disconnection of the wireless communications network connection, or when the application needs to connect to the cellular network.
S1008, a resume cellular data connection message is sent to the connection service through any one of the phone manager, the radio interface layer, and the modem processor.
Wherein the resume cellular data connection message is to notify the connectivity service to resume the suspended cellular data connection to re-enable the cellular data.
S1009, sending the second indication information to the user interface through the phone manager.
Wherein the second indication information is used for indicating the user interface to display the identification of the cellular data service.
S1010, displaying the identifier of the cellular data service through the user interface.
In this embodiment, after the electronic device 100 switches from the SA network to the Wi-Fi network, when the second application of the electronic device 100 requests the cellular data service, the electronic device 100 sends second indication information to the user interface through the phone manager to instruct the user interface to display an identifier of the cellular data service, thereby prompting the user to: the application is using or preparing to use the cellular data.
Example 6
Fig. 11 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 6.
As shown in fig. 11, the data communication method may include the steps of:
s1101, in response to an instruction of the first application to connect to the wireless communication Network, sending a first Request Network (Request Network) message of the first application to the phone manager through the connection service.
S1102, traverse the request network messages of the other applications through the connection service.
S1103, send a Release Network Request (Release Network Request) message of the rest of the applications to the phone manager through the connection service.
S1104, intercepting the message deactivating the cellular data service through any one of the phone manager, the radio interface layer and the modem processor.
S1105, sending the first indication information to the user interface through the telephone manager.
S1106, the identifier of the cellular data service is hidden through the user interface.
S1107, in response to an instruction of the second application to connect to the cellular Network, sends a second Request Network (Request Network) message of the second application to the phone manager through the connection service.
S1108, a resume cellular data connection message is sent to the connection service through any one of the phone manager, the radio interface layer, and the modem processor.
And S1109, sending second indication information to the user interface through the telephone manager.
S1110, displaying the identifier of the cellular data service through the user interface.
It is understood that steps S1101 to S1110 are the same as steps S1001 to S1010 shown in fig. 10, and are not described herein again.
S1111, in response to the instruction of the second application to suspend the cellular data connection, sending a Release Network Request (Release Network Request) message of the second application to the phone manager through the connection service.
It is appreciated that in this embodiment, the electronic device 100 again switches from the SA network to Wi-Fi, deactivating the cellular data. Specifically, after the second application has used up the cellular data, the electronic device 100 suspends the cellular data connection by sending a release network request message for the second application, thereby deactivating the cellular data.
It can be understood that the specific implementation of the electronic device 100 sending the network release request message may refer to the descriptions of embodiments 1 to 3, and is not described herein again.
It will be appreciated that in some embodiments, when the application detects a signal from the wireless communication network, or when the application needs to deactivate cellular data, the electronic device 100 connects to the wireless communication network, or neither the wireless communication network nor the cellular network, and then triggers an instruction to suspend the cellular data connection.
S1112, intercepting, by any one of the phone manager, the radio interface layer, and the modem processor, the message deactivating the cellular data service.
And S1113, sending the first indication information to the user interface through the telephone manager.
S1114, hiding the identity of the cellular data service through the user interface.
In the present embodiment, after the second application has used up the cellular data, the electronic device 100 suspends the cellular data connection by transmitting a release network request message of the second application, thereby switching from the SA network to Wi-Fi again. The electronic device 100 sends a first indication to the user interface through the phone manager to indicate that the user interface again hides the identity of the cellular data service, thereby prompting the user to: the application does not use the cellular data.
Example 7
Fig. 12 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 7.
As shown in fig. 12, the data communication method may include the steps of:
s1201, in response to an instruction of the first application to connect to the wireless communication Network, sending a first Request Network (Request Network) message of the first application to the phone manager through the connection service.
S1202, traverse the request network messages of the other applications through the connection service.
S1203, sending a Release Network Request (Release Network Request) message of the rest of applications to the phone manager through the connection service.
And S1204, intercepting the message for deactivating the cellular data service through any one of the phone manager, the radio interface layer and the modem processor.
And S1205, sending the first indication information to the user interface through the telephone manager.
S1206, hides the identifier of the cellular data service through the user interface.
S1207, in response to the instruction of the second application to connect to the cellular Network, transmitting a second Request Network (Request Network) message of the second application to the phone manager through the connection service.
S1208, sending a resume cellular data connection message to the connection service through any one of the phone manager, the radio interface layer, and the modem processor.
S1209, sending the second indication information to the user interface through the phone manager.
S1210, displaying the identifier of the cellular data service through the user interface.
It is understood that steps S1201 to S1210 are the same as steps S1001 to S1010 shown in fig. 10, and are not described herein again.
S1211, in response to the instruction of the third application to connect to the cellular Network, transmitting a third Request Network (Request Network) message of the third application to the phone manager through the connection service.
It is understood that, in the present embodiment, the third application requests the cellular data service before step S1113 shown in fig. 11, i.e., before the electronic device 100 sends the first indication information to the user interface through the phone manager.
Wherein the third request network message is for requesting cellular data services. The third request network message includes a third application identification for identifying a corresponding third application program.
For example, the third request network message includes an application identifier C, which indicates that the application program C corresponding to the application identifier C requests the cellular data service.
It is understood that the third application is different from the second application. The third application is any one of the first application and the remaining applications other than the second application.
S1212, sending a resume cellular data connection message to the connection service through any one of the phone manager, the radio interface layer, and the modem processor.
S1213, the second indication information is sent to the user interface through the phone manager.
S1214, the identity of the cellular data service is displayed via the user interface.
In the present embodiment, the third application requests the cellular data service after the second application has used up the cellular data and before the electronic apparatus 100 transmits the first indication information to the user interface through the phone manager. The electronic device 100 sends a second indication to the user interface through the phone manager to instruct the user interface to display an identification of the cellular data service, thereby prompting the user to: the application is using or preparing to use the cellular data.
It will be appreciated that in other embodiments, there may be multiple applications requesting cellular data services before the electronic device 100 sends the first indication to the user interface via the phone manager. When there are one or more applications requesting the cellular data service, the electronic device 100 sends second indication information to the user interface through the phone manager to instruct the user interface to display an identification of the cellular data service, thereby prompting the user to: the application is using or preparing to use the cellular data.
Example 8
Fig. 13 is a schematic view of an information interaction scenario of the data communication method provided in embodiment 8.
As shown in fig. 13, the data communication method may include the steps of:
s1301, in response to an instruction of the first application to connect to the wireless communication Network, sending a first Request Network (Request Network) message of the first application to the phone manager through the connection service.
S1302, the request network messages of the rest application programs are traversed through the connection service.
S1303, sends a Release Network Request (Release Network Request) message of the rest of the applications to the phone manager through the connection service.
S1304, intercepting, by any one of the phone manager, the radio interface layer, and the modem processor, a message deactivating the cellular data service.
S1305, sending the first indication information to the user interface through the phone manager.
S1306, hiding the identifier of the cellular data service through the user interface.
S1307, in response to the instruction of the second application to connect to the cellular Network, sends a second Request Network (Request Network) message of the second application to the phone manager through the connection service.
S1308, a resume cellular data connection message is sent to the connection service through any one of the phone manager, the radio interface layer, and the modem processor.
S1309, sending the second indication information to the user interface through the phone manager.
S1310, displaying the identification of the cellular data service through the user interface.
S1311, in response to the instruction of the second application to terminate the cellular data connection, sends a Release Network Request (Release Network Request) message of the second application to the phone manager through the connection service.
The message deactivating the cellular data service is intercepted by any one of the phone manager, the radio interface layer and the modem processor S1312.
S1313, sending the first indication information to the user interface through the phone manager.
S1314, hide the identity of the cellular data service through the user interface.
It is understood that steps S1301 to S1314 are the same as steps S1101 to S1114 shown in fig. 11, and are not described again here.
S1315, in response to the instruction of the first application to disconnect the wireless communication Network, sends a Release Network Request (Release Network Request) message of the first application to the phone manager through the connection service.
It is to be appreciated that in the present embodiment, after step S1114 shown in fig. 11, i.e. after the electronic device 100 hides the identity of the cellular data service through the user interface, the first application requests to disconnect the Wi-Fi connection.
Wherein the network release request message of the first application is used for requesting to disconnect the Wi-Fi connection.
It will be appreciated that in some embodiments, the instruction to disconnect the wireless communication network connection is triggered when the application detects a disconnection of the wireless communication network connection, or when the application needs to disconnect the wireless communication network connection.
S1316, sending a resume cellular data connection message to the connection service through any one of the phone manager, the radio interface layer and the modem processor.
S1317, sending second indication information to the user interface through the phone manager.
S1318, displaying the identifier of the cellular data service through the user interface.
In the embodiment, after the electronic device 100 sends the first indication information to the user interface through the telephone manager, the first application program requests to disconnect the Wi-Fi connection, so that the Wi-Fi network is switched to the SA network. The electronic device 100 sends second indication information to the user interface through the phone manager to instruct the user interface to display an identification of the cellular data service, thereby prompting the user to: the application is using or preparing to use the cellular data.
It should be noted that after the electronic device 100 suspends the cellular data connection by sending the release network request message of all the applications, the first indication information is sent to the user interface through the phone manager to instruct the user interface to hide the identification of the cellular data service, so as to prompt the user to: the application does not use the cellular data.
After the electronic device 100 resumes the cellular data connection by sending the request network message of the at least one application, sending second indication information to the user interface through the phone manager to instruct the user interface to display an identification of the cellular data service to prompt the user to: the application is using or preparing to use the cellular data.
The embodiments of the present application also provide a computer storage medium for storing a computer program or code, and when the computer program or code is executed by a processor, the data communication method provided by the embodiments of the present application is implemented.
It should be understood that computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical Disc storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present application.

Claims (12)

1. A data communication method applied to an electronic device, the electronic device being connected to an independent networking network, the electronic device including a connection service, a telephone manager, a radio interface layer, and a modem processor, the method comprising:
in response to an instruction of a first application program to connect to a wireless communication network, sending a first request network message of the first application program to the phone manager through the connection service, the first request network message being for requesting a handover from the ad-hoc networking network to the wireless communication network, the first request network message including a first application identification for identifying the corresponding first application program;
sending network release request messages of other application programs to the telephone manager through the connection service, wherein the network release request messages of the other application programs are used for requesting to suspend cellular data connection, and the other application programs refer to all application programs except the first application program on the electronic equipment;
intercepting, by any one of the telephony manager, the radio interface layer, and the modem processor, a message deactivating cellular data traffic.
2. The data communication method of claim 1, wherein after intercepting the message deactivating cellular data traffic by any one of the telephony manager, the radio interface layer, and the modem processor, the method further comprises:
concealing an identity of a cellular data service for use by an application or for preparing to use cellular data.
3. The data communication method of claim 2, wherein prior to the concealing the identity of the cellular data traffic, the method further comprises:
and sending first indication information to a user interface of the electronic equipment through the telephone manager, wherein the first indication information is used for indicating the user interface to hide the identification of the cellular data service.
4. The data communication method according to claim 1, wherein the message deactivating cellular data service comprises a first message requesting deactivation of the cellular data service or a second message requesting release of a protocol data unit session.
5. The data communication method of claim 4, wherein intercepting, by any one of the telephony manager, the radio interface layer, and the modem processor, a message deactivating cellular data traffic comprises:
intercepting, by the telephony manager or the radio interface layer, the first message; alternatively, the first and second electrodes may be,
intercepting, by the modem processor, the second message.
6. The data communication method of claim 1, wherein the method further comprises:
in response to an instruction of a second application to connect to a cellular network, sending a second request network message for the second application to the telephony manager through the connection service, the second request network message being for requesting cellular data traffic, the second request network message including a second application identification for identifying the corresponding second application, the second application being any one of the first application and the remaining applications;
sending a resume cellular data connection message to the connectivity service through any one of the telephony manager, the radio interface layer, and the modem processor, the resume cellular data connection message for informing the connectivity service to resume the cellular data connection that has been suspended;
displaying an identification of the cellular data service.
7. The data communication method of claim 6, wherein prior to said displaying the identity of the cellular data service, the method further comprises:
and sending second indication information to a user interface of the electronic equipment through the telephone manager, wherein the second indication information is used for indicating the user interface to display the identification of the cellular data service.
8. The data communication method of claim 6, wherein the method further comprises:
in response to an instruction by the second application to suspend the cellular data connection, sending a network release request message of the second application to the telephony manager via the connection service, the network release request message of the second application requesting suspension of the cellular data connection;
intercepting, by any of the telephony manager, the radio interface layer, and the modem processor, the message deactivating cellular data traffic.
9. The data communication method of claim 8, wherein the method further comprises:
in response to an instruction of a third application to connect to the cellular network, sending a third request network message of the third application to the telephony manager through the connection service, the third request network message being for requesting the cellular data service, the third request network message including a third application identification for identifying the corresponding third application, the third application being any one of the first application and the remaining applications except the second application;
sending the resume cellular data connection message to the connectivity service through any one of the telephony manager, the radio interface layer, and the modem processor;
displaying an identification of the cellular data service.
10. The data communication method of claim 1, wherein the method further comprises:
sending a network release request message of the first application to the phone manager through the connection service in response to an instruction of the first application to disconnect the wireless communication network connection, the network release request message of the first application requesting restoration of the cellular data connection;
sending a resume cellular data connection message to the connectivity service through any one of the telephony manager, the radio interface layer, and the modem processor, the resume cellular data connection message for informing the connectivity service to resume the cellular data connection that has been suspended;
an identification of the cellular data service is displayed.
11. An electronic device comprising a processor and a memory, wherein the processor implements the data communication method according to any one of claims 1 to 10 by executing a computer program or code stored in the memory.
12. A computer storage medium storing a computer program or code for implementing a data communication method as claimed in any one of claims 1 to 10 when executed by a processor.
CN202210802110.4A 2022-07-08 2022-07-08 Data communication method, electronic device, and computer storage medium Active CN114885395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210802110.4A CN114885395B (en) 2022-07-08 2022-07-08 Data communication method, electronic device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210802110.4A CN114885395B (en) 2022-07-08 2022-07-08 Data communication method, electronic device, and computer storage medium

Publications (2)

Publication Number Publication Date
CN114885395A true CN114885395A (en) 2022-08-09
CN114885395B CN114885395B (en) 2022-11-25

Family

ID=82682918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210802110.4A Active CN114885395B (en) 2022-07-08 2022-07-08 Data communication method, electronic device, and computer storage medium

Country Status (1)

Country Link
CN (1) CN114885395B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116320152A (en) * 2023-05-24 2023-06-23 荣耀终端有限公司 Processing method, terminal and chip system for receiving incoming call in conference
CN116887200A (en) * 2023-09-05 2023-10-13 荣耀终端有限公司 Multimedia message sending method, electronic equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140016613A1 (en) * 2012-07-10 2014-01-16 Futurewei Technologies, Inc. System and Method for Single Radio Handover
US20140126532A1 (en) * 2012-11-05 2014-05-08 Stoke, Inc. Seamless mobility from 3g network to wifi network
US20150016323A1 (en) * 2013-07-15 2015-01-15 Qualcomm Incorporated Power management for ran-wlan integration
CN105101316A (en) * 2015-07-10 2015-11-25 努比亚技术有限公司 Data transmission method and device for multi-data channel
US20160044567A1 (en) * 2013-04-04 2016-02-11 Interdigital Patent Holdings, Inc. Methods for 3gpp wlan interworking for improved wlan usage through offload
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN109716848A (en) * 2016-11-14 2019-05-03 苹果公司 The LAA/Wi-Fi shared for 5GHz antenna coexists
CN112673606A (en) * 2018-09-11 2021-04-16 苹果公司 User interface for controlling or presenting information about a plurality of cellular identifiers on an electronic device
WO2021126948A1 (en) * 2019-12-20 2021-06-24 Convida Wireless, Llc Seamless edge application handover
CN113630910A (en) * 2021-07-21 2021-11-09 荣耀终端有限公司 Method for using cellular communication function and related device
CN113747527A (en) * 2021-07-30 2021-12-03 荣耀终端有限公司 Network link switching method based on electronic equipment state and electronic equipment
CN114025394A (en) * 2020-07-17 2022-02-08 苹果公司 PDU session handover
CN114449088A (en) * 2020-10-30 2022-05-06 华为技术有限公司 Method for making call and electronic equipment
CN114631351A (en) * 2019-06-14 2022-06-14 苹果公司 Mutual anchoring and traffic distribution in converged RAN integrating NR and Wi-Fi access

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140016613A1 (en) * 2012-07-10 2014-01-16 Futurewei Technologies, Inc. System and Method for Single Radio Handover
US20140126532A1 (en) * 2012-11-05 2014-05-08 Stoke, Inc. Seamless mobility from 3g network to wifi network
US20160044567A1 (en) * 2013-04-04 2016-02-11 Interdigital Patent Holdings, Inc. Methods for 3gpp wlan interworking for improved wlan usage through offload
US20150016323A1 (en) * 2013-07-15 2015-01-15 Qualcomm Incorporated Power management for ran-wlan integration
CN105101316A (en) * 2015-07-10 2015-11-25 努比亚技术有限公司 Data transmission method and device for multi-data channel
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN109716848A (en) * 2016-11-14 2019-05-03 苹果公司 The LAA/Wi-Fi shared for 5GHz antenna coexists
CN112673606A (en) * 2018-09-11 2021-04-16 苹果公司 User interface for controlling or presenting information about a plurality of cellular identifiers on an electronic device
CN114631351A (en) * 2019-06-14 2022-06-14 苹果公司 Mutual anchoring and traffic distribution in converged RAN integrating NR and Wi-Fi access
WO2021126948A1 (en) * 2019-12-20 2021-06-24 Convida Wireless, Llc Seamless edge application handover
CN114025394A (en) * 2020-07-17 2022-02-08 苹果公司 PDU session handover
CN114449088A (en) * 2020-10-30 2022-05-06 华为技术有限公司 Method for making call and electronic equipment
CN113630910A (en) * 2021-07-21 2021-11-09 荣耀终端有限公司 Method for using cellular communication function and related device
CN113747527A (en) * 2021-07-30 2021-12-03 荣耀终端有限公司 Network link switching method based on electronic equipment state and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
3GPP: ""Radio Resource Control (RRC); Protocol specification (Release 14)"", 《3GPP TS 25.331 V14.2.0 (2017-03)》 *
缪德山;柴丽;孙建成;柯颋;刘玉真: ""5G NTN关键技术研究与演进展望"", 《电信科学》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116320152A (en) * 2023-05-24 2023-06-23 荣耀终端有限公司 Processing method, terminal and chip system for receiving incoming call in conference
CN116320152B (en) * 2023-05-24 2023-10-20 荣耀终端有限公司 Processing method, terminal and chip system for receiving incoming call in conference
CN116887200A (en) * 2023-09-05 2023-10-13 荣耀终端有限公司 Multimedia message sending method, electronic equipment and storage medium
CN116887200B (en) * 2023-09-05 2023-11-10 荣耀终端有限公司 Multimedia message sending method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114885395B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN114885395B (en) Data communication method, electronic device, and computer storage medium
CN115599566A (en) Notification message processing method, device, system and computer readable storage medium
CN111602379A (en) Voice communication method, electronic equipment and system
US11973895B2 (en) Call method and apparatus
EP4152782A1 (en) Message pushing method and apparatus
CN114995715B (en) Control method of floating ball and related device
CN114115770A (en) Display control method and related device
CN111372329B (en) Connection establishing method and terminal equipment
CN114338913B (en) Fault diagnosis method, electronic device and readable storage medium
CN113556421B (en) Recording data processing method, recording data processing device and storage medium
CN113132959B (en) Wireless audio system, wireless communication method and device
CN112532508B (en) Video communication method and video communication device
CN115550423B (en) Data communication method, electronic device and storage medium
CN112335294B (en) Emergency call method and user terminal
WO2022135195A1 (en) Method and apparatus for displaying virtual reality interface, device, and readable storage medium
CN115017498B (en) Method for operating applet and electronic device
WO2022095820A1 (en) Text input method, electronic device, and system
CN114915747A (en) Video call method and related equipment
WO2020062308A1 (en) Location information processing method and related device
CN110737916A (en) Communication terminal and processing method
CN114125805B (en) Bluetooth reconnection method and terminal equipment
WO2022206769A1 (en) Method for combining content, electronic device, and system
CN114980152A (en) Method for improving voice call quality
CN116932122A (en) Hardware sharing method and related equipment
CN116700556A (en) Card generation method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant