Network search method, electronic device, chip and storage medium
By detecting the search network timer status in electronic devices and conducting high-frequency network searches, the problem of low search network frequency in the background search mechanism in the prior art is solved, and data transmission efficiency and user experience are improved.
Patent Information
- Application Number
- CN202210883309.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-25
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2040-05-25
AI Technical Summary
The existing background search mechanism has a low frequency of search networks, resulting in low data transmission efficiency during data service, which in turn reduces the performance and user experience of electronic devices.
In the stage of data service preparation and progress, the real-time status of the search network timer is detected, and the search network time duration and preset time threshold are set according to the current residency network, and a high-frequency network search is performed, and the network processing data service with a priority higher than the current residency network is switched to.
It realizes high-frequency network search, improves the transmission speed during data service, and improves the performance and user experience of electronic devices.
Smart Images

Figure CN115250517B_ABST
Abstract
Description
[0001] Description of the case
[0002] This application is a divisional application based on a patent application with application number 202010450180.9, application date May 25, 2020, and invention name “Network search method, electronic device, chip and storage medium”. Technical Field
[0003] The present invention relates to the field of communication technology, and in particular to a network search method, electronic equipment, chip and storage medium. Background Art
[0004] With the development of wireless technology, wireless mobile communication networks have evolved from the second generation mobile communication system (2nd Generation, 2G), the third generation mobile communication system (3rd Generation, 3G), the fourth generation mobile communication system (4th Generation, 4G) to the fifth generation mobile communication system (5rd Generation, 5G). With the increasing popularity of the new radio (NR) technology, more and more smart terminals can support the NR mode to enjoy high-speed data services.
[0005] At present, the operator network, namely the Public Land Mobile Network (PLMN), often provides multiple access networks using different radio access technologies (RAT), so that wireless electronic devices of the mobile communication network, such as smart phones, generally support multiple RATs. However, in certain specific cases, the electronic device may temporarily reside on a low-priority RAT network (such as 2G / 3G / 4G) in the PLMN (Home PLMN, HPLMN) of the electronic device for a period of time. In order to enable the user equipment (UE) to return to the high-priority RAT network (such as 5G) in the HPLMN for efficient data service transmission, a timer timeout mechanism is often used to trigger a re-search for a high-priority RAT network, i.e., background network search.
[0006] However, on the one hand, before starting the background network search, the terminal's data service can only be carried on the resident low-priority RAT network; on the other hand, because the background network search must give way to the data service, the background network search cannot be performed during the processing of the data service, resulting in the data service being carried on the low-priority RAT network where the terminal resides for a long time. It can be seen that the network search frequency of the existing background network search mechanism is low, and the data transmission efficiency during the electronic device data service process is low, which in turn reduces the performance of the electronic device and poor user experience. Summary of the invention
[0007] The embodiments of the present application provide a network search method, an electronic device, a chip, and a storage medium, which realize high-frequency network search, increase the transmission speed during data service, further improve the performance of the electronic device, and enhance the user experience.
[0008] The technical solution of the embodiment of the present application is implemented as follows:
[0009] In a first aspect, an embodiment of the present application provides a network search method, the method comprising:
[0010] When preparing to initiate a data service, detect the real-time status of the network search timer;
[0011] If the real-time status is running, determining the current resident network;
[0012] Setting a network search duration according to the current resident network, and performing network search processing according to the network search duration and a preset network priority list;
[0013] If the first network is obtained through the network search process, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the currently resident network.
[0014] In a second aspect, an embodiment of the present application provides a network search method, the method comprising:
[0015] When processing data services through the current resident network, detecting the real-time status corresponding to the network search timer;
[0016] If the real-time status is in operation, setting a first preset time threshold according to the current resident network, and detecting a first processing duration corresponding to the data service;
[0017] If the first processing duration is greater than or equal to the first preset time threshold, performing network search processing according to the preset network priority list;
[0018] If the first network is obtained through the network search process, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the currently resident network.
[0019] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a detection unit, a determination unit, a setting unit, a search unit, a switching unit and a processing unit,
[0020] The detection unit detects the real-time status corresponding to the network search timer when preparing to initiate a data service;
[0021] The determining unit is configured to determine the current resident network if the real-time status is running;
[0022] The setting unit is used to set the network search duration according to the current resident network;
[0023] The search unit is used to perform network search processing according to the network search duration and the preset network priority list;
[0024] The switching unit is configured to switch to a first network if the first network is obtained through the network search process; wherein the priority of the first network is greater than the priority of the currently resident network;
[0025] The processing unit is used to process the data service through the first network.
[0026] In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a detection unit, a setting unit, a search unit, a switching unit and a processing unit,
[0027] The first detection unit is used to detect the real-time state corresponding to the network search timer when processing data services through the current resident network;
[0028] The first setting unit sets a first preset time threshold according to the current resident network if the real-time status is running;
[0029] The first detection unit is further used to detect a first processing duration corresponding to the data service;
[0030] The first search unit is configured to perform network search processing according to a preset network priority list if the first processing time is greater than or equal to the first preset time threshold;
[0031] The switching unit is configured to switch to a first network if the first network is obtained through the network search process; wherein the priority of the first network is greater than the priority of the currently resident network;
[0032] The processing unit is used to process the data service through the first network.
[0033] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing instructions executable by the processor, wherein when the instructions are executed by the processor, the network search method as described above is implemented.
[0034] In a sixth aspect, an embodiment of the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip is running, it implements the network search method as described above.
[0035] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon, which is applied to an electronic device, and when the program is executed by a processor, the network search method as described above is implemented.
[0036] The embodiment of the present application provides a network search method, electronic device, chip and storage medium. When preparing to initiate a data service, the real-time state corresponding to the network search timer is detected; if the real-time state is running, the current resident network is determined; the network search duration is set according to the current resident network, and the network search process is performed according to the network search duration and the preset network priority list; if the first network is obtained through the network search process, it is switched to the first network and the data service is processed through the first network; wherein the priority of the first network is greater than the priority of the current resident network. When processing data services through the current resident network, the real-time state corresponding to the network search timer is detected; if the real-time state is running, a first preset time threshold is set according to the current resident network, and the first processing duration corresponding to the data service is detected at the same time; if the first processing duration is greater than or equal to the first preset time threshold, the network search process is performed according to the preset network priority list; if the first network is obtained through the network search process, it is switched to the first network and the data service is processed through the first network; wherein the priority of the first network is greater than the priority of the current resident network.
[0037] That is to say, in an embodiment of the present application, in the data service preparation initiation stage, if the electronic device detects that the network search timer is running, the electronic device first performs a network search process and switches to the first network obtained through the network search process and having a higher priority than the current resident network priority to process the data service; and in the data service execution stage, that is, when processing the data service through the current resident network, if the electronic device detects that the network search timer is running, the electronic device simultaneously detects the corresponding processing time of the data service on the current resident network, and when the processing time meets the preset time threshold corresponding to the current resident network, it performs a network search process again and switches to the first network obtained through the network search process and having a higher priority than the current resident network priority to process the data service. To summarize, when the data service is about to start, the electronic device first performs a network search and starts to process the data service through the high-priority network obtained through the network search. When the data service has started, in order to prevent the data service from being carried on the current resident network for a long time, the electronic device performs a network search when the processing time corresponding to the data service meets the preset time threshold, and continues to process the data service through the high-priority network obtained through the network search, thereby achieving high-frequency network searches, improving transmission efficiency during data services, further improving terminal performance, and enhancing user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1A schematic diagram of a background network search process in the related technology proposed in the embodiment of the present application;
[0039] Figure 2 A schematic diagram of the communication system architecture proposed in the embodiment of the present application;
[0040] Figure 3 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 1 ;
[0041] Figure 4 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 1 ;
[0042] Figure 5 A schematic diagram of a network search process proposed in an embodiment of the present application;
[0043] Figure 6 Schematic diagram of the network search process proposed in the embodiment of the present application Figure 1 ;
[0044] Figure 7 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 2 ;
[0045] Figure 8 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 3 ;
[0046] Fig. 9 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 4 ;
[0047] Fig.10 Schematic diagram of the network search process proposed in the embodiment of the present application Figure 2 ;
[0048] Fig.11 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 5 ;
[0049] Fig.12 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 2 ;
[0050] Fig.13 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 3 . DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.
[0052] With the development of wireless technology, wireless mobile communication networks have evolved from the second generation mobile communication system (2nd Generation, 2G), the third generation mobile communication system (3rd Generation, 3G), the fourth generation mobile communication system (4th Generation, 4G) to the fifth generation mobile communication system (5rd Generation, 5G). With the increasing popularity of the new radio (NR) technology, more and more smart electronic devices can support the NR mode to enjoy high-speed data services.
[0053] At present, the operator network, that is, the Public Land Mobile Network (PLMN), often provides a variety of access networks using different radio access technologies (Radio Access Technology, RAT), so that wireless electronic devices of the mobile communication network, such as smart phones, generally support multiple RATs. However, in certain specific cases, due to the performance of the mobile phone or the electronic device temporarily passing through an area with poor NR signals, the terminal may temporarily reside in a low-priority RAT network (such as 2G / 3G / 4G) in the terminal's home PLMN (Home PLMN, HPLMN) for a period of time. In order to enable the UE to return to the high-priority RAT network (such as 5G) in the HPLMN for efficient data service transmission, the high-priority RAT (Higher Priority RAT, HPRAT) timer timeout mechanism is often used to trigger a re-search for the high-priority RAT network in the HPLMN, that is, background search.
[0054] In the prior art, the duration of the HPRAT timer is generally based on the duration of the high-priority PLMN (HPPLMN) timer, where the duration of the HPPLMN timer is preset in the file of the USIM card in minutes. In other words, when the UE can return to the high-priority RAT network (such as 5G) in the HPLMN depends entirely on the time of the HPPLMN timer. Specifically, the current background search mechanism generally includes two types: "fixed background search" and "stepped background search". In the "fixed background search", the duration of the HPRAT timer is the same as the duration of the HPPLMN timer. The search device performs a background search every fixed duration (for example, 2 minutes) according to the duration of the HPRAT timer; while the "stepped background search" adjusts the duration of the HPRAT timer from the traditional fixed duration to a step-by-step duration. For example, if the duration of the HPPLMN timer is 2 minutes, then in the "stepped background search", the initial duration of the HPRAT timer can be in the second level (for example, 30 seconds), and then gradually increases to the minute level (for example, 1 minute), and can be set to the maximum duration of the HPPLMN timer, that is, 2 minutes. Compared with the "fixed background search", the search frequency of the "stepped background search" is relatively increased, which speeds up the time for the UE to return to the high-priority RAT network in the HPLMN.
[0055] Figure 1 A schematic diagram of a background network search process in the related technology proposed in the embodiment of the present application is shown in FIG. Figure 1 As shown in the figure, the UE enters an area with only 3G signals at the start time, moves to an area covered by Long Term Evolution (LTE) after 40 seconds (point C1), and moves to an area covered by NR signals after about 2.5 minutes (point C2). When the terminal's current resident network is 3G, if the terminal starts "fixed background search", that is, using the traditional HPRAT timer to perform a background search for a fixed duration (e.g., 2 minutes), that is, performing a search at points B1 and B2, then Figure 1 In the 4-minute range shown, the UE obtains the LTE signal at B1 and the NR signal at B2. If the terminal starts the "step-by-step background search", it can be 30s (point A1), 45s (point A2), 1min (point A3), 1min30s (point A4), 2min..., that is, the initial duration of the HPRAT timer is 30s, and then gradually increases to 45s, 1min, 1min30s..., so in Figure 1 In the 4-minute range shown, the UE acquires the LTE signal at D1 and the NR signal at D2.
[0056] Furthermore, if Figure 1As shown, since the LTE signal is turned on at point C1 and the NR signal is turned on at point C2, if it is a "fixed background search", the time difference between the time point B1 when the terminal obtains the LTE signal and the time point C1 when the actual LTE signal is turned on is 80s, and the time difference between the time point B2 when the terminal obtains the NR signal and the time point C2 when the actual NR signal is turned on is 90s; if it is a "step-by-step background search", the time difference between the time point D1 when the terminal obtains the LTE signal and the time point C1 when the actual LTE signal is turned on is 35s, and the time difference between the time point D2 when the terminal obtains the NR signal and the time point C2 when the actual NR signal is turned on is 75s. In comparison, the "step-by-step background search" does greatly speed up the time for the terminal to return to the high-priority RAT network in the HPLMN.
[0057] However, in the "fixed background search" and "stepped background search", Figure 1 As shown, if the terminal is in a low-priority RAT network (3G), and the UE starts data services in the time period from point C1 to point D1, then before starting the background network search (point A2), the terminal's data services can only be carried on the currently resident low-priority RAT network (3G); and because the background network search must give way to the data service, the background network search cannot be performed during the processing of the data service, that is, if the data service continues for a long time until it ends after a few minutes, during this period, even if the HPRAT timer has timed out (such as point A2, point A3, point A4), and the LTE / NR signal has been turned on successively, the background network search cannot be performed, resulting in the data service being carried on the low-priority RAT network (3G) currently resident by the terminal for a long time. Since for users, the most obvious difference between "low-priority RAT network in HPLMN" and "high-priority RAT network in HPLMN" is reflected in: the exponential increase in transmission speed during data services, therefore, the existing background network search mechanism still has the defect of low network search frequency, which makes the data transmission efficiency in the terminal data service process low, thereby reducing the performance of the terminal and the user experience is poor.
[0058] In order to solve the problems existing in the existing background network search mechanism, the embodiments of the present application provide a network search method, an electronic device, a chip and a storage medium. Specifically, in the data service preparation start stage, if the electronic device detects that the network search timer is running, the electronic device first performs a network search process and switches to the first network obtained through the network search process, which has a higher priority than the current resident network priority, to process the data service; and in the data service execution stage, that is, when the data service is processed through the current resident network, if the electronic device detects that the network search timer is running, the network device simultaneously detects the corresponding processing time of the data service on the current resident network, and when the processing time meets the preset time threshold corresponding to the current resident network, The network search process is performed again, and the second network obtained through the network search process and having a higher priority than the current resident network is switched to process the data service. That is, when the data service is about to start, the electronic device first performs a network search process, and starts to process the data service through the high-priority network obtained through the network search process. When the data service has started, in order to prevent the data service from being carried on the current resident network for a long time, the network device performs a network search process when the processing time corresponding to the data service meets the preset time threshold, and continues to process the data service through the high-priority network obtained through the network search process, thereby realizing high-frequency network search, improving transmission efficiency in the data service process, further improving terminal performance, and enhancing user experience.
[0059] It should be understood that the technical solutions of the embodiments of the present invention can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), LTE system, Universal Mobile Telecommunication System (UMTS), and other current communication systems, and in particular, to the fifth generation mobile communication technology 5G system.
[0060] Figure 2 This is a schematic diagram of the communication system architecture proposed in the embodiment of the present application, such as Figure 2As shown, the communication system may include a base station 10, an electronic device 20, and other electronic devices 30. The base station 10 may provide communication coverage for a specific geographical area, and may communicate with the electronic device 20 and other electronic devices 30 located in the coverage area. Optionally, the base station 10 may be an evolutionary network device (eNB or eNodeB) in an LTE system, or a network device in a 5G network or a network device in a future communication system, or a wireless controller in a cloud radio access network (CRAN), or the base station 10 may be a mobile switching center, a relay station, an access point, etc., which is not limited in the present application.
[0061] Optionally, the electronic device 20 may refer to an access terminal device, UE, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal device, a mobile device, a user terminal device, a terminal device, a wireless communication device, a user agent or a user device. The terminal may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, or a terminal device in a future evolved public land mobile network (PLMN), etc.
[0062] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0063] An embodiment of the present application provides a network search method, which is applied to Figure 3 The electronic device 20 shown, Figure 3 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 1 ,like Figure 3As shown, in an embodiment of the present application, the electronic device 20 includes a data service control module 21 and a network search module 22. The data service control module is used to monitor the start phase, the continuous phase and the end phase of the data service, and notify the network search module 22 of the real-time status of the data service; and the data service control module 21 is also used to receive a notification message for controlling the data service status sent by the network search module 22, and then suspend the data service or start the data service. The network search module 22 is used to detect the running status of the network search timer, i.e., the HPRAT timer, and receive the data service status sent by the data control module 21, and when it is detected that the real-time status corresponding to the HPRAT timer is running, different network search processes are performed according to different data service states.
[0064] Optionally, in an embodiment of the present application, the data service control module can exchange information with the network search module through a "handshake". Specifically, the data service control module can monitor the data service status in real time, including the start of data service preparation, i.e., the data service start stage, the data service has started, i.e., the data service continuation stage, and the data service end stage, and notify the network search module of the data service status through a "handshake" so that the network search module is aware of the current data service status.
[0065] Figure 4 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 1 ,like Figure 4 As shown, in an embodiment of the present application, the method for an electronic device to perform a network search may include the following steps:
[0066] Step 101: When preparing to initiate a data service, detect the real-time status corresponding to the network search timer.
[0067] In an embodiment of the present application, when preparing to initiate a data service, the electronic device may first detect the real-time status corresponding to the network search timer.
[0068] Optionally, in an embodiment of the present application, when the data control module monitors that the data service status is in the starting stage, that is, when preparing to initiate the data service, the data service control module can notify the network search module that the data service status is in the starting stage. At this time, the network search module can first detect the real-time status corresponding to the network search timer.
[0069] It should be noted that in the embodiments of the present application, data services can be any entertainment, life and business data services implemented by mobile communication networks such as General Packet Radio Service (GPRS), GSM, CDMA, LTE or NR used by electronic devices; for example, data services can be information services such as news, weather, travel, etc. provided to users; data services can also be entertainment services such as music, games, and chatting; data services can also be messaging services such as short messages and e-mails; data services can also be mobile business services such as online transactions and small payments. The present application does not limit the specific categories of data services.
[0070] Optionally, in an embodiment of the present application, the network search timer may be an HPRAT timer. Accordingly, when the network search module learns that the data service state corresponding to the data service is in the starting stage, the network search module may detect the running state of the HPRAT timer to determine that the real-time state corresponding to the HPRAT timer is running, or the HPRAT timer is not running.
[0071] Furthermore, in an embodiment of the present application, when the electronic device is preparing to initiate a data service, after detecting the real-time status corresponding to the network search timer, it can further determine that the current resident network is a high-priority RAT network in the HPLMN, or that the current resident network is a low-priority RAT network in the HPLMN.
[0072] Step 102: If the real-time status is running, determine the current resident network.
[0073] In an embodiment of the present application, when the electronic device is preparing to initiate a data service, after detecting the real-time status corresponding to the network search timer, if the real-time status is running, the electronic device can first determine the current resident network.
[0074] It should be noted that in the embodiments of the present application, the real-time status corresponding to the timer can be running or not running. Because when the electronic device currently resides on a low-priority RAT in the HPLMN (for example, when NR is the highest priority, 2G / 3G / 4G is a low priority), the electronic device will start the network search timer; and when the electronic device currently resides on the highest priority RAT in the HPLMN (for example, NR is the highest priority), the network search timer will not be started; it can be seen that if the real-time status of the network search timer is running, it means that the electronic device is currently residing on a low-priority RAT network. If the real-time status of the network search timer is not running, it means that the electronic device is currently residing on the highest priority RAT network.
[0075] Specifically, in an embodiment of the present application, the electronic device may support multiple RATs, such as 2G, 3G, or LTE, or NR. Each RAT has its corresponding priority. Optionally, a preset network priority list may be stored in the electronic device, and the network priority list may be stored in a file of a USIM card of the electronic device, or may be directly stored in a memory of the electronic device. Furthermore, the electronic device may find out the priority of the current resident network according to the preset network priority list and the current resident network by searching the preset network priority list. For example, assuming that the RAT priority order in the preset network priority list is NR>LTE>3G>2G, it can be understood that NR is the highest priority RAT, 2G is the lowest priority, and the priority of LTE is greater than the priority of 3G and less than the priority of NR, and the priority of 3G is greater than the priority of 2G and less than the priority of LTE.
[0076] Further, in an embodiment of the present application, if it is determined that the real-time state corresponding to the network search timer is running, then it can be considered that the network where the electronic device is currently resident is not the highest priority network, and therefore, the electronic device needs to search for a high priority network. At this time, the electronic device can first suspend the start of the data service. Optionally, the network search module can first send a first control message to the data service control module, and the first control message is used to instruct the data service control module to first control the start of the data service, that is, to suspend the start of the data service first, and keep the data service state in the idle state.
[0077] Optionally, in an embodiment of the present application, if it is detected that the real-time state corresponding to the network search timer is not running, it means that the electronic device resides on the highest priority network, and at this time, the electronic device can start data services. Optionally, the network search module can directly send a second control message to the data service control module, and the second control message is used to instruct the data service control module to start data services. The electronic device can directly process data services through the current resident network, and the data service state will change from idle state to connected state, wherein the data transmission efficiency of processing data services based on the highest priority network is the highest.
[0078] Further, in an embodiment of the present application, after the electronic device detects that the network search timer is running and determines the current resident network, the network search module can further perform a network search process.
[0079] Step 103: Set the network search duration according to the current resident network, and perform network search processing according to the network search duration and the preset network priority list.
[0080] In an embodiment of the present application, after the electronic device detects that the network search timer is running and determines the current resident network, it can first set the network search duration according to the current resident network, and then further perform network search processing according to the network search duration and the preset network priority list.
[0081] Specifically, in an embodiment of the present application, when the network search module performs a network search, it can first determine the priority of the current resident network through a preset network priority list, and then set the network search duration corresponding to the current resident network according to the priority of the current resident network. Optionally, the electronic device can establish a corresponding relationship between the network and the network search duration. Among them, the higher the priority of the network, the shorter the corresponding network search duration, and correspondingly, when the network priority is lower, the corresponding network search duration is longer.
[0082] Further, in an embodiment of the present application, the electronic device can determine the network to be searched corresponding to the current resident network based on the preset network priority list and the current resident network; wherein the priority of the network to be searched is greater than the priority of the current resident network. It is understandable that the electronic device can determine other high-priority networks that the network device needs to search and have a higher priority than the current resident network based on the current resident network and the preset network priority list. For example, if the current resident network is 2G, then it can be seen from the preset network priority list that the network to be searched corresponding to 2G is a 3G / LTE / NR or other network with a higher priority than the 2G network; if the current resident network is 3G, then it can be seen from the preset network priority list that the network to be searched corresponding to 3G is a LTE / NR or other network with a higher priority than the 3G network; if the current resident network is LTE, then the corresponding network to be searched is only NR with a higher priority than the LTE network priority.
[0083] Optionally, in an embodiment of the present application, the electronic device may be configured with a first timer to correspond to different network search durations through different timing durations. Specifically, the different timing durations may be that the electronic device is programmed through corresponding codes to set corresponding time parameters for the first timer. It is understandable that different timing durations achieve the setting of different network search durations for networks of different priorities. Accordingly, after the electronic device detects that the real-time status of the network search timer is running, the electronic device can start the first timer corresponding to the current resident network and perform network search processing during the operation of the first timer.
[0084] In order not to bring a long delay to the data service, the electronic device should strictly control the network search time. Exemplarily, in an embodiment of the present application, if the current resident network is 2G, and the corresponding network to be searched is a network such as 3G / LTE / NR, then the electronic device should try to search for NR / LTE / 3G networks to try to leave 2G, so the network search time corresponding to 2G is set to a longer time, such as 5s; if the current resident network is 3G, and the corresponding network to be searched is a network such as LTE / NR, then the electronic device needs to search for NR / LTE to try to leave 3G. Since the 3G network priority is higher than the 2G network priority, the set 3G corresponding network search time can be less than the 2G corresponding network search time, such as 3s; if the current resident network is LTE, then the corresponding network to be searched is only NR. Since the LTE network priority is second only to the NR network priority, the electronic device only needs to search for NR, so the set LTE network corresponding network search time is a shorter time, such as 1.5s.
[0085] Specifically, in the embodiment of the present application, when the electronic device performs the network search process within the network search duration, the network to be searched can be searched in descending order of priority. That is, when the electronic device performs the network search process, it first performs the search process of the highest priority network. If the highest priority network is found, it does not need to perform the network search process again; if it is not found, it continues to search the next network to be searched with a priority only lower than the highest priority, and so on, searching all the networks to be searched within the network search duration.
[0086] For example, in the embodiments of the present application, Figure 5 A schematic diagram of the network search process proposed in the embodiment of the present application is shown in FIG. Figure 5 As shown, assuming that the current resident network is a 3G network, the first timer is set to a duration of 3s, and the corresponding network to be searched is an LTE / NR network, then within 3s, the electronic device first performs a search process for the highest priority network to be searched NR (step 201), and then determines whether NR is found in 3s (step 202). If the NR network is found, it directly switches to NR (step 203) without continuing the search process; if the NR network is not found, the network search module continues to search for the next network to be searched LTE network with a priority only lower than the NR network priority (step 204), and then determines whether LTE is found in 3s (step 205). If the LTE network is found, it directly switches to LTE (step 206) without continuing the search process; if the LTE network is not found, it maintains the connection with the 3G network (step 207). When the current resident network is 2G, the network search process is similar, except that the first network to be searched corresponding to 2G is a 3G / NR / LTE network, which will not be repeated here.
[0087] Furthermore, in an embodiment of the present application, after the electronic device sets the network search duration according to the current resident network and performs network search processing according to the network search duration and the preset network priority list, it can further process data services through the obtained high-priority network.
[0088] Step 104: If the first network is obtained through the network search process, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the current resident network.
[0089] In an embodiment of the present application, after the electronic device sets the network search duration according to the current resident network and performs network search processing according to the network search duration and the preset network priority list, if the first network is obtained through the network search processing, then the electronic device can switch to the first network and process data services through the first network; wherein the priority of the first network is greater than the priority of the current resident network.
[0090] It should be noted that, in the embodiments of the present application, the first network may be the highest priority network, i.e., the target network; or the first network may have a priority higher than the priority of the current resident network but lower than the priority of the target network. Or, through the network search process, the electronic device does not obtain any network with a priority higher than the priority of the current resident network.
[0091] Specifically, in an embodiment of the present application, as long as the priority of the obtained first network is higher than the priority of the currently resident network, the electronic device can switch to the first network and process data services through the first network. At this time, the network search process is completed and the first timer is turned off.
[0092] Specifically, in an embodiment of the present application, if no network with a priority higher than the priority of the current resident network is obtained through the network search process, then after the first timer times out, the network search process is terminated. At this time, the electronic device maintains a connection with the current resident network and processes data services through the current resident network.
[0093] Furthermore, in an embodiment of the present application, if the highest priority network is obtained through the network search process, then when processing data services through the highest priority network, the network search timer needs to be stopped, and there is no need to perform the network search process; if the first network that is not the highest priority network is obtained through the network search process, or the first network is not obtained, then when processing data services, the network search timer is still running, and the search for the highest priority network needs to continue.
[0094] Exemplarily, when the search network is searched in descending order of priority, if the current resident network is a 3G network, and the highest priority network NR is obtained through the search process within the search duration, the electronic device stops the search process, and also stops the HPRAT timer and the first timer, so as to directly register with the NR to process data services through the NR. If the high priority network obtained through the search process is only the LTE network, when the electronic device processes the data service through LTE, the HPRAT timer still runs until the NR network is obtained through the search process and switched to the NR network.
[0095] Similarly, if LTE / NR is not obtained through the network search process, the network search process will end after the first timer expires, the electronic device will continue to be connected to 3G, and continue to process data services through 3G. When processing data services through 3G, the HPRAT timer will still run until NR is obtained through the network search process and switched to the NR network.
[0096] Figure 6 Schematic diagram of the network search process proposed in the embodiment of the present application Figure 1 ,like Figure 6 As shown, when preparing to initiate a data service, the electronic device first detects the real-time status corresponding to the HPRAT timer (step 301), and determines whether the HPRAT timer is running (step 302), wherein if the HPRAT timer is not running, the electronic device directly starts to process the data service (step 303), that is, uses the current resident network to process the data service; if the HPRAT timer is running, the electronic device sets the network search duration according to the current resident network (step 304), optionally, the resident network is 2G, and the corresponding network search duration is 5s; the resident network is 3G, and the corresponding network search duration is 3s; the resident network is LTE, and the corresponding network search duration is 1.5s; then, within the corresponding network search duration, perform network search processing (step 305), and after the network search processing is completed, start processing data services (step 306), specifically, if a high-priority RAT network is found, switch to the high-priority RAT network to start processing data services; if no high-priority RAT network is found, continue to process data services with the current resident network.
[0097] An embodiment of the present application provides a network search method. At the start stage of data service preparation, if the electronic device detects that the network search timer is running, the electronic device first performs a network search and switches to a first network obtained through the network search and having a higher priority than the current resident network to process the data service. That is, when the data service preparation starts, the electronic device first performs a network search and starts to process the data service through the high-priority network obtained through the network search, thereby realizing high-frequency network search, improving transmission efficiency during data service, and further improving the performance of the electronic device.
[0098] Based on the above embodiments, Figure 7 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 2 ,like Figure 7 As shown, in an embodiment of the present application, the method for an electronic device to perform a network search may include the following steps:
[0099] Step 401: When preparing to initiate a data service, detect the real-time status corresponding to the network search timer.
[0100] In an embodiment of the present application, when preparing to initiate a data service, the electronic device may first detect the real-time status corresponding to the network search timer.
[0101] Optionally, in an embodiment of the present application, the network search timer may be an HPRAT timer. Accordingly, when the network search module learns that the data service state corresponding to the data service is in the starting stage, the network search module may detect the running state of the HPRAT timer to determine that the real-time state corresponding to the HPRAT timer is running, or the HPRAT timer is not running.
[0102] Furthermore, in an embodiment of the present application, when the electronic device is preparing to initiate a data service, after detecting the real-time status corresponding to the network search timer, it can further determine that the current resident network is a high-priority RAT network in the HPLMN, or that the current resident network is a low-priority RAT network in the HPLMN.
[0103] Step 402: If the real-time status is running, determine the current resident network.
[0104] It should be noted that in an embodiment of the present application, when the electronic device is preparing to initiate a data service, after detecting the real-time status corresponding to the network search timer, if the real-time status corresponding to the network search timer is running, the electronic device can first determine the current resident network.
[0105] It should be noted that in the embodiments of the present application, the real-time state corresponding to the timer can be running or not running. If the real-time state of the network search timer is running, it means that the electronic device is currently residing on a low-priority RAT network. If the real-time state of the network search timer is not running, it means that the electronic device is currently residing on the highest-priority RAT network.
[0106] Further, in an embodiment of the present application, if it is determined that the real-time state corresponding to the network search timer is running, it can be considered that the current network where the electronic device resides is not the highest priority network, and therefore, the electronic device needs to search for a high priority network. At this time, the electronic device can first suspend the start of data services.
[0107] Optionally, in an embodiment of the present application, if it is detected that the real-time status corresponding to the network search timer is not running, it means that the electronic device resides on the highest priority network. At this time, the electronic device can start data services.
[0108] Further, in an embodiment of the present application, after the electronic device detects that the network search timer is running and determines the current resident network, the network search module can further perform a network search process.
[0109] Step 403: Set the network search duration according to the current resident network, and perform network search processing according to the network search duration and the preset network priority list.
[0110] In an embodiment of the present application, after the electronic device detects that the network search timer is running and determines the current resident network, it can first set the network search duration according to the current resident network, and then further perform network search processing according to the network search duration and the preset network priority list.
[0111] Optionally, the electronic device may establish a correspondence between the network and the network search duration, wherein the higher the network priority, the shorter the corresponding network search duration, and correspondingly, the lower the network priority, the longer the corresponding network search duration.
[0112] Further, in an embodiment of the present application, the electronic device can determine the network to be searched corresponding to the current resident network according to the preset network priority list and the current resident network; wherein the priority of the network to be searched is greater than the priority of the current resident network. Specifically, when the electronic device performs the network search process within the network search duration, the network to be searched can be searched in the order of priority from high to low.
[0113] Furthermore, in an embodiment of the present application, after the electronic device sets the network search duration according to the current resident network and performs network search processing according to the network search duration and the preset network priority list, it can further process data services through the obtained high-priority network.
[0114] Step 404: If the first network obtained through the network search process is not the target network, switch to the first network to process data services, and keep the real-time status corresponding to the network search timer running; wherein the priority of the first network is greater than the priority of the current resident network; the target network is the network corresponding to the highest priority in the preset network priority list.
[0115] In an embodiment of the present application, after the electronic device performs a network search according to the network search duration and a preset network priority list, if the first network obtained through the network search is not the target network, the electronic device can switch to the first network to process data services, and at this time keep the real-time status corresponding to the network search timer as running.
[0116] It should be noted that in the embodiment of the present application, as long as the priority of the obtained first network is higher than the priority of the current resident network, the electronic device can switch to the first network and process data services through the first network. At this time, the network search process is completed and the first timer is turned off.
[0117] Furthermore, if the first network obtained through the network search process is not the highest priority network, then when processing the data service, the network search timer is still running and the search for the highest priority network needs to continue.
[0118] Furthermore, in an embodiment of the present application, after the electronic device switches to the first network to process data services and keeps the real-time status corresponding to the network search timer running, the electronic device can further perform detection processing of the processing time of the data services when the network search timer is running.
[0119] Step 405: Set a first preset time threshold according to the first network, and simultaneously detect a first processing duration corresponding to the data service.
[0120] In an embodiment of the present application, after the electronic device switches to the first network to process data services and keeps the real-time status corresponding to the network search timer running, the electronic device can set a first preset time threshold according to the first network and detect the first processing duration corresponding to the data service.
[0121] It should be noted that in an embodiment of the present application, after the network search process is completed, the electronic device turns off the first timer. In order to avoid the data service being carried on the first network corresponding to the low priority for a long time, the electronic device can set a time threshold corresponding to the network. Specifically, different priority networks set different time thresholds, such as: the first network corresponds to the first preset time threshold, that is, the longest time the data service is carried on the first network. When processing data services through the first network, the electronic device can detect the first processing duration corresponding to the data service. Optionally, the time for processing data services through the first network can be monitored by a second timer. At this time, the timing duration corresponding to the second timer is the same as the first preset time threshold corresponding to the first network.
[0122] Furthermore, in an embodiment of the present application, after the electronic device finds that the first network obtained through network search processing is not the target network and switches to the first network to process data services, the electronic device simultaneously detects the first processing time corresponding to the data service, and can further compare the first processing time with the first preset time threshold, and determine the time for network search processing through the comparison result.
[0123] Step 406: If the first processing time is greater than or equal to the first preset time threshold corresponding to the first network, perform network search again according to the preset network priority list.
[0124] In an embodiment of the present application, after the electronic device switches to the first network to process the data service and detects the first processing time corresponding to the data service, if the first processing time is greater than or equal to the first preset time threshold, the electronic device can perform network search processing according to the preset network priority list.
[0125] Optionally, in an embodiment of the present application, the electronic device may use the second timer timeout mechanism to start the network search process. Specifically, when the electronic device starts the second timer to monitor the first processing duration corresponding to the data service, when the first processing duration is monitored to be greater than or equal to the first preset time threshold corresponding to the current resident network, that is, when the second timer expires, the electronic device suspends processing the data service through the current resident network, converts the data service state to the dormant state, and performs the network search process.
[0126] Further, in an embodiment of the present application, the electronic device can determine the to-be-searched network corresponding to the first network according to the preset network priority list and the first network; wherein the priority of the to-be-searched network is greater than the priority of the first network. Specifically, after the second timer times out, that is, when the first processing duration corresponding to the data service is greater than or equal to the first preset time threshold, the electronic device can search the to-be-searched network in descending order of priority.
[0127] Furthermore, in an embodiment of the present application, when the first processing duration is greater than or equal to a first preset time threshold, the electronic device can further process data services through the obtained high-priority network after performing a network search according to a preset network priority list.
[0128] Step 407: If a second network is obtained through the network search process, switch to the second network and process data services through the second network; wherein the priority of the second network is greater than the priority of the first network.
[0129] In an embodiment of the present application, when the first processing duration is greater than or equal to the first preset time threshold, after the electronic device performs a network search process according to the preset network priority list, if a second network is obtained through the network search process, the electronic device can switch to the second network and process data services through the second network. The priority of the second network is greater than the priority of the first network.
[0130] Specifically, in the embodiment of the present application, as long as the priority of the obtained second network is higher than the priority of the first network, the electronic device can switch to the second network and process the data service through the second network.
[0131] Furthermore, in an embodiment of the present application, if the second network is not obtained through the network search process, then when processing the data service through the first network, it is necessary to continue to search for the highest priority network. At this time, the network search timer and the second timer are still running, and the processing time corresponding to the data service continues to be monitored through the second timer. After the second timer times out, the network search process is performed again until the highest priority network is searched.
[0132] Furthermore, in the embodiments of the present application, Figure 8 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 3 ,like Figure 8As shown, after the electronic device sets the network search duration according to the current resident network and performs the network search process according to the network search duration and the preset network priority list, that is, after step 403, if the electronic device fails to obtain the first network through the network search process, that is, fails to search for any network with a priority higher than the priority of the current resident network, then the electronic device needs to start processing the above-mentioned data service through the current resident network, such as: the preset network priority is 3G<4G<5G, if the current resident network is 3G, and 4G or 5G is not searched after the network search process, then it is necessary to process the data service based on the 3G network; and, since the electronic device has not searched for the highest priority network at this time, the real-time state corresponding to the network search timer is still maintained as running (step 408); in order to avoid data If the data service is carried on the current resident network with a low priority for a long time, the electronic device can set a time threshold for using the current resident network to process the above-mentioned data service, that is, a second preset time threshold; and simultaneously detect the time for using the current resident network to process the data service, that is, the second processing duration (step 409); if the second processing duration is greater than or equal to the second preset time threshold, at this time, the electronic device performs a network search process again; specifically, the electronic device performs a network search process according to a preset network priority list (step 410); if the electronic device obtains a third network through the network search process again, wherein the priority of the third network is greater than that of the current resident network; then the electronic device can switch from the current resident network to the third network, and process the data service through the third network (step 411).
[0133] The embodiment of the present application provides a network search method. At the start stage of data service preparation, if the electronic device detects that the network search timer is running, the electronic device prioritizes network search processing and switches to a first network obtained through network search processing and having a higher priority than the current resident network priority to process the data service, or still processes the data service through the current resident network; when the network currently processing the data service is not the highest priority network, in order to avoid the data service being carried on the low priority RAT network for a long time, the electronic device continues to detect the corresponding processing time of the data service carried on the first network, and when the processing time meets the preset time threshold corresponding to the first network, the electronic device is forced to perform network search processing and switch to a second network obtained through network search processing and having a higher priority than the current resident network priority to process the data service, that is, when the data service preparation starts, the electronic device prioritizes network search processing and starts to process the data service through the high priority network obtained through network search processing. If the high priority is not the highest priority network, in order to prevent the data service from being carried on the current resident network for a long time, the network device is forced to perform network search processing when the processing time corresponding to the data service meets the preset time threshold, thereby realizing high-frequency network search, improving transmission efficiency in the data service process, further improving electronic device performance, and enhancing user experience.
[0134] Another embodiment of the present application provides a network search method. Fig. 9 Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 4 ,like Fig. 9 As shown, in an embodiment of the present application, the method for an electronic device to perform a network search may include the following steps:
[0135] Step 501: When processing data services through the current resident network, detect the real-time status corresponding to the network search timer.
[0136] In an embodiment of the present application, when processing data services through the currently resident network, the electronic device detects the real-time status corresponding to the network search timer.
[0137] Optionally, in an embodiment of the present application, when the data control module monitors that the data service status is in a continuous stage, that is, the data service has been carried out through the current resident network, the data service control module can notify the network search module that the data service status is in a continuous stage. At this time, the network search module can first detect the real-time status corresponding to the network search timer.
[0138] Optionally, in an embodiment of the present application, the network search timer may be an HPRAT timer. Accordingly, when the network search module learns that the data service state corresponding to the data service is in the starting stage, the network search module may detect the running state of the HPRAT timer to determine that the real-time state corresponding to the HPRAT timer is running, or the HPRAT timer is not running.
[0139] Furthermore, when the electronic device processes data services through the current resident network, after detecting the real-time status corresponding to the network search timer, it can further determine based on the real-time status of the network search timer whether the current resident network is a high-priority RAT network in the HPLMN, or whether the current resident network is a low-priority RAT network in the HPLMN.
[0140] Step 502: If the real-time status is in operation, a first preset time threshold is set according to the current resident network, and a first processing duration corresponding to the data service is detected.
[0141] In an embodiment of the present application, when the electronic device processes data services through the current resident network, after detecting the real-time state corresponding to the network search timer, if the real-time state is running, the electronic device can set a first preset time threshold according to the current resident network and detect the first processing time corresponding to the data service.
[0142] It should be noted that in the embodiments of the present application, the real-time state corresponding to the timer can be running or not running. If the real-time state of the network search timer is running, it means that the electronic device is currently residing on a low-priority RAT network. If the real-time state of the network search timer is not running, it means that the electronic device is currently residing on the highest-priority RAT network.
[0143] Optionally, a preset network priority list may be stored in the electronic device, and the network priority list may be stored in a file of a USIM card of the electronic device, or may be directly stored in a memory of the electronic device. Further, the electronic device may obtain the priority of the current resident network by searching the preset network priority list and according to the preset network priority list and the current resident network.
[0144] Further, in an embodiment of the present application, if it is determined that the real-time status corresponding to the network search timer is not running, then it can be considered that the current resident network of the electronic device is the highest priority network, and therefore, the electronic device does not need to search for a high priority network. At this time, the electronic device can continue to process data services through the current resident network. Optionally, the network search module can directly send a second control message to the data service control module, and the second control message is used to instruct the data service control module to continue to process data services through the current resident network, and the data service state continues to remain in a connected state, wherein the data transmission efficiency of processing data services based on the highest priority RAT network is the highest.
[0145] Optionally, in an embodiment of the present application, if it is determined that the real-time state corresponding to the network search timer is running, then it can be considered that the current resident network of the electronic device is not the highest priority network, and therefore, the electronic device needs to search for a high priority network. Specifically, the electronic device can first determine the priority of the current resident network through a preset network priority list, and further set the time threshold for the data service to be carried on the current resident network according to the priority of the current resident network, that is, the first preset time threshold corresponding to the current resident network. Optionally, the electronic device can establish a corresponding relationship between the network and the preset time threshold. Among them, the higher the priority of the network, the larger the corresponding preset time threshold, that is, the longer the time to process the data service through the network, and correspondingly, when the priority of the network is lower, the smaller the corresponding preset time threshold, that is, the shorter the time to process the data service through the network.
[0146] Optionally, in an embodiment of the present application, the electronic device may be configured with a second timer for monitoring the time for processing data services through the network. Specifically, preset time thresholds of different sizes may be set by the electronic device through corresponding code programming to set corresponding time parameters for the second timer. It can be understood that different timing durations achieve different preset time thresholds for networks of different priorities. Accordingly, after the electronic device detects that the real-time state of the network search timer is running, the electronic device may start the second timer corresponding to the current resident network and monitor the time for processing data services through the current resident network during the operation of the first timer.
[0147] Exemplarily, in an embodiment of the present application, if the current resident network is 2G, the electronic device should search for NR / LTE / 3G networks as much as possible to try to leave 2G to avoid data services being carried on the low-priority 2G network for a long time. The preset time threshold should be set to a shorter time, such as 1.5 minutes; if the current resident network is 3G, the electronic device needs to search for NR / LTE networks to try to leave 3G. Since the priority of the 3G network is higher than the priority of the 2G network, the preset time threshold corresponding to the 3G network can be greater than the preset time threshold corresponding to the 2G network, such as 3 minutes; if the current resident network is LTE, since the priority of the LTE network is second only to the priority of the NR network, the network search module only needs to search NR, so the preset time threshold corresponding to the LTE network is set to be longer, such as 4 minutes.
[0148] Furthermore, in an embodiment of the present application, if the real-time status is running, the electronic device sets a first preset time threshold according to the current resident network, and after detecting the first processing duration corresponding to the data service, it can further compare the first processing duration and the first preset time threshold, and determine the time for network search processing through the comparison result.
[0149] Step 503: If the first processing time is greater than or equal to the first preset time threshold, perform network search processing according to the preset network priority list.
[0150] In an embodiment of the present application, when the real-time status of the network search timer of the electronic device is running, a first preset time threshold is set according to the current resident network, and a first processing duration corresponding to the data service is detected at the same time, if the first processing duration is greater than or equal to the first preset time threshold, then the electronic device can perform network search processing according to the preset network priority list.
[0151] Optionally, in an embodiment of the present application, the electronic device may use the second timer timeout mechanism to start the network search process. Specifically, when the electronic device starts the second timer to monitor the first processing duration corresponding to the data service, when the first processing duration is monitored to be greater than or equal to the first preset time threshold corresponding to the current resident network, that is, when the second timer expires, the electronic device suspends processing the data service through the current resident network, converts the data service state to the dormant state, and performs the network search process.
[0152] Optionally, in an embodiment of the present application, if the first processing duration is less than a first preset time threshold, the data service continues to be processed through the current resident network, and the data service state continues to remain in a connected state.
[0153] Further, in an embodiment of the present application, the electronic device can determine the network to be searched corresponding to the current resident network based on the preset network priority list and the current resident network; wherein the priority of the network to be searched is greater than the priority of the current resident network. It is understandable that the electronic device can determine other high-priority networks that the network device needs to search and have a higher priority than the current resident network based on the current resident network and the preset network priority list. For example, if the current resident network is 2G, then it can be seen from the preset network priority list that the network to be searched corresponding to 2G is a 3G / LTE / NR or other network with a higher priority than the 2G network; if the current resident network is 3G, then it can be seen from the preset network priority list that the network to be searched corresponding to 3G is a LTE / NR or other network with a higher priority than the 3G network; if the current resident network is LTE, then the corresponding network to be searched is only NR with a higher priority than the LTE network priority.
[0154] Specifically, in an embodiment of the present application, the electronic device can perform a network search process after the second timer times out, that is, when the processing time corresponding to the data service is greater than or equal to the preset time threshold. Specifically, the electronic device can perform a network search process on the searched networks in descending order of priority.
[0155] Furthermore, in an embodiment of the present application, when the first processing duration is greater than or equal to a first preset time threshold, the electronic device can further process data services through the obtained high-priority network after performing a network search according to a preset network priority list.
[0156] Step 504: If the first network is obtained through the network search process, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the current resident network.
[0157] In an embodiment of the present application, when the first processing duration is greater than or equal to the first preset time threshold, the electronic device performs a network search according to a preset network priority list. If a first network is obtained through the network search, the electronic device can switch to the first network and process data services through the first network; wherein the priority of the first network is greater than the priority of the currently resident network.
[0158] It should be noted that, in the embodiments of the present application, the first network may be the highest priority network, i.e., the target network; or the first network may have a priority higher than the priority of the current resident network but lower than the priority of the target network. Or, through the network search process, the electronic device does not obtain the first network, that is, does not obtain any network with a priority higher than the priority of the current resident network.
[0159] Specifically, in the embodiment of the present application, as long as the priority of the first network obtained is higher than the priority of the current resident network, the network search process is completed, and the electronic device can switch to the first network and process data services through the first network. At this time, the data service state is converted from the dormant state to the connected state.
[0160] Specifically, in an embodiment of the present application, if the first network is not obtained through the network search process, that is, no network with a priority higher than the priority of the current resident network is obtained, then after the first timer times out, the network search process is terminated, and at this time, the electronic device maintains the connection with the current resident network and processes the data service through the current resident network. At this time, the data service state is converted from the dormant state to the connected state.
[0161] Furthermore, in an embodiment of the present application, if the highest priority network is obtained through network search processing, then when processing data services through the highest priority network, it is necessary to stop the network search timer and the second timer, and there is no need to perform network search processing; if a first network that is not the highest priority network is obtained through network search processing, or the first network is not obtained, then when processing data services, it is necessary to continue searching for the highest priority network. At this time, the network search timer and the second timer are still running, and the processing time corresponding to the data service continues to be monitored through the second timer, and after the second timer times out, the network search processing is performed again until the highest priority network is searched.
[0162] Exemplarily, when the search networks are searched in order of priority from high to low, if the current resident network is a 3G network, when the processing time corresponding to the data service is greater than or equal to the preset time threshold corresponding to the 3G network, if the highest priority network NR is obtained through the network search process, then the electronic device stops the network search process, and also stops the HPRAT timer and the second timer, so as to directly register with the NR to process the data service through the NR. If the high priority network obtained through the network search process is only the LTE network, then the network search process is terminated. When the electronic device processes the data service through LTE, since LTE is not the highest priority network, when processing the data service through LTE, the HPRAT timer and the second timer are still running, and after the second timer times out, the network search process is entered again until the NR network is obtained through the network search process and switched to the NR network.
[0163] Similarly, if LTE / NR is not obtained through the network search process, the network search process will end after the second timer times out, and the electronic device will continue to be connected to 3G and continue to process data services through 3G. Furthermore, when processing data services through 3G, the HPRAT timer and the second timer will still run until NR is obtained through the network search process and switched to the NR network.
[0164] Further, in an embodiment of the present application, during the operation of the second timer, the data service is in a connected state. If the electronic device leaves the connected state and enters an idle state or a dormant state during the operation of the second timer, the second timer needs to be stopped immediately. That is, during the operation of the second timer, the data service is in a connected state, and the electronic device can transmit data services. If the electronic device enters an idle state or a dormant state during the operation of the second timer, data services are not transmitted, and network search processing is not performed. If the electronic device remains in a connected state during the operation of the second timer, that is, the electronic device continues to transmit data services during the operation of the second timer, then after the second timer times out, the electronic device performs network search processing.
[0165] Fig.10 Schematic diagram of the network search process proposed in the embodiment of the present application Figure 2 ,like Fig.10As shown, when processing data services through the current resident network, the electronic device first detects the real-time status corresponding to the HPRAT timer (step 601), and determines whether the HPRAT timer is running (step 602), wherein if the HPRAT timer is not running, the electronic device continues to process the data service (step 603), that is, uses the current resident network to continue to process the data service; if the HPRAT timer is running, the electronic device sets a preset time threshold according to the current resident network, and detects the processing time of the data service at the same time (step 604), optionally, the resident network is 2G, and the corresponding preset time threshold is 1.5mn; the resident network is 3G, and the corresponding network search time is 3min; the resident network is LTE, and the corresponding network search time is 4min; further, determine whether the processing time is greater than or equal to the corresponding preset time threshold (step 605), if the processing time is greater than or equal to the corresponding preset time Threshold, network search processing is performed (step 606). For example, if the data service is currently processed through 2G, then when the processing time corresponding to the data service is greater than or equal to 1.5mn, the electronic device performs network search processing; if the data service is currently processed through 3G, then when the processing time corresponding to the data service is greater than or equal to 3min, the electronic device performs network search processing; if the data service is currently processed through LTE, then when the processing time corresponding to the data service is greater than or equal to 4mn, the electronic device performs network search processing; if the processing time is less than the corresponding preset time threshold, the data service continues to be processed through the current resident network (step 607). After the network search processing is completed, the data service continues to be processed (step 608). Specifically, if a high-priority RAT network is found, switch to the high-priority RAT network to start processing the data service; if no high-priority RAT network is found, continue to process the data service with the current resident network.
[0166] An embodiment of the present application provides a network search method. During the data service phase, that is, when processing data services through the current resident network, if the electronic device detects that the network search timer is running, the network device simultaneously detects the corresponding processing time of the data service on the current resident network, and when the processing time meets the preset time threshold corresponding to the current resident network, the network search process is forced to be performed, and the network obtained through the network search process and having a higher priority than the current resident network priority is switched to process the data service. That is, when the data service has started, in order to prevent the data service from being carried on the current resident network for a long time, the network device forces the network search process to be performed when the processing time corresponding to the data service meets the preset time threshold, thereby achieving high-frequency network search, improving transmission efficiency during data services, and further improving the performance of electronic devices.
[0167] Based on the above embodiment, in yet another embodiment of the present application, Fig.11Schematic diagram of the implementation process of the network search method proposed in the embodiment of the present application Figure 5 ,like Fig.11 As shown, if the first processing time is greater than or equal to the first preset time threshold, after performing the network search process according to the preset network priority list, that is, after step 503, the method for the electronic device to perform a network search may further include:
[0168] Step 505: Receive a service connection request corresponding to the real-time data service.
[0169] In an embodiment of the present application, when the first processing duration of the electronic device is greater than or equal to the first preset time threshold corresponding to the first network, after performing a network search according to a preset network priority list, the electronic device can receive a service connection request corresponding to a real-time data service during the network search process.
[0170] It should be noted that in the embodiments of the present application, the real-time data service is different from the data service previously processed through the current resident network. For example, the data service processed through the current resident network may be text messaging, and the real-time data service may be gaming; or the data service processed through the current resident network may be WeChat chatting, and the real-time data service may be video downloading, etc., which are completely different types of services; or the data service processed through the current resident network is gaming, and the real-time data service is listening to music; or the data service processed through the current resident network is QQ chatting, and the real-time data service is WeChat chatting, etc., which are data services of the same type but with different data contents.
[0171] Optionally, in an embodiment of the present application, after the second timer times out, the electronic device suspends processing of data services, and during the network search process, the electronic device can receive data service requests from the network at any time, that is, service connection requests corresponding to real-time data services sent by the base station. For example, assuming that the current time of playing games on the 3G network is greater than or equal to 3 minutes, the electronic device performs a network search process. During the network search process, the electronic device can receive paging of other real-time data services sent by the base station at any time, such as receiving WeChat messages sent by others and opening WeChat to chat.
[0172] Furthermore, in an embodiment of the present application, after receiving a service connection request corresponding to a real-time data service, the electronic device may further respond to the connection request and process the real-time data service.
[0173] Step 506: respond to the service connection request, suspend the network search process, and process the real-time data service through the current resident network, while detecting the third processing duration corresponding to the real-time data service.
[0174] In an embodiment of the present application, after receiving a service connection request corresponding to a real-time data service, the electronic device can respond to the connection request. The electronic device can suspend the network search process being executed, that is, pause the network search process, and process the real-time data service through the first network, and at the same time detect the duration of the real-time data service carried on the first network, that is, the third processing duration.
[0175] Specifically, in an embodiment of the present application, when the electronic device is performing a network search process, it can perform a search process on each frequency point. If the network search process reaches a certain frequency point (for example, the third frequency point) and no high-priority network is found, the electronic device receives a service connection request for a real-time data service sent by a base station (such as a paging message for a real-time data service), at this time, the electronic device can suspend the network search process and convert the data service state from a dormant state to a connected state, and then process the real-time data service based on the first network.
[0176] Furthermore, when processing real-time data services on the first network, since the real-time data services are currently still carried on the low-priority RAT network, when processing real-time data services through the first network, the network search device continues to monitor the processing time corresponding to the real-time data services through the second timer, that is, monitors the time for processing real-time data services through the first network.
[0177] Furthermore, in an embodiment of the present application, after detecting the third processing duration corresponding to the real-time data service, the electronic device may further compare the third processing duration with the first preset time threshold, and determine the time to perform network search again based on the comparison result.
[0178] Step 507: When the third processing time is greater than or equal to the first preset time threshold, continue the network search process.
[0179] In an embodiment of the present application, after detecting the third processing time corresponding to the real-time data service, the electronic device can further compare the third processing time with the first preset time threshold. If the third processing time is greater than or equal to the first preset time threshold, the electronic device can perform network search again according to the preset network priority list.
[0180] Specifically, in an embodiment of the present application, if the real-time data service is not processed when the third processing duration is greater than or equal to the first preset time threshold, then after the second timer times out, the electronic device performs a network search process again, but does not start a new network search process. Instead, it continues the previously unfinished and suspended network search process, that is, continues the network search process from the previous third frequency point stage.
[0181] Further, in an embodiment of the present application, if the real-time data service has been processed when the third processing duration does not reach the first preset time threshold, then there is no need to wait until the second timer times out. At this time, the electronic device directly performs a network search process. Similarly, it does not start a new network search process, but continues the previously unfinished and suspended network search process, that is, continues the network search process from the previous third frequency point stage.
[0182] The embodiment of the present application provides a network search method. When the data service state is in a continuous stage and the electronic device is performing a network search process, on the one hand, the network search process can be suspended by a data service connection request from the network end at any time, that is, the network search process is suspended. On the other hand, when the next network search process needs to be executed, the electronic device will continue the previously suspended network search process instead of starting a new network search process, which not only avoids a long delay in data service processing, but also improves the transmission efficiency in the data service process, and further improves the performance of the electronic device.
[0183] Based on the above embodiment, in yet another embodiment of the present application, Fig.12 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 2 ,like Fig.12 As shown, the electronic device 20 proposed in the embodiment of the present application may include a detection unit 23, a determination unit 24, a setting unit 25, a search unit 26, a switching unit 27, a processing unit 28, a control unit 29, a receiving unit 210 and a responding unit 211.
[0184] The detection unit 23 detects the real-time status corresponding to the network search timer when preparing to initiate a data service;
[0185] The determining unit 24 is configured to determine the current resident network if the real-time status is running;
[0186] The setting unit 25 is used to set the network search duration according to the current resident network;
[0187] The search unit 26 is used to perform network search processing according to the network search duration and the preset network priority list;
[0188] The switching unit 27 is configured to switch to the first network if the first network is obtained through the network search process; wherein the priority of the first network is greater than the priority of the currently resident network;
[0189] The processing unit 28 is configured to process the data service through the first network.
[0190] Furthermore, in an embodiment of the present application, the network search timer is a high priority network HPRAT timer.
[0191] Furthermore, in an embodiment of the present application, the processing unit 28 is also used to detect the real-time status corresponding to the network search timer when preparing to initiate a data service. If the real-time status is not running, the data service is directly processed through the current resident network.
[0192] Further, in an embodiment of the present application, the search unit 26 is specifically used to determine the network to be searched based on the preset network priority list and the current resident network; wherein the priority of the network to be searched is greater than the priority of the current resident network; and within the network search duration, the network search processing is performed on the network to be searched in order of priority from high to low.
[0193] Further, in an embodiment of the present application, the control unit 29 is used to stop the network search timer after performing network search processing according to the network search duration and the preset network priority list, when the first network obtained through the network search processing is the target network; wherein the target network is the network corresponding to the highest priority in the preset network priority list.
[0194] Furthermore, in an embodiment of the present application, the control unit 29 is also used to keep the real-time status corresponding to the network search timer running after performing network search processing according to the network search duration and the preset network priority list, when the first network obtained through the network search processing is not the target network.
[0195] Furthermore, in an embodiment of the present application, the setting unit 25 is also used to set a first preset time threshold according to the first network after keeping the real-time status corresponding to the network search timer as running when the first network obtained through the network search process is not the target network.
[0196] Furthermore, in an embodiment of the present application, the detection unit 23 is further configured to detect a first processing duration corresponding to the data service.
[0197] Furthermore, in an embodiment of the present application, the search unit 26 is further configured to perform the network search process again according to a preset network priority list if the first processing duration is greater than or equal to the first preset time threshold.
[0198] Furthermore, in an embodiment of the present application, the switching unit 27 is further configured to switch to a second network if a second network is obtained through the network search process; wherein the priority of the second network is greater than the priority of the first network.
[0199] Furthermore, in an embodiment of the present application, the processing unit 28 is further configured to process the data service through the second network.
[0200] Furthermore, in an embodiment of the present application, the processing unit 28 is also used to, after performing network search processing according to the network search duration and the preset network priority list, if the first network is not obtained through the network search processing, process the data service through the current resident network and keep the real-time status corresponding to the network search timer as running.
[0201] Furthermore, in an embodiment of the present application, the setting unit 25 is also used to set a second preset time threshold according to the current resident network after processing the data service through the current resident network if the first network is not obtained through the network search process, and keeping the real-time status corresponding to the network search timer as running.
[0202] Furthermore, in an embodiment of the present application, the detection unit 23 is further configured to detect a second processing duration corresponding to the data service.
[0203] Furthermore, in an embodiment of the present application, the search unit 26 is further configured to perform the network search process again according to a preset network priority list if the second processing duration is greater than or equal to the second preset time threshold.
[0204] Furthermore, in an embodiment of the present application, the switching unit 27 is further configured to switch to a third network if a third network is obtained through the network search process; wherein the priority of the third network is greater than the priority of the currently resident network.
[0205] Furthermore, in an embodiment of the present application, the processing unit 28 is further configured to process the data service through the third network.
[0206] Based on the above embodiment, in another embodiment of the present application,
[0207] The detection unit 23 is also used to detect the real-time state corresponding to the network search timer when processing data services through the current resident network;
[0208] The setting unit 25 is further configured to set a first preset time threshold according to the current resident network if the real-time status is in operation;
[0209] The detection unit 23 is further used to detect a first processing duration corresponding to the data service;
[0210] The search unit 26 is further configured to perform network search processing according to a preset network priority list if the first processing time is greater than or equal to the first preset time threshold;
[0211] The switching unit 27 is further configured to switch to a first network if a first network is obtained through the network search process; wherein the priority of the first network is greater than the priority of the currently resident network;
[0212] The processing unit 28 is further configured to process the data service through the first network.
[0213] Furthermore, in an embodiment of the present application, the processing unit 28 is also used to detect the real-time status corresponding to the network search timer when processing data services through the current resident network. If the real-time status is not running, continue to process the data services through the current resident network.
[0214] Further, in an embodiment of the present application, the search unit 26 is also specifically used to determine the network to be searched according to the preset network priority list and the current resident network when the first processing duration is greater than or equal to the first preset time threshold; wherein the priority of the network to be searched is greater than the priority of the current resident network; and the network search processing is performed on the network to be searched in order of priority from high to low.
[0215] Furthermore, in an embodiment of the present application, the control unit 29 is also used to, if the first processing duration is greater than or equal to the first preset time threshold, perform network search processing according to a preset network priority list, and when the first network obtained through the network search processing is the target network, stop the network search timer; wherein, the target network is the network corresponding to the highest priority in the preset network priority list.
[0216] Furthermore, in an embodiment of the present application, the control unit 29 is also used to, after performing network search processing according to a preset network priority list if the first processing duration is greater than or equal to the first preset time threshold, keep the real-time status corresponding to the network search timer running when the first network obtained through the network search processing is not the target network.
[0217] Furthermore, in an embodiment of the present application, the detection unit 23 is also used to simultaneously detect a second processing duration corresponding to the data service.
[0218] Furthermore, in an embodiment of the present application, the search unit 26 is further configured to perform the network search process again when the second processing time is greater than or equal to a second preset time threshold corresponding to the first network.
[0219] Furthermore, in an embodiment of the present application, the processing unit 28 is also used to, if the first processing duration is greater than or equal to the first preset time threshold, perform network search processing according to the preset network priority list, and if the first network is not obtained through the network search processing, continue to process the data service through the currently resident network.
[0220] Further, in an embodiment of the present application, the receiving unit 210 is used to receive a service connection request corresponding to a real-time data service;
[0221] Furthermore, in an embodiment of the present application, the response unit 211 is used to respond to the service connection request and suspend the network search process.
[0222] Furthermore, in an embodiment of the present application, the processing unit 28 is further configured to process the real-time data service through the current resident network.
[0223] Furthermore, in an embodiment of the present application, the detection unit 23 is further configured to detect a third processing duration corresponding to the real-time data service.
[0224] Further, in an embodiment of the present application, the search unit 26 is further configured to continue the network search process when the third processing duration is greater than or equal to the first preset time threshold.
[0225] In the embodiments of the present application, further, Fig.13 Schematic diagram of the electronic device structure proposed in this application Figure 3 ,like Fig.13 As shown, the electronic device 20 proposed in the embodiment of the present application may also include a processor 212, a memory 213 storing executable instructions of the processor 212, and further, the electronic device 20 may also include a communication interface 214, and a bus 215 for connecting the processor 212, the memory 213 and the communication interface 214.
[0226] In the embodiment of the present application, the processor 212 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and the embodiment of the present application is not specifically limited. The electronic device 20 can also include a memory 213, which can be connected to the processor 212, wherein the memory 213 is used to store executable program code, the program code includes computer operation instructions, and the memory 213 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.
[0227] In the embodiment of the present application, the bus 215 is used to connect the communication interface 214, the processor 212 and the memory 213, and the mutual communication between these devices.
[0228] In the embodiment of the present application, the memory 213 is used to store instructions and data.
[0229] Furthermore, in an embodiment of the present application, the above-mentioned processor 212 is used to detect the real-time status corresponding to the network search timer when preparing to initiate a data service; if the real-time status is running, determine the current resident network; set the network search duration according to the current resident network, and perform network search processing according to the network search duration and a preset network priority list; if a first network is obtained through the network search processing, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the current resident network.
[0230] Furthermore, in an embodiment of the present application, the above-mentioned processor 212 is also used to detect the real-time status corresponding to the network search timer when processing data services through the current resident network; if the real-time status is running, a first preset time threshold is set according to the current resident network, and the first processing duration corresponding to the data service is detected at the same time; if the first processing duration is greater than or equal to the first preset time threshold, the network search processing is performed according to the preset network priority list; if the first network is obtained through the network search processing, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the current resident network.
[0231] In practical applications, the memory 213 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 212.
[0232] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.
[0233] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0234] The embodiment of the present application provides an electronic device, which detects the real-time state corresponding to the network search timer when preparing to initiate a data service; if the real-time state is running, the current resident network is determined; the network search duration is set according to the current resident network, and the network search process is performed according to the network search duration and the preset network priority list; if the first network is obtained through the network search process, it is switched to the first network and the data service is processed through the first network; wherein the priority of the first network is greater than the priority of the current resident network. When processing data services through the current resident network, the real-time state corresponding to the network search timer is detected; if the real-time state is running, a first preset time threshold is set according to the current resident network, and the first processing duration corresponding to the data service is detected; if the first processing duration is greater than or equal to the first preset time threshold, the network search process is performed according to the preset network priority list; if the first network is obtained through the network search process, it is switched to the first network and the data service is processed through the first network; wherein the priority of the first network is greater than the priority of the current resident network.
[0235] That is to say, in an embodiment of the present application, when the data service is about to start, the electronic device first performs a network search, and starts to process the data service through the high-priority network obtained through the network search. When the data service has started, in order to prevent the data service from being carried on the current resident network for a long time, the electronic device performs a network search when the processing time corresponding to the data service meets a preset time threshold, and continues to process the data service through the high-priority network obtained through the network search, thereby achieving high-frequency network searches, improving transmission efficiency during data service processes, further improving electronic device performance, and enhancing user experience.
[0236] An embodiment of the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip is running, the network search method as described above is implemented.
[0237] An embodiment of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, the network search method as described above is implemented.
[0238] Specifically, the program instructions corresponding to a network search method in this embodiment can be stored in a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instructions corresponding to a network search method in the storage medium are read or executed by an electronic device, the following steps are included:
[0239] When preparing to initiate a data service, detect the real-time status of the network search timer;
[0240] If the real-time status is running, determining the current resident network;
[0241] Setting a network search duration according to the current resident network, and performing network search processing according to the network search duration and a preset network priority list;
[0242] If the first network is obtained through the network search process, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the currently resident network.
[0243] Furthermore, when the program instructions corresponding to a network search method in the storage medium are read or executed by an electronic device, the following steps may also be included:
[0244] When processing data services through the current resident network, detecting the real-time status corresponding to the network search timer;
[0245] If the real-time status is in operation, setting a first preset time threshold according to the current resident network, and detecting a first processing duration corresponding to the data service;
[0246] If the first processing duration is greater than or equal to the first preset time threshold, performing network search processing according to the preset network priority list;
[0247] If the first network is obtained through the network search process, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the currently resident network.
[0248] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0249] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0250] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0251] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0252] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A network search method, characterized in that: The method comprises: When processing data services through the current resident network, detecting the real-time status corresponding to the network search timer; If the real-time state is in operation, setting a first preset time threshold according to the current resident network, and detecting a first processing duration corresponding to the data service; If the first processing duration is greater than or equal to the first preset time threshold, performing network search processing according to the preset network priority list; If the first network is obtained through the network search process, switching to the first network and processing the data service through the first network; wherein the priority of the first network is greater than the priority of the currently resident network; The method further comprises: If the first processing duration is less than the first preset time threshold, the data service continues to be processed through the current resident network.
2. The method according to claim 1, characterized in that: The network search timer is a high priority network HPRAT timer.
3. The method according to claim 1, characterized in that: After detecting the real-time state corresponding to the network search timer when processing the data service through the current resident network, the method further includes: If the real-time status is not running, the data service continues to be processed through the current resident network.
4. The method according to claim 1, characterized in that If the first processing time is greater than or equal to the first preset time threshold, performing network search processing according to the preset network priority list includes: When the first processing duration is greater than or equal to the first preset time threshold, determining a network to be searched according to the preset network priority list and the current resident network; wherein the priority of the network to be searched is greater than the priority of the current resident network; The network search process is performed on the networks to be searched in order of priority from high to low.
5. The method according to claim 1 or 4, characterized in that: If the first processing time is greater than or equal to the first preset time threshold, after performing network search processing according to the preset network priority list, the method further includes: When the first network obtained through the network search process is the target network, the network search timer is stopped; wherein the target network is the network corresponding to the highest priority in the preset network priority list.
6. The method according to claim 5, characterized in that If the first processing time is greater than or equal to the first preset time threshold, after performing network search processing according to the preset network priority list, the method further includes: When the first network obtained through the network search process is not the target network, maintaining the real-time state corresponding to the network search timer as running; and detecting the second processing duration corresponding to the data service at the same time; When the second processing time is greater than or equal to a second preset time threshold corresponding to the first network, the network search process is performed again.
7. The method according to claim 1, characterized in that If the first processing time is greater than or equal to the first preset time threshold, after performing network search processing according to the preset network priority list, the method further includes: If the first network is not obtained through the network search process, the data service continues to be processed through the current resident network.
8. The method according to claim 1, characterized in that If the first processing time is greater than or equal to the first preset time threshold, after performing network search processing according to the preset network priority list, the method further includes: Receiving a service connection request corresponding to a real-time data service; In response to the service connection request, suspend the network search process, and process the real-time data service through the current resident network, while detecting a third processing duration corresponding to the real-time data service; When the third processing duration is greater than or equal to the first preset time threshold, the network search process is continued.
9. The method according to claim 1, characterized in that: The method further comprises: When preparing to initiate a data service, detecting a real-time status corresponding to the network search timer; If the real-time status is running, determining the current resident network; When processing data services through the current resident network, setting a network search duration according to the current resident network, and performing network search processing according to the network search duration and the preset network priority list; If the first network is obtained through the network search process, switch to the first network and process the data service through the first network; wherein the priority of the first network is greater than the priority of the currently resident network.
10. The method according to claim 9, characterized in that In the case of preparing to initiate a data service, after detecting the real-time state corresponding to the network search timer, the method further includes: If the real-time status is not running, the data service is directly processed through the current resident network.
11. The method according to claim 9, characterized in that The performing network search processing according to the network search duration and the preset network priority list includes: Determine a network to be searched according to the preset network priority list and the current resident network; wherein the priority of the network to be searched is greater than the priority of the current resident network; During the network search time, the network to be searched is subjected to the network search process in descending order of priority.
12. The method according to claim 9 or 11, characterized in that: After performing the network search process according to the network search duration and the preset network priority list, the method further includes: When the first network obtained through the network search process is the target network, the network search timer is stopped; wherein the target network is the network corresponding to the highest priority in the preset network priority list.
13. The method according to claim 12, characterized in that After performing the network search process according to the network search duration and the preset network priority list, the method further includes: When the first network obtained through the network search process is not the target network, the real-time state corresponding to the network search timer is kept running.
14. The method according to claim 13, characterized in that When the first network obtained through the network search process is not the target network, after maintaining the real-time state corresponding to the network search timer as running, the method further includes: Setting the first preset time threshold according to the first network and detecting the first processing duration corresponding to the data service; If the first processing duration is greater than or equal to the first preset time threshold, performing the network search process again according to the preset network priority list; If a second network is obtained through the network search process, switch to the second network and process the data service through the second network; wherein the priority of the second network is greater than the priority of the first network.
15. The method according to claim 9, characterized in that After performing the network search process according to the network search duration and the preset network priority list, the method further includes: If the first network is not obtained through the network search process, the data service is processed through the current resident network, and the real-time state corresponding to the network search timer is kept running.
16. The method according to claim 15, characterized in that If the first network is not obtained through the network search process, the data service is processed through the current resident network, and the real-time state corresponding to the network search timer is kept running, the method further includes: Setting a second preset time threshold according to the current resident network and detecting a second processing duration corresponding to the data service; If the second processing time is greater than or equal to the second preset time threshold, performing the network search process again according to the preset network priority list; If a third network is obtained through the network search process, switch to the third network and process the data service through the third network; wherein the priority of the third network is greater than the priority of the currently resident network.
17. An electronic device, characterized in that: The electronic device comprises: a detection unit, a setting unit, a search unit, a switching unit and a processing unit. The detection unit is used to detect the real-time status corresponding to the network search timer when processing data services through the current resident network; The setting unit is configured to set a first preset time threshold according to the current resident network if the real-time status is running; The detection unit is used to detect a first processing duration corresponding to the data service; The search unit is configured to perform network search processing according to a preset network priority list if the first processing duration is greater than or equal to the first preset time threshold; The switching unit is configured to switch to a first network if the first network is obtained through the network search process; wherein the priority of the first network is greater than the priority of the currently resident network; The processing unit is configured to process the data service through the first network; The processing unit is further configured to continue processing the data service through the currently resident network if the first processing duration is less than the first preset time threshold.
18. An electronic device, characterized in that: The electronic device includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the method according to any one of claims 1 to 16 is implemented.
19. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions. When the chip is running, the network search method according to any one of claims 1 to 16 is implemented.
20. A computer-readable storage medium having a program stored thereon, applied to an electronic device, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Network searching method, electronic equipment, chip and storage medium
CN113727417A