Network mode control method and device
By automatically detecting uplink network congestion and downlink throughput in electronic devices, automatic switching of dual-connection network modes is achieved, solving the problem of complex manual operations for users, and improving the network's automatic control and high-speed Internet capabilities.
Patent Information
- Application Number
- CN202210357244.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-06
AI Technical Summary
The control of the current dual-connection network mode cannot be automated, and users need to operate it manually, which is complicated and inconvenient.
By obtaining the uplink data packet transmission information when the electronic device establishes a communication connection with the base station, it determines the uplink network congestion duration and downlink throughput duration, automatically switches to the dual-connection network mode, and starts the dual-connection network mode when the specified conditions are met.
It realizes automatic control of dual-connection network mode, simplifies user operations, and promptly restores high-speed Internet access in upstream network congestion or heavy traffic usage scenarios.
Smart Images

Figure CN114650616B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of mobile communication technology, and specifically relates to a method and device for controlling a network mode. Background Art
[0002] The fifth generation mobile communication technology (5G) is a new generation of mobile communication technology. There are two networking schemes: standalone (SA) and non-standalone (NSA). NSA is deployed based on the existing fourth generation mobile communication technology (4G) infrastructure, and some services and functions continue to rely on the 4G network.
[0003] At present, most operators around the world have deployed NSA enhanced mobile broadband (Enhanced Mobile Broadband, referred to as eMBB) network, and rely on the mature Long Term Evolution (Long Term Evolution, referred to as LTE) network coverage, and can also give play to the high throughput of 5G base stations, thus gradually forming a new communication architecture - dual connection architecture. In the dual connection architecture, the terminal device can connect to two different base stations at the same time, and then communicate with the two base stations respectively, meeting the user's demand for high-speed Internet access at the cost of increased power consumption.
[0004] However, currently, it is usually up to the user to decide whether to enable the dual connection network mode in the terminal device, that is, the user comprehensively considers power consumption and high-speed Internet access requirements and freely chooses the time to enable the dual connection network mode. Not only does it make it impossible to automate the control of the dual connection network mode, but the current operation of enabling the dual connection network mode is relatively complicated and inconvenient for users to operate. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method and device for controlling a network mode, which can solve the problem in the related art that the control of the dual-connection network mode of an electronic device cannot be automated.
[0006] In a first aspect, an embodiment of the present application provides a method for controlling a network mode, the method comprising:
[0007] When the electronic device has established a communication connection with the first base station, acquiring transmission information during the transmission of an uplink data packet;
[0008] In a case where the transmission information indicates that the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, determining a parameter set, wherein the parameter set includes: a first parameter indicating the duration of uplink network congestion and a second parameter indicating the duration of downlink throughput being greater than a first threshold;
[0009] When the parameter set meets the preset conditions, the current network mode of the electronic device is set to a dual-connection network mode, so that the electronic device establishes a communication connection with the second base station when a communication connection is established with the first base station, wherein the preset conditions include: the first parameter is greater than or equal to a second threshold or the second parameter is greater than or equal to a third threshold.
[0010] In a second aspect, an embodiment of the present application provides a network mode control device, the device comprising:
[0011] A transmission information module, used to obtain transmission information during uplink data packet transmission when a communication connection is established between the electronic device and the first base station;
[0012] A parameter module, configured to determine a parameter set when the transmission information indicates that the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, wherein the parameter set includes: a first parameter indicating the duration of uplink network congestion and a second parameter indicating the duration of downlink throughput being greater than a first threshold;
[0013] A network mode control module is used to set the current network mode of the electronic device to a dual-connection network mode when the parameter set meets a preset condition, so that the electronic device establishes a communication connection with a second base station when a communication connection is established with the first base station, wherein the preset condition includes: the first parameter is greater than or equal to a second threshold or the second parameter is greater than or equal to a third threshold.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0018] In an embodiment of the present application, when a communication connection is established between the electronic device and the first base station, the transmission information in the uplink data packet transmission process can be used to determine whether the user has an Internet access demand. When the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, it is deemed that the user has an Internet access demand. At this time, a parameter set including a first parameter characterizing the duration of uplink network congestion and a second parameter characterizing the duration of downlink throughput greater than a first threshold is determined. A preset condition is set based on at least one situation in which the dual-connection network mode needs to be turned on. When the parameter set meets the preset condition, the current network mode of the electronic device is set to the dual-connection network mode. Since no user operation is required, the electronic device can make its own decision and start the dual-connection network mode of the electronic device. Therefore, the control of the dual-connection network mode is automated, and at the same time, the process of starting the dual-connection network mode is simplified. Furthermore, since the preset conditions include: the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold, where the situation where the first parameter is greater than or equal to the second threshold can be regarded as the uplink network being congested for a long time, and the situation where the second parameter is greater than or equal to the third threshold can be regarded as being in a high-traffic usage scenario for a long time, the dual-connection network mode can be automatically turned on when the uplink network is congested for a long time and in a high-traffic usage scenario for a long time, so that the electronic device can resume high-speed Internet access in time. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flowchart of the steps of the network mode control method provided in an embodiment of the present application;
[0020] Figure 2 is a flowchart of the steps of determining whether the first parameter meets the preset condition in an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a process for determining a third parameter in an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of the actual application of the network mode control method provided in the embodiment of the present application;
[0023] Figure 5is a structural block diagram of a control device for a network mode provided in an embodiment of the present application;
[0024] Figure 6 This is one of the hardware structure diagrams of the electronic device provided in the embodiment of the present application;
[0025] Figure 7 This is the second schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0028] The following is a detailed description of the network mode control method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0029] like Figure 1 As shown, a method for controlling a network mode provided in an embodiment of the present application is provided, and the method for controlling a network mode includes:
[0030] Step 101: When a communication connection is established between an electronic device and a first base station, transmission information during uplink data packet transmission is obtained.
[0031] In this step, the electronic device has a network communication function, and when a communication connection is established between the electronic device and the first base station, the electronic device can exchange data with the first base station. The first base station can be any base station in the target network. Here, the electronic device is located in a cell covered by the first base station, and the electronic device and the first base station establish a communication connection through the target network. The target network can be any network, such as a 4G network, a 5G network, etc.
[0032] It is understandable that during the data transmission process of the electronic device in the first base station, the direction of data transmission includes an uplink direction from the electronic device to the first base station and a downlink direction from the first base station to the electronic device. The transmission information here includes data transmission information in the uplink direction, that is, transmission information during the uplink data packet transmission process.
[0033] Step 102: When the transmission information indicates that the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, determine a parameter set.
[0034] In this step, the cached uplink data packets are data packets that need to be transmitted uplink to the first base station. The electronic device will report the number of uplink data packets so that the first base station can allocate scheduling resources. During the transmission of uplink data packets, the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, which can indicate that the user is currently using the electronic device to access the Internet.
[0035] The parameter set includes: a first parameter characterizing the duration of uplink network congestion and a second parameter characterizing the duration of downlink throughput greater than a first threshold. The duration of uplink network congestion is the duration of congestion when the network is congested in the uplink direction. Among them, network congestion in the uplink direction can be understood as network overload or low transmission performance in the uplink direction; thus, the first parameter can characterize the network status in the uplink direction to a certain extent. The duration of downlink throughput greater than the first threshold is the duration of network throughput greater than the first threshold in the downlink direction, wherein the value of the first threshold is large, and the downlink throughput greater than the first threshold can be regarded as the electronic device being in a high-traffic usage scenario. Specifically, the first threshold can be 2 megabits per second, but is not limited to this.
[0036] It is understandable that the specific values of the first parameter and the second parameter may change over time, and therefore, the first parameter and the second parameter may be updated every preset time period. The preset time period may be a shorter period of time, such as 1 second, but is not limited thereto. It is worth noting that when the number of cached uplink data packets does not continue to increase or the number of reported uplink data packets is zero, it indicates that the user is not using the electronic device to surf the Internet, and there is no need to set the dual connection network mode, and thus there is no need to perform subsequent steps.
[0037] Step 103: When the parameter set meets the preset conditions, the current network mode of the electronic device is set to the dual-connection network mode, so that the electronic device establishes a communication connection with the second base station when the communication connection with the first base station is established.
[0038] It should be noted that the preset conditions include: the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold. Therefore, when the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold, the parameter set is deemed to meet the preset conditions. Here, the case where the first parameter is greater than or equal to the second threshold is regarded as a long period of uplink network congestion. Therefore, the second threshold is a time value used to measure whether the uplink network congestion time is long, for example, it can be 30 seconds, 50 seconds, 1 minute, etc., but not limited to this. Similarly, the third threshold is a time value used to measure whether the duration of a large traffic usage scenario is long, for example, it can be 30 seconds, 50 seconds, 1 minute, etc., but not limited to this.
[0039] It is understandable that when the electronic device is in a dual-connection network mode, the electronic device can communicate with the first base station and the second base station at the same time, wherein the first base station and the second base station are base stations accessing different networks. Here, the dual-connection network mode in the electronic device can be a dual-connection function implemented based on the ENDC (UMTS Evolved Terrestrial Radio Access Network New Radio Dual Connection, EUTRANR Dual-Connectivity) architecture, but is not limited to this. Among them, UMTS can be called a universal mobile telecommunications system (Universal Mobile Telecommunications System). Under the EN-DC architecture, the network accessed by the first base station is a 4G network, and the network accessed by the second base station is a 5G network.
[0040] In an embodiment of the present application, when a communication connection is established between the electronic device and the first base station, the transmission information in the uplink data packet transmission process can be used to determine whether the user has an Internet access demand. When the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, it is deemed that the user has an Internet access demand. At this time, a parameter set including a first parameter characterizing the duration of uplink network congestion and a second parameter characterizing the duration of downlink throughput greater than a first threshold is determined. A preset condition is set based on at least one situation in which the dual-connection network mode needs to be turned on. When the parameter set meets the preset condition, the current network mode of the electronic device is set to the dual-connection network mode. Since no user operation is required, the electronic device can make its own decision and start the dual-connection network mode of the electronic device. Therefore, the control of the dual-connection network mode is automated, and at the same time, the process of starting the dual-connection network mode is simplified. Furthermore, since the preset conditions include: the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold, where the situation where the first parameter is greater than or equal to the second threshold can be regarded as the uplink network being congested for a long time, and the situation where the second parameter is greater than or equal to the third threshold can be regarded as being in a high-traffic usage scenario for a long time, the dual-connection network mode can be automatically turned on when the uplink network is congested for a long time and in a high-traffic usage scenario for a long time, so that the electronic device can resume high-speed Internet access in time.
[0041] Optionally, determining the first parameter in the parameter set includes:
[0042] Get the target discard timer duration.
[0043] It should be noted that the electronic device discards the cached uplink data packet when the timing time of the target discard timer reaches the timing duration. The timing duration is a pre-configured duration. For example, the target discard timer can be a Packet Data Convergence Protocol (PDCP) discard timer, i.e., PDCP Discard Timer. The timing duration can be "300ms", "1500ms" or "infinity". When the timing duration is configured as "300ms", the PDCP Discard Timer timing time reaches 300 milliseconds and is considered to have timed out once; when the timing duration is configured as "infinity", the PDCP Discard Timer timing time reaches the default duration and is considered to have timed out once. The default duration can be 65535 milliseconds. It is understandable that the PDCP Discard Timer can be reset and restarted each time it times out.
[0044] Start the target timer in the target situation, wherein the target situation includes: the timing duration is less than the duration threshold and the number of timeouts of the target discard timer is greater than or equal to the target number, the timing duration is equal to the duration threshold and the number of cached uplink data packets is greater than or equal to the target number;
[0045] It should be noted that the target timer is used to record the duration of the network congestion state. Therefore, the target timer will start timing when it is detected that the network is in a congested state. When the timing duration of the target discard timer is configured as the duration threshold, a timeout may not occur. Continuing to use the PDCP Discard Timer as an example, when the timing duration is configured as "infinity", a timeout may not occur. Therefore, in the case where the target discard timer times out, the start time of the congestion state can be determined based on the number of timeouts. In the case where the target discard timer does not time out, the start time of the congestion state is determined based on the number of cached uplink data packets. For example, when the number of uplink data packets cached in the PDCP layer reaches 100, it is considered that the network begins to be congested, and the time at this time is used as the start time of the congestion state.
[0046] Here, when the target discard timer is PDCP Discard Timer, different timing durations correspond to different target times. For example, the target number of times set for a timing duration of "300ms" may be 5 times, and the target number of times set for a timing duration of "1500ms" may be 1 time. Preferably, the target timer may be an integer multiple of PDCP Discard Timer.
[0047] The timing time of the target timer is determined as the first parameter.
[0048] In the embodiment of the present application, by utilizing the target discard timer in the mobile communication network, the congestion status of the network can be quickly monitored, thereby achieving accurate timing of the congestion duration.
[0049] Optionally, after determining the timing time of the target timer as the first parameter, the method further includes:
[0050] When the number of buffered uplink data packets is equal to zero, the target timer is stopped.
[0051] It should be noted that the uplink data packet replaced here can be an uplink data packet cached by the PDCP layer, and can also be understood as an uplink data packet in the PDCP queue. When the number of uplink data packets replaced becomes zero, it means that all current cached data has been sent out or the cell has changed or the current link has been rebuilt. Here, the target timer can also be stopped when the data packets cached in other protocol layers are zero. For example, the data packets cached by the media access control layer. It can be understood that by stopping the target timer and starting the target timer again when the conditions are met, the cumulative duration of network congestion can be determined, and the cumulative duration is used as the network congestion duration. Of course, the target timer can also be reset here, that is, the target timer is cleared to zero. At this time, the duration of network congestion is determined, and the duration of network congestion is used as the network congestion duration.
[0052] In the embodiment of the present application, when all the cached data is currently sent out or the cell is changed or the current link is rebuilt, the target timer is stopped to ensure the accuracy of the first parameter.
[0053] Optionally, after determining the timing time of the target timer as the first parameter, the method further includes:
[0054] When the first parameter is equal to the second threshold, the target flag is switched from the first flag to the second flag, wherein the target flag is used to characterize the uplink network congestion;
[0055] The first parameter is greater than or equal to the second threshold, including: the target flag bit is currently the second identifier.
[0056] It should be noted that when the target flag bit is the first flag, it indicates that the uplink network is not congested; when the target flag bit is the second flag, it indicates that the uplink network is congested. Here, the target flag bit can be stored in the database of the LTE non-access layer. Specifically, when the target flag bit is the first flag, 0 is stored, and when the target flag bit is the second flag, 1 is stored.
[0057] In the embodiment of the present application, the target flag bit can be used to identify the congestion situation of the uplink network, so that the congestion situation of the uplink network can be determined quickly and accurately by using the target flag bit.
[0058] like Figure 2 As shown, it is a flowchart of the steps of determining whether the first parameter meets the preset condition in the control method of the network mode provided in the embodiment of the present application, including:
[0059] Step 201: Start.
[0060] Step 202: The electronic device performs data services in the cell, and a data PDN (Packet Data Network) has been established.
[0061] Step 203: Determine whether the current situation is in the target situation. Specifically, check the value of the PDCP Discard Timer configured by the network radio resource bearer. The network configuration includes: 300ms, 1500ms and infinity. If the network configuration is 300ms, determine whether the current PDCP Discard Timer timeout times reach the first count threshold; if the network configuration is 1500ms, determine whether the current PDCP Discard Timer timeout times reach the second count threshold; if the network configuration is infinity, determine whether the number of current PDCP cache data packets reaches the data packet threshold, that is, PB_size = data packet threshold. If so, execute step 204, if not, end. It should be noted that the numerical values of the first count threshold, the second count threshold and the data packet threshold determine the sensitivity of judging congestion. The larger the value, the lower the sensitivity, and the smaller the value, the higher the sensitivity. Here, the specific values of the first count threshold, the second count threshold and the data packet threshold can be customized according to actual conditions. For example, the first count threshold is 5 times, the second count threshold is 1 time, and the data packet threshold is 1000 bytes, but it is not limited to this.
[0062] Step 204: Start the target timer. Here, a target timer can be set for different network configurations. For example, if the network configuration is 300ms, when the number of PDCP Discard Timer timeouts reaches the first count threshold, start target timer A. If the network configuration is infinity, when the number of current PDCP cached data packets reaches the data packet threshold, start target timer B. After the target timer is started, when PB_size becomes 0, it means that all current cached data has been sent out or the cell has changed or the current link has been rebuilt, and the target timer is stopped.
[0063] Step 205: Determine whether the target timer has timed out, if so, execute step 206, if not, end.
[0064] Step 206: Set the LTE cell uplink congestion Flag to 1.
[0065] Step 207: End.
[0066] Optionally, the number of uplink data packets continues to increase and the number of reported uplink data packets is not zero, including:
[0067] The data packets to be sent in the uplink PDCP queue buffer continue to increase, and the number of data packets reported in the data status report (Buffer Status Report, referred to as BSR) is not zero.
[0068] It should be noted that the uplink PDCP queue is the PDCP queue in the uplink direction, which is a queue used to cache uplink IP data packets. When the data packets to be sent in the uplink PDCP queue cache continue to increase, it means that the user may be currently surfing the Internet. The electronic device reports to the first base station through the BSR how much data needs to be sent in its uplink cache, so that the first base station can decide how much uplink resources to allocate to the electronic device. Here, the number of data packets reported by the BSR is the specific parameter value of the BSR size parameter, where the BSR is reported through the media access control layer.
[0069] In the embodiment of the present application, based on the uplink PDCP queue and the number of data packets reported by the BSR, it can be accurately determined whether the user is using an electronic device to access the Internet.
[0070] Optionally, the parameter set also includes: a third parameter representing whether the electronic device can establish a communication connection with the second base station; the preset condition also includes: the third parameter represents that the electronic device can establish a communication connection with the second base station.
[0071] It should be noted that due to the limitation of the electronic device or the limitation of the first base station, the electronic device may not be able to establish a communication connection with the second base station. Therefore, in order to avoid the situation where the electronic device cannot establish a communication connection with the second base station after the dual connection function (dual connection network mode) is turned on, whether the electronic device can establish a communication connection with the second base station is used as one of the judgment conditions for turning on the dual connection function.
[0072] In an embodiment of the present application, when determining whether to enable the dual connection function of an electronic device, whether the electronic device can establish a communication connection with a second base station is used as one of the judgment conditions. This can reduce the situation where the electronic device cannot establish a communication connection with the second base station after the dual connection function is enabled.
[0073] Optionally, determining a third parameter in the parameter set includes:
[0074] Obtaining first status information characterizing whether the first network can be used as an anchor network of the second network, second status information characterizing whether the electronic device has a dual-connection network mode, and third status information characterizing whether the second network allows the electronic device to access, wherein the first network is a network accessed by the first base station, and the second network is a network accessed by the second base station;
[0075] A third parameter is determined based on the first condition information, the second condition information, and the third condition information.
[0076] It should be noted that the first status information may indicate whether the first network is capable of supporting the electronic device to access different base stations simultaneously under the dual connection function. The second status information may indicate whether the electronic device has a dual connection network mode. The third status information may indicate whether the first network allows the electronic device to access different base stations simultaneously under the dual connection function. Only when the first network is capable of supporting the electronic device to access different base stations simultaneously under the dual connection network mode, and the electronic device has a dual connection network mode, and the first network allows the electronic device to access different base stations simultaneously under the dual connection network mode, the third parameter meets the preset conditions, that is, the third parameter characterizes that the electronic device can establish a communication connection with the second base station. Specifically, the third parameter is a first value when the first network can be used as an anchor network of the second network, the electronic device has a dual connection network mode, and the second network allows the electronic device to access. The third parameter is a second value when the first network cannot be used as an anchor network of the second network, the electronic device does not have a dual connection network mode or the second network does not allow the electronic device to access. Correspondingly, the electronic device can establish a communication connection with the second base station, including: the third parameter is currently the first value.
[0077] The process of determining the third parameter is described below with a specific example. The following ENDC capability is the dual connection function, that is, the dual connection network mode mentioned above. Figure 3 As shown, including:
[0078] Step 301: Start
[0079] Step 302: The electronic device performs initial registration or location update in the LTE cell.
[0080] Step 303: Check whether SIB2 (system message 2) carries the first information. If yes, execute step 304. If no, execute step 307. The first message is upperLayerIndication-r15=true, indicating that the current network can be used as the anchor network of the ENDC network, that is, it can simultaneously connect to the LTE network and the NR (New Radio) network and perform data transmission at the same time.
[0081] Step 304: Determine whether the electronic device itself supports dual connectivity. If so, execute step 305; otherwise, execute step 307. Specifically, first request the NAS (non-access stratum) module to query the DCNR capability of the electronic device. If the terminal's preferred network mode includes NR, the modem has enabled the Option 3 capability, and the electronic device initiates registration in an LTE anchor cell that supports the ENDC combination, the terminal includes the DCNR capability (DCNR=1) in the capabilities reported to the network, indicating that the electronic device supports ENDC.
[0082] Step 305: Whether the first network sends the second information, if so, execute step 306, if not, execute step 307. The first network is the network to which the LTE cell belongs. Determine whether the first network allows the electronic device to access by whether the second message is sent. Specifically, query the MM (mobile management) module whether the first network restricts electronic devices from accessing the dual-connection network. After the electronic device receives the Attach Accept message or the TAU Accept message, if RestrictDCNR=0 is present in the message or the field is not carried, it means that the first network allows the electronic device to access.
[0083] Step 306: Update ENDC capability to support. That is, upperLayerIndication-r15 = true & UE ENDCSupport = true & NW DCNR Restrict = false, update NAS ENDC support = true. Specifically, update the ENDC capability support status stored in the database of the LTE non-access layer, which can be used by the modem to report to the upper system interface to display the 5G signal icon, and can also be used by other modules to obtain the real-time ENDC support status of the current electronic device and the first network.
[0084] Step 307: Update the ENDC capability to not supported.
[0085] Step 308: End.
[0086] In an embodiment of the present application, the electronic device itself and the network itself are taken into consideration, and the third parameter is determined based on first status information of whether the first network can serve as an anchor network of the second network, second status information of whether the electronic device has a dual-connection network mode, and third status information of whether the second network allows the electronic device to access. This can avoid the situation where the electronic device cannot establish a communication connection with the second base station after the dual-connection network mode is turned on.
[0087] Optionally, when the dual connection network mode in the electronic device is a dual connection function implemented based on the ENDC architecture, setting the current network mode of the electronic device to the dual connection network mode includes:
[0088] Request the PDCP module to query the current ENDC B1 measurement switch status of the RRC (Radio Resource Control) module;
[0089] When the ENDC B1 measurement switch state is in the closed state, the current ENDC B1 measurement switch state is updated to the open state, so that the electronic device can normally report the B1 measurement report of the NR, so that the electronic device establishes a communication connection with the second base station.
[0090] In the embodiment of the present application, when the ENDC B1 measurement switch state is in the closed state, its switch state is adjusted to the open state, and then the communication connection between the electronic device and the second base station is established by reporting the NR B1 measurement report.
[0091] like Figure 4 , which is a schematic diagram of the actual application of the control method of the network mode provided in the embodiment of the present application, wherein the dual connection function is the ENDC function, that is, the above-mentioned dual connection network mode. Specifically, the steps of the actual application include:
[0092] Step 401: Start.
[0093] Step 402: The electronic device resides in the LTE cell.
[0094] Step 403: Determine whether the LTE network has configured an ENDC cell for the electronic device, if yes, then end, if not, execute step 404.
[0095] Step 404: Determine whether the electronic device is in the RRC connection state, if yes, execute step 405, if no, end. When the electronic device is in the RRC idle state, in order to avoid excessive ENDC NR measurements and increase power consumption, the ENDC NRB1 measurement is disabled by default.
[0096] Step 405: Determine whether there is an uplink data packet to be sent, if yes, execute step 406, otherwise end. Specifically, if there are uplink IP data packets continuously entering the PDCP queue of the data bearer, and the BSR size of the media access control layer of the current data bearer is not 0, it means that there is an uplink data packet to be sent.
[0097] Step 406: Enter "LTE cell congestion judgment" and high traffic usage scenario judgment. The process of "LTE cell congestion judgment" can be found in Figure 2 The steps are described here.
[0098] Step 407: Determine whether the preset conditions are met. If so, execute step 408, otherwise end. Specifically, if the congestion flag Flag = 1, it means that the current LTE has a lot of uplink data to send, but the LTE network does not have enough uplink resource scheduling, resulting in the uplink data packet cannot be sent in time. Therefore, it can be determined whether the congestion flag is 1. When the congestion flag is 1, it is considered to meet the preset conditions. If the congestion flag Flag = 0, it means that the current LTE cell is not congested in the uplink, but the uplink is not congested. If the downlink network scheduling resources are insufficient, the video playback will also slow down; at this time, if the downlink PDCP throughput of the data carrier is monitored to be greater than or equal to 2 megabits per second, and lasts for 5 seconds, it means that the current application scenario is a large traffic flow. Therefore, when the congestion flag is 0 and the downlink PDCP throughput is greater than or equal to 2 megabits per second, it can also be considered to meet the preset conditions.
[0099] Step 408: Update the current ENDC B1 policy switch state to on, that is, turn on the ENDC function.
[0100] Step 409: End.
[0101] In the embodiment of the present application, a balance can be achieved between power consumption and data experience. When the LTE cell signal is poor when using data services, ENDC is automatically turned on to accelerate the network, and when the user encounters data interruption and lag, high-speed Internet access is restored in time. When no data services are used or when LTE data is not lag, maintaining a single LTE connection can reduce the standby power consumption of the terminal, thereby improving the battery life of the electronic device.
[0102] It should be noted that the control method of the network mode provided in the embodiment of the present application can be executed by a control device of the network mode, or a control module in the control device of the network mode for executing the control method of the network mode. In the embodiment of the present application, the control device of the network mode provided in the embodiment of the present application is described by taking the control method of the network mode executed by the control device of the network mode as an example.
[0103] like Figure 5 As shown, the embodiment of the present application also provides a network mode control device, the device comprising:
[0104] The transmission information module 51 is used to obtain transmission information in the process of uplink data packet transmission when the electronic device has established a communication connection with the first base station;
[0105] A parameter module 52 is used to determine a parameter set when the transmission information indicates that the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, wherein the parameter set includes: a first parameter indicating the duration of uplink network congestion and a second parameter indicating the duration of downlink throughput being greater than a first threshold;
[0106] The network mode control module 53 is used to set the current network mode of the electronic device to a dual-connection network mode when a parameter set meets a preset condition, so that the electronic device can establish a communication connection with the second base station when a communication connection is established with the first base station, wherein the preset condition includes: the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold.
[0107] Optionally, the parameter module 52 includes:
[0108] A duration acquisition unit, used to acquire a timing duration of a target discard timer, wherein the electronic device discards the cached uplink data packet when the timing time of the target discard timer reaches the timing duration;
[0109] A first timer unit, configured to start a target timer under a target situation, wherein the target situation includes: a timing duration is less than a duration threshold and the number of timeouts of the target discard timer is greater than or equal to a target number, a timing duration is equal to the duration threshold and the number of cached uplink data packets is greater than or equal to a target number;
[0110] The second timer unit is used to determine the timing time of the target timer as the first parameter.
[0111] Optionally, the device further comprises:
[0112] The stop module is used to stop the target timer when the number of cached uplink data packets is equal to zero.
[0113] Optionally, the parameter set also includes: a third parameter representing whether the electronic device can establish a communication connection with the second base station; the preset condition also includes: the third parameter represents that the electronic device can establish a communication connection with the second base station.
[0114] Optionally, the parameter module 52 includes:
[0115] A status information unit, used to obtain first status information characterizing whether the first network can be used as an anchor network of the second network, second status information characterizing whether the electronic device has a dual-connection network mode, and third status information characterizing whether the second network allows the electronic device to access, wherein the first network is a network accessed by the first base station, and the second network is a network accessed by the second base station;
[0116] The parameter unit is used to determine a third parameter based on the first status information, the second status information and the third status information.
[0117] In an embodiment of the present application, when a communication connection is established between the electronic device and the first base station, the transmission information in the uplink data packet transmission process can be used to determine whether the user has an Internet access demand. When the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, it is deemed that the user has an Internet access demand. At this time, a parameter set including a first parameter characterizing the duration of uplink network congestion and a second parameter characterizing the duration of downlink throughput greater than a first threshold is determined. A preset condition is set based on at least one situation in which the dual-connection network mode needs to be turned on. When the parameter set meets the preset condition, the current network mode of the electronic device is set to the dual-connection network mode. Since no user operation is required, the electronic device can make its own decision and start the dual-connection network mode of the electronic device. Therefore, the control of the dual-connection network mode is automated, and at the same time, the process of starting the dual-connection network mode is simplified. Furthermore, since the preset conditions include: the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold, where the situation where the first parameter is greater than or equal to the second threshold can be regarded as the uplink network being congested for a long time, and the situation where the second parameter is greater than or equal to the third threshold can be regarded as being in a high-traffic usage scenario for a long time, the dual-connection network mode can be automatically turned on when the uplink network is congested for a long time and in a high-traffic usage scenario for a long time, so that the electronic device can resume high-speed Internet access in time.
[0118] The control device of the network mode in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0119] The control device of the network mode in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0120] The control device of the network mode provided in the embodiment of the present application can achieve Figures 1 to 4 The various processes implemented in the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.
[0121] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601 and a memory 602, wherein the memory 602 stores a program or instruction that can be executed on the processor 601, and when the program or instruction is executed by the processor 601, each step of the control method embodiment of the above-mentioned network mode is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0122] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0123] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0124] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
[0125] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0126] The processor 710 is configured to obtain transmission information during uplink data packet transmission when a communication connection is established between the electronic device and the first base station;
[0127] The processor 710 is further configured to determine a parameter set when the transmission information indicates that the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, wherein the parameter set includes: a first parameter indicating the duration of uplink network congestion and a second parameter indicating the duration of downlink throughput being greater than a first threshold;
[0128] Processor 710 is also used to set the current network mode of the electronic device to a dual-connection network mode when the parameter set meets a preset condition, so that the electronic device can establish a communication connection with the second base station when a communication connection is established with the first base station, wherein the preset condition includes: the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold.
[0129] In an embodiment of the present application, when a communication connection is established between the electronic device and the first base station, the transmission information in the uplink data packet transmission process can be used to determine whether the user has an Internet access demand. When the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, it is deemed that the user has an Internet access demand. At this time, a parameter set including a first parameter characterizing the duration of uplink network congestion and a second parameter characterizing the duration of downlink throughput greater than a first threshold is determined. A preset condition is set based on at least one situation in which the dual-connection network mode needs to be turned on. When the parameter set meets the preset condition, the current network mode of the electronic device is set to the dual-connection network mode. Since no user operation is required, the electronic device can make its own decision and start the dual-connection network mode of the electronic device. Therefore, the control of the dual-connection network mode is automated, and at the same time, the process of starting the dual-connection network mode is simplified. Furthermore, since the preset conditions include: the first parameter is greater than or equal to the second threshold or the second parameter is greater than or equal to the third threshold, where the situation where the first parameter is greater than or equal to the second threshold can be regarded as the uplink network being congested for a long time, and the situation where the second parameter is greater than or equal to the third threshold can be regarded as being in a high-traffic usage scenario for a long time, the dual-connection network mode can be automatically turned on when the uplink network is congested for a long time and in a high-traffic usage scenario for a long time, so that the electronic device can resume high-speed Internet access in time.
[0130] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0131] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0132] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.
[0133] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the control method embodiment of the above-mentioned network mode is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0134] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0135] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned network mode, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0136] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0137] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the above-mentioned network mode, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0138] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0140] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for controlling a network mode, characterized in that: The method comprises: When the electronic device has established a communication connection with the first base station, acquiring transmission information during the transmission of an uplink data packet; In a case where the transmission information indicates that the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, determining a parameter set, wherein the parameter set includes: a first parameter indicating the duration of uplink network congestion and a second parameter indicating the duration of downlink throughput being greater than a first threshold; When the parameter set meets the preset conditions, the current network mode of the electronic device is set to a dual-connection network mode, so that the electronic device establishes a communication connection with the second base station when a communication connection is established with the first base station, wherein the preset conditions include: the first parameter is greater than or equal to a second threshold or the second parameter is greater than or equal to a third threshold.
2. The method according to claim 1, characterized in that: Determining a first parameter in the parameter set includes: Obtaining a timing duration of a target discard timer, wherein the electronic device discards the cached uplink data packet when the timing time of the target discard timer reaches the timing duration; Start the target timer in a target situation, wherein the target situation includes: the timing duration is less than the duration threshold and the number of timeouts of the target discard timer is greater than or equal to the target number, the timing duration is equal to the duration threshold and the number of cached uplink data packets is greater than or equal to the target number; The timing time of the target timer is determined as the first parameter.
3. The method according to claim 2, characterized in that After determining the timing time of the target timer as the first parameter, the method further includes: When the number of buffered uplink data packets is equal to zero, the target timer is stopped.
4. The method according to claim 1, characterized in that: The parameter set also includes: a third parameter representing whether the electronic device can establish a communication connection with the second base station; the preset condition also includes: the third parameter representing that the electronic device can establish a communication connection with the second base station.
5. The method according to claim 4, characterized in that Determining the third parameter in the parameter set includes: Acquire first status information characterizing whether the first network can be used as an anchor network of the second network, second status information characterizing whether the electronic device has a dual-connection network mode, and third status information characterizing whether the second network allows the electronic device to access, wherein the first network is a network accessed by the first base station, and the second network is a network accessed by the second base station; The third parameter is determined based on the first status information, the second status information, and the third status information.
6. A network mode control device, characterized in that: The control device of the network mode comprises: A transmission information module, used to obtain transmission information during uplink data packet transmission when a communication connection is established between the electronic device and the first base station; A parameter module, configured to determine a parameter set when the transmission information indicates that the number of cached uplink data packets continues to increase and the number of reported uplink data packets is not zero, wherein the parameter set includes: a first parameter indicating the duration of uplink network congestion and a second parameter indicating the duration of downlink throughput being greater than a first threshold; A network mode control module is used to set the current network mode of the electronic device to a dual-connection network mode when the parameter set meets a preset condition, so that the electronic device establishes a communication connection with a second base station when a communication connection is established with the first base station, wherein the preset condition includes: the first parameter is greater than or equal to a second threshold or the second parameter is greater than or equal to a third threshold.
7. The device according to claim 6, characterized in that The parameter module includes: A duration acquisition unit, used to acquire a timing duration of a target discard timer, wherein the electronic device discards the cached uplink data packet when the timing time of the target discard timer reaches the timing duration; A first timer unit, configured to start a target timer under a target situation, wherein the target situation includes: the timing duration is less than a duration threshold and the number of timeouts of the target discard timer is greater than or equal to a target number, the timing duration is equal to the duration threshold and the number of cached uplink data packets is greater than or equal to a target number; The second timer unit is used to determine the timing time of the target timer as the first parameter.
8. The device according to claim 7, characterized in that The device also includes: The stopping module is used to stop the target timer when the number of cached uplink data packets is equal to zero.
9. The device according to claim 6, characterized in that The parameter set also includes: a third parameter representing whether the electronic device can establish a communication connection with the second base station; the preset condition also includes: the third parameter representing that the electronic device can establish a communication connection with the second base station.
10. The device according to claim 9, characterized in that The parameter module includes: a status information unit, used to obtain first status information characterizing whether the first network can be used as an anchor network of the second network, second status information characterizing whether the electronic device has a dual-connection network mode, and third status information characterizing whether the second network allows the electronic device to access, wherein the first network is a network accessed by the first base station, and the second network is a network accessed by the second base station; A parameter unit is used to determine the third parameter based on the first status information, the second status information and the third status information.
