CN116506977B - Communication method, terminal and system - Google Patents
Communication method, terminal and system Download PDFInfo
- Publication number
- CN116506977B CN116506977B CN202310746774.8A CN202310746774A CN116506977B CN 116506977 B CN116506977 B CN 116506977B CN 202310746774 A CN202310746774 A CN 202310746774A CN 116506977 B CN116506977 B CN 116506977B
- Authority
- CN
- China
- Prior art keywords
- layer
- terminal
- plmn
- search
- modem
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000004891 communication Methods 0.000 title claims abstract description 59
- 230000004044 response Effects 0.000 claims abstract description 87
- 230000015654 memory Effects 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 5
- 238000010295 mobile communication Methods 0.000 description 19
- 230000001413 cellular effect Effects 0.000 description 15
- 230000005236 sound signal Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 230000001960 triggered effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 101150096310 SIB1 gene Proteins 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 239000007787 solid Substances 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 230000010267 cellular communication Effects 0.000 description 4
- 230000009977 dual effect Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a communication method, a terminal and a system, wherein the method comprises the following steps: when the NAS layer of the terminal detects that the modem is disconnected with the Public Land Mobile Network (PLMN) where the first SIM card resides, triggering the AS layer to search PLMN information. When the NAS layer determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search PLMN information, the NAS layer stops the AS layer from searching the PLMN information and triggers the modem to initialize. The PLMN search response information is used for indicating success or failure of the AS layer to search the PLMN information. When the modem is initialized, the NAS layer triggers the AS layer to search the PLMN information again. After the NAS layer acquires the PLMN corresponding to the first SIM card in the PLMN information reported by the AS layer, the modem in the terminal may reside in the PLMN corresponding to the first SIM card.
Description
Technical Field
The present application relates to the field of wireless communications, and in particular, to a communication method, terminal, and system.
Background
With the advent of the 4G/5G age, terminals are also handling daily tasks based on cellular networks more and more frequently. However, when a terminal is in mobile communication through a cellular network, the terminal is disconnected from the cellular network for various reasons (e.g., interference from some radio waves in the air during use of the terminal, reflection from a building and the like encountered when cellular signals propagate), resulting in the occurrence of a disconnection phenomenon. When the terminal is disconnected for a long time and is not recovered, the user needs to manually operate the terminal in an air mode or restart the terminal to reconnect the cellular network, so that the operation of the user is very inconvenient and the time for recovering the mobile communication is slow.
Disclosure of Invention
The application provides a communication method, a terminal and a system, which realize that the terminal can automatically trigger the modem to restore the connection between the terminal and the network equipment without receiving the touch operation of a user, and the operation is more convenient and the time for restoring the cellular communication is faster. Meanwhile, the user can not feel the device.
In a first aspect, the present application provides a communication method, comprising: when the non-access NAS layer of the first terminal detects that the modem is disconnected with the Public Land Mobile Network (PLMN) where the first SIM card resides, the access AS layer is triggered to search for the first PLMN information. The terminal comprises the first SIM card and the modem, and the modem comprises the NAS layer and the AS layer. When the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, the NAS layer of the first terminal stops the AS layer from searching the first PLMN information and triggers the modem to initialize. The PLMN search response information is used for indicating success or failure of the AS layer to search PLMN information. When the modem is initialized, the NAS layer of the first terminal triggers the AS layer to search for second PLMN information. After the NAS layer in the first terminal acquires the PLMN corresponding to the first SIM card in the second PLMN information reported by the AS layer, the modem in the first terminal resides in the PLMN corresponding to the first SIM card.
In one possible implementation, the first terminal further includes a second SIM card. When the non-access NAS layer of the first terminal detects that the modem is disconnected with the Public Land Mobile Network (PLMN) where the first SIM card resides, triggering the access AS layer to search for the first PLMN information, the method further comprises: the first terminal communicates through the second SIM card. The NAS layer of the first terminal acquires a first call duration of the first terminal for calling through the second SIM card. The first preset duration is the sum of the first call duration and a fixed duration.
In a possible implementation manner, when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem to initialize, including: when the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, and the screen-off duration of the first terminal exceeds a second preset time period after determining that the PLMN searching response information reported by the AS layer is not acquired, the NAS layer of the first terminal stops the AS layer to search the first PLMN information, and triggers the modem to initialize.
In one possible implementation, the first terminal includes a second SIM card. When the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, and when the off-screen duration of the first terminal exceeds a second preset duration after determining that PLMN search response information reported by the AS layer is not obtained, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem to initialize, specifically including: when the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, and the screen-off duration of the first terminal exceeds a second preset time period after determining that the PLMN searching response information reported by the AS layer is not acquired, and determining that the second SIM card does not have background service in operation, the NAS layer of the first terminal stops the AS layer from searching the first PLMN information, and triggers the modem to initialize.
In one possible implementation manner, before the non-access NAS layer of the first terminal detects that the modem is disconnected from the public land mobile network PLMN where the first SIM card resides, the method further includes, before triggering the access AS layer to search for the first PLMN information: when the NAS layer of the first terminal detects that the modem is disconnected with the PLMN where the first SIM card resides, triggering the AS layer to search for third PLMN information. When the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the third PLMN information, the NAS layer of the first terminal stops the AS layer from searching the third PLMN information and triggers the modem to initialize. And triggering the AS layer to search fourth PLMN information by the NAS layer of the first terminal when the modem is initialized. After the NAS layer in the first terminal acquires the PLMN corresponding to the first SIM card in the fourth PLMN information reported by the AS layer, the modem in the first terminal resides in the PLMN corresponding to the first SIM card.
In one possible implementation manner, when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, and after determining that PLMN search response information reported by the AS layer is not obtained, the duration of screen-off of the first terminal exceeds a second preset duration, and determining that the second SIM card does not have a background service in operation, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem to initialize, specifically includes: when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, and the screen-off duration of the first terminal exceeds a second preset time period after determining that the PLMN search response information reported by the AS layer is not acquired, determining that the second SIM card does not have background service in operation, and determining that the difference between a first time point and a time point when the NAS layer of the first terminal triggers the AS layer to search the fourth PLMN information is greater than a third preset time period, stopping the AS layer of the first terminal from searching the first PLMN information, and triggering the modem to initialize. The first time point is a time point when the first terminal determines that the second SIM card does not have background service in operation.
In a possible implementation manner, when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem to initialize, including: when the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, the NAS layer of the first terminal stops the AS layer from searching the first PLMN information. The NAS layer in the first terminal triggers the modem to read the user configuration file and the international mobile subscriber identity and initialize system settings.
In a possible implementation manner, when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, before the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information and triggers the modem to initialize, the method further includes: and the cloud server sends a first instruction to the first terminal. The first instruction is configured to instruct the first terminal to initialize the modem and search PLMN information again after determining that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search the first PLMN information.
In one possible implementation manner, before the cloud server sends the first instruction to the first terminal, the method further includes: the cloud server receives network searching trigger times, equipment model identifiers and chip model identifiers sent by one or more terminals connected with the cloud server. The network searching triggering times refer to times that PLMN searching response information reported by the AS layer is not acquired in a first preset time period after the terminal triggers the AS layer to search PLMN information. And the cloud server judges whether the network searching triggering times are related to the chip model identification or not every a first preset time period. When the cloud server determines that the network searching trigger frequency is irrelevant to the chip model identification, the cloud server sends the first instruction to all terminals under the equipment model identification with the average trigger frequency larger than a first preset threshold value.
In one possible implementation, the method further includes: when the cloud server determines that the network searching trigger frequency is related to the chip model identification, the cloud server judges whether the network searching trigger frequency is related to the equipment model identification. When the cloud server determines that the network searching triggering times are related to the equipment model identification, the cloud server sends the first instruction to all terminals under the equipment model identification with the average triggering times larger than a first preset threshold value under the chip model identification with the network searching triggering times larger than a second preset threshold value.
In one possible implementation, the method further includes: when the cloud server determines that the network searching triggering times are not related to the equipment model identification, the cloud server sends the first instruction to all terminals under the chip model identification of which the network searching triggering times are larger than a second preset threshold value.
In one possible implementation, the method further includes: the cloud server sends a second instruction to all terminals under the equipment model identification which has received the first instruction and the average triggering frequency is smaller than a third preset threshold value. The second instruction is used for indicating the terminal not to execute the operation of initializing the modem and searching the PLMN information again after the terminal does not acquire the PLMN searching response information reported by the AS layer in the first preset time period after the AS layer is triggered to search the first PLMN information.
In a second aspect, an embodiment of the present application provides a terminal, which is a first terminal, including: one or more processors, one or more memories, a modem, and a SIM card. The one or more memories are coupled to the one or more processors and the modem, the one or more memories being configured to store computer program code comprising computer instructions that, when executed by the modem, cause the terminal to perform the steps performed by the terminal in any of the possible implementations of the first aspect.
In a third aspect, embodiments of the present application provide a chip system comprising a processing circuit and an interface circuit for receiving code instructions and transmitting to the processing circuit, the processing circuit being configured to execute the code instructions to cause the chip system to perform a method according to any one of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of the possible implementations of the first aspect.
Drawings
Fig. 1A is a schematic diagram of a communication system according to an embodiment of the present application;
FIGS. 1B-1E are a set of user interface diagrams provided in accordance with an embodiment of the present application;
FIGS. 2A-2B are a set of user interface diagrams provided in accordance with an embodiment of the present application;
FIG. 3A is a schematic diagram of another communication system according to an embodiment of the present application;
fig. 3B is a schematic diagram of a communication protocol architecture of a terminal according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a specific communication method according to an embodiment of the present application;
fig. 5 is a schematic flow chart of another specific communication method according to an embodiment of the present application;
Fig. 6 is a schematic flowchart of a specific procedure for determining whether to send an opening instruction by a cloud server according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of a cloud server according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure is meant to encompass any or all possible combinations of one or more of the listed items. In embodiments of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as implying relative importance or as implying an order of magnitude of the indicated technical features. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
Fig. 1A illustrates a communication system in which a terminal is connected to a network device according to an embodiment of the present application.
As shown in fig. 1A, the communication system may include a network device (including an access network device and a core network device) and a terminal device connected to the network device. In the embodiment of the present application, fig. 1A is only a schematic diagram, and the present application is not limited thereto, for example, the communication system shown in fig. 1A may include one or more network devices, one or more terminals, and fig. 1A only illustrates one network device and one terminal.
The network device may be a transmission receiving node (transmission reception point, TRP), a base station, a relay station, a node, or an access point, etc. The network device may be a network device in a 5G communication system or a network device in a future evolution network. The network device may be a base transceiver station (base transceiver station, BTS) in a global system for mobile communications (global system for mobile communication, GSM) or code division multiple access (code divisionmultiple access, CDMA) network, a base station (NodeB, NB) in wideband code division multiple access (wideband code division multiple access, WCDMA), a base station (evolutional NodeB, eNB) in long term evolution (long term evolution, LTE), a base station (gnob, gNB) in a new air interface (newradio, NR), etc.
The terminal device (terminal) may be a User Equipment (UE), an access terminal, a UE unit, a UE station, a mobile station, a remote terminal, a mobile device, a UE terminal, a UE agent, a UE device, or the like. The access terminal may also be a cellular telephone, a personal digital assistant (personal digitalassistant, PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal in a 5G network or a terminal in a future evolved public land mobile network (public land mobile network, PLMN), etc.
In the embodiment of the application, the network equipment can comprise a carrier wave of a low frequency band, such as a carrier wave of a B28/n28 frequency band; the network device may also include a carrier in a high frequency band, such as a carrier in an n41 band. The terminal may use a carrier in the B28/n28 band, or a carrier in the n41 band to perform uplink transmission with the network device (i.e., the terminal transmits a signal to the network device), and perform downlink transmission with the network device (i.e., the network device transmits a signal to the terminal). In this way, the terminal can perform cellular mobile communication through the network device.
When the terminal is connected with the network equipment, the terminal is disconnected with the current network equipment due to interference of certain radio waves in the air, blocking when the cellular signals are transmitted, reflection of a building and the like in the process that the user uses the terminal to carry out mobile communication based on the cellular network, so that the network disconnection phenomenon occurs. When the terminal detects a disconnection, the modem may be triggered to search for PLMN information so that the terminal may reconnect to the network device. In the embodiment of the application, searching for PLMN information means that the terminal scans the PLMN information of the area where the terminal is located.
However, if the modem searches for PLMN information after the terminal is disconnected from the network, the software program runs abnormally (for example, the modem protocol stack runs abnormally, other running processes collide with the program in the modem, etc.), so that the modem cannot learn whether the PLMN information searching is successful (i.e. the PLMN information searching is not responded), the terminal cannot timely recover the connection with the network device, and then the situation of long-time disconnection occurs.
In this case, the methods for the terminal to resume the connection with the network device generally include the following methods:
(1) User manually resumes connection of terminal with network device through flight mode
As shown in fig. 1B, the terminal may display the desktop 110 when the terminal and the network device are disconnected. The desktop 110 may include a status bar 111, where the status bar 111 may include one or more signal strength indicators of mobile communication signals (also may be referred to as cellular signals), signal strength indicators of wireless fidelity (Wi-Fi) signals, battery status indicators, time indicators, and the like. When the terminal detects a disconnection, a network disconnection indicator 111A may be displayed in the status bar 111.
As shown in fig. 1C, the terminal may detect a touch operation by which the user slides from top to bottom (abbreviated as "down") from the status bar 111. In response to the touch operation, the terminal may display a drop-down setting interface 112 on the desktop 110, as shown in fig. 1D. The drop-down settings interface 112 includes one or more functionality controls (e.g., bluetooth functionality control, flashlight functionality control, flight mode functionality control 112A, etc.), brightness settings indicator bars, and the like.
As shown in fig. 1D, the terminal may detect a touch operation of the user selecting the flight mode functionality control 112A. In response to the touch operation, the terminal may turn off a function related to mobile communication in the modem, and place the terminal in an in-flight mode. At this time, the modem does not transmit signals to the base station, nor does it receive signals transmitted by the base station. In the flight mode, the terminal cannot perform all functions of receiving and making calls (except emergency calls), sending and receiving short messages, and the like, which need mobile communication (which can be simply called communication) based on a cellular network.
As shown in fig. 1E, after the terminal is in the flight mode for a period of time (1 minute in fig. 1E), a touch operation in which the user selects the flight mode functionality control 112A again may be detected. In response to the touch operation, the terminal may exit the flight mode, and the modem initializes and searches for PLMN information again, so that the terminal may reestablish a connection with the network device based on the searched PLMN information.
The modem initialization may include, among other things, the modem reading information such as a subscriber profile, an international mobile subscriber identity (international mobile subscriber identification number, IMSI), etc., stored in a subscriber identity module (subscriber identity module, SIM, which may also be referred to as a SIM card), initializing system settings, etc. The following embodiments will be described in detail with respect to a step description in which the modem initializes and searches for PLMN information again and then reestablishes connection with the network apparatus based on the searched PLMN information.
(2) Restoring connection between terminal and network equipment by user by manually restarting terminal
As shown in fig. 2A, the terminal may show the desktop 110 when the terminal and the cellular network are disconnected. The description of the desktop 110 may refer to the description of the embodiment shown in FIG. 1B. The terminal can detect the touch operation of the user for pressing the power key at the side of the terminal for a long time. In response to the touch operation, the terminal may display a power operation interface.
As shown in fig. 2B, the user interface 120 displayed by the terminal is the power operation interface described above. The user interface 120 can include a restart control 121A and a shutdown control 121B. The terminal may detect a touch operation by the user on the restart control 121A. In response to the touch operation, the terminal may restart (simply referred to as reboot). Under the condition that the terminal is restarted, the modem is powered on again after being powered off, and the PLMN information is initialized and searched again, so that the terminal can reestablish connection with the network equipment based on the searched PLMN information.
As can be seen from the above description, whether the user manually resumes the connection of the terminal to the network device through the flight mode or the terminal is restarted, the modem stops searching for PLMN information after searching for PLMN information is not responded, thereby terminating abnormal software program operation, and then the modem initializes and searches for PLMN information again. When the modem is initialized and searches for the PLMN information again, the software program can not generate abnormal operation, so the modem can search for the PLMN information normally and know whether the PLMN information is successful (i.e. the network searching has a response), and the terminal can establish connection with the network equipment based on the searched PLMN information, so the terminal can resume mobile communication based on the cellular network. However, both of these methods require manual operation by the user, which is inconvenient, and the time for recovering the cellular communication is slow and the efficiency is too low.
Therefore, the embodiment of the application provides a communication method. The method may include: when the non-access NAS layer of the terminal 100 detects that the modem is disconnected from the public land mobile network PLMN where the first SIM card resides, the access AS layer is triggered to search PLMN information. When the NAS layer of the terminal 100 determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for PLMN information, the NAS layer of the terminal 100 stops the AS layer from searching for PLMN information, and triggers modem initialization. The PLMN search response information is used for indicating success or failure of the AS layer to search the PLMN information. When the modem initialization is completed, the NAS layer of the terminal 100 triggers the AS layer to search PLMN information again. After the NAS layer in the terminal 100 acquires the PLMN corresponding to the first SIM card in the PLMN information reported by the AS layer, the modem in the terminal 100 may reside in the PLMN corresponding to the first SIM card.
In the embodiment of the present application, the modem searches PLMN information again, namely: after determining that the PLMN searching information is not responded, the NAS layer in the modem stops the AS layer from searching the PLMN information, and then the NAS layer triggers the modem to initialize and enables the AS layer to search the PLMN information again.
In the communication method, the terminal does not need to receive touch operation of a user, can automatically trigger the modem to restore connection between the terminal and the network equipment, is more convenient to operate, and is quicker in time for restoring cellular communication. Meanwhile, the user can not feel the device.
Next, detailed description will be given of specific implementation of the communication system and the communication method provided by the embodiment of the present application.
Fig. 3A schematically illustrates a communication system 10 according to an embodiment of the present application.
As shown in fig. 3A, the communication system 10 may include: a terminal 100 (i.e. the aforementioned terminal), a cloud server 200 (optional) and a network device 300.
The related description of the terminal 100 may refer to the description in fig. 1A, and is not repeated herein. The embodiment of the present application does not limit the specific type of the terminal 100. One SIM card may be provided on the terminal 100, or two or more SIM cards may be provided.
The related description of the network device 300 may refer to the description in fig. 1A, which is not repeated here.
As shown in fig. 3A, the terminal 100 may establish a wireless communication connection with the cloud server 200, and the terminal 100 and the cloud server 200 may transmit data information to each other through the above wireless communication connection. For example, the terminal 100 may send data information such as the number of network searching triggers, the device model identifier, and the chip model identifier to the cloud server 200 through the wireless communication connection; the cloud server 200 may determine whether to send an opening instruction or a closing instruction to the terminal 100 every preset time period D1 based on the received data information such as the number of network searching triggers, the device model identifier, and the chip model identifier. The on command may be used to trigger the terminal 100 to execute the communication method shown in the subsequent fig. 4 or fig. 5 to automatically trigger the modem to re-search the PLMN information by the terminal 100, and the off command may be used to trigger the terminal 100 to no longer execute the communication method shown in the subsequent fig. 4 or fig. 5 to automatically trigger the modem to re-search the PLMN information. Detailed description of the embodiments the following embodiments will be described in detail, and are not repeated here.
Specifically, the wireless communication connection may be one or more of a cellular communication 2G/3G/4G/5G network connection, a wireless fidelity direct (wireless fidelity direct, wi-Fi direct) or a wireless fidelity software access point (wirelessfidelitysoftware access point, wi-Fi softAP), and so on.
In one possible implementation, the terminal 100 may establish a wired communication connection with the cloud server 200 for data interaction. For example, the terminal 100 may establish a wired connection with the cloud server 200 through a Universal Serial Bus (USB), and transmit data information to each other based on the wired communication connection.
The architecture of communication system 10 shown in fig. 3A is not intended to be limiting in particular to communication system 10, and in other embodiments of the present application, communication system 10 may include more or less electronic devices than that of fig. 3A, or may include different types of electronic devices than those of fig. 3A.
Fig. 3B illustrates a communication protocol architecture of the terminal 100 according to an embodiment of the present application.
AS shown in fig. 3B, the communication protocol architecture of the terminal 100 may include a NAS layer and an AS layer. Wherein the NAS layer and the AS layer may be included in the modem. The NAS layer is a set of protocols that may be used for the terminal 100 to transmit non-wireless signaling messages and for user management, security management, session management, etc. The AS layer may be responsible for the functions associated with the radio interface and is not limited to the radio access network and the radio part of the terminal 100, but also supports functions associated with the core network such AS radio bearer management, channel coding and modulation, etc.
In the embodiment of the application, the NAS layer can trigger the AS layer to search PLMN information, and the AS layer can send PLMN search response information and the like to the NAS layer. Specific implementation may refer to the steps and specific descriptions in the embodiments shown in fig. 4 and fig. 5 described below.
Fig. 4 illustrates a specific flow of implementing the present communication method by the terminal 100 provided with one SIM card.
In this embodiment, the SIM card on the terminal 100 may be referred to as a first SIM card.
As shown in fig. 4, the communication method in this embodiment may include the following specific procedures:
and S401, triggering the AS layer to search PLMN information when the NAS layer detects that the first SIM card is disconnected.
In the embodiment of the present application, the "disconnection of the first SIM card" means that the modem in the terminal 100 is disconnected from the PLMN where the first SIM card resides.
In the embodiment of the application, the NAS layer can acquire the network state information of the first SIM card and determine whether the first SIM card is in a disconnected state according to the network state information of the first SIM card. If the NAS layer judges that the first SIM card is in a disconnected state through the network state information of the first SIM card, the AS layer can be triggered to search PLMN information; if the NAS layer determines that the first SIM card is in the networking state according to the network state information of the first SIM card, no operation can be executed. In a specific implementation, the NAS layer may also detect whether the first SIM card is disconnected in other manners, which is not limited by the present application.
In the embodiment of the present application, when the AS layer searches for PLMN information, the AS layer may receive a system message block SIB1 broadcasted by one or more base stations in the area where the terminal 100 is located. The SIB1 message may include, but is not limited to, PLMN information. When the AS layer parses out one or more SIB1 messages, one or more PLMN information may be obtained. The one or more PLMN information may include a PLMN corresponding to the first SIM card. The PLMN information may include, among other things, a mobile country code (mobile country code, MCC) and a mobile network code (mobile network code, MNC) for identifying the operator provided PLMN. The MCC code and MNC code in the PLMN corresponding to the first SIM card should be consistent with the MCC code and MNC code stored in the first SIM card.
S402, when the NAS layer triggers the AS layer to search PLMN information, the NAS layer judges whether the situation that the PLMN information search is not responded or not occurs.
The PLMN information search is not responsive (hereinafter may be simply referred to AS a search non-response), that is, the NAS layer does not receive PLMN search response information sent by the AS layer. The PLMN search response information may be used to indicate to the NAS layer whether the AS layer search for PLMN information was successful or failed.
In the embodiment of the application, the NAS layer can determine that PLMN information searching is responsive if the NAS layer receives PLMN searching response information sent by the AS layer within a preset appointed time period T1 after triggering the AS layer to search PLMN information; the NAS layer can determine that PLMN information searching is not responsive if PLMN searching response information sent by the AS layer is not received within a preset appointed time T1 after triggering the AS layer to search the PLMN information.
In the embodiment of the present application, the specific implementation of this step may include the following:
S402A, when the NAS layer triggers the AS layer to search PLMN information, the NAS layer sets a timer S1 of a specified duration T1.
In the embodiment of the application, the value of the designated duration T1 can be preferably the maximum duration (for example, 480 seconds, etc.) of the AS layer full-band PLMN information searching, so that the situation that the AS searches for the PLMN information too slowly to cause the NAS layer to misjudge that the PLMN information searching is unresponsive can be avoided.
In a specific implementation, the specified duration T1 may also be other preset values, which is not limited by the present application.
And S402B, when the timer S1 counts to the appointed duration T1 and the NAS layer does not acquire PLMN searching response information reported by the AS layer, the NAS layer determines that PLMN searching is not responsive.
S403, when the NAS layer determines that the PLMN information search has not responded, the NAS layer determines whether the off-screen state of the terminal 100 is greater than a preset specified duration T2.
In the embodiment of the present application, whether the off-screen state of the terminal 100 is greater than the preset specified duration T2 refers to: after the NAS layer determines that the PLMN search response information reported by the AS layer is not acquired, whether the duration of screen-off of the terminal 100 exceeds the specified duration T2 is determined. That is, the off-screen period of the terminal 100 is started after the NAS layer determines that the PLMN information search is not responsive.
In the embodiment of the present application, the NAS layer may determine whether the current terminal 100 is in the off-screen state through the screen state parameter. For example, the NAS layer acquires the current screen state parameter "TRUE" from the screen driver, determines that the screen is in the bright screen state, and determines that the screen is in the off screen state if the screen state parameter is "FALSE". The bright screen state may refer to a state in which all pixel points on the screen of the terminal 100 are lit. The off-screen state may refer to a state in which the screen of the terminal 100 is dormant to be a black screen, no interface element is displayed, but other devices and programs normally operate. In a specific implementation, the NAS layer may also detect the off-screen status in other manners, which is not limited by the present application.
In the embodiment of the application, the NAS layer can determine whether the user uses the mobile phone by judging whether the screen-off state of the terminal 100 is greater than the preset appointed time length T2, so that the effect that the user does not feel can be realized.
In the embodiment of the present application, when the timer S1 has not counted to the specified duration T1, and the NAS layer acquires PLMN search response information reported by the AS and used for indicating success/failure of the AS layer to search PLMN information, the NAS layer may end the present procedure.
S404, when the NAS layer determines that the screen-off state of the terminal 100 is greater than the specified time length T2, the NAS layer judges whether the current time point is greater than or equal to the preset specified time length T3 from the moment when the modem re-searches the PLMN information after the last search is not responded.
In the embodiment of the present application, the "current time point" may refer to: the NAS layer determines a point in time when the off-screen state of the terminal 100 is greater than the specified period T2. "Modem re-searches PLMN information after last search no response" refers to: the communication method of the embodiment shown in fig. 4 was performed the previous time and the NAS layer triggered the modem to re-search for PLMN information.
In the embodiment of the present application, the execution of this step can avoid the situation that the terminal 100 searches for PLMN information again due to the search non-response triggering modem too frequently, thereby reducing the power consumption of the terminal 100.
In the embodiment of the present application, the specific implementation of this step may be as follows:
S404A, when the NAS layer determines that the screen-off state of the terminal 100 is greater than the preset specified duration T2, the NAS layer judges whether the frequent self-healing protection timer S3 counts to the preset specified duration T3.
The starting point of the frequent self-healing protection timer S3 may be the point of time when the terminal 100 re-searches for PLMN information by searching for a non-response trigger modem.
S404B, when the frequent self-healing protection timer S3 is not timed to the appointed duration T3 and is still running, the NAS layer determines that the time of searching the PLMN information again by the modem after the last searching of non-response is smaller than the appointed duration T3; when the frequent self-healing protection timer S3 counts to the appointed duration T3 and stops running, the NAS layer determines that the moment of searching the PLMN information again by the modem after the last search is not responded is larger than or equal to the appointed duration T3.
S405, when the NAS layer determines that the time from the current time point to the time when the modem re-searches for PLMN information after the last search does not respond is greater than or equal to the specified duration T3, the NAS layer may trigger the modem to re-search for PLMN information.
In the embodiment of the present application, the manner in which the NAS layer triggers the modem to search for PLMN information again may be as follows:
(1) The NAS layer may send an air mode opening instruction to the application processor (application processor, AP), and after receiving the air mode opening instruction, the AP opens an air mode, terminates the AS layer to search PLMN information, and closes the mobile communication function of the modem, so that the terminal 100 is in the air mode. Then, after a preset designated period of time P1, the NAS layer sends an air mode shutdown instruction to the AP. After receiving the flight mode closing instruction, the AP may cause the terminal 100 to exit the flight mode, trigger the modem to initialize and search PLMN information again, and the NAS layer may obtain PLMN search response information sent by the AS layer, so that the first SIM card may connect to the network device through the modem based on the PLMN corresponding to the first SIM card in the searched PLMN information. For a description of the flight mode, reference is made to the preceding description.
(2) The NAS layer can trigger the modem to restart, namely, the modem is powered off firstly and then powered on, so that the modem is triggered to search PLMN information again, and the NAS layer can acquire PLMN search response information sent by the AS layer, so that the first SIM card can be connected with network equipment through the modem based on the PLMN corresponding to the first SIM card in the searched PLMN information. In this manner, when the modem is restarted, the terminal 100 is not restarted.
In the embodiment of the present application, the modem re-searches the PLMN information, and the NAS layer may obtain PLMN search response information sent by the AS layer, and obtain a PLMN corresponding to the first SIM card in one or more PLMN information reported by the AS layer, so that a specific implementation manner in which the modem in the terminal 100 may reside in a PLMN corresponding to the first SIM card may be AS follows:
the NAS layer stops the AS layer from searching PLMN information and then triggers the modem to initialize. Reference is made to the foregoing description for specific description of modem initialization.
b. When the modem receives SIB1 information sent by one or more base stations through the AS layer, and analyzes the one or more SIB1 information to obtain one or more PLMN information, the AS layer can send PLMN search response information indicating that PLMN information search is successful to the NAS layer; when the AS layer cannot acquire PLMN information, the AS layer may send PLMN search response information indicating PLMN information search failure to the NAS layer.
c. When the AS layer in the modem acquires one or more pieces of PLMN information, the AS layer can send PLMN corresponding to the first SIM card in the one or more pieces of PLMN information to the NAS layer.
And d, selecting a PLMN (called PLMN 1) from PLMNs corresponding to the received first SIM card by the modem through the NAS layer according to a preset PLMN priority sequence.
After selecting the PLMN1, the NAS layer in the modem triggers the AS layer to search the cell with the strongest cellular signal in the PLMN1, including completing downlink synchronization between the terminal 100 and the cell, obtaining the identifier of the current cell, receiving and decoding the system information on the broadcast channel, and establishing normal connection with the cell. The cell refers to a range covered by a signal of one base station.
And f, registering the modem to the cell through the NAS layer and the AS layer to complete the connection with the network equipment, so that the modem can reside in the PLMN corresponding to the first SIM card.
S406, when the NAS layer determines that the off-screen state of the terminal 100 is less than the specified duration T2, the NAS layer performs step S403 every preset time period D2, and performs the subsequent steps based on S403.
In the embodiment of the present application, when the NAS layer determines that the off-screen state of the terminal 100 is less than the preset specified duration T2, the NAS layer may set the polling timer S4. The time duration T4 of each of the polling timers S4 is the same as the duration of the preset period D2. When the polling timer S4 counts the time period T4, the NAS layer again determines whether the off-screen state of the terminal 100 is greater than a preset specified period T2. If it is determined that the off-screen state is greater than the preset specified duration T2, the NAS layer executes step S404 and the subsequent flow; if the screen-off state is determined to be smaller than the preset designated time length T2, the NAS layer continues to start the polling timer S4 for timing, and the step is repeatedly executed.
S407, when the NAS layer determines that the current time point is less than the designated time period T3 from the time when the modem re-searches for PLMN information after the last search is not responsive, the NAS layer may end the procedure.
Wherein, the related description of triggering the modem to re-search the PLMN information may refer to the foregoing step S405.
In another implementation, when the NAS layer determines that the current time point is less than the specified duration T3 from the time when the modem re-searches for PLMN information after the last search for no response, the NAS layer may wait until the time when the modem re-searches for PLMN information after the last search for no response is greater than or equal to the specified duration T3, and the NAS layer triggers the modem to re-search for PLMN information.
In another implementation, the execution subject of S402 to S407 may be the application processor AP, which is not limited in this aspect of the present application.
In another implementation, S403, S404 are optional steps.
If S403 is not executed and S404 is executed, the "current time point" in S404 may refer to: the NAS layer determines a point in time when the PLMN information search is unresponsive.
Fig. 5 illustrates a specific flow of implementing the present communication method by the terminal 100 provided with two SIM cards.
In this embodiment, one SIM card on the terminal 100 may be referred to as a first SIM card, and the other Zhang Kake as a second SIM card.
As shown in fig. 5, the communication method in this embodiment may include the following specific procedures:
and S501, triggering the AS layer to search PLMN information when the NAS layer detects that the first SIM card is disconnected.
For the description of this step, reference may be made to the description in S401 described earlier.
S502, when the NAS layer triggers the AS layer to search PLMN information, the NAS layer judges whether the situation that the PLMN information search is not responded or not occurs.
The description of the PLMN information search non-response may refer to the description of step S402.
In the embodiment of the application, the NAS layer can determine that PLMN information searching is responsive if the NAS layer receives PLMN searching response information sent by the AS layer within a preset appointed time period T1 after triggering the AS layer to search PLMN information; the NAS layer can determine that PLMN information searching is not responsive if PLMN searching response information sent by the AS layer is not received within a preset appointed time T1 after triggering the AS layer to search the PLMN information.
In the embodiment of the present application, the specific implementation of this step may be as follows:
S502A, when the NAS layer triggers the AS layer to search PLMN information, the NAS layer sets a timer S1 with a specified duration T5.
For the explanation of this step, reference may be made to the description in S402A described earlier.
S502B, optionally, when the NAS layer detects that the second SIM card is talking, the NAS layer stops the timer S1 and records the remaining duration of the timer S1.
In some application scenarios, when the timer S1 is counting and has not counted to the specified duration T5, the terminal 100 may perform voice service using the second SIM card (i.e. the second SIM card described above is talking). However, the terminal 100 provided with the dual SIM card generally employs a dual card dual standby single pass (dual SIM dualstandby, DSDS), and thus, the terminal 100 is configured with only one radio frequency module including a radio frequency transmit path and a radio frequency receive path. When the terminal 100 uses the second SIM card to make a call, because the radio frequency module is occupied by the second SIM card, the data service performed by the first SIM card will be interrupted by the terminal, and the AS layer cannot search PLMN information, so when the NAS layer detects that the second SIM card is making a call, the NAS layer needs to stop the timer S1 and record the remaining duration of the timer S1.
In the embodiment of the application, the NAS layer can acquire the call state parameter of the second SIM card and determine whether the second SIM card is in call according to the call state parameter of the second SIM card. In a specific implementation, the application is not limited with respect to how the NAS layer detects that the second SIM card is talking.
And S502C, optionally, when the NAS layer detects that the second SIM card ends the call, starting a timer S1 according to the recorded residual duration.
In the embodiment of the application, the NAS layer can acquire the call state parameter of the second SIM card and determine whether the second SIM card finishes the call according to the call state parameter of the second SIM card. In a specific implementation, the application is not limited with respect to how the NAS layer detects that the second SIM card ends the call.
In the embodiment of the present application, the foregoing "start the timer S1 according to the remaining duration of the recording" refers to: when the second SIM card ends the call and starts the timer S1 again, the timer S1 can be judged to be overtime when the timer S1 counts the recorded residual duration. Thus, the total duration counted by the timer S1 is still the specified duration T5. That is, the total time counted by the timer S1=the time counted by the timer S1 before the second SIM card calls+the time counted by the timer S1 after the second SIM card ends the call.
For example, the specified duration T5 preset by the timer S1 is 15 seconds. When the second SIM card is talking, the timer S1 has timed for 5 seconds, at which time the NAS layer stops the timer S1 and records the remaining duration for 10 seconds. When the second SIM card ends the call, the NAS layer starts the timer S1 again, and the timer S1 counts up to 10 seconds, namely, the timer S1 is judged to be overtime. Thus, the total duration counted by the timer S1 is still 15 seconds of the preset specified duration.
In the embodiment of the present application, "the second SIM card is talking" means that the terminal 100 uses the second SIM card to execute the voice service, and "the second SIM card ends talking" means that the terminal 100 ends the voice service executed by using the second SIM card.
S502D, when the total time counted by the timer S1 is the designated time T5 and the NAS layer does not acquire PLMN searching response information reported by the AS layer, the NAS layer determines that PLMN searching is unresponsive.
For the description of the total time duration counted by the timer S1, reference is made to the foregoing description.
In the embodiment of the present application, if the timer S1 is not counting the specified duration T5, and the terminal 100 has the voice service executed by the second SIM card, the specified duration t1=the specified duration t5+the voice service duration of the second SIM card; if the terminal 100 does not perform the voice service through the second SIM card, the specified duration t5=the specified duration T1.
S503, when the NAS layer determines that the PLMN information search does not respond, the NAS layer judges whether the screen-off state of the terminal 100 is larger than a preset appointed duration T2.
For the explanation of this step, reference may be made to the description of the aforementioned step S403.
S504, when the off-screen state of the terminal 100 is greater than the appointed time length T2, the NAS layer judges whether the second SIM card has background service in operation.
The background service of the second SIM card may refer to: and when the terminal 100 is in the off-screen state, the second SIM card operates the service. The background service of the second SIM card may include a voice service of the second SIM card (for example, the terminal 100 makes a call through the second SIM card, etc.), a data service of the second SIM card (for example, a flow rate of an application on the terminal 100 using the second SIM card, etc.), and so on.
In the embodiment of the application, the NAS layer can acquire the background service state parameters of the second SIM card. The background service status parameter of the second SIM card may indicate whether the second SIM card has background service in operation. In a specific implementation manner, the NAS layer may also detect whether the second SIM card exists in the running background service through other methods, which is not limited in the present application.
In embodiments of the present application, this step is optional. When the terminal 100 is configured with only one modem, since the subsequent NAS layer triggers the modem to search PLMN information again, and involves the modem initialization, the data service/voice service of the second SIM card may be affected, so the NAS layer needs to determine that the second SIM card has no background service before executing the subsequent procedure. When the terminal 100 is configured with two modems, one for handling data traffic/voice traffic of a first SIM card and the other for handling data traffic/voice traffic of a second SIM card, this step may not be performed.
And S505, when the second SIM card is determined to have no background service in operation, the NAS layer judges whether the current time point is greater than or equal to a preset appointed time length T3 from the moment of searching PLMN information again by the modem after no response is searched last time.
In the embodiment of the present application, the "current time point" may refer to: the NAS layer determines a point in time when the second SIM card is not running background traffic. "Modem re-searches PLMN information after last search no response" refers to: the communication method of the embodiment shown in fig. 5 was performed the previous time and the NAS layer triggered the modem to re-search for PLMN information.
The description of this step may be referred to the description in the foregoing S404.
S506, when the NAS layer determines that the moment of the current time point from the last search of the non-response time when the modem re-searches the PLMN information is greater than or equal to the appointed duration T3, the NAS layer can trigger the modem to re-search the PLMN information.
The description of this step may be referred to the description in S405 described earlier. The PLMN information includes a PLMN corresponding to the first SIM card, where an MCC code and an MNC code included in the PLMN corresponding to the first SIM card should be consistent with the MCC code and the MNC code stored in the first SIM card.
S507, when the NAS layer determines that the off-screen state of the terminal 100 is less than the preset specified time period T2 or the second SIM card stores the background service in operation, the NAS layer executes step S503 every preset time period D2 and executes subsequent steps based on the step S503.
In the embodiment of the present application, when the NAS layer determines that the off-screen state of the terminal 100 is less than the preset specified duration T2, or determines that the second SIM card stores the background service in operation, the NAS layer may set a polling timer S4.
The time duration T4 of each of the polling timers S4 is the same as the duration of the preset period D2. When the polling timer S4 counts up to the preset time period T4, the NAS layer again determines whether the off-screen state of the terminal 100 is greater than the preset specified time period T2. If the off-screen state is determined to be greater than the preset specified duration T2, the NAS layer executes the step S504 and the subsequent flow; if the screen-off state is less than the preset appointed time length T2 or the second SIM card stores the background service in operation, the NAS layer continues to start the polling timer S4 for timing, and the steps are repeatedly executed.
S508, when the NAS layer determines that the current time point is less than the designated time period T3 from the time when the modem re-searches for PLMN information after the last search is not responsive, the NAS layer may end the procedure.
The description of this step may be referred to the description of S407 described earlier.
In another implementation, when the NAS layer determines that the current time point is less than the specified duration T3 from the time when the modem re-searches for PLMN information after the last search for no response, the NAS layer may wait until the time when the modem re-searches for PLMN information after the last search for no response is greater than or equal to the specified duration T3, and the NAS layer triggers the modem to re-search for PLMN information.
In another implementation, the execution subject of S502 to S508 may be the application processor AP, which is not limited in this aspect of the present application.
In another implementation, S503, S504, and S505 are optional steps.
If S503, S504 are not performed but S505 is performed, the "current time point" in S505 may refer to: the NAS layer determines a time point when PLMN information search is not responded;
if S504 is not performed and S503 and S505 are performed, the "current time point" in S505 may refer to: the NAS layer determines a point in time when the off-screen state of the terminal 100 is greater than the specified period T2.
If S503 is not performed and S504 and S505 are performed, the "current time point" in S505 may refer to: the NAS layer determines a point in time when the second SIM card is not running background traffic.
For better explanation of the implementation procedure of the communication method shown in fig. 4/5, the following will specifically take the terminal 100 as an example to execute the communication method shown in fig. 4/5 for the first time and execute the communication method shown in fig. 4/5 for the second time.
Stage one: the terminal 100 performs the communication method shown in fig. 4/5 for the first time:
and S4001, triggering the AS layer to search the third PLMN information when the NAS layer detects that the first SIM card is disconnected.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4002, when the NAS layer triggers the AS layer to search the third PLMN information, the NAS layer judges whether the situation that the PLMN information search is not responded or not occurs.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4003 optionally, when the NAS layer determines that the PLMN information search has not responded, the NAS layer determines whether the off-screen state of the terminal 100 is greater than a preset specified duration T2.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4004, optionally, when the off-screen duration of the terminal 100 is longer than the specified duration T2, the NAS layer determines whether the second SIM card has a background service in operation.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4005 when the NAS layer determines that the second SIM card has no background service in operation, the NAS layer may trigger the modem to re-search PLMN information.
Wherein, the "modem re-searches PLMN information" in this step may refer to: the NAS layer stops the AS layer from searching the third PLMN information and triggers the modem to initialize. And triggering the AS layer to search the fourth PLMN information by the NAS layer when the modem is initialized.
When the modem searches the PLMN information again, the NAS layer may be caused to reside in the PLMN corresponding to the first SIM card after acquiring the PLMN corresponding to the first SIM card in the fourth PLMN information reported by the AS layer.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
Stage two: the terminal 100 performs the communication method shown in fig. 4/5 for the second time:
and S4006, when the NAS layer detects that the first SIM card is disconnected, triggering the AS layer to search the first PLMN information.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4007, when the NAS layer triggers the AS layer to search the first PLMN information, the NAS layer judges whether the situation that the PLMN information search is not responded or not occurs.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4008 optionally, when the NAS layer determines that the PLMN information search has not responded, the NAS layer determines whether the off-screen state of the terminal 100 is greater than a preset specified duration T2.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4009, optionally, when the off-screen duration of the terminal 100 is longer than the specified duration T2, the NAS layer determines whether the second SIM card has a background service in operation.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4005, optionally, when the NAS layer determines that the second SIM card has no running background service, the NAS layer determines whether the current time point is greater than or equal to a specified duration T3 from the time when the modem re-searches PLMN information after the last search has no response.
The current time point, i.e., the first time point, refers to a time point when the NAS layer in the terminal 100 determines that the second SIM card does not have a background service in operation.
"whether the current time point is greater than or equal to the designated time period T3 from the time when the modem re-searches for PLMN information after the last search has no response", that is, means: whether the difference between the first time point and the time point at which the NAS layer triggers the AS layer to search for the fourth PLMN information in the terminal 100 is greater than or equal to a specified duration T3.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
S4006, when the NAS layer determines that the current time point is greater than or equal to the specified duration T3 from the time when the modem re-searches for PLMN information after the last search is not responded, the NAS layer may trigger the modem to re-search for PLMN information.
In this step, "the NAS layer determines that the time from the current time point to the time when the modem re-searches for PLMN information after the last search has no response is greater than or equal to the specified duration T3", that is, means: the NAS layer determines that the difference between the first time point and the time point in the terminal 100 at which the NAS layer triggers the AS layer to search for the fourth PLMN information is greater than or equal to the specified duration T3.
The "modem re-searches PLMN information" in this step may refer to: the NAS layer stops the AS layer from searching the first PLMN information and triggers the modem to initialize; and triggering the AS layer to search the second PLMN information by the NAS layer when the modem is initialized.
When the modem searches the PLMN information again, the NAS layer may be caused to reside in the PLMN corresponding to the first SIM card after acquiring the PLMN corresponding to the first SIM card in the second PLMN information reported by the AS layer.
This step is described with reference to the previous embodiments shown in fig. 4 or fig. 5.
Further, in order to reduce power consumption of the terminal 100 and improve use experience of a user, the cloud server 200 may collect data information such as the number of network searching triggers sent by the terminal 100, and a device model identifier and a chip model identifier of the terminal 100. The cloud server 200 may determine whether to send data information such as an on command/off command to the terminal 100 every preset time period D1 based on the number of network searching triggers sent by the terminal 100.
Fig. 6 exemplarily shows a specific judgment flow of the cloud server 200.
As shown in fig. 6, the specific judgment flow may include:
and S601, the cloud server 200 receives data information such as network searching trigger times (trigger times for short), chip model identifiers, equipment model identifiers and the like sent by one or more terminals. One or more of the terminals may include a terminal 100.
The number of network searching triggers may be: the method comprises the steps that a terminal determines the number of times of non-response of PLMN information searching, namely the number of times that PLMN searching response information reported by an AS layer is not acquired in a designated time T1 after the NAS layer in the terminal triggers the AS layer to search the PLMN information;
The device model identifier may be used to identify a device model of the terminal, where the terminals identified by the same device model have the same device parameters, such as camera parameters, screen parameters, etc.;
the chip model identification is used for identifying the chip model of the terminal, and the terminals with the same chip model identification have the same device performance, such as the computing capability of a central processing unit (central processing unit, CPU), the resources of the CPU and the like.
In the embodiment of the present application, before all terminals do not receive the start command sent by the cloud server 200, the NAS layer in the terminal detects the disconnection and triggers the AS layer to search for PLMN information, and when determining that PLMN information search does not respond, the terminal only records the number of times of network search triggering, and does not trigger the modem to search for PLMN information again. After the terminal receives the start command, the NAS layer and the AS layer implement the communication method shown in fig. 4 or 5, and the terminal records the network searching trigger times. The number of network searching triggers can be recorded by the NAS layer or the AP, and the application is not limited.
In the embodiment of the present application, the cloud server 200 may collect data information such as the trigger number, the chip model identifier, and the device model identifier sent by the terminal every preset period W1. The preset period W1 may take 1 day, 2 days, etc.
For example, the number of triggers received by the cloud server, the chip model identification, and the device model identification may be as shown in table 1:
TABLE 1
As can be seen from table 1, the trigger times corresponding to the chip type identifier SD800 and the device type identifier AGT-01 are 5 times; the triggering times corresponding to the chip model identification SD800 and the equipment model identification AGT-02 are 5 times; the triggering times corresponding to the chip model identification SD801 and the equipment model identification AGT-03 are 6 times; the triggering times corresponding to the chip model identification SD801 and the equipment model identification AGT-04 are 3 times; the triggering times corresponding to the chip model identification SD802 and the equipment model identification AGT-05 are 4 times; the number of triggers corresponding to the chip type identifier SD802 and the device type identifier AGT-06 is 2, etc. Table 1 is only for exemplary explanation of the present application and is not to be construed as limiting in any way.
S602, the cloud server 200 judges whether the triggering times are related to the chip type identification or not based on the triggering times and the chip type identification sent by one or more terminals every preset time period D1.
In the embodiment of the present application, the cloud server 200 may count the triggering times corresponding to each chip type identifier every preset time period D1, and calculate the standard deviation. If the standard deviation is greater than or equal to a preset threshold value M1, the cloud server 200 determines that the trigger times are related to the chip model identification; if the standard deviation is smaller than the preset threshold M1, the cloud server 200 determines that the trigger number and the chip model number identification are not related.
For example, if the trigger times corresponding to the chip model identifiers counted by the cloud server 200 are shown in table 2:
TABLE 2
As shown in table 2, the trigger number corresponding to the chip model identifier SD800 is 65; the triggering times corresponding to the chip model identification SD801 are 75 times; the number of triggers corresponding to the chip model identification SD802 is 10. Table 2 is only for exemplary explanation of the present application and is not to be construed as limiting in any way.
Taking the example that the preset threshold M1 is 25 as the example, the standard deviation in the example of table 2 is 28.58, which is greater than the preset threshold M1, so the cloud server 200 determines that the number of triggers is related to the chip type identifier.
In another implementation, cloud server 200 may also calculate the difference between the maximum number of triggers and the minimum number of triggers. If the difference is greater than a preset threshold M1, the cloud server 200 determines that the trigger times are related to the chip model identification; if the difference is smaller than the preset threshold M1, the cloud server 200 determines that the trigger number and the chip model number identification are not related.
The application is not limited as to how to determine whether the trigger number is related to the chip model number identification.
The specific value of the preset threshold M1 is related to the calculation method of the cloud server 200, which is not limited in the present application.
S603, when the cloud server 200 determines that the trigger times and the chip model identifiers are not related, the cloud server 200 calculates the number of person-average triggers of the device model identifiers.
The number of per-person triggering is the average number of network searching triggering times (also referred to as average triggering times) of the terminal.
In the embodiment of the application, the number of times of per-person triggering of each equipment model identifier can be calculated by the following modes: the total trigger times corresponding to the device model identifiers counted by the cloud server 200 are divided by the number of terminals corresponding to the device model identifiers. The following calculation method of the number of times of average person triggering is referred to for calculation.
For example, the total trigger times corresponding to each device model identifier, the number of terminals corresponding to each device model identifier, and the number of average triggers of each device model identifier counted by the cloud server 200 may be as shown in table 3:
TABLE 3 Table 3
As can be seen from Table 3, the number of times of the average trigger of the equipment model identification AGT-01 was 7, the number of times of the average trigger of the equipment model identification AGT-02 was 6, the number of times of the average trigger of the equipment model identification AGT-03 was 9, the number of times of the average trigger of the equipment model identification AGT-04 was 6, the number of times of the average trigger of the equipment model identification AGT-05 was 5, and the number of times of the average trigger of the equipment model identification AGT-06 was 4.
Table 3 illustrates the application only and does not constitute any limitation of the application. In other implementations, the cloud server 200 may calculate the number of triggers per person for each device model by other methods, which is not limited by the present application.
S604, the cloud server 200 sends an opening instruction to all terminals under the equipment model identification with the number of times of per capita triggering being greater than a preset threshold value A1.
For example, based on the example shown in table 3, if the preset threshold value A1 is 6 times, the cloud server 200 sends an open command to all terminals under the device model identifiers AGT-01 and AGT-03.
S605, when the cloud server 200 determines that the trigger number is related to the chip model number, the cloud server 200 counts the trigger number of each device model number under the chip model number with the trigger number exceeding the preset threshold value A2.
For example, if taking the preset threshold value A2 as 70 and taking the example shown in table 2 as an example, the cloud server 200 counts the triggering times of each device model identifier under the chip model identifier SD 801. As shown in table 4:
TABLE 4 Table 4
As can be seen from Table 4, the terminals under the chip model identification SD801 have two device model identifications, AGT-03 and AGT-04, respectively. The number of triggers of AGT-03 was 40 and that of AGT-04 was 35.
The specific values of table 4 and preset threshold value A2 are only for exemplary explanation of the present application and do not constitute any limitation.
The cloud server 200 determines whether the trigger number is related to the device model identification S606.
In the embodiment of the present application, the cloud server 200 may calculate the standard deviation based on the trigger times of each device model identifier under the chip model identifier with the trigger times counted in step S605 exceeding the preset threshold value A2. If the standard deviation is greater than or equal to a preset threshold M2, the cloud server 200 determines that the trigger times are related to the equipment model identification; if the standard deviation is smaller than the preset threshold M2, the cloud server 200 determines that the triggering times and the device model identification are not related.
For example, taking the preset threshold M2 as an example and taking table 4 as an example, the standard deviation in the example of table 4 is 2.5 and is greater than the preset threshold M2, so the cloud server 200 determines that the trigger number is related to the device model identifier.
The application is not limited as to how to determine whether the number of triggers is related to the device model identification.
The specific value of the preset threshold M2 is related to the calculation method of the cloud server 200, which is not limited in the present application.
S607, when the cloud server 200 determines that the trigger times are related to the device model identifiers, the cloud server 200 sends an opening instruction to all terminals included in the device model identifiers with the number of people trigger times greater than the preset threshold value A1 under the chip model identifiers with the number of trigger times exceeding the preset threshold value A2.
For example, terminals with two device model identifications under the chip model identification SD801 are AGT-03 and AGT-04, respectively. Taking table 3 as an example, the number of average triggers of the device model identification AGT-03 is 9 and the number of average triggers of the device model identification AGT-04 is 6. If the preset threshold value A1 is 6, the cloud server 200 sends an opening command to all terminals under AGT-03.
S608, when the cloud server 200 determines that the triggering times and the device model identifier are not related, the cloud server 200 sends an opening instruction to all terminals under the chip model identifier with the triggering times exceeding the preset threshold value A2.
The starting instruction is used for triggering the terminal to execute the communication method shown in the foregoing fig. 4 or fig. 5, and the terminal records the triggering times;
in one implementation, in addition to sending an opening instruction to the terminal, the cloud server 200 may also send data information including a preset value of the specified duration T1, a preset value of the specified duration T2, a preset value of the specified duration T3, a preset value of the time duration T4, and the like to the terminal.
In the embodiment of the present application, for the terminal that has received the start instruction, the cloud server 200 may still receive the data information such as the network searching trigger number, the chip type identifier, and the device type identifier sent by the terminal, and calculate the average trigger number according to the device type identifier at intervals of a preset time period D3 (for example, two weeks, three weeks, and so on). When all terminals of a certain equipment model identifier have received the start instruction and the number of times of triggering per capita is smaller than a preset threshold value A3, the cloud server 200 sends a close instruction to all terminals under the equipment model identifier. The closing instruction can be used for triggering a NAS layer in the terminal to detect network disconnection and triggering an AS layer to search PLMN information, and when determining that PLMN information searching is unresponsive, the terminal only records network searching triggering times and does not trigger a modem to search PLMN information again.
In the embodiment of the present application, the terminal 100 may be referred to as a first terminal, the designated duration T1 may be referred to as a first preset duration, the voice service duration of the second SIM card may be referred to as a first call duration, the designated duration T5 may be referred to as a fixed duration, the designated duration T2 may be referred to as a second preset duration, the designated duration T3 may be referred to as a third preset duration, the on instruction may be referred to as a first instruction, the preset time period D1 may be referred to as a first preset time period, the preset threshold A1 may be referred to as a first preset threshold, the preset threshold A2 may be referred to as a second preset threshold, the preset threshold A3 may be referred to as a third preset threshold, and the off instruction may be referred to as a second instruction.
Fig. 7 illustrates a hardware structure of a terminal 100 according to an embodiment of the present application.
The hardware structure of the terminal 100 may include: processor 101, memory 102, mobile communication module 103, display 104 (optional), camera 105 (optional), audio module 106 (optional), microphone 107 (optional).
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, terminal 100 may also include more or fewer components than shown in fig. 7, or certain components may be combined, certain components may be separated, or different arrangements of components. The components shown in fig. 7 may be implemented in hardware, software, or a combination of software and hardware.
The processor 101 may include one or more processor units, for example, the processor 101 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 video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. 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 101 for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may hold instructions or data that has just been used or recycled by the processor 101. If the processor 101 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 101 is reduced, thus improving the efficiency of the system.
In some embodiments, the processor 101 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 USB interface, among others.
Memory 102 is coupled to processor 101 for storing various software programs and/or sets of instructions. In a specific implementation, the memory 102 may include a volatile memory (RAM), such as a Random Access Memory (RAM); non-volatile memory (non-volatile memory) such as ROM, flash memory (flash memory), hard Disk Drive (HDD) or solid state Disk (Solid State Drives, SSD) may also be included; the memory 102 may also include a combination of the types of memory described above. The memory 102 may also store some program codes so that the processor 101 invokes the program codes stored in the memory 102 to implement the method of implementing the embodiment of the present application in the terminal 100. The memory 102 may store an operating system, such as an embedded operating system, for example uCOS, vxWorks, RTLinux.
The mobile communication module 103 may provide a solution including 2G/3G/4G/5G wireless communication applied on the terminal 100. The mobile communication module 103 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 103 may receive electromagnetic waves from the antenna 1 (not shown in fig. 7), filter, amplify, etc. the received electromagnetic waves, and transmit the electromagnetic waves to a modem processor (not shown in fig. 7) for demodulation. The mobile communication module 103 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 103 may be provided in the processor 101. In some embodiments, at least some of the functional modules of the mobile communication module 103 may be provided in the same device as at least some of the modules of the processor 101.
The modem processor (which may also be referred to as a modem) may include a modulator (not shown in fig. 7) and a demodulator (not shown in fig. 7). 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 audio module 106, microphone 107, etc.), or displays images or video through the display screen 104. 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 103 or other functional modules, independent of the processor 101.
The display screen 104 may be used to display images, video, and the like. The display screen 104 may include 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, terminal 100 may include 1 or N displays 104, N being a positive integer greater than 1.
The camera 105 is an optional component for capturing 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 100 may include 1 or N cameras 105, N being a positive integer greater than 1.
The audio module 106 may be used to convert digital audio information to an analog audio signal output, and may also be used to convert an analog audio input to a digital audio signal. The audio module 106 may also be used to encode and decode audio signals. In some embodiments, the audio module 106 may also be disposed in the processor 101, or some functional modules of the audio module 106 may be disposed in the processor 101.
The microphone 107, which may also be referred to as a "microphone" or "microphone", may be used to collect sound signals in the environment surrounding the electronic device, convert the sound signals into electrical signals, and then subject the electrical signals to a series of processes, such as analog-to-digital conversion, to obtain audio signals in digital form that may be processed by the processor 101. When making a call or transmitting voice data, the user can sound near the microphone 107 through the mouth, inputting a sound signal to the microphone 107. The terminal 100 may be provided with at least one microphone 107. In other embodiments, the terminal 100 may be provided with two microphones 107, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal 100 may be further provided with three, four or more microphones 107 to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
Fig. 8 illustrates a hardware structure of a cloud server 200 according to an embodiment of the present application.
As shown in fig. 8, the cloud server 200 may be applied to the communication system 10 described in fig. 3A described above, as shown in fig. 8. The cloud server 200 may include one or more processors 201A, a communication interface 202A, and a memory 203A, where the processors 201A, the communication interface 202A, and the memory 203A may be connected by a bus or other means, and in the embodiment of the present application, the connection is exemplified by a bus 204A. Wherein:
the processor 201A may be constituted by one or more general-purpose processors, such as a CPU. The processor 201A may be configured to execute the relevant program code of the device control method.
The communication interface 202A may be a wired interface (e.g., an ethernet interface) or a wireless interface (e.g., a cellular network interface) for communicating with other nodes. In this embodiment of the present application, the communication interface 202A may be specifically configured to communicate with one or more terminals (including the terminal 100) through the cloud server 200, receive data information sent by each terminal (for example, a device model identifier of each terminal, a chip model identifier of each terminal, a trigger number of each terminal, etc.), and send an on command/off command to the terminal.
The memory 203A may include a volatile memory (RAM) such as a Random Access Memory (RAM); non-volatile memory (non-volatile memory) such as ROM, flash memory (flash memory), hard Disk Drive (HDD) or solid state Disk (Solid State Drives, SSD) may also be included; memory 203A may also include a combination of the above types of memory.
In the embodiment of the present application, the memory 203A may be configured to store data information such as trigger times, chip type identifiers, and device type identifiers sent by one or more terminals, and implement the communication method provided in the implementation of the present application. The memory 203A may also store some program code so that the processor 201A invokes the program code stored in the memory 203A to implement the method of implementing the embodiment of the present application in the cloud server 200.
The cloud server 200 shown in fig. 8 is merely exemplary to explain the present application, and does not constitute a specific limitation.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
Claims (13)
1. A communication method, applied to a communication system including a cloud server and a first terminal, the method comprising:
the cloud server receives network searching trigger times, equipment model identifiers and chip model identifiers sent by one or more terminals connected with the cloud server; the network searching triggering times refer to times that the terminal triggers access to the PLMN searching response information reported by the AS layer and is not acquired in a first preset time period after the AS layer searches the PLMN information;
the cloud server judges whether the network searching triggering times are related to the chip model identification or not every a first preset time period;
When the cloud server determines that the network searching trigger times are not related to the chip model identification, the cloud server sends a first instruction to all terminals under the equipment model identification with average trigger times larger than a first preset threshold value; the first instruction is configured to instruct the first terminal to initialize a modem and search PLMN information again after determining that PLMN search response information reported by the AS layer is not obtained in a first preset duration after triggering the AS layer to search for first PLMN information;
when the first terminal receives the first instruction, a non-access NAS layer of the first terminal detects that the modem is disconnected with a Public Land Mobile Network (PLMN) where a first SIM card resides, triggering the AS layer to search the first PLMN information; the first terminal comprises the first SIM card and the modem, and the modem comprises the NAS layer and the AS layer;
when the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, stopping the AS layer from searching the first PLMN information by the NAS layer of the first terminal, and triggering the modem to initialize; the PLMN search response information is used for indicating success or failure of the AS layer to search PLMN information;
When the modem is initialized, triggering the AS layer to search second PLMN information by the NAS layer of the first terminal;
after the NAS layer in the first terminal acquires the PLMN corresponding to the first SIM card in the second PLMN information reported by the AS layer, the modem in the first terminal resides in the PLMN corresponding to the first SIM card.
2. The method of claim 1, wherein the first terminal further comprises a second SIM card; when the non-access NAS layer of the first terminal detects that the modem is disconnected with the Public Land Mobile Network (PLMN) where the first SIM card resides, triggering the access AS layer to search for the first PLMN information, the method further comprises:
the first terminal communicates through the second SIM card;
the NAS layer of the first terminal acquires a first call duration of the first terminal for calling through the second SIM card;
the first preset time length is the sum of the first call time length and the fixed time length.
3. The method according to claim 1 or 2, wherein when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem initialization, specifically including:
When the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, and the screen-off duration of the first terminal exceeds a second preset time period after determining that the PLMN searching response information reported by the AS layer is not acquired, the NAS layer of the first terminal stops the AS layer to search the first PLMN information, and triggers the modem to initialize.
4. A method according to claim 3, wherein the first terminal comprises a second SIM card;
when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, and when the duration of screen-off of the first terminal exceeds a second preset duration after determining that PLMN search response information reported by the AS layer is not obtained, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem to initialize, specifically including:
when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search for the first PLMN information, and the screen-off duration of the first terminal exceeds a second preset time period after determining that the PLMN search response information reported by the AS layer is not acquired, and determining that the second SIM card does not have background service in operation, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem to initialize.
5. The method of claim 4, wherein the method further comprises, before triggering the access AS layer to search for the first PLMN information when the non-access NAS layer of the first terminal detects that the modem is disconnected from the public land mobile network PLMN on which the first SIM card resides:
when the NAS layer of the first terminal detects that the modem is disconnected with the PLMN where the first SIM card resides, triggering the AS layer to search for third PLMN information;
when the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the third PLMN information, stopping the AS layer from searching the third PLMN information by the NAS layer of the first terminal, and triggering the modem to initialize;
when the modem is initialized, triggering the AS layer to search fourth PLMN information by the NAS layer of the first terminal;
after the NAS layer in the first terminal acquires the PLMN corresponding to the first SIM card in the fourth PLMN information reported by the AS layer, the modem in the first terminal resides in the PLMN corresponding to the first SIM card.
6. The method of claim 5, wherein when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, and when a duration of screen-off of the first terminal exceeds a second preset duration after determining that PLMN search response information reported by the AS layer is not obtained, and determining that the second SIM card does not have an operating background service, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem initialization, the method specifically includes:
when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search for the first PLMN information, and the screen-off duration of the first terminal exceeds a second preset time period after determining that the PLMN search response information reported by the AS layer is not acquired, determining that the second SIM card does not have background service in operation, and determining that the difference between a first time point and a time point when the NAS layer of the first terminal triggers the AS layer to search for the fourth PLMN information is greater than a third preset time period, stopping the AS layer from searching for the first PLMN information, and triggering the modem initialization;
The first time point is a time point when the first terminal determines that the second SIM card does not have background service in operation.
7. The method of claim 1, wherein when the NAS layer of the first terminal determines that PLMN search response information reported by the AS layer is not obtained within a first preset duration after triggering the AS layer to search for the first PLMN information, the NAS layer of the first terminal stops the AS layer from searching for the first PLMN information, and triggers the modem initialization, specifically includes:
when the NAS layer of the first terminal determines that PLMN searching response information reported by the AS layer is not acquired within a first preset time period after triggering the AS layer to search the first PLMN information, stopping the AS layer from searching the first PLMN information by the NAS layer of the first terminal;
and triggering the modem to read a user configuration file and an International Mobile Subscriber Identity (IMSI) by the NAS layer in the first terminal, and initializing system settings.
8. The method according to claim 1, wherein the method further comprises:
when the cloud server determines that the network searching trigger frequency is related to the chip model identification, the cloud server judges whether the network searching trigger frequency is related to the equipment model identification;
When the cloud server determines that the network searching triggering times are related to the equipment model identification, the cloud server sends the first instruction to all terminals under the equipment model identification with average triggering times larger than a first preset threshold value under the chip model identification with the network searching triggering times larger than a second preset threshold value.
9. The method of claim 8, wherein the method further comprises:
when the cloud server determines that the network searching triggering times are not related to the equipment model identification, the cloud server sends the first instruction to all terminals under the chip model identification with the network searching triggering times larger than a second preset threshold value.
10. The method according to claim 9, wherein the method further comprises:
the cloud server sends a second instruction to all terminals under the equipment model identification which has received the first instruction and the average triggering frequency is smaller than a third preset threshold value; the second instruction is configured to instruct the terminal not to execute the operation of initializing the modem and searching for PLMN information again after determining that PLMN search response information reported by the AS layer is not obtained in a first preset duration after triggering the AS layer to search for the first PLMN information.
11. A terminal, being a first terminal, comprising: one or more processors, one or more memories, a modem, and a SIM card; the one or more memories coupled with the one or more processors and the modem, the one or more memories for storing computer program code comprising computer instructions that, when executed by the modem, cause the terminal to perform the steps performed by the terminal in the method of any of claims 1-10.
12. A chip system comprising processing circuitry and interface circuitry, the interface circuitry to receive code instructions and to transmit to the processing circuitry, the processing circuitry to execute the code instructions to cause the chip system to perform the method of any of claims 1-10.
13. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310746774.8A CN116506977B (en) | 2023-06-25 | 2023-06-25 | Communication method, terminal and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310746774.8A CN116506977B (en) | 2023-06-25 | 2023-06-25 | Communication method, terminal and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116506977A CN116506977A (en) | 2023-07-28 |
CN116506977B true CN116506977B (en) | 2023-10-20 |
Family
ID=87323388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310746774.8A Active CN116506977B (en) | 2023-06-25 | 2023-06-25 | Communication method, terminal and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116506977B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106376027A (en) * | 2016-08-31 | 2017-02-01 | 河源西普电子有限公司 | Method for processing abnormity about access of mobile phone to network |
WO2017084498A1 (en) * | 2015-11-19 | 2017-05-26 | 努比亚技术有限公司 | Method and device for user equipment network processing and user equipment |
WO2018082182A1 (en) * | 2016-11-03 | 2018-05-11 | 华为技术有限公司 | Terminal device, and method for restoring data service by terminal device |
WO2018107892A1 (en) * | 2016-12-13 | 2018-06-21 | 广东欧珀移动通信有限公司 | Network-communication function exception processing method and processing apparatus, terminal device, and computer storage medium |
CN110708696A (en) * | 2019-09-17 | 2020-01-17 | RealMe重庆移动通信有限公司 | Network data recovery method and device, storage medium and electronic equipment |
CN113709720A (en) * | 2021-07-20 | 2021-11-26 | 荣耀终端有限公司 | SIM dual-mode card abnormity optimization method and electronic equipment |
WO2022027187A1 (en) * | 2020-08-03 | 2022-02-10 | 华为技术有限公司 | Public land mobile network selection method and apparatus |
WO2022177354A1 (en) * | 2021-02-20 | 2022-08-25 | Samsung Electronics Co., Ltd. | Method and device for continuity of modem service |
WO2023070570A1 (en) * | 2021-10-29 | 2023-05-04 | 华为技术有限公司 | Network searching method and communication apparatus |
-
2023
- 2023-06-25 CN CN202310746774.8A patent/CN116506977B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017084498A1 (en) * | 2015-11-19 | 2017-05-26 | 努比亚技术有限公司 | Method and device for user equipment network processing and user equipment |
CN106376027A (en) * | 2016-08-31 | 2017-02-01 | 河源西普电子有限公司 | Method for processing abnormity about access of mobile phone to network |
WO2018082182A1 (en) * | 2016-11-03 | 2018-05-11 | 华为技术有限公司 | Terminal device, and method for restoring data service by terminal device |
WO2018107892A1 (en) * | 2016-12-13 | 2018-06-21 | 广东欧珀移动通信有限公司 | Network-communication function exception processing method and processing apparatus, terminal device, and computer storage medium |
CN110708696A (en) * | 2019-09-17 | 2020-01-17 | RealMe重庆移动通信有限公司 | Network data recovery method and device, storage medium and electronic equipment |
WO2022027187A1 (en) * | 2020-08-03 | 2022-02-10 | 华为技术有限公司 | Public land mobile network selection method and apparatus |
WO2022177354A1 (en) * | 2021-02-20 | 2022-08-25 | Samsung Electronics Co., Ltd. | Method and device for continuity of modem service |
CN113709720A (en) * | 2021-07-20 | 2021-11-26 | 荣耀终端有限公司 | SIM dual-mode card abnormity optimization method and electronic equipment |
WO2023070570A1 (en) * | 2021-10-29 | 2023-05-04 | 华为技术有限公司 | Network searching method and communication apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN116506977A (en) | 2023-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114650588B (en) | Processing method of network connection, related equipment and computer storage medium | |
CN112449328B (en) | Bluetooth searching method, system and related device | |
US11997153B2 (en) | Screen projection method and device | |
WO2021115007A1 (en) | Network switching method and electronic device | |
US11871320B2 (en) | Information processing method and device | |
US12075499B2 (en) | Bluetooth reconnection method and related apparatus | |
EP4024806A1 (en) | Data transceiving method, electronic device, and computer-readable storage medium | |
US20230299806A1 (en) | Bluetooth Communication Method, Wearable Device, and System | |
US20230007561A1 (en) | Cell measurement method, measurement apparatus, terminal device, chip, and storage medium | |
CN114071655B (en) | Network searching method and related device | |
CN113498108B (en) | Chip, device and method for adjusting data transmission strategy based on service type | |
CN111149377A (en) | Network access method and device, communication equipment and storage medium | |
US20240064641A1 (en) | Information configuration method and apparatus, and communication device and storage medium | |
CN116506977B (en) | Communication method, terminal and system | |
US12096352B2 (en) | Cell selection method and apparatus, communication device, and storage medium | |
CN110574467B (en) | Information processing method, device and computer storage medium | |
CN115550892B (en) | Method and device for synchronizing system information | |
US20230300675A1 (en) | Uplink Data Splitting Method, Terminal Device, and Chip System | |
CN115706603A (en) | Compact transmission method, system and related device in Beidou communication system | |
CN114339897A (en) | Data transmission method, electronic device, chip system and storage medium | |
WO2023226645A9 (en) | Communication method, communication system, and electronic device | |
EP4404682A1 (en) | Data transmission management method, electronic device and storage medium | |
WO2023061217A1 (en) | Data transmission method and apparatus | |
RU2812310C2 (en) | Method and device for processing services in two-card terminal device | |
EP4307762A1 (en) | Method for transmitting packet in wireless local area network and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |