Network access method and related device
By detecting the signal strength in real time and switching back to the 5G signal quickly through terminal devices, the switching problem of users when quickly entering and exiting the 5G weak signal area is solved, and the user experience and device stability are improved.
Patent Information
- Application Number
- CN202410137672.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-01-31
AI Technical Summary
When users quickly enter and exit the 5G weak signal area, the terminal device may not be able to quickly switch back to the 5G signal, causing users to mistakenly think that the device is in the weak signal area or mistakenly think that the device is damaged, affecting the user experience.
The terminal device detects the signal strength in real time, determines whether it is in the strong 5G signal range, and quickly switches back to the 5G signal when certain conditions are met, avoiding waiting and suppressing time, and improving user experience.
The residency ratio of terminal devices under 5G signals is improved, the user misjudgment and poor experience are reduced, and the matching between the device and user information is enhanced.
Smart Images

Figure CN119255322A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile terminal technology, and in particular to a method for accessing a network and related devices. Background Art
[0002] Users can use terminal devices that support connecting to 5G signals. In some scenarios, users may quickly enter and exit a 5G weak signal area. However, after the user enters a weak signal area, the terminal device may switch from 5G signal to 4G signal; after the user quickly leaves the weak signal area, the terminal device may not quickly restore to 5G signal. This may cause users to mistakenly believe that the terminal device is still in a 5G weak signal area or that the terminal device is damaged. Summary of the invention
[0003] The present application provides a method for accessing a network and a related device that can quickly switch back to a cell with a high network standard, thereby increasing the high network standard residence ratio of terminal equipment and improving the user experience.
[0004] In a first aspect, the present application provides a method for accessing a network, the method comprising: a terminal device is connected to a first network device; the terminal device is connected to a second network device and disconnected from the first network device, the first network device belongs to a first network standard, the second network device belongs to a second network standard, and the priority of the first network standard is higher than that of the second network standard; the terminal device measures a first signal strength of a network device belonging to the first network standard; if the first signal strength is measured to be greater than a first threshold value for N consecutive times, the terminal device measures the network quality of the first network standard and the network quality of the second network standard, if the network quality of the first network standard is measured to be better than the network quality of the second network standard, the terminal device is connected to a third network device and disconnected from the second network device, the third network device belongs to the first network standard, and the value of N is a positive integer.
[0005] By implementing the above method, after switching from 5G signal to 4G signal, the terminal device 100 can detect the signal strength in real time, so as to determine when it is in the range of strong 5G signal. In this way, the terminal device 100 does not need to wait for a partial suppression time before switching to 5G signal when it is in the range of strong 5G signal, and can quickly switch to 5G signal when the strength of 5G signal meets certain conditions, thereby improving the user experience. In addition, the user can also make the information provided by the terminal device 100 consistent with his own cognition to avoid confusion.
[0006] In combination with the first aspect, in some implementations, after the terminal device measures the first signal strength of the network device belonging to the first network standard, the method further includes: if the first signal strength is not measured to be greater than the first threshold value for N consecutive times within the first time period, then after the first time period ends, the terminal device measures the network quality of the first network standard and the network quality of the second network standard, and if the network quality of the first network standard is measured to be better than the network quality of the second network standard, then the terminal device connects to a third network device and disconnects from the second network device, and the third network device belongs to the first network standard. In this way, the terminal device has not left the 5G weak signal area within the suppression time period, so the terminal device can determine whether the connected network device can be switched after the suppression time period ends.
[0007] In combination with the first aspect, in some implementations, before the terminal device connects to the second network device and disconnects from the first network device, the method further includes: the terminal device repeatedly measures that the second signal strength of the network device belonging to the second network standard is greater than the first signal strength. In this way, it can be determined that the terminal device was previously in a 5G weak signal area.
[0008] In combination with the first aspect, in some implementations, after the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: the terminal device detects a first event, the first event includes any of the following: the terminal device is in an elevator, a bathroom, or a staircase; the terminal device measures the first signal strength of the network device belonging to the first network standard, specifically including: the terminal device measures the first signal strength of the network device belonging to the first network standard immediately after connecting to the second network device and disconnecting from the first network device. In this way, the specific scenario in which the terminal device is located can be identified, and the high network standard can be switched back as soon as possible.
[0009] In combination with the first aspect, in some implementations, after the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: the terminal device does not detect a first event, and the first event includes any one of the following: the terminal device is in an elevator, a toilet, or a staircase; the terminal device measures the first signal strength of the network device belonging to the first network standard, specifically including: the terminal device measures the first signal strength of the network device belonging to the first network standard at an interval of a second time after connecting to the second network device and disconnecting from the first network device. In this way, power consumption for measuring signal strength can be saved within the second time interval.
[0010] In combination with the first aspect, in some implementations, the terminal device measuring the first signal strength of the network device belonging to the first network standard specifically includes: the terminal device periodically measuring the first signal strength of the network device belonging to the first network standard at a third time interval.
[0011] In a second aspect, the present application provides a method for accessing a network, the method comprising: a terminal device is connected to a first network device; the terminal device is connected to a second network device and disconnected from the first network device, the first network device belongs to a first network standard, the second network device belongs to a second network standard, and the priority of the first network standard is higher than that of the second network standard; the terminal device measures a first signal strength of a network device belonging to the first network standard and a second signal strength of a network device belonging to the second network standard; if the difference between the first signal strength and the second signal strength is measured to be greater than a second threshold value for N consecutive times, the terminal device measures the network quality of the first network standard and the network quality of the second network standard, and if the network quality of the first network standard is measured to be better than the network quality of the second network standard, the terminal device is connected to a third network device and disconnected from the second network device, the third network device belongs to the first network standard, and the value of N is a positive integer.
[0012] By implementing the above method, after switching from 5G signal to 4G signal, the terminal device 100 can detect the signal strength in real time, so as to determine when it is in the range of strong 5G signal. In this way, the terminal device 100 does not need to wait for a partial suppression time before switching to 5G signal when it is in the range of strong 5G signal. It can quickly switch to 5G signal when the 5G signal strength and 4G signal strength meet certain conditions, thereby improving the user experience. In addition, it can also make the user consistent with the information provided by the terminal device 100 according to his own cognition, avoiding confusion.
[0013] In combination with the second aspect, in some implementations, after the terminal device measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard, the method further includes: if within the first time period, the difference between the first signal strength and the second signal strength is not measured to be greater than the second threshold value for N consecutive times, then after the first time period ends, the terminal device measures the network quality of the first network standard and the network quality of the second network standard, and if the network quality of the first network standard is measured to be better than the network quality of the second network standard, the terminal device connects to the third network device and disconnects from the second network device. In this way, the terminal device has not left the 4G / 5G ping-pong area within the suppression time period, so the terminal device can determine whether the connected network device can be switched after the suppression time period ends.
[0014] In conjunction with the second aspect, in some implementations, before the terminal device connects to the second network device and disconnects from the first network device, the method further includes: the terminal device measures that the magnitude relationship between the second signal strength and the first signal strength switches multiple times. In this way, it can be determined that the terminal device was previously in the 4G / 5G ping-pong area.
[0015] In combination with the second aspect, in some implementations, after the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: the terminal device detects a first event, and the first event includes any one of the following: the terminal device is in an elevator, a bathroom, or a staircase; the terminal device measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard, specifically including: the terminal device immediately measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard after connecting to the second network device and disconnecting from the first network device. In this way, the specific scenario in which the terminal device is located can be identified, and the high network standard can be switched back as soon as possible.
[0016] In conjunction with the second aspect, in some implementations, after the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: the terminal device does not detect a first event, and the first event includes any one of the following: the terminal device is in an elevator, a bathroom, or a staircase; the terminal device measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard, specifically including: the terminal device measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard at an interval of a second time after connecting to the second network device and disconnecting from the first network device. In this way, power consumption for measuring signal strength can be saved within the second time interval.
[0017] In combination with the second aspect, in some implementations, the terminal device measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard, specifically including: the terminal device periodically measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard at a third time interval.
[0018] In combination with the first aspect or the second aspect, in some implementations, the network quality is determined by one or more of the following: signal strength indication, round trip delay of sending a data packet, packet loss rate, packet error rate, and sending rate. In some implementations, the network quality can also be determined by more parameters, which are not limited.
[0019] In a third aspect, the present application provides a terminal device, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the terminal device executes the method of the first aspect or any implementation of the first aspect or the second aspect or any implementation of the second aspect.
[0020] In a fourth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the terminal device executes the method of the above-mentioned first aspect or any implementation method of the first aspect or the second aspect or any implementation method of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a network system architecture provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a scenario in which a terminal device changes the cell in which it resides provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of a method for accessing a network provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0025] Figure 5 A software structure block diagram of a terminal device provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the hardware structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0029] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0030] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of a terminal device.
[0031] First, a network system architecture provided by an embodiment of the present application is introduced.
[0032] The system structure includes but is not limited to: a terminal device 100 and a network device 200. Exemplarily, the network device 200 further includes a network device 201 and a network device 202.
[0033] The terminal device 100 may be referred to as a user equipment (UE). or portable terminal devices of other operating systems, the terminal device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle, a vehicle-mounted device, a smart home device and / or a smart city device, but not limited thereto, the terminal device 100 may also include a laptop computer (laptop) with a touch-sensitive surface or a touch panel, a desktop computer with a touch-sensitive surface or a touch panel, and other non-portable terminal devices, etc. The embodiment of the present application does not impose any special restrictions on the specific type of the terminal device.
[0034] The network device 200 may be a device with a wireless transceiver function. The device includes, but is not limited to, a base station (BS), an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (e.g., home evolved NodeB, or homeNode B, HNB), a baseband unit (BBU), a gNB in a 5G NR network, a transmission point (TRP or TP), or a network node constituting a gNB or a transmission point, such as a baseband unit (BBU), or a distributed unit (DU), and the like.
[0035] Among them, the wireless access network can be divided into cellular cells (also called cells). The terminal equipment and network equipment in each cellular cell can be connected through the air interface, and signaling and data are exchanged through the air interface. Exemplarily, when the network device 200 is a base station, the geographical area covered by the wireless signal sent by the base station can be called a cell. Generally, one base station corresponds to one cell. Optionally, one base station can also be divided into multiple cells. Exemplarily, the terminal device 100 is within the coverage range of the network device 201 and within the coverage range of the network device 202.
[0036] The access network can be based on a variety of access technologies, depending on the network standard used. For example, in the orthogonal frequency division multiplexing (OFDM) network of the fourth generation mobile communication network (4G), the network device 201 can be a 4G base station; in the new radio (NR) network of the fifth generation mobile communication network (5G), the network device 202 can be a 5G base station, and the network device 202 can use the orthogonal frequency division multiplexing access (OFDMA) multiple access method.
[0037] The cell residency process of the terminal device 100 is introduced below.
[0038] In some implementations, the terminal device 100 selects a suitable cell to reside in order to receive services from the network and perform actual business. The suitable cell may refer to a cell in which the terminal device can reside and obtain normal services. For example, Figure 1 As shown, when the cell corresponding to the network device 201 is a suitable cell, the terminal device 100 can reside in the 4G signal network provided by the network device 201, and when the cell corresponding to the network device 202 is a suitable cell, the terminal device 100 can reside in the 5G signal network provided by the network device 202.
[0039] In some implementations, a cell needs to meet the cell selection criteria to be determined as a suitable cell. The cell selection criteria may refer to the channel quality that the channel condition between the cell and the terminal device 100 needs to meet. Exemplarily, the cell selection criteria may include but are not limited to: S criteria, R criteria, H criteria, etc. The S criteria may include: the reference signal received power (RSRP) and reference signal received quality (RSRQ) of a cell measured by the terminal device 100 are greater than a preset threshold.
[0040] Exemplarily, when the cell selection criterion is the S criterion, the terminal device 100 can measure each cell within its coverage range and determine a suitable cell. Specifically, the terminal device 100 measures the channel quality (such as RSRP value and RSRQ value) of each cell through the physical layer (PHY), and then determines the cell with RSRP value and RSRQ value that meet the S criterion as a suitable cell through the radio resource control layer (RRC). Optionally, if there are two cells that meet the S criterion, the terminal device 100 can set priorities for the two cells according to other factors (such as network standards) and select the cell with higher priority as a suitable cell. For example, the priority of a cell with a 5G signal (such as network device 202) is higher than that of a cell with a 4G signal (network device 201). The terminal device 100 may also select the cell with better channel quality of the two cells as a suitable cell.
[0041] In the embodiment of the present application, the cell residency process of the above-mentioned terminal device 100 is only for illustrative purposes, and more methods may be included to determine a suitable cell, which is not limited to this.
[0042] In a possible implementation, the channel quality of the cell can also be measured by the following parameters: received signal strength indication (RSSI), quality of service (QoS) or quality of experience (QoE) and other indicators of the terminal device 100. Specifically, the terminal device 100 can be determined based on at least one indicator value of the round-trip time (RTT), packet loss rate, packet error rate and transmission rate of the data packet.
[0043] In some implementations, cell channel quality may also be understood as network quality.
[0044] In some implementations, since the terminal device 100 may move, the terminal device 100 needs to re-search for a suitable cell to reside. Specifically, after the terminal device 100 successfully resides in a suitable cell, it will continue to measure the channel quality of each cell within its coverage. When the channel quality of the current suitable cell measured by the terminal device 100 does not meet the cell selection criteria, or there is a cell that meets the cell selection criteria priority and is higher than the current suitable cell, it is necessary to reselect a suitable cell. For example, in a scenario where a user quickly enters and exits an elevator, the terminal device 100 reselects a suitable cell.
[0045] The following introduces a scenario in which a terminal device 100 changes the cell in which it resides, provided in an embodiment of the present application.
[0046] For example, Figure 2 As shown, the user holding the terminal device 100 takes a short time (eg, 2 minutes) to go up from the 1st floor to the 5th floor by elevator.
[0047] When the user has not entered the elevator, the terminal device 100 detects that the channel quality of the network device 202 meets the cell selection criteria, determines that the network device 202 is a suitable cell, and the signal currently used by the terminal device 100 is the 5G signal provided by the network device 202.
[0048] Since the elevator is in a 5G weak signal area, when the user enters the elevator, the terminal device 100 detects that the channel quality of the network device 202 does not meet the cell selection criteria, and needs to re-detect the channel quality of other cells within the coverage area. Then the terminal device 100 detects that the channel quality of the network device 201 meets the cell selection criteria, determines that the network device 201 is a suitable cell, and the network standard currently used by the terminal device 100 is the 4G signal provided by the network device 201.
[0049] After the user waits in the elevator for 2 minutes and leaves the elevator, the network standard used by the terminal device 100 is still the 4G signal provided by the network device 201.
[0050] Generally speaking, after the user leaves the elevator, the terminal device 100 can detect the network device 202 that meets the cell selection criteria and has a higher priority than the network device 201. Logically, once the user leaves the elevator, the network standard used by the terminal device 100 should be the 5G signal provided by the network device 202. However, this is not the case.
[0051] This is because: in order to avoid frequent switching of network standards, the terminal device 100 is provided with a suppression scheme for the situation where the 5G signal is poor and the terminal device 100 switches to the 4G signal. The suppression scheme includes: when the terminal device 100 switches from using a 5G signal to a 4G signal, that is, when the cell where the terminal device 100 resides is changed from a cell with a 5G signal to a cell with a 4G signal, a suppression timer is triggered. The suppression timer is used to suppress the terminal device 100 from searching for a suitable cell within the suppression time. Exemplarily, the suppression time set by the suppression timer can be 5 minutes. In the embodiment of the present application, there is no limitation on the length of the suppression time.
[0052] Specifically, during the period when the terminal device 100 switches from 5G to the suppression time, the PHY in the terminal device 100 will not detect the parameters used to characterize the channel quality of each cell, and thus the RRC in the terminal device 100 cannot determine whether the channel quality of the current suitable cell meets the cell selection criteria, nor can it determine whether there is a cell that meets the cell selection criteria priority and is higher than the current suitable cell. Therefore, the terminal device 100 cannot send a reconfiguration instruction to the cell. In other words, during the suppression time, the terminal device 100 is not allowed to switch the cell in which it resides.
[0053] In other scenarios, for example, when the terminal device 100 is in a 4G / 5G ping-pong area, in order to avoid the ping-pong switching phenomenon, the terminal device 100 will also adopt a suppression scheme. The ping-pong area may refer to an area where the edges of cells of different network systems are repeatedly covered. Exemplarily, the 4G / 5G ping-pong area may refer to an area where the edges of cells with 4G signals and cells with 5G signals are repeatedly covered. The ping-pong switching phenomenon may refer to: in the ping-pong area, the terminal device 100 frequently switches to a suitable cell to reside due to unstable signal quality. Exemplarily, when the terminal device 100 is in a 4G / 5G ping-pong area, the difference between the 4G signal and the 5G signal may be close to the switching threshold, and may fluctuate continuously in an interval slightly above or slightly below the switching threshold, which will cause the terminal device 100 to switch and reside between cells with 4G signals and cells with 5G signals continuously, which may cause signal loss and affect user experience.
[0054] In the embodiment of the present application, the terminal device 100 switching from a 5G signal to a 4G signal can be understood as the terminal device 100 switching from a cell with a 5G signal to a cell with a 4G signal.
[0055] However, the above suppression scheme will also lead to the following situations: 1. If the terminal device 100 is only in a weak 5G signal for a short time, directly setting the suppression time to limit the terminal device 100 from switching the cell where it is stationed may cause the terminal device 100 to still use the 4G signal when it is already in the range of a strong 5G signal. This will cause the user to know that he is currently in the range of a strong 5G signal based on historical usage, but the information provided by the terminal device 100 shows that it is still in the weak 5G signal area, which will cause confusion, or mistakenly believe that the terminal device 100 is damaged, resulting in a poor user experience. In addition, since the time that the terminal device 100 is in a weak 5G signal in various scenarios is uncertain, simply changing the suppression time cannot solve the above problem. 2. When the terminal device 100 is in the range of a strong 5G signal, the terminal device 100 will also switch to a 4G signal due to a sudden deterioration of the wireless network environment, and it will need to wait for the suppression time to switch back to a strong 5G signal. In this way, the suppression scheme lacks the ability to deal with emergencies, which also results in a poor user experience.
[0056] In order to solve the above problems, an embodiment of the present application provides a method for accessing a network. In this method, after the terminal device 100 switches from a 5G signal to a 4G signal, the terminal device 100 adopts a suppression scheme. Then the terminal device 100 can detect the strength of the current 4G signal and / or the strength of the 5G signal through the physical layer to determine whether the suppression scheme can be lifted. That is to say, in an embodiment of the present application, the suppression scheme is no longer a fixed scheme executed based on the suppression time, but a suppression scheme that needs to be executed in combination with the signal strength currently detected by the terminal device 100.
[0057] By implementing the above method, after switching from a 5G signal to a 4G signal, the terminal device 100 can detect the signal strength in real time, thereby determining when it is in the range of a strong 5G signal. In this way, the terminal device 100 does not need to wait for a partial suppression time before switching to the 5G signal when it is in the range of a strong 5G signal. It can quickly switch to the 5G signal when the strength of the 4G signal and / or the strength of the 5G signal meets certain conditions, thereby improving the user experience. Moreover, the user can also be made to conform to the information provided by the terminal device 100 based on his or her own cognition to avoid confusion. In addition, the method for accessing a network provided in an embodiment of the present application can also adapt to various network standard switching scenarios.
[0058] Combine the following Figure 3 A flowchart of a method for accessing a network provided in an embodiment of the present application is introduced.
[0059] The method includes:
[0060] S301. After the terminal device 100 enters the first area, it switches from the 5G network to the 4G network. The first area includes but is not limited to: a 5G weak signal area and a 4G / 5G ping-pong area.
[0061] In some implementations, before the terminal device 100 enters the first area, it resides in a cell with a 5G signal (e.g., network device 202). After the terminal device 100 enters the first area, it detects that the channel quality of the network device 202 does not meet the cell selection criteria, and needs to switch the currently residing cell. Then the terminal device 100 detects that the channel quality of the cell with a 4G signal (e.g., network device 201) meets the cell selection criteria. Therefore, the terminal device 100 switches from the 5G signal to the 4G signal.
[0062] In some implementations, the terminal device 100 can also identify the first area. Exemplarily, the terminal device 100 can identify the first area as a 5G weak signal area or a 4G / 5G ping-pong area based on the strength of the 5G signal and the 4G signal detected after entering the first area and before switching signals. For example, if the 4G signal strength detected by the terminal device 100 for multiple consecutive times after entering the first area is always greater than the 5G signal strength, the first area may refer to the 5G weak signal area; if the 5G signal strength and the 4G signal strength detected by the terminal device 100 before entering the first area often fluctuate (that is, the size relationship between the two switches multiple times), the first area may refer to the 4G / 5G ping-pong area.
[0063] In the embodiment of the present application, the first area may also include other more areas, and it is only necessary to meet the condition that the terminal device 100 switches from the 5G signal to the 4G signal after entering the first area, and there is no limitation on this.
[0064] For example, the geographical scope corresponding to the first area may include, but is not limited to, enclosed and narrow spaces such as elevators, stairways, and toilets. In the embodiment of the present application, the geographical scope corresponding to the first area is only used for illustrative purposes and is not limited thereto.
[0065] S302: The terminal device 100 executes a suppression scheme. The suppression scheme includes: during the suppression time, the terminal device 100 is not allowed to switch the cell where it resides.
[0066] In some implementations, after the terminal device 100 switches the network standard, for example, from 5G to 4G, a suppression scheme may be used to prevent the terminal device 100 from frequently switching the network standard used. That is, after the terminal device 100 switches from connecting to the network device 202 to connecting to the network device 201, the terminal device 100 always remains connected to the network device 201 while the suppression scheme is in effect.
[0067] The suppression scheme mainly acts on the physical layer of the terminal device 100. The suppression scheme may mean that within a set suppression time, the physical layer of the terminal device 100 will not detect parameters used to characterize the channel quality of each cell.
[0068] In this way, the terminal device 100 cannot report a measurement report (MR) including parameters characterizing the cell channel quality to the RRC layer through the physical layer. Furthermore, the terminal device 100 cannot send a reconfiguration instruction to a certain cell through the RRC layer. MR may refer to a set of various parameters characterizing the cell channel quality measured in real time by the terminal device 100, and the PHY layer will report the MR to the RRC layer as soon as it measures it.
[0069] Exemplarily, different terminal devices 100 may set different suppression times, such as 5 minutes. That is, after executing the suppression scheme, if there is no instruction to release the suppression scheme, the terminal device 100 needs to wait for 5 minutes before detecting the parameters used to characterize the channel quality of each cell through the PHY layer.
[0070] S303: The terminal device 100 detects a first event. The first event includes but is not limited to: the terminal device 100 is in an elevator.
[0071] In the embodiment of the present application, S303 may be an optional step. That is, in a possible implementation, after the terminal device 100 executes S302, it may execute the following S304-1 or S304-2.
[0072] The first event may also include more actual scenarios, for example, the terminal device 100 is in a bathroom, the terminal device 100 is at the stairwell, etc., which is not limited.
[0073] Exemplarily, the terminal device 100 may determine whether it is in an elevator in the following manner:
[0074] 1. The terminal device 100 can determine whether the terminal device 100 is in the elevator based on the data detected by the pressure sensor or the acceleration sensor.
[0075] 2. The terminal device 100 can also determine whether the terminal device 100 is in the elevator by determining the connection status with the wifi. For example, the terminal device 100 can record a common wifi link as a home wifi. When the terminal device 100 is disconnected from the home wifi, it can be considered that the user has left home with the terminal device 100. In this way, it can be determined that the terminal device 100 may be in the elevator state.
[0076] 3. The terminal device 100 can also determine whether the terminal device 100 is in the elevator by identifying the radio frequency signal. For example, a card device with radio frequency identification (RFID) technology can be installed in the elevator. When the terminal device 100 receives the video signal of the card, it can be determined that the terminal device 100 is in the elevator state.
[0077] 4. The terminal device 100 can also determine whether the terminal device 100 is in the elevator through the image captured by the camera. For example, when the image captured by the terminal device 100 contains an elevator logo (such as an elevator door or the word "elevator"), it can be determined that the terminal device 100 is in the elevator state.
[0078] Optionally, the above-mentioned methods can also be combined to make a judgment. Exemplarily, the terminal device 100 can determine that the terminal device 100 is in the elevator when the conditions of method 1 and method 3 are met at the same time.
[0079] In the embodiment of the present application, the above method is only used for exemplary explanation, and does not limit the method for determining whether the terminal device 100 is in the elevator.
[0080] In some implementations, if the terminal device 100 does not detect any event, the terminal device 100 may wait for a preset time and then select to execute S304-1 or S304-2 according to different scenarios in the first area. The preset time may be considered that the user may be in the first area for a period of time to execute a certain event.
[0081] Exemplarily, the terminal device 100 is in a first area with a poor signal, and the terminal device 100 does not detect any first event at this time, and can wait for a preset time (for example, two minutes) before executing S304-1 or S304-2. The preset time is the time when the terminal device 100 assumes that the user holds the terminal device 100 and passes through the first area. Within the preset time, it can be considered that the terminal device 100 is still in the first area. In this way, waiting for the preset time and then executing S304-1 or S304-2 can reduce power consumption.
[0082] Optionally, the above-mentioned waiting for the preset time can also avoid abnormal fluctuations in the network. Exemplarily, waiting for the preset time can be understood as waiting for the abnormal fluctuation of the network to end. This is because it is meaningless to execute the following S304-1 or S304-2 when the network is abnormal, and it is impossible to accurately detect the signal strength. In a possible implementation, the terminal device 100 can choose to execute S304-1 or S304-2 directly according to different scenarios in the first area without waiting for the preset time after executing S303. Exemplarily, when the terminal device 100 detects that it is in an elevator, it can directly execute S304-1 or S304-2. This is because the terminal device 100 has spent some time in executing S303, and has not executed the following S304-1 or S304-2 in the process of executing S303, which can also save power consumption.
[0083] S304-1. When the first area is a 5G weak signal area, the terminal device 100 measures the 5G signal strength.
[0084] Specifically, when the first area is a weak 5G signal, the terminal device 100 can measure the 5G signal strength through the physical layer at regular intervals for a certain period of time.
[0085] In some implementations, the terminal device 100 can set a time period for measuring the 5G signal strength, such as 10ms. Since in the suppression scheme, the physical layer of the terminal device 100 does not detect the parameters used to characterize the channel quality of each cell. Therefore, the upper layer of the terminal device 100 needs to send instructions to the physical layer, instructing the physical layer to measure the 5G signal strength during the suppression time. In order to reduce power consumption, the physical layer here no longer measures multiple other parameters, and can only measure the 5G signal strength.
[0086] In some implementations, the terminal device 100 will continuously measure the 5G signal strength at intervals before the suppression scheme is lifted. After the suppression scheme is lifted, the terminal device 100 will also measure the parameters used to characterize the channel quality of each cell. However, the purpose of measuring the 5G signal strength at intervals is to determine whether the suppression scheme can be lifted. The purpose of measuring the parameters used to characterize the channel quality of each cell is to determine whether it is necessary to switch the resident cell.
[0087] After executing S304-1, S305-1 or S306-1 may be executed according to the situation.
[0088] S305-1. If the terminal device 100 determines that the measured 5G signal strength meets the first preset condition, the suppression scheme is released.
[0089] Specifically, if the terminal device 100 measures a 5G signal strength greater than the first threshold value (ie, the 5G signal threshold value) for N consecutive times, the suppression scheme can be released. N mentioned in the embodiment of the present application is a positive integer greater than zero, for example, N can be 5.
[0090] In some implementations, the terminal device 100 may determine the 5G signal threshold value based on the average or historical 5G signal strength in the 5G strong signal area. In one possible implementation, in order to improve accuracy, the 5G signal threshold value may be slightly higher than the average or historical 5G signal strength.
[0091] In some implementations, if the terminal device 100 determines that the 5G signal measured N times in succession is greater than the 5G signal threshold value during the suppression time, the suppression scheme can be released. Exemplarily, the terminal device 100 can determine whether the measured 5G signal is greater than the 5G signal threshold value through the RRC layer, and the terminal device 100 can also make a judgment through the upper layer of the RRC layer, which is not limited.
[0092] For example, taking the first event that the terminal device 100 is in the elevator as an example, when the terminal device 100 determines that the 5G signal strength measured N times in a row is greater than the 5G signal threshold value, it can be understood that the terminal device 100 has left the elevator at this time, and the terminal device 100 left the elevator within the suppression time. That is to say, in this case, the suppression scheme prevents the terminal device 100 from switching to the 5G signal. Therefore, the suppression scheme can be lifted.
[0093] Assume that the suppression time set by the terminal device 100 is t1, the preset waiting time set by the terminal device 100 is t2, and the time period of the measurement is t3, wherein t1 is greater than or equal to t2.
[0094] In a possible implementation, when the terminal device 100 does not detect the first event, the fastest time to release the suppression scheme is: t2+t3*N.
[0095] In another possible implementation, when the terminal device 100 detects the first event, the fastest time to release the suppression scheme is: t3*N.
[0096] After executing S305-1, execute S307.
[0097] S306-1. If the terminal device 100 determines that the measured 5G signal strength does not meet the first preset condition, continue to execute the suppression scheme.
[0098] Specifically, within the suppression time period, if the terminal device 100 does not measure a 5G signal strength that is greater than the first threshold value for N consecutive times, the suppression scheme continues to be executed.
[0099] For example, taking the first event that the terminal device 100 is in the elevator as an example, when the terminal device 100 determines that the 5G signal strength measured for N-1 consecutive times is greater than the 5G signal threshold value, but in the last measurement of the N-1 consecutive times, the 5G signal strength does not reach the 5G signal threshold value, it can be understood that the terminal device 100 has not left the elevator at this time. Even if the suppression is currently released, the terminal device may not be able to switch from the 4G signal to the 5G signal. Therefore, in the current situation, continue to execute the suppression plan.
[0100] After executing S306-1, if the 5G signal measured for N consecutive times is not greater than the 5G signal threshold value before the suppression time ends, execute S308.
[0101] S304-2. When the first area is a 4G / 5G ping-pong area, the terminal device 100 measures the 5G signal strength and the 4G signal strength.
[0102] Specifically, when the first area is a 4G / 5G ping-pong area, the terminal device 100 can measure the 5G signal strength and the 4G signal strength through the physical layer at intervals of a certain time period.
[0103] In some implementations, the terminal device 100 can set a time period, such as 10ms, for measuring the 5G signal strength and the 4G signal strength. In the suppression scheme, the physical layer of the terminal device 100 does not detect the parameters used to characterize the channel quality of each cell. Therefore, the upper layer of the terminal device 100 needs to send instructions to the physical layer, instructing the physical layer to measure the 5G signal strength and the 4G signal strength during the suppression time. In order to reduce power consumption, the physical layer here no longer measures multiple other parameters, and can only measure the 5G signal strength and the 4G signal strength.
[0104] In some implementations, the terminal device 100 will continuously measure the 5G signal strength and the 4G signal strength at intervals before the suppression scheme is lifted. After the suppression scheme is lifted, the terminal device 100 will also measure the parameters used to characterize the channel quality of each cell. However, the purpose of measuring the 5G signal strength and the 4G signal strength at intervals is to determine whether the suppression scheme can be lifted. The purpose of measuring the parameters used to characterize the channel quality of each cell is to determine whether it is necessary to switch the resident cell.
[0105] After executing S304-2, S305-2 or S306-2 may be executed according to the situation.
[0106] S305-2. If the terminal device 100 determines that the measured 5G signal strength and the 4G signal strength meet the second preset condition, the suppression scheme is released.
[0107] Specifically, if the terminal device 100 measures that the difference between the 5G signal strength and the 4G signal strength for N consecutive times is greater than the second threshold value (ie, the difference threshold value), the suppression scheme can be released.
[0108] In some implementations, the terminal device 100 may determine the signal difference threshold value based on the average or historical 5G signal strength in the 5G strong signal area and the average or historical 4G signal strength in the 4G strong signal area. Optionally, the signal difference threshold value may also refer to the above-mentioned switching threshold value.
[0109] In a possible implementation, when the terminal device 100 satisfies S305 - 2, it also needs to satisfy S305 - 1 to release the suppression scheme.
[0110] In some implementations, during the suppression time, if the terminal device 100 determines that the difference between the 5G signal strength and the 4G signal strength measured N times in succession is greater than the signal difference threshold, the suppression scheme can be released. Exemplarily, the terminal device 100 can determine through the RRC layer that the difference between the measured 5G signal strength and the 4G signal strength meets the signal difference threshold, and the terminal device 100 can also make a judgment through the upper layer of the RRC layer, which is not limited.
[0111] For example, when the terminal device 100 determines that the difference between the 5G signal strength and the 4G signal strength measured N times in succession meets the signal difference threshold, it can be understood that the terminal device 100 has left the 4G / 5G ping-pong area at this time, and the terminal device 100 leaves the 4G / 5G ping-pong area within the suppression time. That is, in this case, the suppression scheme prevents the terminal device 100 from switching to the 5G signal. Therefore, the suppression scheme can be released.
[0112] Assume that the suppression time set by the terminal device 100 is t1, the preset waiting time set by the terminal device 100 is t2, and the time period of the measurement is t3, wherein t1 is greater than or equal to t2.
[0113] In a possible implementation, when the terminal device 100 does not detect the first event, the fastest time to release the suppression scheme is: t2+t3*N.
[0114] In another possible implementation, when the terminal device 100 detects the first event, the fastest time to release the suppression scheme is: t3*N.
[0115] After executing S305-2, execute S307.
[0116] S306-2. If the terminal device 100 determines that the measured 5G signal strength and the 4G signal strength do not meet the second preset condition, continue to execute the suppression scheme.
[0117] Specifically, within the suppression time, if the terminal device 100 does not measure that the difference between the 5G signal strength and the 4G signal strength is greater than the second threshold value for N consecutive times, the suppression scheme continues to be executed.
[0118] In some implementations, during the suppression time, if the terminal device 100 determines that the difference between the 5G signal strength and the 4G signal strength measured N times in succession is not greater than the signal difference threshold, the suppression scheme continues to be executed.
[0119] Exemplarily, when the terminal device 100 determines that the difference between the 5G signal strength and the 4G signal strength measured N-1 times in a row is greater than the signal difference threshold, but in the last measurement of the N-1 times in a row, the difference between the 5G signal strength and the 4G signal strength does not reach the signal difference threshold, it can be understood that the terminal device 100 has not left the 4G / 5G ping-pong area at this time. Even if the suppression is currently released, the terminal device may not be able to switch from the 4G signal to the 5G signal. Therefore, in the current situation, continue to execute the suppression scheme.
[0120] After executing S306-2, if the difference between the 5G signal strength and the 4G signal strength measured for N consecutive times is not greater than the signal difference threshold before the suppression time ends, execute S308.
[0121] S307. After releasing the suppression scheme, the terminal device 100 determines whether it is possible to switch back from the 4G network to the 5G network.
[0122] In some implementations, during the suppression time, if the terminal device 100 determines that the 5G signal strength measured N times in a row meets the 5G signal threshold value or that the difference between the 5G signal strength and the 4G signal strength measured N times in a row meets the signal difference threshold value, the suppression scheme can be lifted and it can be determined whether it is possible to switch from the 4G network to the 5G network.
[0123] After the suppression scheme is released, the terminal device 100 can detect parameters used to characterize the channel quality of each cell through the PHY layer.
[0124] In some implementations, before the suppression scheme is lifted, the terminal device 100 resides in a cell (e.g., network device 201) with a 4G signal. After the suppression scheme is lifted, if the terminal device 100 detects that the channel quality of network device 202 meets the cell selection criteria, and the priority of network device 202 is higher than that of network device 201 or the channel quality of network device 202 is higher than that of network device 201, the currently residing cell can be switched, that is, the terminal device 100 can switch from connecting to network device 201 to connecting to network device 202. In this way, after the suppression scheme is lifted, if the switching conditions are met, the terminal device 100 can switch from the 4G network to the 5G network.
[0125] S308. Wait for the suppression time to end, and the terminal device 100 determines whether it can switch from the 4G network back to the 5G network.
[0126] In some implementations, during the suppression time, if the terminal device 100 determines that there is no situation where the 5G signal strength measured N times in a row does not meet the 5G signal threshold value and determines that there is no situation where the difference between the 5G signal strength and the 4G signal strength measured N times in a row does not meet the signal difference threshold value, then the suppression scheme is not released. After the suppression time ends, the terminal device 100 can detect the parameters used to characterize the channel quality of each cell through the PHY layer.
[0127] In some implementations, before the suppression scheme is lifted, the terminal device 100 resides in a cell (e.g., network device 201) with a 4G signal. After the suppression scheme is lifted, if the terminal device 100 detects that the channel quality of network device 202 meets the cell selection criteria, and the priority of network device 202 is higher than that of network device 201 or the channel quality of network device 202 is higher than that of network device 201, the currently residing cell can be switched, that is, the terminal device 100 can switch from connecting to network device 201 to connecting to network device 202. In this way, after the suppression scheme is lifted, if the switching conditions are met, the terminal device 100 can switch from the 4G network to the 5G network.
[0128] By implementing the above method, the signal strength detection of the cells around the terminal device 100 can be added to the suppression scheme, so that the terminal device 100 can flexibly perceive the signal strength of each cell around it, thereby determining when it is in the 5G strong signal range. In this way, the terminal device 100 can quickly switch back to the cell with a high network standard, improve the high network standard residence ratio of the terminal device 100, and improve the user experience.
[0129] Moreover, in the scenario where the terminal device 100 does not adopt a suppression scheme, the terminal device 100 provided in the embodiment of the present application only measures one parameter (i.e., signal strength), which can save more power consumption than the terminal device 100 constantly measuring multiple parameters to determine whether the cell selection criteria are met.
[0130] In a possible implementation, the network access scheme provided in the embodiment of the present application is not only applicable to the switching from 4G signal to 5G signal, but also applicable to the switching from various low network standards to high network standards, such as the switching from 2G signal or 3G signal to 5G signal, and the switching from 5G signal to 6G signal. This is not limited in the embodiment of the present application.
[0131] In some implementations, network device 202 may be referred to as a first network device, and network device 201 may be referred to as a second network device. 5G may be referred to as a first network standard, and 4G may be referred to as a second network standard. 5G signal strength may be referred to as a first signal strength, and 4G signal strength may be referred to as a second signal strength. The suppression duration set by the suppression scheme may be referred to as a first duration. The preset duration that the terminal device 100 waits after failing to detect the first event may be referred to as a second duration. The period during which the terminal device 100 detects the signal strength of the 5G signal and / or the 4G signal may be referred to as a third duration.
[0132] Figure 4 A schematic structural diagram of the terminal device 100 is shown.
[0133] The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0134] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0135] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0136] In some implementations, the processor 110 may be used to determine whether to release the suppression scheme or whether to continue to execute the suppression scheme. Specifically, the processor 110 may be used to determine whether the measured 5G signal strength is greater than a first threshold value, and may also be used to determine whether the difference between the measured 5G signal strength and the 4G signal strength is greater than a second threshold value.
[0137] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0138] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0139] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0140] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.
[0141] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0142] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0143] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0144] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0145] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0146] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0147] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0148] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0149] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0150] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0151] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0152] Video codecs are used to compress or decompress digital videos. The terminal device 100 may support one or more video codecs. Thus, the terminal device 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0153] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the terminal device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0154] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0155] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory.
[0156] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0157] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0158] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0159] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0160] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0161] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
[0162] The speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. The headphone interface 170D is used to connect wired headphones. The headphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0163] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. The air pressure sensor 180C is used to measure the air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc. The distance sensor 180F is used to measure the distance. The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K, also known as a "touch device". The bone conduction sensor 180M can obtain a vibration signal. The button 190 includes a power button, a volume button, etc. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0164] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device 100.
[0165] Figure 5 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present invention.
[0166] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0167] The application layer can include a series of application packages.
[0168] like Figure 5 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0169] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0170] like Figure 5 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0171] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0172] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0173] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0174] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including connection, disconnection, etc.).
[0175] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0176] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0177] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0178] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0179] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0180] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0181] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0182] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0183] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0184] A 2D graphics engine is a drawing engine for 2D drawings.
[0185] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0186] Figure 6 A schematic diagram of the structure of a network device 200 provided in an embodiment of the present application is shown.
[0187] like Figure 6 As shown, the network device 200 may include: one or more processors 201, a memory 202, a network interface 203, a transmitter 205, a receiver 206, a coupler 207 and an antenna 208. These components may be connected via a bus 204 or other means. Figure 6 Take the example of connecting via a bus.
[0188] The network interface 203 may be used for the network device 200 to communicate with other communication devices (eg, other network devices).
[0189] The transmitter 205 may be used to perform transmission processing on the signal output by the processor 201, such as signal modulation. The receiver 206 may be used to perform reception processing on the mobile communication signal received by the antenna 208, such as signal demodulation. In some embodiments of the present application, the transmitter 205 and the receiver 206 may be one or more. The antenna 208 may be used to convert electromagnetic energy in the transmission line into electromagnetic waves in free space, or convert electromagnetic waves in free space into electromagnetic energy in the transmission line. The coupler 207 may be used to divide the mobile communication signal into multiple paths and distribute them to multiple receivers 206.
[0190] The memory 202 can be coupled to the processor 201 via the bus 204 or the input / output port, and the memory 202 can also be integrated with the processor 201. The memory 202 can be used to store various software programs and / or multiple sets of instructions. Specifically, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 202 can store an operating system, such as an embedded operating system such as uCOS, VxWorks, RTLinux, etc. The memory 202 can also store a network communication program, which can be used to communicate with one or more additional devices, one or more terminals, and one or more network devices.
[0191] In the embodiment of the present application, the processor 201 can be used to read and execute computer-readable instructions. Specifically, the processor 201 can be used to call a program stored in the memory 202, such as an implementation program of the data transmission method provided in one or more embodiments of the present application on the network device 200 side, and execute the instructions contained in the program.
[0192] It should be noted that Figure 6 The network device 200 shown is only one implementation of the embodiment of the present application. In actual applications, the network device 200 may also include more or fewer components, which is not limited here.
[0193] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0194] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0195] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0196] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for accessing a network, characterized in that: The method comprises: The terminal device is connected to the first network device; The terminal device is connected to a second network device and disconnected from the first network device, the first network device belongs to a first network standard, the second network device belongs to a second network standard, and the first network standard has a higher priority than the second network standard; The terminal device measures a first signal strength of a network device belonging to the first network standard; If the first signal strength is measured to be greater than the first threshold value for N consecutive times, the terminal device measures the network quality of the first network standard and the network quality of the second network standard. If the network quality of the first network standard is measured to be better than the network quality of the second network standard, the terminal device connects to the third network device and disconnects from the second network device. The third network device belongs to the first network standard, and the value of N is a positive integer.
2. The method according to claim 1, characterized in that After the terminal device measures the first signal strength of the network device belonging to the first network standard, the method further includes: If the first signal strength is not measured to be greater than the first threshold value for N consecutive times within the first time period, then after the first time period ends, the terminal device measures the network quality of the first network standard and the network quality of the second network standard. If the network quality of the first network standard is measured to be better than the network quality of the second network standard, the terminal device connects to the third network device and disconnects from the second network device. The third network device belongs to the first network standard.
3. The method according to claim 1 or 2, characterized in that: Before the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: The terminal device measures multiple times in succession that the second signal strength of the network device belonging to the second network standard is greater than the first signal strength.
4. The method according to any one of claims 1 to 3, characterized in that After the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: The terminal device detects a first event, where the first event includes any one of the following: the terminal device is in an elevator, a toilet, or a staircase; Measuring, by the terminal device, the first signal strength of the network device belonging to the first network standard specifically includes: The terminal device measures the first signal strength of the network device belonging to the first network standard immediately after connecting to the second network device and disconnecting from the first network device.
5. The method according to any one of claims 1 to 3, characterized in that: After the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: The terminal device does not detect a first event, where the first event includes any one of the following: the terminal device is in an elevator, a toilet, or a staircase; Measuring, by the terminal device, the first signal strength of the network device belonging to the first network standard specifically includes: The terminal device measures the first signal strength of the network device belonging to the first network standard at a second time interval after being connected to the second network device and disconnected from the first network device.
6. The method according to any one of claims 1 to 5, characterized in that Measuring, by the terminal device, the first signal strength of the network device belonging to the first network standard specifically includes: The terminal device periodically measures the first signal strength of the network device belonging to the first network standard at a third time interval.
7. A method for accessing a network, characterized in that: The method comprises: The terminal device is connected to the first network device; The terminal device is connected to a second network device and disconnected from the first network device, the first network device belongs to a first network standard, the second network device belongs to a second network standard, and the first network standard has a higher priority than the second network standard; The terminal device measures a first signal strength of a network device belonging to the first network standard and a second signal strength of a network device belonging to the second network standard; If the difference between the first signal strength and the second signal strength is measured to be greater than the second threshold value for N consecutive times, the terminal device measures the network quality of the first network standard and the network quality of the second network standard. If the network quality of the first network standard is measured to be better than the network quality of the second network standard, the terminal device connects to a third network device and disconnects from the second network device. The third network device belongs to the first network standard, and the value of N is a positive integer.
8. The method according to claim 7, characterized in that After the terminal device measures a first signal strength of a network device belonging to the first network standard and a second signal strength of a network device belonging to the second network standard, the method further includes: If within the first time period, the difference between the first signal strength and the second signal strength is not measured to be greater than the second threshold value for N consecutive times, then after the first time period ends, the terminal device measures the network quality of the first network standard and the network quality of the second network standard. If the network quality of the first network standard is measured to be better than the network quality of the second network standard, the terminal device connects to the third network device and disconnects from the second network device.
9. The method according to claim 7 or 8, characterized in that: Before the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: The terminal device measures that the magnitude relationship between the second signal strength and the first signal strength switches multiple times.
10. The method according to any one of claims 7 to 9, characterized in that: After the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: The terminal device detects a first event, where the first event includes any one of the following: the terminal device is in an elevator, a toilet, or a staircase; The terminal device measuring the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard specifically includes: The terminal device measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard immediately after being connected to the second network device and disconnected from the first network device.
11. The method according to any one of claims 7 to 9, characterized in that: After the terminal device is connected to the second network device and disconnected from the first network device, the method further includes: The terminal device does not detect a first event, where the first event includes any one of the following: the terminal device is in an elevator, a toilet, or a staircase; The terminal device measuring the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard specifically includes: The terminal device measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard at a second time interval after being connected to the second network device and disconnected from the first network device.
12. The method according to any one of claims 7 to 11, characterized in that: The terminal device measuring the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard specifically includes: The terminal device periodically measures the first signal strength of the network device belonging to the first network standard and the second signal strength of the network device belonging to the second network standard at a third time interval.
13. The method according to any one of claims 1 to 12, characterized in that The network quality is determined by one or more of the following: signal strength indication, round trip delay of sending data packets, packet loss rate, packet error rate, and sending rate.
14. A terminal device, characterized in that: include: One or more processors, one or more memories; wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the terminal device executes the method as described in any one of claims 1-13.
15. A computer storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on a terminal device, the terminal device executes the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Neighbourg cell measurement and reporting in a multiple radio access technologies (RAT) environment
CN101473680A
Optimal communication network standard selection method and mobile terminal
CN104980986A
Network standard switching method and device and terminal
CN105517080A
Method and device for switching network types in conversation process
CN106376040A
Method for quickly searching high-standard network and terminal equipment
CN111132270A
