Method, device, equipment and storage medium for determining network mode
Through machine learning models and device information judgment, the network mode of terminal devices in different scenarios is determined, which solves the problem of high power consumption of terminal devices in 5G networks, achieves power consumption reduction and ensures user experience.
Patent Information
- Application Number
- CN202211102781.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2042-09-09
AI Technical Summary
Terminal devices consume a lot of power when residing in a 5G network, and a method is needed to reduce power consumption.
The machine learning model is used to determine the network mode of the terminal device in different scenarios, and the device information is combined to determine whether to switch the network mode, avoiding frequent switching to reduce power consumption.
It effectively reduces the power consumption of terminal devices, ensures user experience, and avoids energy consumption caused by unnecessary network mode switching.
Smart Images

Figure CN115499898B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a method, apparatus, device and storage medium for determining a network mode. Background Art
[0002] The fifth generation mobile communication technology (5G) is a new generation of broadband mobile communication technology with the characteristics of high speed, low latency and large connection.
[0003] Compared to the fourth-generation mobile communication technology (4G) network, terminal devices connected to the 5G network have faster transmission speeds and lower latency. However, if the terminal device remains on the 5G network, it will cause higher power consumption. Summary of the Invention
[0004] The embodiments of the present application relate to a method, apparatus, device and storage medium for determining a network mode, so that the terminal device does not need to be in a 5G network all the time, thereby reducing the power consumption of the terminal device.
[0005] In a first aspect, an embodiment of the present application provides a method for determining a network mode, the method comprising:
[0006] Determine a first network mode of the terminal device in the first scenario according to the machine learning model;
[0007] Obtain the second network mode currently in which the terminal device resides;
[0008] A target network mode of the terminal device is determined according to the first network mode and the second network mode.
[0009] In a possible implementation, determining a target network mode of a terminal device according to a first network mode and a second network mode includes:
[0010] Determine whether the first network mode and the second network mode are the same;
[0011] If yes, determining the second network mode as the target network mode;
[0012] If not, obtain the device information of the terminal device and determine the target network mode according to the device information.
[0013] In one possible implementation, the level of the second network mode is higher than the level of the first network mode; and the device information includes at least one of the following:
[0014] The device status of the terminal device, which is either connected or idle;
[0015] a first duration during which the terminal device resides in the second network mode;
[0016] The terminal device switches the first frequency of the network mode within a preset time period.
[0017] In one possible implementation, determining the target network mode according to the device information includes any one of the following:
[0018] If the device state is a connected state and the first duration is less than a first preset threshold, determining the second network mode as the target network mode;
[0019] If the device state is a connected state and the first duration is greater than or equal to a first preset threshold, determining the first network mode as the target network mode;
[0020] If the device state is a connected state and the first frequency is greater than or equal to a second preset threshold, determining the second network mode as the target network mode;
[0021] If the device state is a connected state and the first frequency is less than a second preset threshold, determining the first network mode as the target network mode;
[0022] If the device state is idle and the first duration is less than a third preset threshold, determining the second network mode as the target network mode;
[0023] If the device state is an idle state and the first duration is greater than or equal to a third preset threshold, determining the first network mode as the target network mode;
[0024] The third preset threshold is less than or equal to the first preset threshold.
[0025] In a possible implementation, the level of the second network mode is lower than the level of the first network mode; the device information includes:
[0026] a second duration for which the terminal device resides in the second network mode; and / or
[0027] The third duration that the terminal device last stayed in the first network mode.
[0028] In one possible implementation, determining the target network mode according to the device information includes any one of the following:
[0029] If the second duration is less than a fourth preset threshold, determining the second network mode as the target network mode;
[0030] If the third duration is less than a fifth preset threshold, determining the second network mode as the target network mode;
[0031] If the second duration is greater than or equal to a fourth preset threshold, and the third duration is greater than or equal to a fifth preset threshold, the first network mode is determined as the target network mode.
[0032] In one possible implementation, the method further includes:
[0033] When the target network mode is the first network mode, a selection page is displayed, wherein the selection page includes a switch control and a hold control;
[0034] If a selection operation of the user input to the switching control is received within the response time, the network mode of the terminal device is switched to the first network mode;
[0035] If the user selects the hold control input within the response time, the network mode of the terminal device remains unchanged;
[0036] If no selection operation input by the user is received within the response time, the network mode of the terminal device is switched to the first network mode.
[0037] In a second aspect, an embodiment of the present application provides a device for determining a network mode, comprising a first determination module, an acquisition module, and a second determination module, wherein:
[0038] The first determination module is used to determine a first network mode of the terminal device in a first scenario according to the machine learning model;
[0039] The acquisition module is used to obtain the second network mode currently resident in the terminal device;
[0040] The second determining module is configured to determine a target network mode of the terminal device according to the first network mode and the second network mode.
[0041] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
[0042] Memory stores computer-executable instructions;
[0043] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method of the first aspect.
[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method of the first aspect.
[0045] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method of the first aspect when executed by a processor.
[0046] In a sixth aspect, an embodiment of the present application provides a chip having a computer program stored thereon. When the computer program is executed by the chip, the method of the first aspect is implemented.
[0047] In a possible implementation, the chip is a chip in a chip module.
[0048] Embodiments of the present application provide a method, apparatus, device, and storage medium for determining a network mode. In this method, a first network mode of a terminal device in a first scenario is determined based on a machine learning model; a second network mode currently in which the terminal device resides is obtained; and a target network mode of the terminal device is determined based on the first and second network modes. This eliminates the need for the terminal device to remain on a 5G network, reducing power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0050] Figure 2 A flowchart of a method for determining a network mode provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of a reinforcement learning process provided in an embodiment of the present application;
[0052] Figure 4 A schematic diagram of a process for switching network modes provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of another process for switching network modes provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of the structure of a device for determining a network mode provided in an embodiment of the present application;
[0055] Figure 7 A schematic diagram of the structure of another device for determining a network mode provided in an embodiment of the present application;
[0056] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0058] It should be noted that although the terms "first" and "second" are used to describe various information in the embodiments of this application, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from each other. Alternatively, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
[0059] It should be understood that the terms "comprising" and "including" indicate the presence of the described features, steps, operations, but do not exclude the presence, occurrence or addition of one or at least one other feature, step, operation. The terms "and / or", "including at least one of the following", etc. used in this application may be interpreted as inclusive, or mean any one or any combination. Optionally, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", for example, "A and / or B" means "any one of the following: A; B; A and B". In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" relationship.
[0060] For ease of understanding, the following Figure 1 , describes the application scenarios to which the embodiments of the present application are applicable.
[0061] Figure 1 This is a schematic diagram of an application scenario provided by the embodiment of this application. Figure 1 , including a network device 101 and a terminal device 102. The terminal device 102 is within the coverage of the network device 101. After the terminal device 102 establishes a connection with the network device 101, various functions such as voice calls and online video viewing can be realized through the network.
[0062] Whether it is Standalone (SA) or Non-Standalone (NSA), when a terminal device is residing on a 5G network, it consumes more power than when it is residing on a non-5G network (such as a Long Term Evolution (LTE) network).
[0063] In order to solve the above technical problems, an embodiment of the present application provides a method for determining a network mode, which determines a first network mode of a terminal device in a first scenario based on a machine learning model; obtains a second network mode in which the terminal device is currently located; and determines a target network mode of the terminal device based on the first network mode and the second network mode. Based on the machine learning model, the first network mode applicable to the terminal device in different scenarios is determined, and the optimal network mode is determined between the first network mode and the second network mode in which the terminal device is currently located. The optimal network mode can be a 5G network or a non-5G network. The terminal device does not need to be in a 5G network all the time, which reduces the power consumption of the terminal device.
[0064] The technical solutions shown in this application are described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be repeated in different embodiments.
[0065] Figure 2 A flowchart of a method for determining a network mode provided in an embodiment of the present application.
[0066] See Figure 2 , the method comprising:
[0067] S201. Determine a first network mode of a terminal device in a first scenario based on a machine learning model.
[0068] The execution subject of the embodiment of the present application can be a terminal device such as a mobile phone, or a device for determining the network mode set in the terminal device. The device for determining the network mode can be implemented by software or a combination of software and hardware.
[0069] The first scenario may be any scenario requiring network use, for example, a screen-on scenario, a game scenario, a video scenario, or a voice call scenario.
[0070] The first network mode may be a 5G network or a non-5G network. The non-5G network may be an LTE network (fourth generation mobile communication technology (4G) network), a third generation mobile communication technology (3G) network, or a second generation mobile communication technology (2G) network.
[0071] The first network mode can be the most suitable network mode for the terminal device in the first scenario determined by the machine learning model.
[0072] A machine learning model refers to a network model based on machine learning. Its function is to identify scenarios in which users have high and low demands for 5G networks, that is, to identify network modes applicable to various scenarios.
[0073] In one possible implementation, machine learning can be deep learning, reinforcement learning, etc.
[0074] Among them, the reinforcement learning model is that the agent learns in a "trial and error" manner, and the rewards obtained by interacting with the environment guide behavior, with the goal of enabling the agent to obtain the maximum reward.
[0075] Generally speaking, the reinforcement learning model can realize the basic framework by setting the three elements of the environment state S, the individual action A, and the environment reward R. Figure 3 As shown, an agent can be a software or hardware entity capable of making autonomous decisions; a device can represent the environment with which the agent interacts; the state of the environment, S, represents the network mode in which the device resides at any given moment; an individual's action, A, represents the agent's operation on the device, which can be an action performed by the device or user (e.g., turning on the screen); and the environment's reward, R, represents the reward corresponding to the action A. Whenever the agent performs an action A on the device, the device's state changes after accepting the action (e.g., from a 5G network to a non-5G network), and the device gives the agent a reward value, R, representing the reward or penalty for the device's chosen state after the action.
[0076] For example, the current state of the device is in a non-5G network. The agent tells the device to turn on the screen. After the screen turns on, the device changes the state to a 5G network and gives the agent a reward value to reward the device for the state change.
[0077] For another example, the current state of the device is non-5G network. The agent turns off the screen of the device. After the screen is turned off, the state of the device is changed to 5G network, and a reward value is given to the agent to punish the state change made by the device.
[0078] In the embodiments of the present application, the individual actions may be any of the following: turning on the screen, turning off the screen, turning on low-power mode, using data (e.g., downloading a video), signal strength changes (e.g., signal weakening when entering an elevator), using services, switching volume (e.g., increasing the volume during a voice call), user interface (UI) human-computer interaction, etc. The individual actions involved in the embodiments of the present application are not limited to the above actions, and this application does not impose any restrictions on them.
[0079] S202: Acquire the second network mode in which the terminal device currently resides.
[0080] The second network mode can be a 5G network or a non-5G network.
[0081] S203: Determine a target network mode of the terminal device according to the first network mode and the second network mode.
[0082] The target network mode can be the first network mode or the second network mode.
[0083] The target network mode may be the network mode in which the terminal device is ultimately determined to reside.
[0084] The terminal device may determine whether to select the first network mode or the second network mode as the target network mode to reside in based on its own information.
[0085] Because the second network mode is the network mode in which the terminal device is currently located, if the terminal device selects the first network mode as the target network mode to reside, it needs to switch from the second network mode to the first network mode; if the terminal device selects the second network mode as the target network mode to reside, the terminal device does not need to switch the network mode and can maintain the current network mode.
[0086] exist Figure 2 In the illustrated embodiment, a first network mode of a terminal device in a first scenario is determined based on a machine learning model; a second network mode in which the terminal device is currently located is obtained; and a target network mode of the terminal device is determined based on the first network mode and the second network mode. Based on the machine learning model, the first network mode applicable to the terminal device in different scenarios is determined, and the optimal network mode is determined between the first network mode and the second network mode in which the terminal device is currently located. The optimal network mode can be either a 5G network or a non-5G network. This eliminates the need for the terminal device to remain on the 5G network, thereby reducing the power consumption of the terminal device.
[0087] exist Figure 2 Based on the illustrated embodiment, before determining the target network mode in which the terminal device resides in the first scenario, it is necessary to first determine whether the first network mode and the second network mode are the same; if so, the second network mode is determined as the target network mode; if not, the device information of the terminal device is obtained, and the target network mode is determined based on the device information.
[0088] Before determining the target network mode according to the device information, it is necessary to first determine whether the level of the second network mode is higher than the level of the first network mode.
[0089] The level of the network mode may refer to the generation of mobile communication technology. For example, the level of 5G is 5, the level of 4G is 4, the level of 3G is 3, and the level of 2G is 2.
[0090] For example, if the second network mode is 5G and the first network mode is 4G, the level of the second network mode is higher than the level of the first network mode. If the second network mode is 4G and the first network mode is 5G, the level of the second network mode is lower than the level of the first network mode.
[0091] If the level of the second network mode is higher than the level of the first network mode, the acquired device information includes at least one of the following:
[0092] (1) The device status of the terminal device, which can be connected or idle.
[0093] If the second network mode is 5G and the first network mode is 4G, the connected state may indicate that a 5G signaling connection has been established between the terminal device and the core network; the idle state may indicate that no 5G signaling connection has been established between the terminal device and the core network.
[0094] (2) A first duration during which the terminal device resides in the second network mode.
[0095] The first duration may be the duration during which the terminal device stays in the current network mode.
[0096] In one possible implementation, the terminal device may obtain the first duration through a timer. For example, if the second network mode is a 5G network, the terminal device starts a timer when it begins to reside on the 5G network, and the timer begins recording the duration. When the terminal device leaves the 5G network, the timer stops recording.
[0097] (3) The terminal device switches the first frequency of the network mode within a preset time period.
[0098] The preset time period can be set according to actual conditions. For example, the preset time period can be from the current time to the time 30 minutes before the current time. If the current time is 12:00, the preset time period can be 11:30 to 12:00.
[0099] The first frequency may be a ratio between the number of times the terminal device switches network mode within a preset time period and the duration of the preset time period. For example, if the terminal device switches network mode 30 times between 11:30 and 12:00, the first frequency may be 1 time / minute.
[0100] If the duration of the preset time period is fixed, the first frequency can be simplified to the number of times the terminal device switches the network mode within the preset time period.
[0101] When the level of the second network mode is higher than the level of the first network mode, the target network mode may be determined according to the device information, including any of the following:
[0102] (1) If the device state is a connected state and the first duration is less than a first preset threshold, the second network mode is determined as the target network mode.
[0103] The first preset threshold can be set according to actual conditions and is not limited in this application. For example, the first preset threshold can be 1 minute.
[0104] If the second network mode is a 5G network, the terminal device is currently in a 5G network connection state, and the connection time is short, it will remain in the current 5G network to avoid increased power consumption caused by frequent switching.
[0105] (2) If the device state is a connected state and the first duration is greater than or equal to a first preset threshold, the first network mode is determined as the target network mode.
[0106] If the second network mode is a 5G network and the first network mode is a 4G network, the terminal device is currently in a 5G network connection state and the connection time is long, the 5G network can be turned off and switched to the 4G network to reduce the power consumption of the terminal device.
[0107] (3) If the device state is a connected state and the first frequency is greater than or equal to a second preset threshold, the second network mode is determined as the target network mode.
[0108] The second preset threshold value can be set according to actual conditions and is not limited in this application. For example, the second preset threshold value can be 1 time / minute.
[0109] If the second network mode is a 5G network, the terminal device is currently in a connected state of the 5G network, and the frequency of switching the network mode within the preset time period is high, then it remains in the current 5G network to avoid increased power consumption caused by frequent switching.
[0110] (4) If the device state is a connected state and the first frequency is less than a second preset threshold, the first network mode is determined as the target network mode.
[0111] If the second network mode is a 5G network and the first network mode is a 4G network, the terminal device is currently in a 5G network connection state, and the frequency of switching network modes within a preset time period is low, the 5G network can be turned off and switched to the 4G network to reduce the power consumption of the terminal device.
[0112] In one possible implementation, when the device state is connected and the first frequency is less than the second threshold, the target network mode can be determined based on the first duration that the terminal device resides in the second network mode; specifically, if the first duration is less than the first preset threshold, the second network mode is determined as the target network mode; if the first duration is greater than or equal to the first preset threshold, the first network mode is determined as the target network mode.
[0113] For example, if the second network mode is a 5G network and the first network mode is a 4G network, the terminal device is currently in a connected state of the 5G network, and the frequency of switching the network mode within the preset time period is low. If the terminal device stays in the 5G network for a short time, it can remain in the current 5G network. If the terminal device stays in the 5G network for a long time, it can shut down the 5G network and switch to the 4G network.
[0114] (5) If the device state is idle and the first duration is less than a third preset threshold, the second network mode is determined as the target network mode.
[0115] The third preset threshold can be determined according to actual conditions, and this application does not limit this, but it needs to meet the following conditions: the third preset threshold is less than or equal to the first preset threshold.
[0116] (6) If the device state is idle and the first time duration is greater than or equal to a third preset threshold, the first network mode is determined as the target network mode.
[0117] For example, the third preset threshold may be 0. That is, if the device is in an idle state, the first network mode may be directly determined as the target network mode.
[0118] Determining the target network mode based on the device information is to avoid frequent network mode switching of the terminal device. In other words, determining the target network mode based on the device information is to avoid an increase in power consumption.
[0119] If the level of the second network mode is lower than the level of the first network mode, the acquired device information includes at least one of the following:
[0120] (1) The terminal device stays in the second network mode for a second period of time.
[0121] The second duration may be the duration during which the terminal device stays in the current network mode.
[0122] In one possible implementation, the terminal device may obtain the second duration through a timer. For example, if the second network mode is a 4G network, the terminal device starts a timer when it begins to reside on the 4G network, and the timer begins recording the duration. When the terminal device leaves the 4G network, the timer stops recording.
[0123] (2) The third duration of the last time the terminal device stayed in the first network mode.
[0124] For example, the current time is 12:00, the current network mode is 4G network, the terminal device resides in the 5G network from 10:00 to 10:50, and resides in the 4G network from 10:50 to 12:00, then the third duration of the last stay in the first network mode is 50 minutes between 10:00 and 10:50.
[0125] The method for obtaining the third duration can refer to the method for obtaining the first duration, and will not be repeated here.
[0126] When the level of the second network mode is lower than that of the first network mode, the target network mode may be determined based on the device information, including any of the following:
[0127] (1) If the second duration is less than a fourth preset threshold, the second network mode is determined as the target network mode.
[0128] The fourth preset threshold value can be set according to actual conditions and is not limited in this application. For example, the fourth preset threshold value can be 1 minute.
[0129] If the second network mode is a 4G network and the duration of staying in the 4G network is short, the current 4G network is maintained to avoid increased power consumption due to frequent switching.
[0130] In a possible implementation, if the second duration is less than a fourth preset threshold, the second network mode is determined as the target network mode regardless of the length of the third duration.
[0131] (2) If the third duration is less than a fifth preset threshold, the second network mode is determined as the target network mode.
[0132] The fifth preset threshold value can be set according to actual conditions and is not limited in this application. For example, the fifth preset threshold value can be 5 minutes.
[0133] If the terminal device is currently on the 4G network and the last time it was on the 5G network was short, it means that the user has a low demand for the 5G network, and can stay on the current 4G network to reduce the power consumption of the terminal device.
[0134] In a possible implementation, if the third duration is less than a fifth preset threshold, the second network mode is determined as the target network mode regardless of the length of the second duration.
[0135] (3) If the second duration is greater than or equal to a fourth preset threshold, and the third duration is greater than or equal to a fifth preset threshold, the first network mode is determined as the target network mode.
[0136] If the terminal device is currently on a 4G network and has been on the 4G network for a long time, and the last time it was on a 5G network was also long, it can be switched to the 5G network to ensure the user experience.
[0137] In the above embodiment, the terminal device determines the target network mode according to different device information, which can further reduce the power consumption of the terminal device while ensuring user experience.
[0138] Based on any of the above embodiments, after determining the target network mode, the terminal device may allow the user to choose whether to switch to the target network mode, specifically:
[0139] When the target network mode is the first network mode, a selection page is displayed, which includes a switch control and a hold control; if a selection operation of the user input to the switch control is received within the response time, the network mode of the terminal device is switched to the first network mode; if a selection operation of the user input to the hold control is received within the response time, the network mode of the terminal device is maintained unchanged; if no selection operation of the user input is received within the response time, the network mode of the terminal device is switched to the first network mode.
[0140] The response time can be determined according to actual conditions. For example, the response time can be 5 seconds, 3 seconds, etc.
[0141] The terminal device can start a timer when displaying the selection page. The timer's start time is the response time. When the timer is off, the selection page will not be displayed.
[0142] When the level of the second network mode is higher than that of the first network mode, such as Figure 4 As shown, the second network mode is the 5G network, and the first network mode is the 4G network. When the terminal device determines to use the 4G network as the target network mode, a selection page is displayed, asking the user whether to switch to the 4G network, and displaying the selected duration (response duration). The display page includes a switch control and a hold control. "Confirm" is displayed on the switch control, and "Cancel" is displayed on the hold control. When the user selects "Confirm" within the response time, the 5G network is switched to the 4G network. When the user selects "Cancel" within the response time, the 5G network is maintained. When the user does not make a selection within the selection time, the terminal device directly switches the 5G network to the 4G network.
[0143] When the level of the second network mode is lower than that of the first network mode, such as Figure 5As shown, the second network mode is the 4G network, and the first network mode is the 5G network. When the terminal device determines to use the 5G network as the target network mode, a selection page is displayed, asking the user whether to switch to the 5G network, and displaying the selected duration (response duration). The display page includes a switch control and a hold control. "Confirm" is displayed on the switch control, and "Cancel" is displayed on the hold control. When the user selects "Confirm" within the response time, the 4G network is switched to the 5G network. When the user selects "Cancel" within the response time, the 4G network is maintained. When the user does not select within the selection time, the terminal device directly switches the 4G network to the 5G network.
[0144] When determining the switch, a dialog is required to call an interface to send a request to instruct the modem to switch the network mode.
[0145] Giving users the opportunity to choose can maximize the user experience while reducing the power consumption of the device.
[0146] Figure 6 This is a schematic diagram of a device for determining a network mode according to an embodiment of the present application. Figure 6 The device 10 includes a first determining module 11, an acquiring module 12, and a second determining module 13, wherein:
[0147] The first determining module 11 is configured to determine a first network mode of the terminal device in a first scenario according to a machine learning model;
[0148] The acquisition module 12 is used to obtain the second network mode in which the terminal device currently resides;
[0149] The second determining module 13 is configured to determine a target network mode of the terminal device according to the first network mode and the second network mode.
[0150] In a possible implementation, the second determining module 13 is specifically configured to:
[0151] Determine whether the first network mode and the second network mode are the same;
[0152] If yes, determining the second network mode as the target network mode;
[0153] If not, obtain the device information of the terminal device and determine the target network mode according to the device information.
[0154] In one possible implementation, the level of the second network mode is higher than the level of the first network mode; and the device information includes at least one of the following:
[0155] The device status of the terminal device, which is either connected or idle;
[0156] a first duration during which the terminal device resides in the second network mode;
[0157] The terminal device switches the first frequency of the network mode within a preset time period.
[0158] In a possible implementation, the second determining module 13 is specifically configured to:
[0159] If the device state is a connected state and the first duration is less than a first preset threshold, determining the second network mode as the target network mode;
[0160] If the device state is a connected state and the first duration is greater than or equal to a first preset threshold, determining the first network mode as the target network mode;
[0161] If the device state is a connected state and the first frequency is greater than or equal to a second preset threshold, determining the second network mode as the target network mode;
[0162] If the device state is a connected state and the first frequency is less than a second preset threshold, determining the first network mode as the target network mode;
[0163] If the device state is idle and the first duration is less than a third preset threshold, determining the second network mode as the target network mode;
[0164] If the device state is an idle state and the first duration is greater than or equal to a third preset threshold, determining the first network mode as the target network mode;
[0165] The third preset threshold is less than or equal to the first preset threshold.
[0166] In a possible implementation, the level of the second network mode is lower than the level of the first network mode; the device information includes:
[0167] a second duration for which the terminal device resides in the second network mode; and / or
[0168] The third duration that the terminal device last stayed in the first network mode.
[0169] In a possible implementation, the second determining module 13 is specifically configured to:
[0170] If the second duration is less than a fourth preset threshold, determining the second network mode as the target network mode;
[0171] If the third duration is less than a fifth preset threshold, determining the second network mode as the target network mode;
[0172] If the second duration is greater than or equal to a fourth preset threshold, and the third duration is greater than or equal to a fifth preset threshold, the first network mode is determined as the target network mode.
[0173] Figure 7 This is a schematic diagram of another apparatus for determining a network mode provided in an embodiment of the present application. Figure 6 , the device 10 further includes a display module 14 and a switching module 15, wherein,
[0174] The display module 14 is configured to display a selection page when the target network mode is the first network mode, the selection page including a switch control and a hold control;
[0175] The switching module 15 is used to switch the network mode of the terminal device to the first network mode if a selection operation of the switch control input by the user is received within the response time; to keep the network mode of the terminal device unchanged if a selection operation of the hold control input by the user is received within the response time; and to switch the network mode of the terminal device to the first network mode if no selection operation of the user input is received within the response time.
[0176] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 The electronic device 20 may include a transceiver 21, a memory 22, and a processor 23. The transceiver 21 may include a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmitting port, a transmitting interface, or similar descriptions. The receiver may also be referred to as a receiver, a receiving port, a receiving interface, or similar descriptions. For example, the transceiver 21, the memory 22, and the processor 23 are interconnected via a bus 24.
[0177] The memory 22 is used to store program instructions;
[0178] The processor 23 is configured to execute the program instructions stored in the memory, so as to enable the electronic device 20 to execute any of the above-mentioned methods for determining the network mode.
[0179] The transceiver 21 is used to perform the transceiver function of the electronic device 20 in the method for determining the network mode.
[0180] The electronic device 20 may be a chip, a module, an integrated development environment (IDE), etc.
[0181] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned method for determining the network mode.
[0182] An embodiment of the present application further provides a computer program product, which can be executed by a processor. When the computer program product is executed, any of the above-mentioned methods for determining a network mode can be implemented.
[0183] The device for determining the network mode, electronic device, computer-readable storage medium and computer program product of the embodiments of the present application can execute the technical solutions shown in the above-mentioned communication method embodiments. Their implementation principles and beneficial effects are similar and will not be repeated here.
[0184] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.
[0185] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0188] Obviously, those skilled in the art may make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations.
Claims
1. A method for determining a network mode, characterized in that: include: Determine a first network mode of the terminal device in the first scenario according to the machine learning model; The machine learning model is a reinforcement learning model, which is trained based on rewards obtained by the agent through interaction with the environment; Acquire the second network mode in which the terminal device currently resides; Determining whether the first network mode and the second network mode are the same; If yes, determining the second network mode as the target network mode; If not, obtaining device information of the terminal device and determining the target network mode according to the device information; The level of the second network mode is higher than the level of the first network mode; the device information includes: The device status of the terminal device, the device status being a connected state or an idle state; a first duration during which the terminal device resides in the second network mode; The terminal device switches the first frequency of the network mode within a preset time period; Determining the target network mode according to the device information includes any one of the following: If the device state is a connected state and the first duration is less than a first preset threshold, determining the second network mode as the target network mode; If the device state is a connected state and the first duration is greater than or equal to the first preset threshold, determining the first network mode as the target network mode; If the device state is a connected state and the first frequency is greater than or equal to a second preset threshold, determining the second network mode as the target network mode; If the device state is a connected state and the first frequency is less than the second preset threshold, determining the first network mode as the target network mode; If the device state is an idle state and the first duration is less than a third preset threshold, determining the second network mode as the target network mode; If the device state is an idle state and the first time duration is greater than or equal to the third preset threshold, determining the first network mode as the target network mode; The third preset threshold is less than or equal to the first preset threshold; the level of the second network mode is lower than the level of the first network mode; the device information includes: a second duration of the terminal device staying in the second network mode; and a third duration of the last time the terminal device stayed in the first network mode; Determining the target network mode according to the device information includes: if the second time length is greater than or equal to a fourth preset threshold, and the third time length is greater than or equal to a fifth preset threshold, determining the first network mode as the target network mode.
2. The method according to claim 1, characterized in that The method further comprises: When the target network mode is the first network mode, displaying a selection page, the selection page including a switch control and a hold control; If a selection operation of the user input to the switching control is received within the response time, the network mode of the terminal device is switched to the first network mode; If a selection operation of the user inputting the hold control is received within the response time, the network mode of the terminal device is kept unchanged; If no selection operation input by the user is received within the response time, the network mode of the terminal device is switched to the first network mode.
3. A device for determining a network mode, characterized in that: It includes a first determining module, an acquiring module and a second determining module, wherein: The first determination module is configured to determine a first network mode of the terminal device in the first scenario based on a machine learning model; the machine learning model is a reinforcement learning model, which is trained based on rewards obtained by an intelligent agent through interaction with an environment; The acquisition module is used to acquire the second network mode in which the terminal device currently resides; The second determining module is configured to determine whether the first network mode and the second network mode are the same; if so, determine the second network mode as the target network mode; if not, obtain device information of the terminal device and determine the target network mode based on the device information; The level of the second network mode is higher than the level of the first network mode; the device information includes: The device status of the terminal device, the device status being a connected state or an idle state; a first duration during which the terminal device resides in the second network mode; The terminal device switches the first frequency of the network mode within a preset time period; The second determining module is specifically configured to: If the device state is a connected state and the first duration is less than a first preset threshold, determining the second network mode as the target network mode; If the device state is a connected state and the first duration is greater than or equal to the first preset threshold, determining the first network mode as the target network mode; If the device state is a connected state and the first frequency is greater than or equal to a second preset threshold, determining the second network mode as the target network mode; If the device state is a connected state and the first frequency is less than the second preset threshold, determining the first network mode as the target network mode; If the device state is an idle state and the first duration is less than a third preset threshold, determining the second network mode as the target network mode; If the device state is an idle state and the first time duration is greater than or equal to the third preset threshold, determining the first network mode as the target network mode; The third preset threshold is less than or equal to the first preset threshold; the level of the second network mode is lower than the level of the first network mode; the device information includes: a second duration of the terminal device staying in the second network mode; and a third duration of the last time the terminal device stayed in the first network mode; The second determining module is specifically configured to: determine the first network mode as the target network mode if the second duration is greater than or equal to a fourth preset threshold, and the third duration is greater than or equal to a fifth preset threshold.
4. An electronic device, characterized in that: include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 2.
5. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 2 when executed by a processor.
6. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 2 when the computer program is executed by a processor.
Citation Information
Patent Citations
Network switching method and device, storage medium and electronic equipment
CN111050370A
Network switching processing method and device
CN111787582A
Network switching method and device, storage medium and terminal
CN112135325A