Method and related device for accessing network
By real-time detection of signal strength and quality, terminal equipment dynamically adjusts network switching strategies, solving the problem of frequent switching between 5G and 4G signals by user equipment, improving user experience.
Patent Information
- Application Number
- CN202410137672.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2044-01-31
AI Technical Summary
When user equipment moves quickly, it may frequently switch between 5G and 4G signals, resulting in untimely signal switching, poor user experience, and mistakenly think that the equipment is still in the weak 5G signal area.
The terminal equipment detects the signal strength and quality in real time, determines whether the switching conditions are met, and dynamically adjusts the network switching strategy to avoid unnecessary waiting caused by fixed suppression time.
It improves the user equipment's quick switching ability when the 5G signal strength meets the conditions, reduces user misunderstandings and device misjudgment, and improves user experience.
Smart Images

Figure CN119255322B_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 devices that support 5G signals. In some scenarios, users may quickly enter and exit areas with weak 5G signals. However, after entering a weak signal area, the device may switch from 5G to 4G. After quickly leaving the weak signal area, the device may not quickly recover to 5G. This can cause users to mistakenly believe that the device is still in a weak 5G signal area or that the device is damaged. Summary of the Invention
[0003] The present application provides a method for accessing a network and related devices 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 the first aspect, the present application provides a method for accessing a network, the method comprising: a terminal device connects to a first network device; the terminal device connects to a second network device and disconnects 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 N times in a row, 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 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.
[0005] 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 within the range of a strong 5G signal. This eliminates the need for the terminal device 100 to wait for a partial suppression period before switching to the 5G signal even when within the range of a strong 5G signal. Instead, the terminal device 100 can quickly switch to the 5G signal when the 5G signal strength meets certain conditions, improving the user experience. Furthermore, this allows users to align their perceptions with the information provided by the terminal device 100, avoiding 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. 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. In this way, the terminal device has not left the 5G weak signal area within the suppression time period. Therefore, the terminal device can determine whether the connected network device can be switched after the suppression time period ends.
[0007] In conjunction 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 measuring that a 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 conjunction with the first aspect, in some implementations, after the terminal device connects to the second network device and disconnects from the first network device, the method further includes: the terminal device detecting a first event, the first event including any of the following: the terminal device is in an elevator, a bathroom, or a stairwell; and the terminal device measuring the first signal strength of the network device belonging to the first network standard specifically includes: the terminal device immediately measuring the first signal strength of the network device belonging to the first network standard after connecting to the second network device and disconnecting from the first network device. In this way, the specific scenario of the terminal device can be identified, and the high-speed network standard can be switched back as quickly as possible.
[0009] In conjunction with the first aspect, in some implementations, after the terminal device connects to the second network device and disconnects from the first network device, the method further includes: the terminal device failing to detect a first event, the first event including any of the following: the terminal device being in an elevator, a restroom, or a stairwell; and the terminal device measuring the first signal strength of a network device belonging to the first network standard specifically includes: the terminal device measuring the first signal strength of the network device belonging to the first network standard at a second interval after connecting to the second network device and disconnecting from the first network device. In this way, power consumption used for measuring signal strength during the second interval can be saved.
[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 the second aspect, the present application provides a method for accessing a network, the method comprising: a terminal device connects to a first network device; the terminal device connects to a second network device and disconnects 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 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; 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 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.
[0012] 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 within the range of a strong 5G signal. This eliminates the need for the terminal device 100 to wait for a partial suppression time before switching to the 5G signal even when within the range of a strong 5G signal. Instead, the terminal device 100 can quickly switch to the 5G signal when the 5G signal strength and 4G signal strength meet certain conditions, thereby improving the user experience. Furthermore, this allows the user to align their perception with the information provided by the terminal device 100, 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, then 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: measuring, by the terminal device, that the 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 a 4G / 5G ping-pong zone.
[0015] 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 detects a first event, the first event including any one of the following: the terminal device is in an elevator, a bathroom, or a stairwell; 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 quickly as possible.
[0016] In conjunction with the second aspect, in some implementations, after the terminal device connects to the second network device and disconnects from the first network device, the method further includes: the terminal device does not detect a first event, where the first event includes any of the following: the terminal device is in an elevator, a bathroom, or a stairwell; and the terminal device measures the first signal strength of a network device belonging to the first network standard and the second signal strength of a 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 duration after connecting to the second network device and disconnecting from the first network device. In this way, power consumption used to measure signal strength can be saved during the second 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 conjunction with the first or second aspect, in some implementations, the network quality is determined by one or more of the following: signal strength indicator, round-trip delay for sending data packets, packet loss rate, packet error rate, and transmission rate. In some implementations, network quality may also be determined by more parameters, which are not limited to this.
[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 code, wherein the computer program code comprises computer instructions. When the one or more processors execute the computer instructions, the terminal device executes the method of the first aspect or any embodiment of the first aspect, or the second aspect or any embodiment of the second aspect.
[0020] In a fourth aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, enables the terminal device to execute the method of the above-mentioned first aspect or any embodiment of the first aspect or the second aspect or any embodiment 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 its resident cell provided in an embodiment of the present application;
[0023] Figure 3 A flowchart 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 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 following is a clear and detailed description of the technical solutions in the embodiments of the present application, with reference to the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of "or." For example, A / B can represent A or B. "and / or" in the text is merely a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: 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 should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0029] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, 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 this 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 graphical user interface (GUI), which refers to a user interface related to computer operations 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 the 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 a portable terminal device with other operating systems, the terminal device 100 can 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, as well as 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, an in-vehicle device, a smart home device and / or a smart city device, but is not limited thereto. The terminal device 100 can also include a laptop computer with a touch-sensitive surface or touch panel, a desktop computer with a touch-sensitive surface or 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 wireless transceiver functions. 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), etc.
[0035] Among them, the wireless access network can be divided into cellular cells (also known as cells). The terminal device and network device in each cellular cell can be connected through the air interface, and signaling and data are exchanged through the air interface. For example, 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. For example, the terminal device 100 is within the coverage range of the network device 201 and 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 following describes the cell residency process of the terminal device 100.
[0038] In some implementations, the terminal device 100 selects a suitable cell to reside in in order to receive services from the network and to perform actual business. The suitable cell may refer to a cell where 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; 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 in order to be determined as a suitable cell. The cell selection criteria may refer to the channel quality that needs to be met by the channel conditions between the cell and the terminal device 100. 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 both meet the S criterion, the terminal device 100 can set priorities for the two cells based on other factors (such as network standards) and select the cell with higher priority as the suitable cell. For example, the priority of the cell with 5G signal (such as network device 202) is higher than that of the cell with 4G signal (network device 201). The terminal device 100 can also select the cell with better channel quality of the two cells as the suitable cell.
[0041] In the embodiment of the present application, the above-mentioned cell residency process of the terminal device 100 is only for illustrative purposes, and may also include more ways to determine a suitable cell, which is not limited to this.
[0042] In a possible implementation, the channel quality of the cell may also be measured by the following parameters: received signal strength indication (RSSI), quality of service (QoS), or quality of experience (QoE) of the terminal device 100. Specifically, the terminal device 100 may determine the channel quality 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 sent.
[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 in. 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 and has a higher priority 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 describes a scenario in which a terminal device 100 changes the cell in which it resides, provided by an embodiment of the present application.
[0046] For example, Figure 2 As shown, the user's handheld 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 yet 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] Because the elevator is located in a weak 5G signal area, when the user enters the elevator, terminal device 100 detects that the channel quality of 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, terminal device 100 detects that the channel quality of network device 201 meets the cell selection criteria and determines that network device 201 is a suitable cell. The network standard currently used by terminal device 100 is the 4G signal provided by 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 exits the elevator, terminal device 100 can detect network device 202, which meets the cell selection criteria and has a higher priority than network device 201. Logically, upon exiting the elevator, the network standard used by terminal device 100 should be the 5G signal provided by 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 does not detect the parameters used to characterize the channel quality of each cell. Consequently, 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 and has a higher priority 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 standards overlap. For example, the 4G / 5G ping-pong area may refer to an area where the edges of cells with 4G signals and cells with 5G signals overlap. The ping-pong switching phenomenon may refer to: in the ping-pong area, due to unstable signal quality, the terminal device 100 frequently switches to a suitable cell to reside. For example, 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 constantly switch and reside between cells with 4G signals and cells with 5G signals, 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 residing in a 5G signal to a cell residing in 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 restrict the terminal device 100 from switching its resident cell may cause the terminal device 100 to still use the 4G signal when it is already in the 5G strong signal range. This will cause the user to know that they are currently in the 5G strong signal range based on historical usage, but the information provided by the terminal device 100 shows that they are still in the 5G weak 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 5G strong signal range, the terminal device 100 will also switch to the 4G signal due to the sudden deterioration of the wireless network environment, and it will need to wait for the suppression time to switch back to the 5G strong 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. The terminal device 100 can then 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 within 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 within 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 meet 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, thereby avoiding confusion. In addition, the method for accessing the network provided in the embodiment of the present application can also adapt to various network standard switching scenarios.
[0058] The following combination 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 entering the first area, the terminal device 100 resides in a cell with a 5G signal (e.g., network device 202). After entering the first area, the terminal device 100 detects that the channel quality of network device 202 does not meet the cell selection criteria and needs to switch to the currently residing cell. The terminal device 100 then detects that the channel quality of a 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 the signal. For example, if the 4G signal strength detected by the terminal device 100 is always greater than the 5G signal strength for many consecutive times after entering the first area, 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 relationship between the two switches many 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 more other areas, as long as 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 range corresponding to the first area may include, but is not limited to, enclosed and narrow spaces such as elevators, stairwells, and toilets. In the embodiment of the present application, the geographical range corresponding to the first area is merely an example and is not intended to be limiting.
[0065] S302: The terminal device 100 executes a suppression scheme, which includes: during the suppression time, the terminal device 100 is not allowed to switch the cell in which it resides.
[0066] In some implementations, after the terminal device 100 switches network standards, for example, from 5G to 4G, a suppression scheme may be employed to prevent the terminal device 100 from frequently switching network standards. That is, after the terminal device 100 switches from being connected to the network device 202 to being connected to the network device 201, the terminal device 100 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] As a result, the terminal device 100 cannot report a measurement report (MR) containing parameters representing cell channel quality to the RRC layer via the physical layer. Furthermore, the terminal device 100 cannot send a reconfiguration instruction to a specific cell via the RRC layer. The MR may refer to a collection of various parameters representing cell channel quality measured in real time by the terminal device 100, and the PHY layer reports the MR to the RRC layer as soon as it measures it.
[0069] For example, 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, the terminal device 100 may execute the following S304-1 or S304-2 after executing S302.
[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 by:
[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 it is in an elevator by checking its connection status with the Wi-Fi network. For example, the terminal device 100 can record a commonly used Wi-Fi link as the home Wi-Fi network. If the terminal device 100 loses connection with the home Wi-Fi network, it can be assumed that the user has left home with the terminal device 100. This allows the user to determine that the terminal device 100 is about to enter the elevator.
[0076] 3. The terminal device 100 can also determine whether it is in an elevator by identifying radio frequency signals. For example, a card device with radio frequency identification (RFID) technology can be installed in the elevator. When the terminal device 100 receives a video signal from the card, it can determine that the terminal device 100 is in the elevator.
[0077] 4. The terminal device 100 can also determine whether the terminal device 100 is in an 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 be combined to make a judgment. For example, 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 illustrative purposes and does not limit the method for determining whether the terminal device 100 is in an 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 S304-1 or S304-2 according to different scenarios in the first area. The preset time may be considered as a period of time when the user may be in the first area to perform a certain event.
[0081] For example, if the terminal device 100 is in a first area with a poor signal and has not detected any first event, the terminal device 100 may wait for a preset time (e.g., two minutes) before executing S304-1 or S304-2. The preset time is the time the terminal device 100 assumes the user will hold the terminal device 100 and pass through the first area. During this preset time, the terminal device 100 can be considered to be still in the first area. Thus, waiting for the preset time before executing S304-1 or S304-2 can reduce power consumption.
[0082] Optionally, the above-mentioned waiting for the preset time can also avoid the situation where the network has abnormal fluctuations. Exemplarily, waiting for the preset time can be understood as waiting for the abnormal network fluctuation 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 directly choose to execute S304-1 or S304-2 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 executing S303, and has not executed the following S304-1 or S304-2 during the execution of 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 intervals of a certain time period.
[0085] In some implementations, the terminal device 100 can set a time period for measuring 5G signal strength, for example, 10ms. Since the physical layer of the terminal device 100 does not detect parameters used to characterize the channel quality of each cell in the suppression scheme, the upper layer of the terminal device 100 needs to send instructions to the physical layer, instructing the physical layer to measure 5G signal strength during the suppression time. To reduce power consumption, the physical layer no longer measures multiple other parameters and can only measure 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 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 (i.e., 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, 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 consecutively is greater than the 5G signal threshold within the suppression time, the suppression scheme may be lifted. For example, the terminal device 100 may determine whether the measured 5G signal is greater than the 5G signal threshold through the RRC layer. The terminal device 100 may also determine through an upper layer of the RRC layer, which is not limited to this.
[0092] For example, if the first event is that terminal device 100 is located in an elevator, when terminal device 100 determines that the 5G signal strength measured N times in a row is greater than the 5G signal threshold, it can be understood that terminal device 100 has left the elevator and that terminal device 100 left the elevator within the suppression time. In other words, in this case, the suppression scheme prevents 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 solution 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 solution 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 solution.
[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 as the terminal device 100 being inside an elevator, if the terminal device 100 determines that the 5G signal strength measured for N-1 consecutive times is greater than the 5G signal threshold, but the 5G signal strength does not reach the 5G signal threshold in the last measurement after N-1 consecutive times, 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, the suppression solution continues to be executed.
[0100] After executing S306 - 1 , if the 5G signal values measured for N consecutive times are not all greater than the 5G signal threshold before the suppression time expires, executing 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 may continuously measure the 5G signal strength and the 4G signal strength at regular time intervals through the physical layer.
[0103] In some implementations, the terminal device 100 can set a time period for measuring the 5G signal strength and the 4G signal strength, for example, 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 an instruction 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 depending on the situation.
[0106] S305-2. If the terminal device 100 determines that the measured 5G signal strength and 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 (i.e., the difference threshold value), the suppression scheme can be released.
[0108] In some implementations, the terminal device 100 may determine the signal difference threshold 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 may also refer to the above-mentioned switching threshold.
[0109] In a possible implementation, when the terminal device 100 satisfies S305 - 2 , it also needs to satisfy S305 - 1 in order to release the suppression scheme.
[0110] In some implementations, if the terminal device 100 determines that the difference between the 5G signal strength and the 4G signal strength measured N times consecutively is greater than the signal difference threshold within the suppression time, the suppression scheme may be released. For example, the terminal device 100 may determine, through the RRC layer, that the difference between the measured 5G signal strength and the 4G signal strength satisfies the signal difference threshold. The terminal device 100 may also make a determination through an upper layer of the RRC layer, which is not limited thereto.
[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 consecutively meets the signal difference threshold, it can be understood that the terminal device 100 has left the 4G / 5G ping-pong area, and the terminal device 100 left the 4G / 5G ping-pong area within the suppression time. In other words, in this case, the suppression scheme prevents the terminal device 100 from switching to the 5G signal. Therefore, the suppression scheme can be lifted.
[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 solution 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 solution 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 solution.
[0117] Specifically, within the suppression time period, if the terminal device 100 does not measure the difference between the 5G signal strength and the 4G signal strength to be greater than the second threshold value for N consecutive times, the suppression scheme will continue 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] For example, 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 after N-1 consecutive times, 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 lifted, the terminal device may not be able to switch from the 4G signal to the 5G signal. Therefore, in the current situation, the suppression solution continues to be executed.
[0120] After executing S306 - 2 , if the difference between the 5G signal strength and the 4G signal strength measured N times consecutively is not greater than the signal difference threshold before the suppression time ends, execute S308 .
[0121] S307. After the suppression scheme is released, 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 lifted, 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 with a 4G signal (e.g., network device 201). 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 terminal device 100 can switch the currently residing cell, that is, the terminal device 100 can switch from being connected to network device 201 to being connected 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 is possible to switch from the 4G network back to the 5G network.
[0126] In some implementations, if, during the suppression time, the terminal device 100 determines that the 5G signal strength measured for N consecutive times does not meet the 5G signal threshold, and that the difference between the 5G signal strength and the 4G signal strength measured for N consecutive times does not meet the signal difference threshold, the suppression scheme is not lifted. Only after the suppression time expires can the terminal device 100 detect parameters characterizing 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 with a 4G signal (e.g., network device 201). 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 terminal device 100 can switch the currently residing cell, that is, the terminal device 100 can switch from being connected to network device 201 to being connected 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 surrounding 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 surrounding cell, thereby determining when it is within the range of a strong 5G signal. In this way, the terminal device 100 can quickly switch back to a cell with a high network standard, improving the high network standard residence rate of the terminal device 100 and enhancing 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 one possible implementation, the network access solution provided in the embodiments of the present application is not only applicable to switching from 4G signals to 5G signals, but can also be applied to various scenarios where low network standards are switched to high network standards, such as switching from 2G or 3G signals to 5G signals, and switching from 5G signals to 6G signals. This is not limited in the embodiments 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 should be understood that the structure illustrated in the embodiments 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, or may combine or separate certain components, or arrange the components differently. The illustrated components 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 processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0136] In some implementations, the processor 110 may be configured to determine whether to release the suppression scheme or continue to execute the suppression scheme. Specifically, the processor 110 may be configured to determine whether the measured 5G signal strength is greater than a first threshold value, and may also be configured to determine whether the difference between the measured 5G signal strength and the 4G signal strength is greater than a second threshold value.
[0137] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0138] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.
[0139] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative 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 a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.
[0140] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the terminal device 100. While charging the battery 142, the charging management module 140 can also provide power to the terminal device via 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction 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. applied on 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, frequency modulate it, 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 display functions through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that 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 that execute program instructions to generate or modify display information.
[0147] Display screen 194 is used to display images, videos, etc. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, terminal device 100 may include one 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 the ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0149] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and color. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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. In addition to processing digital image signals, it can also process other digital signals. For example, when the terminal device 100 selects 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 video. Terminal device 100 may support one or more video codecs. This allows terminal device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0153] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in the terminal device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[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 cell potential level; universal flash storage (UFS) and embedded multi media card (eMMC) can be divided into UFS and embedded multi media card 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 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.
[0160] The terminal device 100 can implement audio functions such as music playback 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 signals for output, and is also used to convert analog audio input into digital audio signals.
[0162] Speaker 170A, also known as a "horn," is used to convert audio electrical signals into sound signals. Receiver 170B, also known as a "handset," is used to convert audio electrical signals into sound signals. Microphone 170C, also known as a "microphone," is used to convert sound signals into electrical signals. Headphone jack 170D is used to connect wired headphones. Headphone jack 170D can be a USB port 130, or a 3.5mm Open Mobile Terminal Platform (OMTP) standard port, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard port.
[0163] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. 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 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, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the terminal device and is applied to applications such as landscape and portrait screen switching and pedometers. The distance sensor 180F is used to measure 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 ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K, also known as a "touch device", can obtain vibration signals. The bone conduction sensor 180M can obtain vibration signals. The buttons 190 include 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 changes, 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 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate 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] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, 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 applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0169] The application framework layer provides an application programming interface (API) and 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 size, determine whether there is a status bar, lock the screen, take screenshots, 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 those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might 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 answering, hanging up, 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 allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically, without requiring user interaction. For example, the Notification Manager can be used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating the device, or flashing indicator lights.
[0177] Android Runtime includes core libraries and a virtual machine. 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 application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0180] The system library can 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 fusion of 2D and 3D layers for multiple applications.
[0182] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. 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 includes at least display driver, camera driver, audio driver, and sensor driver.
[0186] Figure 6 A schematic structural diagram 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, memory 202, network interface 203, transmitter 205, receiver 206, coupler 207 and antenna 208. These components may be connected via 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, such as signal modulation, on the signal output by the processor 201. The receiver 206 may be used to perform reception processing, such as signal demodulation, on the mobile communication signal received by the antenna 208. 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 a transmission line into electromagnetic waves in free space, or vice versa. The coupler 207 may be used to split 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 input / output ports, or the memory 202 can 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, or RTLinux. 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, or one or more network devices.
[0191] In the embodiments of the present application, the processor 201 may be configured to read and execute computer-readable instructions. Specifically, the processor 201 may be configured to call a program stored in the memory 202, such as a program for implementing 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 this application can be combined arbitrarily to achieve different technical effects.
[0194] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented 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, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may 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 therein. The available medium may 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 drive (SSD)).
[0195] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[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 scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection 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; If the terminal device detects a first event, the terminal device immediately measures the first signal strength of a network device belonging to the first network standard after being disconnected from the first network device; or, if the terminal device does not detect the first event, the terminal device measures the first signal strength after a second time interval after being disconnected from the first network device; wherein the first event includes one of the following: the terminal device is in an elevator, a bathroom, or a stairwell; 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 measured network quality of the first network standard is 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, characterized in that 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 multiple times in a row 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 claim 1, wherein 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.
5. 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; If the terminal device detects a first event, the terminal device immediately 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 after being disconnected from the first network device; or, if the terminal device does not detect the first event, the terminal device measures the first signal strength and the second signal strength at a second time interval after being disconnected from the first network device; wherein the first event includes one of the following: the terminal device is in an elevator, a bathroom, or a stairwell; 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.
6. The method according to claim 5, 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 measured network quality of the first network standard is 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.
7. The method according to claim 6, characterized in that 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.
8. The method according to claim 5, characterized in that Measuring, by the terminal device, 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 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 intervals of a third time.
9. The method according to any one of claims 1 to 8, characterized in that The network quality is determined by one or more of the following: signal strength indicator, round trip delay of sending data packets, packet loss rate, packet error rate, and sending rate.
10. 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 code, and the computer program code includes 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 to 9.
11. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on a terminal device, cause the terminal device to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Network standard switching method and device and terminal
CN105517080A
Method and device for switching network types in conversation process
CN106376040A
Network control method and device and storage medium
CN112492654A
Processing method, mobile terminal and storage medium
CN113347676A