Movatterモバイル変換


[0]ホーム

URL:


CN112543487A - Control method and device of electronic equipment, terminal and storage medium - Google Patents

Control method and device of electronic equipment, terminal and storage medium
Download PDF

Info

Publication number
CN112543487A
CN112543487ACN202011411404.1ACN202011411404ACN112543487ACN 112543487 ACN112543487 ACN 112543487ACN 202011411404 ACN202011411404 ACN 202011411404ACN 112543487 ACN112543487 ACN 112543487A
Authority
CN
China
Prior art keywords
transmission rate
network
electronic device
application
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011411404.1A
Other languages
Chinese (zh)
Other versions
CN112543487B (en
Inventor
丁波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co LtdfiledCriticalBeijing ByteDance Network Technology Co Ltd
Priority to CN202011411404.1ApriorityCriticalpatent/CN112543487B/en
Publication of CN112543487ApublicationCriticalpatent/CN112543487A/en
Application grantedgrantedCritical
Publication of CN112543487BpublicationCriticalpatent/CN112543487B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the disclosure provides a control method and device of electronic equipment, a terminal and a storage medium. The control method comprises the following steps: determining an application in the foreground of the electronic device, wherein the application has a transmission rate threshold corresponding to an application type of the application; determining a transmission rate of the electronic device; comparing a total transmission rate threshold of applications in the foreground with the transmission rate; a handover between the first network and a second network is determined based on the result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network. According to the embodiment of the disclosure, the application has the transmission rate threshold corresponding to the application type of the application, so that the problem that switching is not timely or is too frequent due to the fact that a single fixed threshold cannot be compatible with different application scenes is solved, the switching time of a network is more accurate, and not only can user experience be met, but also the power consumption of the electronic equipment can be optimized.

Description

Control method and device of electronic equipment, terminal and storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a method and an apparatus for controlling an electronic device, a terminal, and a storage medium.
Background
With the development of 5G technology, more and more mobile terminals support a 5G network, and currently, a 5G network on the market mainly exists in a non-independent Networking (NSA) mode, that is, the mobile terminal supports both 4G and 5G, and since the 4G and 5G networks are required to be bi-pass, power consumption of the mobile terminal is greatly increased. It is therefore desirable to be able to effectively reduce the increase in power consumption by 5G without affecting the faster speed experience of 5G.
Disclosure of Invention
In order to solve the existing problems, the present disclosure provides a method and an apparatus for controlling an electronic device, a terminal, and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a control method of an electronic device, the control method including: determining an application in the foreground of the electronic device, wherein the application has a transmission rate threshold corresponding to an application type of the application; determining a transmission rate of the electronic device; comparing a total transmission rate threshold of applications in the foreground with the transmission rate; determining a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network.
In some embodiments, the present disclosure provides a control apparatus of an electronic device, the control apparatus including: a foreground application determination module configured to determine an application in a foreground of the electronic device, wherein the application has a transmission rate threshold corresponding to an application type of the application; a transmission rate determination module configured to determine a transmission rate of the electronic device; a comparison module configured to compare a total transmission rate threshold of an application in the foreground with the transmission rate; a handover determination module configured to determine a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network.
In some embodiments, the present disclosure provides a control method of an electronic device, the control method including: determining a transmission rate threshold of the electronic device for network handover; determining a transmission rate of the electronic device; comparing the transmission rate threshold to the transmission rate; determining a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network; after the electronic equipment is switched from the first network to the second network, determining a first transmission rate at a switching moment or in a preset time period before the switching moment, and determining a second transmission rate of the electronic equipment in the preset time period after the switching moment; and comparing the first transmission rate with the second transmission rate, and if the ratio of the second transmission rate to the first transmission rate is smaller than a preset threshold value, switching the electronic equipment back to the first network.
In some embodiments, the present disclosure provides a control apparatus of an electronic device, the control apparatus including: a transmission rate threshold determination module configured to determine a transmission rate threshold of the electronic device for network handover; a transmission rate determination module configured to determine a transmission rate of the electronic device; a comparison module configured to compare the transmission rate threshold to the transmission rate; a handover determination module configured to determine a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network; a transmission rate after switching determination module configured to determine a first transmission rate at a switching time or a preset time period before the switching time after the electronic device is switched from the first network to the second network, and determine a second transmission rate of the electronic device within the preset time period after the switching; and the re-switching module is configured to compare the first transmission rate with the second transmission rate, and if the ratio of the second transmission rate to the first transmission rate is smaller than a preset threshold value, re-switch the electronic equipment back to the first network.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the control method.
In some embodiments, the present disclosure provides a storage medium for storing program code for executing the above-described control method.
According to the embodiment of the disclosure, the application has the transmission rate threshold corresponding to the application type of the application, so that the problem that switching is not timely or is too frequent due to the fact that a single fixed threshold cannot be compatible with different application scenes is solved, the switching time of a network is more accurate, and not only can user experience be met, but also the power consumption of the electronic equipment can be optimized.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a control method of an electronic apparatus of an embodiment of the present disclosure.
Fig. 2 is a partial block diagram of a control apparatus of an electronic device of an embodiment of the present disclosure.
Fig. 3 is a flowchart of a control method of an electronic device of another embodiment of the present disclosure.
Fig. 4 is a partial block diagram of a control apparatus of an electronic device of another embodiment of the present disclosure.
Fig. 5 is a flowchart of a control method of an electronic device of another embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The electronic devices or terminals in the present disclosure may include, but are not limited to, mobile terminal devices such as notebook computers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and the like, and terminal devices such as digital TVs, desktop computers, and the like. In the following embodiments, a mobile phone is taken as an example for explanation, but the present disclosure is not limited thereto.
Fig. 1 provides a flowchart of a control method of an electronic device of an embodiment of the present disclosure. In some embodiments, the control method of the present disclosure includes a step S101 of determining an application in a foreground of the electronic device, wherein the application has a transmission rate threshold corresponding to an application type of the application. In some embodiments, an application in the foreground generally needs to perform data transmission, and an application in the background may not perform data transmission or perform less data transmission, so that data traffic may be saved and power consumption of an electronic device (e.g., a mobile phone) may be reduced. In some embodiments, the application types may include games, audios and videos, news, social, tools, and the like, but the disclosure is not limited thereto. In some embodiments, which type the current application belongs to may be obtained through the application store-related interface based on the package name of the application, it being understood that this is exemplary only and not limiting.
In some embodiments, a data transfer rate threshold for a first network (e.g., 4G) to switch to a second network (e.g., 5G) and a data transfer rate threshold to drop from the second network back to the first network are set for applications of different application types. In some embodiments, the data transmission rate thresholds may be stored in a data set, and then the transmission rate threshold corresponding to each application of the network handover is obtained from the data set according to the application type, so that the total transmission rate threshold of each application in the foreground of the network handover can be known. As described above, each application corresponds to a respective transmission rate threshold, and the total transmission rate threshold for an application in the foreground refers to the sum of the transmission rate thresholds for the respective applications in the foreground.
In some embodiments, the control method of the present disclosure includes a step S102 of determining a transmission rate of the electronic device. In some embodiments, the current data transmission rate of the electronic device may be determined by a traffic monitoring module of the electronic device. In some embodiments, the upload and download transmission rates are calculated separately, so that details of data transmission can be easily understood, and in addition, generally, the data transmission of the electronic device is mainly the download transmission rate, and the upload transmission rate is less in demand. Therefore, the transmission rates of upload and download can be calculated separately, and the larger of the upload transmission rate and the download transmission rate is used as the data transmission rate of the electronic device.
In some embodiments, the control method of the present disclosure includes a step S103 of comparing a total transmission rate threshold of an application in the foreground with a transmission rate. In some embodiments, to determine whether to perform a network switch, the total transmission rate threshold of the applications in the foreground is compared to the current data transmission rate of the electronic device to determine whether the current network can meet the data transmission needs of the respective applications.
In some embodiments, the control method of the present disclosure includes a step S104 of determining a handover between the first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network. In some embodiments, the first network is a 4G network and the second network is a 5G network, although the disclosure is not so limited.
According to the method and the device, the application has the transmission rate threshold corresponding to the application type of the application, the problem that due to the fact that a single fixed threshold cannot be compatible with different application scenes, switching is not timely or switching is too frequent is solved, the switching opportunity of a network is more accurate, user experience can be met, and power consumption of electronic equipment can be optimized. In the related method, the 5G data channel is turned on only when the transmission rate exceeds a preset threshold, and the rate threshold is single and fixed. Since the mobile terminal usually has a plurality of networking processes in data transmission at the same time, if the set single fixed transmission rate threshold is small, fluctuation is easily caused, that is, switching is continuously performed between 4G and 5G connections; if the threshold is set too large, the possibility of connecting to the 5G network is greatly reduced, which is not favorable for the user experience. The method of the present disclosure solves exactly the above problems.
In some embodiments, determining the transmission rate of the electronic device includes determining the transmission rate of the electronic device at a preset time interval. In some embodiments, the transmission rate of the electronic device is determined at a fixed time period (e.g., every 1 s). In some embodiments, the control method of the present disclosure further comprises storing the determined transmission rate in the electronic device. In some embodiments, by storing the determined transfer rate in the electronic device, historical multiple data transfer rates may be monitored, avoiding the problem of potentially large errors with a single data transfer rate.
In some embodiments, storing the determined transfer rate in the electronic device includes padding the transfer rate into a preset window. In some embodiments, the electronic device detects the current data transmission rate in real time, and fills the transmission rate detected in real time into a preset window for storage at intervals. In some embodiments, the preset window is a sliding window of fixed size. By filling the detected transmission rate into the preset window, storage and retrieval of data is facilitated.
In some embodiments, the control method of the present disclosure further includes: before filling the transmission rate into the preset window, it is determined whether the preset window is filled with data. In some embodiments, when it is determined that the preset window has been filled with data, the oldest filled data is removed in chronological order of filling. I.e. the predetermined window satisfies the data fifo property. In some embodiments, the transmission rate is padded into the predetermined window when it is determined that the predetermined window is not filled with data. By adopting the method, the detected data transmission rate is ensured to be updated timely, and the data stored in the preset window is ensured to be the data closest to the current time, so that the method has higher reference value.
In some embodiments, determining a handover between the first network and the second network based on the result of the comparison comprises: it is determined whether the electronic device is connected to a state of the first network or to a state of the second network. In some embodiments, a corresponding switching manner is adopted according to the network connection state of the current electronic device. In some embodiments, when the electronic device is in a state of being connected to the first network, if the average of the transmission rates stored in the preset window is greater than the threshold of the total transmission rate of the application in the foreground, or each of the transmission rates stored in the preset window is greater than the threshold of the total transmission rate of the application in the foreground, the electronic device is switched from the state of being connected to the first network to the state of being connected to the second network. When the average value of the transmission rates is greater than the total transmission rate threshold value or each transmission rate is greater than the total transmission rate threshold value, it indicates that the requirement for the data transmission rate is higher at present, and the user experience can be improved better by switching the electronic device to the second network with the higher data transmission rate. In some embodiments, the state of the electronic device connecting to the first network is maintained if the average of the transmission rates stored in the preset window is less than or equal to a total transmission rate threshold of the applications in the foreground. When the average value of the transmission rates is less than or equal to the total transmission rate threshold value, the electronic equipment is indicated to be capable of meeting the requirement of the data transmission rate currently, and the electronic equipment can be kept in the state of the first network, so that the power consumption of the electronic equipment is reduced.
In some embodiments, as described above, determining a handover between the first network and the second network based on the result of the comparison comprises: it is determined whether the electronic device is connected to a state of the first network or to a state of the second network. In some embodiments, when the electronic device is in the state of being connected to the second network, if a ratio of a preset proportion of the transmission rate stored in the preset window to a total transmission rate threshold of the application in the foreground is less than a preset value, the electronic device is switched from the state of being connected to the second network to the state of being connected to the first network. In some embodiments, the preset ratio may be, for example, 70%, 80%, 90%, etc. In some embodiments, the preset value may be 0.4, 0.5, 0.6, etc. In some embodiments, when the ratio of the detected most (e.g., 80%) transmission rate to the total transmission rate threshold is smaller than the preset value, it may be considered that the requirement of the electronic device on the data transmission rate is not high currently, and therefore, the network may be switched to the first network with the smaller transmission rate to reduce the power consumption of the electronic device. In some embodiments, if a ratio of the preset proportion of the transmission rate stored in the preset window to the total transmission rate threshold of the application in the foreground is greater than or equal to a preset value, the state that the electronic device is connected to the second network is maintained. In some embodiments, when the ratio of the detected majority (e.g., 80%) of the transmission rate to the total transmission rate threshold is greater than or equal to the preset value, it may be considered that the current requirement on the data transmission rate of the electronic device is higher, and it is preferable to maintain the second network with the higher transmission rate, so as to improve the experience of the user with the high data transmission rate.
In some embodiments, the control method of the present disclosure further includes: after the electronic device is switched from the first network to the second network, a first transmission rate of a switching time or a preset time period before the switching time is determined, and a second transmission rate of the electronic device in the preset time period after the switching time is determined. And then, comparing the first transmission rate with the second transmission rate, and if the ratio of the second transmission rate to the first transmission rate is smaller than a preset threshold value, switching the electronic equipment back to the first network. In some embodiments, the preset threshold may be 1.2, 1.3, 1.4, or more, although the disclosure is not limited thereto. In some embodiments, when the electronic device is handed over from a first network to a second network with higher data transfer capabilities, if the actual transfer rate is not increased or is not significantly increased, then this network switch is less meaningful and also increases the power consumption of the electronic device. Therefore, in order to avoid the problems of insignificant transmission rate increase and power consumption increase, the actual data transmission rate of the electronic device is detected after switching to the second network, and if the transmission rate is increased only by a limited amount, the network of the electronic device is switched back to the first network again to reduce the power consumption of the electronic device.
As shown in fig. 2, an embodiment of the present disclosure further provides acontrol apparatus 200 of an electronic device, which includes a foregroundapplication determining module 201, a transmissionrate determining module 202, a comparingmodule 203, and aswitching determining module 204. In some embodiments, the foregroundapplication determination module 201 is configured to determine an application in the foreground of the electronic device, wherein the application has a transmission rate threshold corresponding to an application type of the application. The transmissionrate determination module 202 is configured to determine a transmission rate of the electronic device. Thecomparison module 203 is configured to compare the total transmission rate threshold of the application in the foreground with the transmission rate. Thehandover determination module 204 is configured to determine a handover between the first network and a second network based on the result of the comparison, wherein the maximum transmission rate of the second network is greater than the maximum transmission rate of the first network. It should be understood that the description about the control method is also applicable to thecontrol apparatus 200 of the electronic device herein, and for the sake of simplicity, the description is omitted here.
Fig. 3 provides a flowchart of a control method of an electronic device of another embodiment of the present disclosure. In some embodiments, the control method of the present disclosure includes a step S301 of determining a transmission rate threshold of the electronic device for network handover. In some embodiments, the transmission rate threshold may be a single transmission rate threshold, or may be set according to different application types. In step S302, the transmission rate of the electronic device is determined, which can be referred to the description of step S102 and is not repeated here. In step S303, the transmission rate threshold is compared with the transmission rate, which can be referred to the description of step S103 and will not be repeated here. In step S304, a handover between the first network and the second network is determined based on the result of the comparison, wherein the maximum transmission rate of the second network is greater than the maximum transmission rate of the first network, which can be referred to the description of step S104 and will not be repeated here. In step S305, after the electronic device is switched from the first network to the second network, a first transmission rate at or before the switching time is determined, and a second transmission rate at which the electronic device is within a preset time period after the switching is determined. In step S306, the first transmission rate and the second transmission rate are compared, and if the ratio of the second transmission rate to the first transmission rate is smaller than the preset threshold, the electronic device is switched back to the first network, and steps S305 and S306 may also refer to the above description. As described above, by monitoring the increase of the data transmission rate after the switching, the first network is switched back to without a large increase of the transmission rate, thereby avoiding the problem of power consumption increase due to no large increase of the data transmission rate after the network switching.
As shown in fig. 4, an embodiment of the present disclosure further provides acontrol apparatus 400 of an electronic device, which includes a transmission ratethreshold determination module 401, a transmissionrate determination module 402, acomparison module 403, ahandover determination module 404, a transmission rate afterhandover determination module 405, and are-handover module 406. In some embodiments, the transmission ratethreshold determination module 401 is configured to determine a transmission rate threshold for a network handover for an electronic device. The transmissionrate determination module 402 is configured to determine a transmission rate of the electronic device. Thecomparison module 403 is configured to compare the transmission rate threshold with the transmission rate. Thehandover determination module 404 is configured to determine a handover between the first network and a second network based on the result of the comparison, wherein the maximum transmission rate of the second network is greater than the maximum transmission rate of the first network. The post-handover transmissionrate determination module 405 is configured to determine a first transmission rate at or before a handover time after the electronic device is handed over from the first network to the second network, and determine a second transmission rate at the electronic device within a preset time period after the handover. There-switching module 406 is configured to compare the first transmission rate with the second transmission rate, and re-switch the electronic device back to the first network if a ratio of the second transmission rate to the first transmission rate is less than a preset threshold. It should be understood that the description about the control method is also applicable to thecontrol apparatus 400 of the electronic device herein, and for the sake of simplicity, the description is omitted here.
The following description is given by way of example with respect to 4G and 5G networks, and it should be understood that this is by way of example only and is not intended to limit the present disclosure. As shown in fig. 5, a control method of an electronic device of an embodiment of the present disclosure is provided. In step S11, an application currently in the foreground is detected in real time. In step S12, which type the current application belongs to is acquired through the application store-related interface according to the package name of the application. The application types mainly comprise games, audios and videos, news, social contact, tools and the like. In step S13, a threshold for switching the 4G connection to 5G and a threshold for data transfer rate of 5G back to the 4G connection are set for different types of applications and saved in the data set. In step S21, the transmission rate of the entire system of the electronic device is calculated in real time, and the download and upload are calculated separately. In step S22, it is detected whether the sliding window Ws, which is currently fixed in size, has been filled with data. If the data is already full, the process proceeds to step S23, and if not, the process proceeds directly to step S24. In step S23, the data first added in the window Ws is removed, i.e., the window satisfies the first-in first-out characteristic. In step S24, the transmission rate calculated in step S21 is added to the window Ws. In step S14, it is calculated whether the switch to the 4G or 5G connection should be made under the current conditions, specifically: and acquiring whether the current connection is in 5G or 4G connection, and if the current connection is in 4G connection, judging whether the current connection needs to be switched to 5G. The judging method comprises the following steps: and traversing all data in the window Ws, switching to 5G if the data is greater than the transmission rate threshold, or switching to 5G if the average value of all the data in the window Ws is greater than the transmission rate threshold, or maintaining the current 4G connection state. And if the current connection is in the 5G connection, judging whether the switching to the 4G is needed. The judging method comprises the following steps: and traversing all data in the window Ws, if the data in the window Ws with the preset proportion (for example, 80%) is less than half of the transmission rate threshold, switching to 4G, and otherwise, maintaining the current 5G connection state. The calculation result is input to step S15. In step S15, the operation that should be performed by the current 4G/5G connection control interface is determined according to the result obtained in step S14, and the process goes to step S16 if the 4G switching condition is satisfied, or goes to step S17 if the 5G switching condition is satisfied. In step S16, the current network connection is switched to 4G using the connection control interface. In step S17, the current network connection is switched to 5G using the connection control interface, and the process goes to step S18 for data storage. In step S18, the data snapshot Wss of the window Ws where the current trigger 4G is switched to 5G is saved, and the current time is recorded as Ts. In step S19, the average transmission rate Va is counted for a time period from Ts to Ts + Td, where Td is the size of the counted time period. In step S20, the data obtained in step S18 and step S19 are combined to calculate the transmission rate increase ratio for switching from 4G to 5G. If the boost ratio is below the desired threshold, the 4G network is switched back, i.e., the calculation result is re-input to step S15. It should be understood that the method illustrated in fig. 5 is merely exemplary, and is not intended to limit the present disclosure.
The control method disclosed by the invention configures different transmission rate thresholds for different types of applications, so that the problem of untimely switching or too frequent switching caused by the fact that a single fixed threshold cannot be compatible with different application scenes is solved, the switching time of the second network (for example, 5G) is more accurate, and the user experience can be met and the power consumption can be optimized. In addition, the power consumption of the electronic equipment is further optimized by detecting the improvement effect of the transmission rate caused by switching to the second network and revising the switching strategy again according to the result. At present, a switching method based on a rate threshold generally considers switching only when adjustment is satisfied, but if a transmission rate is not significantly increased or basically kept unchanged after 5G switching, the effectiveness of the switching is very low, and instead, the power consumption of the electronic device is increased, and the switching should be back to the first network (e.g., 4G).
In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the control method.
In addition, the present disclosure also provides a computer storage medium storing program codes for executing the above-described control method.
The control method and apparatus of the present disclosure have been described above based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., a terminal device or a server) 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6,electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of theelectronic apparatus 600 are also stored. Theprocessing device 601, theROM 602, and the RAM603 are connected to each other via abus 604. An input/output (I/O)interface 605 is also connected tobus 604.
Generally, the following devices may be connected to the I/O interface 605:input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.;output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like;storage 608 including, for example, tape, hard disk, etc.; and acommunication device 609. The communication means 609 may allow theelectronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates anelectronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from theROM 602. The computer program, when executed by theprocessing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a control method of an electronic device, the control method including: determining an application in the foreground of the electronic device, wherein the application has a transmission rate threshold corresponding to an application type of the application; determining a transmission rate of the electronic device; comparing a total transmission rate threshold of applications in the foreground with the transmission rate; determining a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network.
According to one or more embodiments of the present disclosure, the determining of the transmission rate of the electronic device includes determining the transmission rate of the electronic device at intervals of a preset time, and the control method further includes: storing the determined transmission rate in the electronic device.
In accordance with one or more embodiments of the present disclosure, storing the determined transmission rate into the electronic device comprises: and filling the determined transmission rate into a preset window.
According to one or more embodiments of the present disclosure, further comprising: determining whether the preset window is filled with data before the transmission rate is filled into the preset window; when the preset window is determined to be filled with data, removing the earliest filled data according to the filling time sequence; or, when it is determined that the preset window is not filled with data, filling the transmission rate into the preset window.
According to one or more embodiments of the present disclosure, determining a handover between the first network and the second network based on a result of the comparison includes: determining whether the electronic device is connected to the first network or the second network; when the electronic device is in a state of connecting to the first network: if the average value of the transmission rates stored in the preset window is larger than the total transmission rate threshold of the application in the foreground, or each transmission rate stored in the preset window is larger than the total transmission rate threshold of the application in the foreground, switching the electronic equipment from the state of connecting with the first network to the state of connecting with the second network; and if the average value of the transmission rates stored in the preset window is less than or equal to a total transmission rate threshold value of the application in the foreground, maintaining the state that the electronic equipment is connected with the first network.
According to one or more embodiments of the present disclosure, determining a handover between the first network and the second network based on a result of the comparison includes: determining whether the electronic device is connected to the first network or the second network; when the electronic device is in a state of connecting to the second network: if the ratio of the transmission rate of a preset proportion stored in the preset window to the total transmission rate threshold of the application of the foreground is smaller than a preset value, switching the electronic equipment from the state of connecting the second network to the state of connecting the first network; and if the ratio of the transmission rate of the preset proportion stored in the preset window to the total transmission rate threshold of the application in the foreground is greater than or equal to a preset value, maintaining the state that the electronic equipment is connected with the second network.
According to one or more embodiments of the present disclosure, further comprising: after the electronic equipment is switched from the first network to the second network, determining a first transmission rate at a switching moment or in a preset time period before the switching moment, and determining a second transmission rate of the electronic equipment in the preset time period after the switching moment; and comparing the first transmission rate with the second transmission rate, and if the ratio of the second transmission rate to the first transmission rate is smaller than a preset threshold value, switching the electronic equipment back to the first network.
According to one or more embodiments of the present disclosure, there is provided a control apparatus of an electronic device, the control apparatus including: a foreground application determination module configured to determine an application in a foreground of the electronic device, wherein the application has a transmission rate threshold corresponding to an application type of the application; a transmission rate determination module configured to determine a transmission rate of the electronic device; a comparison module configured to compare a total transmission rate threshold of an application in the foreground with the transmission rate; a handover determination module configured to determine a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network.
According to one or more embodiments of the present disclosure, there is provided a control method of an electronic device, the control method including: determining a transmission rate threshold of the electronic device for network handover; determining a transmission rate of the electronic device; comparing the transmission rate threshold to the transmission rate; determining a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network; after the electronic equipment is switched from the first network to the second network, determining a first transmission rate at a switching moment or in a preset time period before the switching moment, and determining a second transmission rate of the electronic equipment in the preset time period after the switching moment; and comparing the first transmission rate with the second transmission rate, and if the ratio of the second transmission rate to the first transmission rate is smaller than a preset threshold value, switching the electronic equipment back to the first network.
According to one or more embodiments of the present disclosure, there is provided a control apparatus of an electronic device, the control apparatus including: a transmission rate threshold determination module configured to determine a transmission rate threshold of the electronic device for network handover; a transmission rate determination module configured to determine a transmission rate of the electronic device; a comparison module configured to compare the transmission rate threshold to the transmission rate; a handover determination module configured to determine a handover between a first network and a second network based on a result of the comparison, wherein a maximum transmission rate of the second network is greater than a maximum transmission rate of the first network; a transmission rate after switching determination module configured to determine a first transmission rate at a switching time or a preset time period before the switching time after the electronic device is switched from the first network to the second network, and determine a second transmission rate of the electronic device within the preset time period after the switching; and the re-switching module is configured to compare the first transmission rate with the second transmission rate, and if the ratio of the second transmission rate to the first transmission rate is smaller than a preset threshold value, re-switch the electronic equipment back to the first network.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (13)

CN202011411404.1A2020-12-032020-12-03Control method, device, terminal and storage medium of electronic equipmentActiveCN112543487B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011411404.1ACN112543487B (en)2020-12-032020-12-03Control method, device, terminal and storage medium of electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011411404.1ACN112543487B (en)2020-12-032020-12-03Control method, device, terminal and storage medium of electronic equipment

Publications (2)

Publication NumberPublication Date
CN112543487Atrue CN112543487A (en)2021-03-23
CN112543487B CN112543487B (en)2023-05-02

Family

ID=75017085

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011411404.1AActiveCN112543487B (en)2020-12-032020-12-03Control method, device, terminal and storage medium of electronic equipment

Country Status (1)

CountryLink
CN (1)CN112543487B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113613302A (en)*2021-08-022021-11-05西安广和通无线软件有限公司Network switching method, module, equipment and readable storage medium
CN114205895A (en)*2021-09-302022-03-18珠海格力电器股份有限公司Control method, control device, electronic equipment and storage medium
CN114222340A (en)*2021-12-102022-03-22惠州Tcl移动通信有限公司Network switching method and device and mobile terminal
CN114244393A (en)*2021-11-232022-03-25浪潮金融信息技术有限公司Communication module switching method, system and medium for RK3399 mainboard
CN114666832A (en)*2022-04-112022-06-24维沃移动通信有限公司 Control method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105142186A (en)*2015-07-242015-12-09广东欧珀移动通信有限公司Method and device for self-adaptively adjusting Internet access of terminal based on China mobile network type
CN106028375A (en)*2016-05-122016-10-12北京小米移动软件有限公司 Prompt method, device and terminal equipment for network switching
CN106162768A (en)*2015-05-212016-11-23小米科技有限责任公司Wireless access point switching method and device
CN106341856A (en)*2015-07-102017-01-18西安中兴新软件有限责任公司Method and device for automatically switching card using of dual-card terminal
CN106686672A (en)*2016-12-292017-05-17努比亚技术有限公司Network connection method and terminal
US20180167861A1 (en)*2016-12-142018-06-14Verizon Patent And Licensing Inc.System and method for switching access network connectivity based on application thresholds and service preferences
CN110505660A (en)*2019-07-232019-11-26维沃移动通信有限公司 A network rate adjustment method and terminal equipment
CN110753389A (en)*2019-10-232020-02-04维沃移动通信有限公司 A kind of network control method and electronic device
CN110784898A (en)*2019-10-302020-02-11努比亚技术有限公司Network switching method, mobile terminal and computer readable storage medium
CN110913442A (en)*2019-12-062020-03-24Oppo广东移动通信有限公司Network switching method and device, electronic equipment and storage medium
KR20200099735A (en)*2019-02-152020-08-25삼성전자주식회사Electronic device for performing handover in wireless network environment and method thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106162768A (en)*2015-05-212016-11-23小米科技有限责任公司Wireless access point switching method and device
CN106341856A (en)*2015-07-102017-01-18西安中兴新软件有限责任公司Method and device for automatically switching card using of dual-card terminal
CN105142186A (en)*2015-07-242015-12-09广东欧珀移动通信有限公司Method and device for self-adaptively adjusting Internet access of terminal based on China mobile network type
CN106028375A (en)*2016-05-122016-10-12北京小米移动软件有限公司 Prompt method, device and terminal equipment for network switching
US20180167861A1 (en)*2016-12-142018-06-14Verizon Patent And Licensing Inc.System and method for switching access network connectivity based on application thresholds and service preferences
CN106686672A (en)*2016-12-292017-05-17努比亚技术有限公司Network connection method and terminal
KR20200099735A (en)*2019-02-152020-08-25삼성전자주식회사Electronic device for performing handover in wireless network environment and method thereof
CN110505660A (en)*2019-07-232019-11-26维沃移动通信有限公司 A network rate adjustment method and terminal equipment
CN110753389A (en)*2019-10-232020-02-04维沃移动通信有限公司 A kind of network control method and electronic device
CN110784898A (en)*2019-10-302020-02-11努比亚技术有限公司Network switching method, mobile terminal and computer readable storage medium
CN110913442A (en)*2019-12-062020-03-24Oppo广东移动通信有限公司Network switching method and device, electronic equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113613302A (en)*2021-08-022021-11-05西安广和通无线软件有限公司Network switching method, module, equipment and readable storage medium
CN113613302B (en)*2021-08-022023-12-29西安广和通无线软件有限公司Network switching method, module, device and readable storage medium
CN114205895A (en)*2021-09-302022-03-18珠海格力电器股份有限公司Control method, control device, electronic equipment and storage medium
CN114244393A (en)*2021-11-232022-03-25浪潮金融信息技术有限公司Communication module switching method, system and medium for RK3399 mainboard
CN114244393B (en)*2021-11-232025-08-01浪潮金融信息技术有限公司Communication module switching method, system and medium for RK3399 mainboard
CN114222340A (en)*2021-12-102022-03-22惠州Tcl移动通信有限公司Network switching method and device and mobile terminal
CN114222340B (en)*2021-12-102024-04-09惠州Tcl移动通信有限公司Network switching method and device and mobile terminal
CN114666832A (en)*2022-04-112022-06-24维沃移动通信有限公司 Control method and device

Also Published As

Publication numberPublication date
CN112543487B (en)2023-05-02

Similar Documents

PublicationPublication DateTitle
CN112543487A (en)Control method and device of electronic equipment, terminal and storage medium
CN112135169B (en)Media content loading method, device, equipment and medium
CN110765354B (en)Information pushing method and device, electronic equipment and storage medium
CN112256231B (en)Volume control method, device, terminal and storage medium
US20250310597A1 (en)Method and apparatus for dynamically downloading a video, electronic device and storage medium
CN114786055B (en) Preloading method, device, electronic equipment and medium
CN111258736A (en)Information processing method and device and electronic equipment
CN112578897B (en) Control method, device, terminal and storage medium of electronic device
CN110633126A (en)Information display method and device and electronic equipment
CN112929240A (en)Method, device, terminal and non-transitory storage medium for acquiring communication delay time
CN115103210B (en)Information processing method, device, terminal and storage medium
CN114257870B (en) Short video playback method, device, equipment and storage medium
CN116541174A (en)Storage device capacity processing method, device, equipment and storage medium
CN115348460B (en)Video preloading method, device, equipment and storage medium
CN110960857A (en)Game data monitoring method and device, electronic equipment and storage medium
CN113542856B (en)Method, device, equipment and computer readable medium for reverse playing of online video
CN112241229B (en)Terminal display control method, device, terminal and storage medium
CN111324387A (en)Application task control method, device, terminal and system
CN114745276B (en)Switch bandwidth adjusting method and device, electronic equipment and computer readable medium
CN114979768B (en)Video caching method, device, equipment and storage medium
CN117614897A (en) Resolution address processing methods, devices, media and electronic equipment
CN114979712B (en)Video playing method, device, equipment and storage medium
CN113504802A (en)Control method and device of electronic equipment, terminal and storage medium
CN117793444A (en)Video caching method and device, electronic equipment and storage medium
CN113010279A (en)Application program process processing method and device for mobile terminal and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp