CN116709220B - Network connection method, network connection device, electronic equipment and computer readable storage medium - Google Patents

Network connection method, network connection device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116709220B
CN116709220B CN202211348743.9A CN202211348743A CN116709220B CN 116709220 B CN116709220 B CN 116709220B CN 202211348743 A CN202211348743 A CN 202211348743A CN 116709220 B CN116709220 B CN 116709220B
Authority
CN
China
Prior art keywords
short message
network
ims
electric leakage
leakage reminding
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.)
Active
Application number
CN202211348743.9A
Other languages
Chinese (zh)
Other versions
CN116709220A (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 CN202211348743.9A priority Critical patent/CN116709220B/en
Publication of CN116709220A publication Critical patent/CN116709220A/en
Application granted granted Critical
Publication of CN116709220B publication Critical patent/CN116709220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/04Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration using triggered events
    • 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

Abstract

The application relates to the technical field of communication, and provides a network connection method, a network connection device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a short message transmission mode of a first electric leakage reminding short message; acquiring a current call residence system, wherein the current call residence system is used for representing a communication system where a call service resides at the current moment; and executing a target strategy according to the short message transmission mode and the current call residence mode, wherein the target strategy is used for re-registering the call service. The method can improve the success rate of the called.

Description

Network connection method, network connection device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a network connection method, a network connection device, an electronic device, and a computer readable storage medium.
Background
With the progress of social production and people's life, people have increasingly high demands on communication quality. Among the many communication modes, conversation is one of the most common and important modes. Typically, a calling party triggers a call connection by dialing the telephone number of the called party. If the called party is not connected, namely the calling party can not receive the incoming call or can not normally connect the call after receiving the incoming call when dialing the telephone number of the called party, the call can not be normally conducted.
In the call service, the called party is one of the problems with highest priority, and operators in many areas can open the electric leakage reminding service. If the calling party dials the telephone of the called party and fails to be connected, the operator server automatically sends an electric leakage reminding short message to the called party to inform the user of the called party that a call fails to be connected. Thus, when the called party is not available, the user can know that the call is missed.
However, if the caller constantly dials the call of the callee, the call may fail in the period of time, and the callee continuously receives the leakage reminding short message, resulting in poor user experience.
Disclosure of Invention
The application provides a network connection method, a network connection device, a network connection chip, an electronic device, a computer readable storage medium and a computer program product, which can improve the success rate of a called party and the user experience.
In a first aspect, a network connection method is provided, including: acquiring a short message transmission mode of a first electric leakage reminding short message; acquiring a current call residence system, wherein the current call residence system is used for representing a communication system where a call service resides at the current moment; and executing a target strategy according to the short message transmission mode and the current call residence mode, wherein the target strategy is used for re-registering the call service.
The terminal equipment selects a network mode capable of establishing a call service to re-register the call service according to the short message transmission mode of the first electric leakage reminding short message and the current call residence mode, so that the network fault is automatically repaired, and the condition that continuous called is not enabled due to the network fault is avoided. When the terminal equipment is called again as a called party, the call can be normally established, the success rate of call connection is improved, the call quality is improved, and the user experience is further improved.
In some possible implementation manners, the short message transmission manner includes a short message type of the first electric leakage reminding short message and a short message receiving system of the first electric leakage reminding short message, where the short message receiving system is used for representing a communication system for receiving the first electric leakage reminding short message.
The terminal equipment selects a network mode capable of establishing a call service to re-register the call service according to the short message type, the short message receiving mode and the current call residence mode of the first electric leakage reminding short message, so that the network fault is automatically repaired, and the condition that continuous called is not communicated due to the network fault is avoided. When the terminal equipment is called again as a called party, the call can be normally established, the success rate of call connection is improved, the call quality is improved, and the user experience is further improved.
In some possible implementations, when the short message type is a non-access stratum (non access stratum, NAS) short message, the short message receiving system is a New Radio (NR), and the current call residence system is NR, the target policy includes: re-registers with the IP multimedia subsystem (IP Multimedia Subsystem, IMS) over the NR network.
When the short message type is NAS short message, the short message receiving mode is NR, and the current call residence mode is NR, the NR mode of the fifth generation mobile communication technology (5th generation mobile communication technology,5G) realizes communication service by registering IMS service to IMS, and the called party is not communicated at the moment, which indicates that the IMS is possibly abnormal, so that the terminal equipment can register IMS service to the IMS again on an NR network to repair the fault. When called again, the call can be established normally. At this time, the call service of the terminal device still uses the NR system, and the communication quality is higher than that of the fourth generation mobile communication technology (4h generation mobile communication technology,4G).
In some possible implementations, after re-registering with the IMS on the NR network, the target policy further includes:
and when the second leakage reminding short message is received, closing an independent networking (SA) network.
The above procedure may also be described as a procedure employing a two-stage self-healing policy, one stage of self-healing policy being re-registering with the IMS over the NR network; if the primary self-healing strategy cannot solve the problem that the called party is not enabled, namely, after IMS service is registered on the NR network again, the terminal equipment receives the electric leakage reminding short message, the secondary self-healing strategy is continuously adopted, namely, the SA network is closed to roll back the network of the call service. The two-stage self-healing strategy can further improve the success rate of network restoration, thereby improving the success rate of the called party and improving the user experience.
In some possible implementations, when the short message type is NAS short message, the short message receiving system is NR, and the current call residence system is NR, the target policy is: the SA network is shut down. Call traffic is also rolled back from the 5G network to the 4G network without first registering IMS services with the IMS over the NR network.
The terminal equipment directly backs the call service from the 5G network to the 4G network, compared with the mode of adopting the two-stage self-healing strategy, the network can be backed off when the first leakage reminding short message is identified, the problem of low network repairing efficiency caused by the condition that the IMS service cannot be repaired again on the NR network is avoided, the network is backed off without waiting for receiving the second leakage reminding short message, the network where the call service resides can be repaired at the highest probability at the first time, the called success rate is improved, the network repairing flow is reduced, the network repairing time is shortened, and the user experience is improved.
In some possible implementations, when the short message type is NAS short message, the short message receiving system is long term evolution (longterm evolution, LTE) and the current call residence system is LTE, the target policies include: re-registering with the IMS over the LTE network.
Since the LTE standard can also implement communication services by registering IMS services with the IMS, the terminal device can re-register IMS services with the IMS on the LTE network to attempt to repair the network failure. Re-registering IMS services with the IMS over the LTE network may repair previous network failures, and call may be established normally when called again. At this time, the communication service of the terminal device still uses the LTE system of 4G, and the communication quality is higher than the systems of the second generation mobile communication technology (2thgeneration mobile communication technology,2G) and the third generation mobile communication technology (3th generationmobile communication technology,3G).
In some possible implementations, after re-registering with the IMS over the LTE network, the target policy further includes: and when the second leakage reminding short message is received, the IMS service is closed.
The above procedure may also be described as a procedure employing a two-level self-healing policy, where the one-level self-healing policy is to re-register IMS services with IMS on the LTE network, i.e. to preferentially re-register IMS services with IMS on the 4G LTE network; if the first-level self-healing strategy cannot solve the problem that the called party is not enabled, namely, after the IMS service is registered with the IMS on the LTE network again, the terminal equipment receives the electric leakage reminding short message, the second-level self-healing strategy is continuously adopted, namely, the network of the IMS service for returning to the call service is closed. The two-stage self-healing strategy can further improve the success rate of network restoration, thereby improving the success rate of the called party and improving the user experience.
In some possible implementations, when the short message type is NAS short message, the short message receiving system is LTE, and the current call residence system is LTE, the target policy is: the IMS service is turned off. The call service is directly rolled back to the next 2G or 3G network to realize the call service.
Network rollback can address most network failures. After the network is backed, the call service can use a 2G or 3G network. The terminal equipment directly backs the call service from the 4G network to the 2G or 3G network, compared with the mode of adopting the two-stage self-healing strategy, the network can be backed off when the first leakage reminding short message is identified, the problem of low network repairing efficiency caused by the condition that the IMS service is registered again on the LTE network to the IMS service and the network failure cannot be repaired is avoided, the network is backed off without waiting for receiving the second leakage reminding short message, the network where the call service resides can be repaired at the highest probability at the first time, the called success rate is improved, the network repairing flow is reduced, the network repairing time is shortened, and the user experience is improved.
In some possible implementations, executing the target policy according to the short message transmission mode and the current call residence mode includes: and executing a target strategy according to the short message transmission mode, the current call residence mode and the screen state.
If the screen state is a bright screen state, the fact that the user is watching the screen is possibly indicated, the terminal equipment is in a used state, and the terminal equipment can directly fall back to the network to ensure that the call service is recovered with the highest probability preferentially, so that the user experience is not affected; if the screen is in the off-screen state, the terminal equipment may be in an unused state, at this time, the terminal equipment can re-register the network where the current call service resides, and then if the network failure cannot be repaired, the network is returned, and the user use is not affected.
In some possible implementations, when the short message type is an IMS short message, the short message receiving system is NR, the current call residence system is NR, and the screen state is a bright screen state, the target policy is: the SA network is shut down.
When the short message type is IMS short message, the short message receiving system is NR, the current call residence system is NR, and the screen state is the bright screen state, under the condition that the called party is not connected, the SA network is presumed to be faulty, and the terminal equipment can close the SA network. At this time, if the network supports a networking mode of a non-independent Networking (NSA), the terminal device may switch from the networking mode of the SA network to the networking mode of the NAS network, and the call service may also be rolled back from the 5G network to the 4G network, and the sms service may also be rolled back to the 4G network. Alternatively, the data traffic may remain with the 5G network. Network rollback can address most network failures. If the network does not support the networking mode of NSA, the terminal device may switch to the 4G network. Thus, the call service can be realized by directly using the next-stage 4G network. The method can repair the network where the call service resides at the first time with the highest probability in the bright screen state, does not influence the use of the user, reduces the flow of network repair while improving the success rate of the called party, shortens the time of network repair, and improves the user experience.
In some possible implementations, when the short message type is an IMS short message, the short message receiving system is NR, the current call residence system is NR, and the screen state is an off-screen state, the target policy includes: re-registers with the IMS over the NR network.
In the off-screen state, the terminal device may be in an unused state, and the terminal device may re-register IMS services with the IMS in the NR network to attempt to repair the failure of the NR network. In some cases, re-registering the IMS service with the IMS at the NR network may repair the previous network failure, and call may be established normally when called again. At this time, the call service of the terminal device still uses the 5G NR system, and the communication quality is higher than that of the 4G system.
In some possible implementations, after re-registering with the IMS on the NR network, the target policy further includes: and when the second electric leakage reminding short message is received, closing the SA network.
If the terminal equipment receives the second leakage reminding short message after the NR network registers the IMS service with the IMS again, the called party is still not enabled. At this time, the terminal device may consider that registering the IMS service again with the IMS in the NR network cannot repair the network failure, and may shut down the SA network. At this time, if the network supports the networking mode of NSA, the terminal device can switch from the networking mode of SA network to the networking mode of NAS network, and the call service is also rolled back from 5G network to 4G network. Thus, the call service can be realized by using the next-stage 4G network instead of the 5G network which cannot be repaired. After the network is backed, the call service can use the 4G network. Alternatively, the data traffic may remain with the 5G network. If the network does not support the networking mode of NSA, the network is directly backed off to the 4G network. The above procedure may also be described as a procedure employing a two-stage self-healing policy, one of which is to re-register IMS services with the IMS in the NR network; if the primary self-healing strategy cannot solve the problem that the called party is not through, namely, after the NR network is re-registered, the terminal equipment receives the electric leakage reminding short message, the secondary self-healing strategy is continuously adopted, namely, the SA network is closed to back off the network of the call service. By adopting the two-stage self-healing strategy, the success rate of network restoration can be further improved in the screen-off state, so that the success rate of a called party is improved, and the use of a user is not influenced.
In some possible implementations, when the short message type is an IMS short message, the short message receiving system is LTE, and the current call residence system is LTE, the target policy includes: re-registering with the IMS over the LTE network. The terminal device may re-register IMS services with the IMS over the LTE network in an attempt to repair the network failure.
In some possible implementations, the target policy is: when the Nth leakage reminding short message is received, registering to the IMS on the LTE network again; the N-th electric leakage reminding short message is a received N-th electric leakage reminding short message, and N is an integer larger than 1.
The terminal equipment can not process the first electric leakage reminding short message when receiving the first electric leakage reminding short message, and wait for receiving other electric leakage reminding short messages, wherein the other electric leakage reminding short messages can be second electric leakage reminding short messages, namely the second electric leakage reminding short messages; the method can also be a third time, a fourth time and the like of the received electric leakage reminding short message, namely, when the electric leakage reminding short message is received for the first time, the processing is not performed, because the short message type is an IMS short message, the short message receiving mode is LTE and the current call residence mode is LTE, if the called party fails to indicate that the incoming call is not accessed through an IMS domain, and the incoming call is not accessed from a CS domain, probably because of short network abnormality, the electric leakage reminding short message can be automatically repaired without processing, the terminal equipment can execute the self-healing strategy again when the electric leakage reminding short message is received for a plurality of times (namely, the Nth electric leakage reminding short message is received, and N is more than or equal to two), invalid re-registration flow can be avoided, and resources of the terminal equipment are saved.
In some possible implementations, the target policy is: and when the Nth leakage reminding short message is received and the screen state is the bright screen state, registering to the IMS on the LTE network again.
When the terminal receives the Nth leakage reminding short message, the network is not restored by itself, if the terminal is in a bright screen state at the moment, and the user is possibly using the terminal equipment, the prior network fault can be repaired by registering IMS service to IMS through LTE network, and when the terminal is called again, the call can be normally established. Therefore, the user can not feel the disconnection, and the use of the user can not be influenced. At this time, the call service of the terminal device still uses the LTE system of 4G, and compared with the systems of 2G and 3G, the communication quality is higher.
And when the Nth electric leakage reminding short message is received and the screen state is the screen-off state, the registration is initiated to the core network again, and the registration is carried out to the IMS in the LTE network again.
When the terminal receives the Nth leakage reminding short message, the network is not recovered by itself, and if the network is in a screen-off state at the moment, the user is not likely to use the terminal equipment. At this time, the registration can be directly restarted to the core network (i.e. one attach connection is triggered), then the IMS service is newly registered to the IMS in the LTE network, and the process not only re-executes the NAS flow, but also re-executes the session initiation protocol (session initiation protocol, SIP) flow, which is equivalent to switching to the flight mode, re-registering the very trusted network and registering to the IMS in the LTE network. The method has the advantages that registration is initiated to the core network again, IMS service is registered to the IMS in the LTE network again, network faults under more conditions can be repaired compared with the condition that the IMS service is registered to the IMS in the LTE network only again, network faults can be guaranteed to be repaired to the greatest extent when a user does not use terminal equipment, the called success rate is improved, and the use of the user is not affected.
In some possible implementations, when the short message type is a circuit switched CS short message, the short message receiving system is a network system of the second generation mobile communication 2G/the third generation mobile communication 3G, and the current call residence system is LTE, the target policies include: re-registering with the IMS over the LTE network.
It may be considered that the IMS has failed at this time, and the terminal device may re-register IMS services with the IMS on the LTE network of 4G to repair the network failure.
In some possible implementations, the target policy is: when the screen state is the bright screen state, registering to the IMS on the LTE network again; and when the screen state is the off-screen state, re-initiating registration to the core network and re-registering to the IMS on the LTE network.
When the screen is in the off-screen state, which indicates that the user may not use the terminal device at this time, the terminal device may initiate registration with the core network again (i.e. trigger an attach connection), and register IMS services with the IMS in the LTE network to repair network failures. And the registration is initiated to the core network again, and network faults under more conditions can be repaired when the LTE network is registered to the IMS only compared with the registration to the IMS only again, so that the network faults can be repaired to the greatest extent when the user does not use the terminal equipment, the called success rate is improved, and the use of the user is not influenced. When the screen is in a bright screen state, the user is possibly using the terminal equipment, and the terminal equipment can only register IMS service with the IMS in the LTE network to repair network faults, but can not re-register the core network, so that the user can not perceive the disconnection of the network, and the use of the user can not be influenced.
In some possible implementation manners, the obtaining manner of the short message type of the first electric leakage reminding short message includes: if the transmission channel of the first electric leakage reminding short message is a channel of the SIP message, determining the type of the short message as an IMS short message; if the transmission channel of the first electric leakage reminding short message is a channel of a non-access stratum (NAS) message and the resident network type icon is 2G or 3G when the first electric leakage reminding short message is received, determining that the short message type is CS short message; if the transmission channel of the first electric leakage reminding short message is a channel of the NAS message and the resident network type icon when the first electric leakage reminding short message is not 2G or 3G, determining that the short message type is the NAS short message.
If the transmission channel of the first electric leakage reminding short message is not a channel of the SIP message and is transmitted through a channel of the 2G or 3G NAS message, the short message type can be determined as the CS short message; if the transmission channel of the first leakage reminding short message is the channel transmission of the 4G or 5G NAS message, the short message type can be determined to be the NAS short message. Optionally, the terminal device may determine the short message type according to a network injection type icon (RAT) of the terminal device when receiving the first leakage reminding short message. If the network-resident icon of the terminal equipment is displayed as 2G or 3G when the first electric leakage reminding short message is received, determining the type of the short message as a CS short message; if the network-resident icons of the terminal equipment display 2G and 3G or 4G and 5G when the first electric leakage reminding short message is received, the short message type can be determined to be NAS short message. The accuracy of acquiring the short message type by adopting the mode is high.
In some possible implementations, obtaining a short message transmission mode of the first electric leakage reminding short message includes: receiving a short message to be detected; determining whether the short message to be detected is a first electric leakage reminding short message or not according to the short message content of the short message to be detected and the sender identification of the short message to be detected; and if the short message to be detected is the first electric leakage reminding short message, acquiring a short message transmission mode of the first electric leakage reminding short message.
After receiving the short message, the terminal equipment can identify the short message, so as to determine whether the short message is an electric leakage reminding short message issued by an operator. In some embodiments, the terminal device may preset a leakage number, i.e. the number of the operator (sender identification), and a keyword capable of characterizing the leakage alert. After the keywords of the short message are identified, the short message is compared with preset keywords, and if the content of the short message comprises the preset keywords, the short message can be determined to be the electric leakage reminding short message. If the content of the short message does not or does not completely include the preset keyword, the short message is determined not to be the electric leakage reminding short message. The preset missing point number and the preset keyword can also be updated by refreshing the version or accessing the cloud server. The method can accurately identify the electric leakage reminding short message, thereby accurately and timely triggering and executing the self-healing strategy of the network and improving the success rate of the called party.
In a second aspect, there is provided a network connection device comprising: the electric leakage reminding detection module and the network searching module; the electric leakage reminding detection module is used for identifying the first electric leakage reminding short message and acquiring a short message transmission mode of the first electric leakage reminding short message; the network searching module is used for acquiring a current call residence system, wherein the current call residence system is used for representing a communication system where a call service resides at the current moment; the electric leakage reminding detection module is used for executing a target strategy according to the short message transmission mode and the current conversation residence mode; and the network searching module is used for re-registering the call service according to the target strategy.
In some possible implementations, the apparatus further includes a unit composed of software and/or hardware, where the unit is configured to perform any one of the methods in the technical solutions of the first aspect.
In a third aspect, there is provided an electronic device, comprising: a processor, a memory, and an interface; the processor, the memory and the interface cooperate with each other such that the electronic device performs any one of the methods of the technical solutions of the first aspect.
In a fourth aspect, embodiments of the present application provide a chip comprising a processor; the processor is configured to read and execute a computer program stored in the memory to perform any one of the methods according to the first aspect.
Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
Further optionally, the chip further comprises a communication interface.
In a fifth aspect, there is provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, causes the processor to perform any one of the methods according to the first aspect.
In a sixth aspect, there is provided a computer program product comprising: computer program code which, when run on an electronic device, causes the electronic device to carry out any one of the methods of the first aspect.
Drawings
Fig. 1 is a schematic structural diagram of an example of a terminal device 100 according to an embodiment of the present application;
fig. 2 is a software structural block diagram of the terminal device 100 provided in the embodiment of the present application;
fig. 3 is a flowchart of an example of a network connection method according to an embodiment of the present application;
fig. 4 is an interaction diagram of each module in a case where a called party is not available according to an embodiment of the present application;
FIG. 5 is an interaction diagram of an example network connection method according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an example of a network connection device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first," "second," "third," and the like, are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", or a third "may explicitly or implicitly include one or more such feature.
The network connection method provided by the embodiment of the application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the specific types of the terminal devices are not limited.
Fig. 1 is a schematic structural diagram of an exemplary terminal device 100 according to an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universalserial bus, USB) interface 130, a charge management module 140, 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, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-networkprocessing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural center and a command center of the terminal device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the terminal device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of terminal device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display function of the terminal device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
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 terminal device 100, or may be used to transfer data between the terminal device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other terminal devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge 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 provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 can 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. The structures of the antennas 1 and 2 in fig. 1 are only one example. Each antenna in the terminal device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into 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 terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the terminal device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the 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, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of terminal device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal device 100 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
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 onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the terminal 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 digital signals, and can process other digital signals besides digital image signals. For example, when the terminal device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in various encoding formats, for example: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the terminal device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (such as audio data, phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
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. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or to handsfree talk through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device 100 receives a call or voice message, it is possible to receive voice by approaching the receiver 170B to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130 or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert 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 is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The terminal device 100 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the angle of the shake of the terminal device 100, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shake of the terminal device 100 by the reverse motion, thereby realizing anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The terminal device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a folder, the terminal device 100 may detect opening and closing of the folder according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the terminal device 100 is stationary. The method can also be used for identifying the gesture of the terminal equipment, and is applied to the applications such as horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The terminal device 100 may measure the distance by infrared or laser. In some embodiments, the terminal device 100 may range using the distance sensor 180F to achieve fast focusing.
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 terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the terminal device 100. When insufficient reflected light is detected, the terminal device 100 may determine that there is no object in the vicinity of the terminal device 100. The terminal device 100 can detect that the user holds the terminal device 100 close to the ear to talk by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The terminal device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The terminal device 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is for detecting temperature. In some embodiments, the terminal device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 performs a reduction in the performance of a processor located near the temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the terminal device 100 heats the battery 142 to avoid the low temperature causing the terminal device 100 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the terminal device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". 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 for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The terminal device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the terminal device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be contacted and separated from the terminal apparatus 100 by being inserted into the SIM card interface 195 or by being withdrawn from the SIM card interface 195. The terminal 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 Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of 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 terminal device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
The software system of the terminal device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the terminal device 100 is illustrated.
Fig. 2 is a software configuration block diagram of the terminal device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android running time) and system libraries, and a kernel layer, respectively. The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as a camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message and leakage alert detection module, etc.
The leakage reminding detection module is used for detecting the received short message, identifying the leakage reminding short message and triggering a re-registration process.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs 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 window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the terminal device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the terminal equipment vibrates, and an indicator light blinks.
Android runtimes include core libraries and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media libraries (mediairies), three-dimensional graphics processing libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
For easy understanding, the following embodiments of the present application will take a terminal device having a structure shown in fig. 1 and fig. 2 as an example, and specifically describe a network connection method provided in the embodiments of the present application with reference to the accompanying drawings and application scenarios.
With the progress of social production and people's life, people have increasingly high demands on communication quality. Among the many communication modes, conversation is one of the most common and important modes. Typically, a calling party triggers a call connection by dialing the telephone number of the called party. If the called party is not connected, namely the calling party can not receive the incoming call or can not normally connect the call after receiving the incoming call when dialing the telephone number of the called party, the call can not be normally conducted.
In the call service, the called party is one of the problems with highest priority, and operators in many areas can open the electric leakage reminding service. If the calling party dials the telephone of the called party and fails to be connected, the operator server automatically sends an electric leakage reminding short message to the called party to inform the user of the called party that a call fails to be connected. Therefore, even when the called party is not available, the user can know that the call is missed. However, if the caller constantly dials the call of the callee, the call may fail during the period of time, and the callee continuously receives the leakage reminding short message. This can lead to user failure as a handset and poor user experience.
According to the call connection method, when the terminal equipment receives the electric leakage reminding short message, the call service can be registered again according to the short message transmission mode and the communication mode where the call service resides, so that the network self-healing is realized. The terminal device may re-register the communication system in which the previous call service resides, or may re-register other communication systems. For example, if the communication format in which the previous call service resides is a 5G format, the terminal device may return the call service to a 4G format if the called party is not available; if the communication system where the call service resides is a 4G system, the terminal device can return the call service to a 2G or 3G system under the condition that the called party is not connected. The terminal equipment can also register the communication system before the terminal equipment is registered again, and when the leakage reminding short message is received again, the communication system where the call service resides is returned again. The terminal device automatically restores the network fault by re-registering the call service, so as to avoid the condition that the continuous called party is not enabled due to the network fault. When the called party is called again, the call can be normally established, the success rate of call connection is improved, the call quality is improved, and further the user experience is improved.
Fig. 3 is a flowchart of an example of a network connection method according to an embodiment of the present application. The method may include:
s301, acquiring a short message transmission mode of the first electric leakage reminding short message.
After receiving the short message, the terminal equipment can identify the short message, so as to determine whether the short message is an electric leakage reminding short message issued by an operator. In some embodiments, the terminal device may preset a leakage number, i.e. the number of the operator, and a keyword capable of characterizing the leakage alert. After the keywords of the short message are identified, the short message is compared with preset keywords, and if the content of the short message comprises the preset keywords, the short message can be determined to be the electric leakage reminding short message. If the content of the short message does not or does not completely include the preset keyword, the short message is determined not to be the electric leakage reminding short message. The preset missing point number and the preset keyword can also be updated by refreshing the version or accessing the cloud server. The method can accurately identify the electric leakage reminding short message, thereby accurately and timely triggering and executing the self-healing strategy of the network and improving the success rate of the called party.
Optionally, the terminal device may identify keywords in the content of the short message, and when it is identified that keywords such as "missed call", "missed call" and "incoming call" exist in the text of the short message, and the keywords include keywords of time, for example, several points and several minutes, it may be determined that the short message is a leakage reminding short message; optionally, the terminal device may also combine the identified keyword with the sender to determine whether the message is a leakage reminding short message, for example, when keywords such as "missed call", "incoming call" exist in the text of the short message, and the phone number of the sender of the short message is an operator, the short message may be determined to be the leakage reminding short message; optionally, the terminal device may further combine the identified keyword with the sender identifier to determine whether the message is a leakage reminding short message, for example, when keywords such as "missed call", "incoming call" exist in the text of the short message, and the keywords include time, and when the sender of the short message is the number of the operator, the short message may be determined to be the leakage reminding short message. The mode of determining whether the short message is the electric leakage reminding short message is not limited, and the embodiment of the application is only required if the electric leakage reminding short message can be identified.
For example, the terminal device receives the short message: carrier a wakes up you: user 18600000000 calls you once at 2018/8/15:17, you can press the talk key to dial back. The terminal equipment carries out keyword recognition aiming at the short message, and the recognition comprises: the operators A, 2018/8/15:17 and the incoming call keywords can determine that the short message is the electric leakage reminding short message.
When the terminal equipment recognizes that the first electric leakage reminding short message is received, a short message transmission mode of the first electric leakage reminding short message can be obtained. The first leakage reminding short message may be a leakage reminding short message received for the first time. The short message transmission mode can represent the current network state, and if the terminal equipment can receive the first electric leakage reminding short message, the network mode for the first electric leakage reminding short message transmission can be indicated to be normally communicated.
Optionally, the short message transmission mode may include a short message type of the first electric leakage reminding short message, and the short message type may include: NAS messages, IP multimedia subsystem (IP Multimedia Subsystem) messages, and Circuit Switched (CS) messages. The short message transmission manner may further include a short message receiving system of the first leakage reminding short message, for example, including a 5G system (for example, NR), a 4G system (for example, LTE), a 3G system and a 2G system (for example, GSM, CDMA, WCDMA).
Optionally, the terminal device may obtain a short message type and a short message receiving format reported to the application layer by the short message receiving module.
S302, acquiring a current call residence system, wherein the current call residence system is used for representing a communication system where a call service resides at the current moment.
The terminal equipment can acquire the communication system registered by the call service at the current moment, namely, acquire the current call residence system. The current call resident mode may be any one of 2G, 3G, 4G and 5G.
Optionally, the terminal device may acquire a current call residence format that may be reported to the application layer by the network searching module.
S303, executing a target strategy according to the short message transmission mode and the current call residence mode, wherein the target strategy is used for re-registering the call service.
The terminal device can receive the first leakage reminding short message, but fails to establish a call, and the network mode corresponding to the short message transmission mode of the first leakage reminding short message is indicated to be in a normal state, and the network mode of the call service may have a fault, and the call service may be re-registered once according to the current call residence mode, or the call service different from the current call residence mode may be re-registered once according to the network mode without the fault indicated by the short message transmission mode.
In the embodiment shown in fig. 3, the terminal device selects the network mode capable of establishing the call service to re-register the call service according to the short message transmission mode of the first electric leakage reminding short message and the current call residence mode, so as to automatically repair the network fault and avoid the condition that the continuous called party is not enabled due to the network fault. When the terminal equipment is called again as a called party, the call can be normally established, the success rate of call connection is improved, the call quality is improved, and the user experience is further improved.
The short message type in the method can represent a message channel for transmitting the short message, and the terminal equipment can determine the short message type according to the message channel for transmitting the short message of the first electric leakage reminding short message. When the transmission channel of the first leakage reminding short message is a channel of a session initiation protocol (session initiation protocol, SIP) message, the type of the short message can be determined to be an IMS short message.
If the transmission channel of the first electric leakage reminding short message is not a channel of the SIP message and is transmitted through a channel of the 2G or 3G NAS message, the short message type can be determined as the CS short message; if the transmission channel of the first leakage reminding short message is the channel transmission of the 4G or 5G NAS message, the short message type can be determined to be the NAS short message.
Optionally, the terminal device may determine the short message type according to a network injection type icon (RAT) of the terminal device when receiving the first leakage reminding short message. If the network-resident icon of the terminal equipment is displayed as 2G or 3G when the first electric leakage reminding short message is received, determining the type of the short message as a CS short message; if the network-resident icons of the terminal equipment display 2G and 3G or 4G and 5G when the first electric leakage reminding short message is received, the short message type can be determined to be NAS short message. The accuracy of acquiring the short message type by adopting the mode is high.
The specific process of how the terminal device executes the corresponding target policy according to the short message type, the short message receiving system and the current call residence system will be described in detail below.
When the short message type is NAS short message, the short message receiving mode is NR, and the current call residence mode is NR, the 5G NR mode realizes communication service by registering with IMS, and the called party is not communicated at this time, which indicates that the IMS is possibly abnormal, so that the terminal equipment can register IMS service with the IMS on the NR network again to repair the fault. When called again, the call can be established normally. At this time, the call service of the terminal device still uses the NR system, and the communication quality is higher than that of the 4G system.
Optionally, if the terminal device receives the second leakage reminding short message again after registering the IMS service with the IMS on the NR network again, this indicates that the called party is still not connected. At this time, the terminal device may consider that registering IMS services again with the IMS over the NR network cannot repair the network failure, and may shut down the SA network. If the network supports the networking mode of NSA, the terminal equipment can switch from the networking mode of SA network to the networking mode of NAS network, and the call service is backed to 4G network from 5G network. Thus, the call service can be realized by using the next-stage 4G network instead of the 5G network which cannot be repaired. After the network is backed, the call service can use the 4G network. Alternatively, the data traffic may remain with the 5G network. If the network does not support the networking mode of NSA, after the SA network is closed, the call service and the data service are switched to the 4G network. The above procedure may also be described as a procedure employing a two-stage self-healing policy, one stage of self-healing policy being re-registering with the IMS over the NR network; if the primary self-healing strategy cannot solve the problem that the called party is not enabled, namely, after IMS service is registered on the NR network again, the terminal equipment receives the electric leakage reminding short message, the secondary self-healing strategy is continuously adopted, namely, the SA network is closed to roll back the network of the call service. The two-stage self-healing strategy can further improve the success rate of network restoration, thereby improving the success rate of the called party and improving the user experience. The manner of identifying the second leakage reminding short message by the terminal device can be referred to the foregoing manner of identifying the first leakage reminding short message, which is not described herein again. Alternatively, the SA network may be turned off here for a period of time, e.g., 5 minutes, 10 minutes, without being turned off all the time.
When the terminal equipment receives the first leakage reminding short message, if the short message type is NAS short message, the short message receiving system is NR, and the current call residence system is NR, the terminal equipment can also directly close the SA network. That is, the terminal device may switch directly from the networking mode of the SA network to the networking mode of the NAS network, and the call service is also rolled back from the 5G network to the 4G network, without first registering the IMS service with the IMS on the NR network. Network rollback can address most network failures. After the network is backed, the call service can use the 4G network. The terminal equipment directly backs the call service from the 5G network to the 4G network, compared with the mode of adopting the two-stage self-healing strategy, the network can be backed off when the first leakage reminding short message is identified, the problem of low network repairing efficiency caused by the condition that the IMS service is registered again on the NR network to the IMS service and network faults cannot be repaired is solved, the network is backed off without waiting for receiving the second leakage reminding short message, the network where the call service resides can be repaired at the highest probability at the first time, the called success rate is improved, the network repairing flow is reduced, the network repairing time is shortened, and the user experience is improved.
When the short message type is NAS short message, the short message receiving mode is LTE and the current call residence mode is LTE, the terminal equipment can register IMS service to IMS again on the LTE network to try to repair the network fault because the LTE mode can also register IMS service to realize communication service. In some cases, re-registering IMS services with the IMS over the LTE network may repair previous network failures, and call may be established normally when called again. At this time, the call service of the terminal device still uses the LTE system of 4G, and compared with the systems of 2G and 3G, the communication quality is higher.
Optionally, if the terminal device receives the second leakage reminding short message again after registering with the IMS on the LTE network again, this indicates that the called party is still not communicating. At this time, the terminal device may consider that registering the IMS service again with the IMS over the LTE network cannot repair the network failure, and may close the IMS service. Since voice service in LTE standard of 4G can register IMS or register CS domain to realize communication service, when IMS service of terminal device is closed, it becomes CS only, and call service is rolled back (dropped) from 4G network to 2G or 3G network, which may be called CS fallback (CSFB). When the call service is performed, the terminal device can not use the 4G network which cannot be repaired to realize the call service, but fall back to use the 2G or 3G network of the next stage to realize the call service. Network rollback can address most network failures. After the network is backed, the call service can use a 2G or 3G network. The above procedure may also be described as a procedure employing a two-level self-healing policy, where the one-level self-healing policy is to re-register IMS services with IMS on the LTE network, i.e. to preferentially re-register IMS services with IMS on the 4G LTE network; if the first-level self-healing strategy cannot solve the problem that the called party is not enabled, namely, after the IMS service is registered with the IMS on the LTE network again, the terminal equipment receives the electric leakage reminding short message, the second-level self-healing strategy is continuously adopted, namely, the network of the IMS service for returning to the call service is closed. The two-stage self-healing strategy can further improve the success rate of network restoration, thereby improving the success rate of the called party and improving the user experience. The manner of identifying the second leakage reminding short message by the terminal device can be referred to the foregoing manner of identifying the first leakage reminding short message, which is not described herein again. Alternatively, the IMS service may be turned off here for a period of time, e.g. 5 minutes, 10 minutes, without being turned off all the time.
When the terminal equipment receives the first leakage reminding short message, if the short message type is NAS short message, the short message receiving system is LTE, and the current call residence system is LTE, the terminal equipment can directly close the IMS service without registering the IMS service on the LTE network again, and fall back to the next-stage 2G or 3G network to realize the call service. Network rollback can address most network failures. After the network is backed, the call service can use a 2G or 3G network. The terminal equipment directly backs the call service from the 4G network to the 2G or 3G network, compared with the mode of adopting the two-stage self-healing strategy, the network can be backed off when the first leakage reminding short message is identified, the problem of low network repairing efficiency caused by the condition that the IMS service is registered again on the LTE network to the IMS service and the network failure cannot be repaired is avoided, the network is backed off without waiting for receiving the second leakage reminding short message, the network where the call service resides can be repaired at the highest probability at the first time, the called success rate is improved, the network repairing flow is reduced, the network repairing time is shortened, and the user experience is improved. Alternatively, the IMS service may be turned off here for a period of time, e.g. 5 minutes, 10 minutes, without being turned off all the time.
In some cases, the terminal device may also determine what target policy to execute in conjunction with the screen status. If the screen state is a bright screen state, the fact that the user is watching the screen is possibly indicated, the terminal equipment is in a used state, and the terminal equipment can directly fall back to the network to ensure that the call service is recovered with the highest probability preferentially, so that the user experience is not affected; if the screen is in the off-screen state, the terminal equipment may be in an unused state, at this time, the terminal equipment can re-register the network where the current call service resides, and then if the network failure cannot be repaired, the network is returned, and the user use is not affected.
Specifically, when the short message type is an IMS short message, the short message receiving system is NR, the current call residence system is NR, and the screen state is a bright screen state, it is presumed that the SA network is faulty in the case that the called party is not connected, and the terminal device may close the SA network. At this time, if the network supports the NSA networking mode, the terminal device may switch from the SA networking mode to the NAS networking mode, and the call service may also fall back from the 5G network to the 4G network, and the sms service may also fall back to the 4G network. Alternatively, the data traffic may remain with the 5G network. Network rollback can address most network failures. If the network does not support the networking mode of NSA, the terminal device may switch to the 4G network. Thus, the call service can be realized by directly using the next-stage 4G network. The method can repair the network where the call service resides at the first time with the highest probability in the bright screen state, does not influence the use of the user, reduces the flow of network repair while improving the success rate of the called party, shortens the time of network repair, and improves the user experience. Alternatively, the SA network may be turned off for a period of time, e.g., 5 minutes, 10 minutes, without being turned off all the time.
If the screen is in the off-screen state, the terminal device may be in an unused state, at which point the terminal device may re-register the IMS service with the IMS in the NR network to attempt to repair the failure of the NR network. In some cases, re-registering the IMS service with the IMS at the NR network may repair the previous network failure, and call may be established normally when called again. At this time, the call service of the terminal device still uses the 5G NR system, and the communication quality is higher than that of the 4G system. Optionally, if the terminal device receives the second leakage reminding short message again after the NR network registers the IMS service with the IMS again, the called party is still not communicated. At this time, the terminal device may consider that registering the IMS service again with the IMS in the NR network cannot repair the network failure, and may shut down the SA network. At this time, if the network supports the networking mode of NSA, the terminal device can switch from the networking mode of SA network to the networking mode of NAS network, and the call service is also rolled back from 5G network to 4G network. Thus, the call service can be realized by using the next-stage 4G network instead of the 5G network which cannot be repaired. After the network is backed, the call service can use the 4G network. Alternatively, the data traffic may remain with the 5G network. If the network does not support the networking mode of NSA, the network is directly backed off to the 4G network. The above procedure may also be described as a procedure employing a two-stage self-healing policy, one of which is to re-register IMS services with the IMS in the NR network; if the primary self-healing strategy cannot solve the problem that the called party is not through, namely, after the NR network is re-registered, the terminal equipment receives the electric leakage reminding short message, the secondary self-healing strategy is continuously adopted, namely, the SA network is closed to back off the network of the call service. By adopting the two-stage self-healing strategy, the success rate of network restoration can be further improved in the screen-off state, so that the success rate of a called party is improved, and the use of a user is not influenced. Alternatively, the SA network may be turned off for a period of time, e.g., 5 minutes, 10 minutes, without being turned off all the time.
When the short message type is IMS short message, the short message receiving mode is LTE and the current call residence mode is LTE, the LTE mode can also realize communication service by registering IMS service with IMS, so the terminal equipment can register IMS service with IMS on the LTE network again to try to repair the network fault.
Optionally, the terminal device may not process the first leakage reminding short message when receiving the first leakage reminding short message, and wait for receiving other leakage reminding short messages, where the other leakage reminding short messages may be second leakage reminding short messages, that is, the second leakage reminding short messages received; the method can also be a third time, a fourth time and the like of the received electric leakage reminding short message, namely, when the electric leakage reminding short message is received for the first time, the processing is not performed, because the short message type is an IMS short message, the short message receiving mode is LTE and the current call residence mode is LTE, if the called party fails to indicate that the incoming call is not accessed through an IMS domain, and the incoming call is not accessed from a CS domain, probably because of short network abnormality, the electric leakage reminding short message can be automatically repaired without processing, the terminal equipment can execute the self-healing strategy again when the electric leakage reminding short message is received for a plurality of times (namely, the Nth electric leakage reminding short message is received, and N is more than or equal to two), invalid re-registration flow can be avoided, and resources of the terminal equipment are saved.
When the terminal receives the Nth leakage reminding short message, the network is not restored by itself, if the terminal is in a bright screen state at the moment, and the user is possibly using the terminal equipment, the prior network fault can be repaired by registering IMS service to IMS through LTE network, and when the terminal is called again, the call can be normally established. Therefore, the user can not feel the disconnection, and the use of the user can not be influenced. At this time, the call service of the terminal device still uses the LTE system of 4G, and compared with the systems of 2G and 3G, the communication quality is higher.
When the terminal receives the Nth leakage reminding short message, the network is not recovered by itself, and if the network is in a screen-off state at the moment, the user is not likely to use the terminal equipment. At this time, the registration can be directly restarted to the core network (i.e. one attach connection is triggered), then the IMS service is newly registered to the IMS in the LTE network, and the process not only re-executes the NAS flow, but also re-executes the session initiation protocol (session initiation protocol, SIP) flow, which is equivalent to switching to the flight mode, re-registering the very trusted network and registering to the IMS in the LTE network. The method has the advantages that registration is initiated to the core network again, IMS service is registered to the IMS in the LTE network again, network faults under more conditions can be repaired compared with the condition that the IMS service is registered to the IMS in the LTE network only again, network faults can be guaranteed to be repaired to the greatest extent when a user does not use terminal equipment, the called success rate is improved, and the use of the user is not affected.
When the short message type is a circuit switched (circuit switched domain, CS) short message, the short message receiving system is a network system (such as GSM, WCDMA, etc.) of 2G or 3G, and the current call residence system is LTE, the call service resides on the LTE network of 4G, but the short message type is a CS short message, which can be considered that the IMS is faulty at this time, and the terminal device can reinject the IMS service registered with the IMS on the LTE network of 4G to repair the network fault. Optionally, when the screen is in the off-screen state, which indicates that the user may not use the terminal device at this time, the terminal device may re-initiate registration with the core network (i.e. trigger an attach connection), and re-register IMS services with the IMS in the LTE network to repair the network failure. And the registration is initiated to the core network again, and network faults under more conditions can be repaired when the LTE network is registered to the IMS only compared with the registration to the IMS only again, so that the network faults can be repaired to the greatest extent when the user does not use the terminal equipment, the called success rate is improved, and the use of the user is not influenced. When the screen is in a bright screen state, the user is possibly using the terminal equipment, and the terminal equipment can only register IMS service with the IMS in the LTE network to repair network faults, but can not re-register the core network, so that the user can not perceive the disconnection of the network, and the use of the user can not be influenced.
For a clearer description of the conditions for execution of the target policy, reference may be made to the correspondence relationships shown in table 1.
TABLE 1
In order to clearly describe the technical solutions of the embodiments of the present application, the improvements made by the technical solutions of the present application may be described using interactive diagrams. In the conventional technology, when the called party is not available, the interaction between the modules may be shown in fig. 4, which specifically includes:
s401, the network searching module registers and connects with a network side device (the network side device is shown as network, abbreviated as NW).
S402, when the network side equipment calls the terminal equipment, namely is connected with the call processing module, the situation that the called party is not through occurs.
S403, the network side equipment inquires whether the terminal equipment opens the electric leakage reminding service.
And S404, if the electric leakage reminding service is started, the network side equipment sends an electric leakage reminding short message to the terminal equipment.
If the terminal equipment does not open the electric leakage reminding service, the electric leakage reminding short message does not need to be sent.
S405, the terminal equipment receives the electric leakage reminding short message sent by the network side equipment through the short message receiving module and sends the electric leakage reminding short message to the short message interface module.
S406, the short message interface module displays the content of the electric leakage reminding short message.
In the technical solution provided in the embodiment of the present application, by adding a leakage reminding detection module to an application layer, a leakage reminding short message is identified, so as to trigger a re-registration process, an interactive chart may be shown in fig. 5, including:
S501, registering and connecting network side equipment by the network searching module.
S502, the network searching module reports the network residence state to the electric leakage reminding detection module.
The system for receiving the electric leakage reminding short message can be included, and the system for reporting the residence of the call service can be also included.
S503, when the network side equipment calls the terminal equipment, namely, is connected with the call processing module, the situation that the called party is not through occurs.
S504, the network side equipment inquires whether the terminal equipment opens the electric leakage reminding service.
And S505, if the electric leakage reminding service is started, the network side equipment sends an electric leakage reminding short message to the terminal equipment.
If the terminal equipment does not open the electric leakage reminding service, the electric leakage reminding short message does not need to be sent.
S506, the terminal equipment receives the electric leakage reminding short message sent by the network side equipment through the short message receiving module and sends the electric leakage reminding short message to the short message interface module.
S507, the short message interface module displays the content of the electric leakage reminding short message.
S508, the short message receiving module reports the short message content and the short message type of the electric leakage reminding short message to the electric leakage reminding detection module.
S509, the electric leakage reminding detection module identifies the content of the short message and determines whether the short message is the electric leakage reminding short message.
And S510, when the electric leakage reminds the short message, determining a target strategy according to the type of the short message, the receiving mode of the short message and the resident mode of the current call, and triggering the network searching module to realize network self-healing according to the target strategy.
S511, the network searching module re-registers the network.
When incoming call is received again, the terminal device can be used as a called party to establish call connection with a calling party.
The order of the steps is not limited, and for example, the order of S502, S503, S504, S505, and S506 is not limited, so long as the method can be implemented before S510. In addition, the steps S506 and S508 may be implemented through the same step or implemented separately, for example, the short message receiving module reports the content and the type of the received short message to the application layer, and broadcasts the short message at the application layer, the short message display module of the application layer displays the short message according to the content, and the electric leakage reminding detection module of the application layer identifies the content of the short message and determines whether the short message is an electric leakage reminding short message. The execution order of S508 and S507 is not limited.
The call processing module, the sms receiving module and the call processing module may be software modules located in another Modem different from the leakage reminding detection module, which is not limited in this embodiment of the present application.
Optionally, the above process of determining the type of the short message may be that in an Application Processor (AP) of the terminal device, the leakage reminding detection module determines the type of the short message according to whether the bottom layer reports an IMS short message or not, if not, according to a system of receiving the leakage reminding short message (i.e. a network residence icon when receiving the leakage reminding short message). If the network resident icon is 2G or 3G, the network resident icon is determined to be a CS short message, and if the network resident icon is not 2G and 3G but 4G or 5G, the short message type can be determined to be a NAS short message.
Optionally, the above process of determining the type of the short message may also be that the terminal device determines the type of the short message through a Modem (Modem). The Modem reports the short message type according to the channel of the electric leakage reminding short message, and if the electric leakage reminding short message is coming through the SIP message, the short message type is determined to be the IMS short message; if the NAS message comes through 4G or 5G, determining the type of the short message as the NAS short message; if the message comes in through the NAS message of 2G or 3G, the message is determined to be the CS message. Thus, the AP does not need to judge the type of the short message.
Examples of the methods provided herein are described in detail above. It is to be understood that the corresponding means, in order to carry out the functions described above, comprise corresponding hardware structures and/or software modules for carrying out the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The network connection device may be divided into functional modules according to the above method example, for example, each function may be divided into each functional module, or two or more functions may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that the division of the modules in this application is illustrative, and is merely a logic function division, and other division manners may be implemented in practice.
Fig. 6 shows a network connection device 600 provided in the present application, including: the system comprises a leakage reminding detection module 601, a short message module 602 and a network searching module 603;
the electric leakage reminding detection module 601 is configured to identify a first electric leakage reminding short message and obtain a short message transmitting party of the first electric leakage reminding short message.
The network searching module 602 is configured to obtain a current call residence system, where the current call residence system is used to characterize a communication system where a call service resides at a current moment.
The leakage reminding detection module 601 is further configured to execute a target policy according to a short message transmission mode and a current call residence mode.
The network searching module 603 is configured to re-register the call service according to the target policy.
Optionally, the short message transmission mode includes a short message type of the first electric leakage reminding short message and a short message receiving mode of the first electric leakage reminding short message, where the short message receiving mode is used for representing a communication mode of receiving the first electric leakage reminding short message.
Optionally, when the type of the short message is a NAS short message of the non-access stratum, the short message receiving system is NR, and the current call residence system is NR, the leakage reminding detection module 601 is specifically configured to register with the IP multimedia subsystem IMS again on the NR network.
Optionally, the leakage reminding detection module 601 is specifically configured to close the independent networking SA network when receiving the second leakage reminding short message after registering with the IMS on the NR network again.
Optionally, when the type of the short message is NAS short message, the short message receiving system is NR, and the current call residence system is NR, the leakage reminding detection module 601 is specifically configured to close the SA network.
Optionally, when the short message type is NAS short message, the short message receiving system is long term evolution LTE, and the current call residence system is LTE, the leakage reminding detection module 601 is specifically configured to register with the IMS again on the LTE network.
Optionally, the leakage reminding detection module 601 is specifically configured to close the IMS service when receiving the second leakage reminding short message after registering with the IMS on the LTE network again.
Optionally, when the short message type is NAS short message, the short message receiving system is LTE, and the current call residence system is LTE, the leakage reminding detection module 601 is specifically configured to close IMS service.
Optionally, the leakage reminding detection module 601 is specifically configured to execute a target policy according to a short message transmission mode, a current call residence mode and a screen state.
Optionally, when the short message type is an IMS short message, the short message receiving system is NR, the current call residence system is NR, and the screen state is a bright screen state, the leakage reminding detection module 601 is specifically configured to close the SA network.
Optionally, when the short message type is an IMS short message, the short message receiving system is NR, the current call residence system is NR, and the screen state is an off-screen state, the leakage reminding detection module 601 is specifically configured to register with the IMS again on the NR network.
Optionally, the leakage reminding detection module 601 is specifically configured to close the SA network when receiving the second leakage reminding short message after registering with the IMS on the NR network again.
Optionally, when the short message type is an IMS short message, the short message receiving system is LTE, and the current call residence system is LTE, the leakage reminding detection module 601 is specifically configured to register with the IMS again on the LTE network.
Optionally, the leakage reminding detection module 601 is specifically configured to re-register with the IMS on the LTE network when receiving the nth leakage reminding short message; the N-th electric leakage reminding short message is a received N-th electric leakage reminding short message, and N is an integer larger than 1.
Optionally, the leakage reminding detection module 601 is specifically configured to, when the nth leakage reminding short message is received and the screen state is a bright screen state, re-register with the IMS on the LTE network; and when the Nth electric leakage reminding short message is received and the screen state is the screen-off state, the registration is initiated to the core network again, and the registration is carried out to the IMS in the LTE network again.
Optionally, when the short message type is a circuit switched CS short message, the short message receiving system is a network system of the second generation mobile communication 2G/the third generation mobile communication 3G, and the current call residence system is LTE, the leakage reminding detection module 601 is specifically configured to register with the IMS again on the LTE network.
Optionally, the leakage reminding detection module 601 is specifically configured to re-register with the IMS on the LTE network when the screen state is a bright screen state; and when the screen state is the off-screen state, re-initiating registration to the core network and re-registering to the IMS on the LTE network.
Optionally, the leakage reminding detection module 601 is specifically configured to determine that the type of the short message is an IMS short message if the transmission channel of the first leakage reminding short message is a channel of a session initiation protocol SIP message; the leakage reminding detection module 601 is specifically configured to determine that the short message type is a CS short message if the transmission channel of the first leakage reminding short message is a channel of a non-access stratum NAS message and the resident network type icon when receiving the first leakage reminding short message is 2G or 3G; if the transmission channel of the first electric leakage reminding short message is a channel of the NAS message and the resident network type icon when the first electric leakage reminding short message is not 2G or 3G, determining that the short message type is the NAS short message.
Optionally, the apparatus 600 further includes a short message receiving module, configured to receive a short message to be detected.
The electric leakage reminding detection module 601 is specifically configured to determine whether the short message to be detected is a first electric leakage reminding short message according to the content of the short message to be detected and the identifier of the sender of the short message to be detected; and if the short message to be detected is the first electric leakage reminding short message, acquiring a short message transmission mode of the first electric leakage reminding short message.
The specific manner in which the apparatus 600 performs the network connection method and the resulting beneficial effects may be referred to in the related description of the method embodiments, and are not described herein.
The embodiment of the application also provides electronic equipment, which comprises the processor. The electronic device provided in this embodiment may be the terminal device 100 shown in fig. 1, for performing the network connection method described above. In case of an integrated unit, the terminal device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage actions of the terminal device, for example, may be configured to support the terminal device to execute steps executed by the display unit, the detection unit, and the processing unit. The memory module may be used to support the terminal device to execute stored program codes, data, etc. And the communication module can be used for supporting the communication between the terminal equipment and other equipment.
Wherein the processing module may be a processor or a controller. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital signal processing (digital signal processing, DSP) and microprocessor combinations, and the like. The memory module may be a memory. The communication module can be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip and other equipment which interact with other terminal equipment.
In an embodiment, when the processing module is a processor and the storage module is a memory, the terminal device according to this embodiment may be a device having the structure shown in fig. 1.
The present application also provides a computer readable storage medium, in which a computer program is stored, which when executed by a processor, causes the processor to execute the network connection method according to any one of the above embodiments.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the above-mentioned related steps to implement the network connection method in the above-mentioned embodiments.
The electronic device, the computer readable storage medium, the computer program product or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with respect to each other may be an indirect coupling or communication connection via interfaces, devices, or units, and the replacement units may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (21)

1. A method of network connection, comprising:
acquiring a short message transmission mode of a first electric leakage reminding short message;
acquiring a current call residence system, wherein the current call residence system is used for representing a communication system where a call service resides at the current moment;
executing a target strategy according to the short message transmission mode and the current call residence mode, wherein the target strategy is used for re-registering call service;
the short message transmission mode comprises a short message type of the first electric leakage reminding short message and a short message receiving mode of the first electric leakage reminding short message, and the short message receiving mode is used for representing a communication mode for receiving the first electric leakage reminding short message.
2. The method of claim 1, wherein when the short message type is a non-access stratum NAS short message, the short message receiving system is a new air interface NR, and the current call residence system is an NR, the target policy includes:
Re-registers with the IP multimedia subsystem IMS over the NR network.
3. The method of claim 2, wherein after the re-registering with the IMS over the NR network, the target policy further comprises:
and when the second electric leakage reminding short message is received, closing the independent networking SA network.
4. The method of claim 1, wherein when the short message type is NAS short message, the short message receiving system is NR, and the current call residence system is NR, the target policy is:
the SA network is shut down.
5. The method of claim 1, wherein when the short message type is NAS short message, the short message receiving system is long term evolution LTE, and the current call residence system is LTE, the target policy includes:
re-registering with the IMS over the LTE network.
6. The method of claim 5, wherein after the re-registering with the IMS over the LTE network, the target policy further comprises:
and when the second leakage reminding short message is received, the IMS service is closed.
7. The method of claim 1, wherein when the short message type is NAS short message, the short message receiving system is LTE, and the current call residence system is LTE, the target policy is:
The IMS service is turned off.
8. The method of claim 1, wherein the executing the target policy according to the sms transmission mode and the current call residence mode includes:
and executing the target strategy according to the short message transmission mode, the current conversation residence mode and the screen state.
9. The method of claim 8, wherein when the short message type is an IMS short message, the short message receiving format is NR, the current call residence format is NR, and the screen state is a bright screen state, the target policy is:
the SA network is shut down.
10. The method of claim 8, wherein when the short message type is an IMS short message, the short message receiving format is NR, the current call residence format is NR, and the screen state is an off-screen state, the target policy includes:
re-registers with the IMS over the NR network.
11. The method of claim 10, wherein the target policy further comprises, after re-registering with the IMS over the NR network:
and when the second electric leakage reminding short message is received, closing the SA network.
12. The method of claim 1, wherein when the short message type is an IMS short message, the short message receiving system is LTE, and the current call residence system is LTE, the target policy includes:
Re-registering with the IMS over the LTE network.
13. The method of claim 12, wherein the target policy is:
when the Nth leakage reminding short message is received, registering to the IMS on an LTE network again;
the Nth electric leakage reminding short message is a received Nth electric leakage reminding short message, and N is an integer larger than 1.
14. The method of claim 13, wherein the target policy is:
when the Nth leakage reminding short message is received and the screen state is the bright screen state, registering to the IMS on the LTE network again;
and when the Nth electric leakage reminding short message is received and the screen state is the screen-off state, the registration is initiated to the core network again, and the registration is carried out to the IMS in the LTE network again.
15. The method according to claim 1, wherein when the short message type is a circuit switched CS short message, the short message receiving system is a network system of second generation mobile communication 2G/third generation mobile communication 3G, and the current call residence system is LTE, the target policy includes:
re-registering with the IMS over the LTE network.
16. The method of claim 15, wherein the target policy is:
When the screen state is the bright screen state, registering to the IMS on the LTE network again;
and when the screen state is the off-screen state, re-initiating registration to the core network and re-registering to the IMS on the LTE network.
17. The method of claim 1, wherein the obtaining the short message type of the first leakage reminding short message includes:
if the transmission channel of the first electric leakage reminding short message is a channel of a Session Initiation Protocol (SIP) message, determining that the short message type is an IMS short message;
if the transmission channel of the first electric leakage reminding short message is a channel of a non-access stratum (NAS) message and the resident network type icon when receiving the first electric leakage reminding short message is 2G or 3G, determining that the short message type is CS short message;
and if the transmission channel of the first electric leakage reminding short message is a channel of the NAS message and the resident network type icon in the first electric leakage reminding short message is not 2G or 3G, determining that the short message type is the NAS short message.
18. The method according to any one of claims 1 to 17, wherein the obtaining a short message transmission manner of the first leakage reminding short message includes:
receiving a short message to be detected;
determining whether the short message to be detected is the first electric leakage reminding short message or not according to the short message content of the short message to be detected and the sender identification of the short message to be detected;
And if the short message to be detected is the first electric leakage reminding short message, acquiring a short message transmission mode of the first electric leakage reminding short message.
19. A network connection device, comprising: the electric leakage reminding detection module and the network searching module;
the electric leakage reminding detection module is used for identifying a first electric leakage reminding short message and acquiring a short message transmission mode of the first electric leakage reminding short message;
the network searching module is used for acquiring a current call residence system, wherein the current call residence system is used for representing a communication system where a call service resides at the current moment;
the electric leakage reminding detection module is used for executing a target strategy according to the short message transmission mode and the current conversation residence mode;
the network searching module is used for re-registering the call service according to the target strategy;
the short message transmission mode comprises a short message type of the first electric leakage reminding short message and a short message receiving mode of the first electric leakage reminding short message, and the short message receiving mode is used for representing a communication mode for receiving the first electric leakage reminding short message.
20. An electronic device, comprising: a processor, a memory, and an interface;
The processor, the memory and the interface cooperate to cause the electronic device to perform the method of any one of claims 1 to 18.
21. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, causes the processor to perform the method of any of claims 1 to 18.
CN202211348743.9A 2022-10-31 2022-10-31 Network connection method, network connection device, electronic equipment and computer readable storage medium Active CN116709220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211348743.9A CN116709220B (en) 2022-10-31 2022-10-31 Network connection method, network connection device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211348743.9A CN116709220B (en) 2022-10-31 2022-10-31 Network connection method, network connection device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116709220A CN116709220A (en) 2023-09-05
CN116709220B true CN116709220B (en) 2024-04-05

Family

ID=87834530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211348743.9A Active CN116709220B (en) 2022-10-31 2022-10-31 Network connection method, network connection device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116709220B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107182113A (en) * 2017-06-08 2017-09-19 奇酷互联网络科技(深圳)有限公司 Networking control method, device and the mobile terminal of multi-module mobile terminal
CN107466041A (en) * 2017-09-30 2017-12-12 奇酷互联网络科技(深圳)有限公司 Identify pseudo-base station method, device and mobile terminal
CN113438679A (en) * 2021-05-31 2021-09-24 荣耀终端有限公司 Communication system and user equipment for improving call completion rate of telephone under SA network
CN113891410A (en) * 2021-10-11 2022-01-04 维沃移动通信有限公司 IMS network registration method and device, terminal and readable storage medium
CN114189846A (en) * 2021-06-30 2022-03-15 荣耀终端有限公司 Method, system, electronic device and storage medium for avoiding missed call
WO2022152167A1 (en) * 2021-01-14 2022-07-21 华为技术有限公司 Network selection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107182113A (en) * 2017-06-08 2017-09-19 奇酷互联网络科技(深圳)有限公司 Networking control method, device and the mobile terminal of multi-module mobile terminal
CN107466041A (en) * 2017-09-30 2017-12-12 奇酷互联网络科技(深圳)有限公司 Identify pseudo-base station method, device and mobile terminal
WO2022152167A1 (en) * 2021-01-14 2022-07-21 华为技术有限公司 Network selection method and device
CN113438679A (en) * 2021-05-31 2021-09-24 荣耀终端有限公司 Communication system and user equipment for improving call completion rate of telephone under SA network
CN114189846A (en) * 2021-06-30 2022-03-15 荣耀终端有限公司 Method, system, electronic device and storage medium for avoiding missed call
CN113891410A (en) * 2021-10-11 2022-01-04 维沃移动通信有限公司 IMS network registration method and device, terminal and readable storage medium

Also Published As

Publication number Publication date
CN116709220A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN114449599B (en) Network link switching method based on electronic equipment position and electronic equipment
CN114079893B (en) Bluetooth communication method, terminal device and computer readable storage medium
CN114040242B (en) Screen projection method, electronic equipment and storage medium
US20220159551A1 (en) Network Search Method and Terminal Device
CN117014859A (en) Address book-based device discovery method, audio and video communication method and electronic device
CN117424952A (en) Incoming call display method and terminal equipment based on application
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
US11792631B2 (en) Emergency call method and user terminal
CN116709220B (en) Network connection method, network connection device, electronic equipment and computer readable storage medium
CN114079642B (en) Mail processing method and electronic equipment
CN110737916A (en) Communication terminal and processing method
CN115495716B (en) Local authentication method and electronic equipment
CN115460445B (en) Screen projection method of electronic equipment and electronic equipment
CN115792431B (en) Abnormal position detection method and electronic equipment
CN116703689B (en) Method and device for generating shader program and electronic equipment
CN114691248B (en) Method, device, equipment and readable storage medium for displaying virtual reality interface
CN116048831B (en) Target signal processing method and electronic equipment
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN116684520B (en) Shutdown method, electronic equipment, storage medium and chip
CN116668586B (en) Control method, terminal, server and storage medium for private color ring back tone service state
CN116405594B (en) Voice communication method and device
CN116795604B (en) Processing method, device and equipment for application exception exit
CN116707050B (en) Method and device for recording charge and discharge times, electronic equipment and readable storage medium
CN111801931B (en) Method for switching on and hanging up telephone when call occurs SRVCC switch
CN113254409B (en) File sharing method, system and related equipment

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