CN116048237A - Service processing method and device based on terminal electric quantity - Google Patents

Service processing method and device based on terminal electric quantity Download PDF

Info

Publication number
CN116048237A
CN116048237A CN202211390126.5A CN202211390126A CN116048237A CN 116048237 A CN116048237 A CN 116048237A CN 202211390126 A CN202211390126 A CN 202211390126A CN 116048237 A CN116048237 A CN 116048237A
Authority
CN
China
Prior art keywords
mobile terminal
cloud computer
electric quantity
target
terminal
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.)
Pending
Application number
CN202211390126.5A
Other languages
Chinese (zh)
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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202211390126.5A priority Critical patent/CN116048237A/en
Publication of CN116048237A publication Critical patent/CN116048237A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a service processing method and device based on terminal electric quantity. Comprising the following steps: receiving a cloud computer connection request sent by a mobile terminal provided with a cloud computer, wherein the cloud computer connection request carries current terminal electric quantity data of the mobile terminal; under the condition that the terminal electric quantity data is smaller than a preset threshold value, determining a target image transmission code rate corresponding to the cloud computer by utilizing the terminal electric quantity data; acquiring a target transmission picture corresponding to the cloud computer based on the cloud computer connection request; and transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate, so that the mobile terminal accesses the service of the cloud computer based on the target transmission picture. According to the method and the device, the image transmission code rate is determined according to the terminal electric quantity data, so that CPU high load operation of the mobile terminal caused by decoding of the high-code-rate image is reduced, the electric quantity consumption of the mobile terminal is reduced, meanwhile, a large amount of memory read-write caused by decoding of the high-code-rate image is reduced, the electric quantity consumption is further reduced, and the service time of the mobile terminal is prolonged.

Description

Service processing method and device based on terminal electric quantity
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a service processing method and apparatus based on terminal power.
Background
Most of the traditional cloud computer terminal service optimization schemes are aimed at PC terminals, and most of the clients of the PC terminals have no characteristic of insufficient electric quantity, so that the existing service optimization methods and technologies are not comprehensive and targeted. As mobile devices become more advanced and life fragmentation time becomes more and more, the frequency and number of users using mobile terminals even exceeds that of PC computers. The application and game of the mobile terminal consume very much power, and the mobile terminal can cause service interruption of the cloud computer when the electric quantity is low.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a service processing method and apparatus based on terminal power.
According to an aspect of the embodiment of the application, there is provided a service processing method based on terminal electric quantity, which is applied to a cloud server, and the method includes:
receiving a cloud computer connection request sent by a mobile terminal provided with a cloud computer, wherein the cloud computer connection request carries current terminal electric quantity data of the mobile terminal;
under the condition that the terminal electric quantity data is smaller than a preset threshold value, determining a target image transmission code rate corresponding to the cloud computer by utilizing the terminal electric quantity data;
acquiring a target transmission picture corresponding to the cloud computer based on the cloud computer connection request;
and transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate, so that the mobile terminal accesses the service of the cloud computer based on the target transmission picture.
Further, the determining, by using the terminal power data, the target image transmission code rate corresponding to the cloud computer includes:
acquiring a first corresponding relation between preset electric quantity data and emergency level;
determining a target emergency level corresponding to the terminal electric quantity data based on the first corresponding relation;
acquiring a second corresponding relation between a preset emergency level and an image transmission code rate;
and determining a target image transmission code rate corresponding to the target emergency level based on the second corresponding relation.
Further, after transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate, the method further includes:
acquiring current resource use information of the mobile terminal, and determining performance data of the cloud computer on the mobile terminal based on the resource use information;
acquiring a resource scheduling priority and a resource allocation amount matched with the performance data;
and according to the resource scheduling priority, the resource data corresponding to the resource allocation amount is acquired from the cloud server, and the cloud computer of the mobile terminal is provided with service based on the resource data.
Further, the obtaining the current resource usage information of the mobile terminal, and determining the performance data of the cloud computer at the mobile terminal based on the resource usage information, includes:
sending a request for asking for the resource use information of the mobile terminal to the mobile terminal;
receiving resource use information fed back by the mobile terminal based on the request;
acquiring resource use data corresponding to a plurality of associated resource items of a cloud computer from the resource use information;
and inquiring a weight value corresponding to each resource item, and calculating the performance data of the mobile terminal based on the weight value and the resource use data.
Further, the obtaining the resource scheduling priority and the resource allocation amount matched with the performance data includes:
acquiring a third corresponding relation between preset electric quantity data and service priority;
determining a target service priority corresponding to the terminal electric quantity data based on the third corresponding relation;
and under the condition that the target service priority meets the preset condition, acquiring the resource scheduling priority and the resource allocation quantity matched with the performance data.
Further, the method further comprises:
inquiring the corresponding performance upper limit of the mobile terminal under the condition that the target service priority does not meet the preset condition;
and comparing the performance upper limit with the performance data, and updating the target service priority corresponding to the terminal electric quantity data under the condition that the difference value between the performance upper limit and the performance data falls into a preset range so as to enable the updated target service priority to meet preset conditions.
Further, after transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate, the method further includes:
and sending prompt information to the mobile terminal based on the terminal electric quantity data, and storing operation data corresponding to the cloud computer in the mobile terminal in real time within a preset time period.
According to still another aspect of the embodiments of the present application, there is also provided a service processing apparatus based on terminal power, including:
the receiving module is used for receiving a cloud computer connection request sent by a mobile terminal provided with a cloud computer, wherein the cloud computer connection request carries current terminal electric quantity data of the mobile terminal;
the determining module is used for determining a target image transmission code rate corresponding to the cloud computer by utilizing the terminal electric quantity data under the condition that the terminal electric quantity data is smaller than a preset threshold value;
the acquisition module is used for acquiring a target transmission picture corresponding to the cloud computer based on the cloud computer connection request;
and the transmission module is used for transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate so that the mobile terminal accesses the service of the cloud computer based on the target transmission picture.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that performs the steps described above when running.
According to another aspect of the embodiments of the present application, there is provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; and a processor for executing the steps of the method by running a program stored on the memory.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method and the device for determining the image transmission code rate according to the terminal electric quantity data, CPU high load operation of the mobile terminal caused by decoding the high-code-rate image is reduced, electric quantity consumption of the mobile terminal is reduced, a large amount of memory read-write caused by decoding the high-code-rate image is reduced, electric quantity consumption is further reduced, and service time of the mobile terminal is prolonged.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a service processing method based on terminal electric quantity according to an embodiment of the present application;
fig. 2 is a flowchart of a service processing method based on terminal power according to another embodiment of the present application;
fig. 3 is a block diagram of a service processing device based on terminal electric quantity according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments, the exemplary embodiments of the present application and the descriptions thereof are used to explain the present application and do not constitute undue limitations of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a service processing method and device based on terminal electric quantity. The method provided by the embodiment of the invention can be applied to any needed electronic equipment, for example, the electronic equipment can be a server, a terminal and the like, is not particularly limited, and is convenient to describe and is called as the electronic equipment for short hereinafter.
According to an aspect of the embodiment of the application, a method embodiment of a service processing method based on terminal electric quantity is provided. Fig. 1 is a flowchart of a service processing method based on terminal electric quantity according to an embodiment of the present application, where, as shown in fig. 1, the method includes:
step S11, receiving a cloud computer connection request sent by a mobile terminal provided with a cloud computer, wherein the cloud computer connection request carries current terminal electric quantity data of the mobile terminal.
The method provided by the embodiment of the invention is applied to the cloud server, the cloud server is in communication connection with a plurality of mobile terminals deployed with cloud computer clients, and when a certain mobile terminal needs to use a cloud computer, the mobile terminal can send a cloud computer connection request to the cloud server, wherein the cloud computer connection request carries the requirement information of the mobile terminal, the current residual terminal electric quantity data, the terminal identification of the mobile terminal and the like.
In the embodiment of the application, after receiving the cloud computer connection request, the cloud server analyzes the terminal electric quantity data and the terminal identification of the mobile terminal from the cloud computer connection request, and then temporarily stores the terminal identification and the mobile electric quantity data in a service queue for processing.
And step S12, determining a target image transmission code rate corresponding to the cloud computer by using the terminal electric quantity data under the condition that the terminal electric quantity data is smaller than a preset threshold value.
In the embodiment of the application, after the cloud server temporarily stores the terminal identifier and the terminal electric quantity data in the service queue, firstly judging whether the terminal electric quantity data is smaller than a preset threshold value, if the terminal electric quantity data is smaller than the preset threshold value, if the cloud server still sends a picture of the cloud computer to the mobile terminal according to a normal image transmission code rate, the power consumption of the terminal is increased. Based on the data, the embodiment of the application determines the target image transmission code rate corresponding to the cloud computer by using the terminal electric quantity data.
Specifically, the method for determining the target image transmission code rate corresponding to the cloud computer by using the terminal electric quantity data comprises the following steps of:
and A1, acquiring a first corresponding relation between preset electric quantity data and an emergency grade.
A2, determining a target emergency level corresponding to the terminal electric quantity data based on the first corresponding relation;
step A3, obtaining a second corresponding relation between a preset emergency level and an image transmission code rate;
and step A4, determining a target image transmission code rate corresponding to the target emergency level based on the second corresponding relation.
In the embodiment of the application, the cloud server first acquires a first corresponding relation between preset electric quantity data and emergency grades, and then inquires a target emergency grade corresponding to the current terminal electric quantity data of the mobile terminal from the first corresponding relation, and it is required to be noted that the lower the terminal electric quantity data is, the higher the corresponding emergency grade is.
In the embodiment of the application, after determining the target emergency level according to the terminal electric quantity data, a second corresponding relation between the preset emergency level and the image transmission code rate is obtained, and then the target image transmission code rate corresponding to the target emergency level is directly inquired from the second corresponding relation. It should be noted that, different emergency levels correspond to different image transmission code rates, and the higher the emergency level is, the lower the corresponding image transmission code rate is.
Step S13, acquiring a target transmission picture corresponding to the cloud computer based on the cloud computer connection request.
In this embodiment of the present application, after determining the image transmission code rate, the cloud server obtains the requirement information of the mobile terminal from the cloud computer connection request, and then obtains the corresponding target transmission picture by using the requirement information, for example: the demand information is office demand, teaching demand, and the like. The cloud server can call the corresponding target transmission picture according to the type of the requirement.
And S14, transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate, so that the mobile terminal accesses the service of the cloud computer based on the target transmission picture.
In the embodiment of the application, after determining the target transmission picture and the target image transmission code rate, the transmission module of the cloud server transmits the target transmission picture to the mobile terminal according to the target image transmission code rate, so that the mobile terminal responds to the cloud computer connection request sent by the mobile terminal, and after receiving the target transmission picture, the mobile terminal can access the related service of the cloud computer by using the target transmission picture.
According to the method and the device for determining the image transmission code rate according to the terminal electric quantity data, CPU high load operation of the mobile terminal caused by decoding the high-code-rate image is reduced, electric quantity consumption of the mobile terminal is reduced, a large amount of memory read-write caused by decoding the high-code-rate image is reduced, electric quantity consumption is further reduced, and service time of the mobile terminal is prolonged.
In an embodiment of the present application, after transmitting the target transmission frame to the mobile terminal according to the target image transmission code rate, the method further includes:
step S21, current resource use information of the mobile terminal is obtained, and performance data of the cloud computer in the mobile terminal is determined based on the resource use information.
In the embodiment of the application, the current resource use information of the mobile terminal is obtained, and the performance data of the cloud computer in the mobile terminal is determined based on the resource use information, and the method comprises the following steps of:
step B1, a request for requesting the resource use information of the mobile terminal is sent to the mobile terminal;
step B2, receiving resource use information fed back by the mobile terminal based on the request;
step B3, acquiring resource use data corresponding to a plurality of associated resource items of the cloud computer from the resource use information;
and step B4, inquiring the weight value corresponding to each resource item, and calculating the performance data of the mobile terminal based on the weight value and the resource use data.
In the embodiment of the application, after the cloud server sends the target transmission picture to the mobile terminal, in order to ensure that the mobile terminal can stably use the cloud computer, the cloud server sends a request for requesting the mobile terminal for requesting the current resource use information of the mobile terminal. After receiving the request, the mobile terminal feeds back an application program used by the current cloud computer and resource use information occupied by the application program to the cloud server based on the request, wherein the resource use information comprises: application name, version information, CPU occupancy, GPU occupancy, memory occupancy, hard disk occupancy, and the like of the currently used application.
In the embodiment of the application, a plurality of resource items associated with a cloud computer are acquired from resource usage information, and the resource items include: CPU occupancy rate, GPU occupancy rate, memory occupancy rate and hard disk occupancy rate. The resource usage data corresponding to the resource item includes: the CPU occupancy rate corresponds to the value, the GPU occupancy rate is the value, the memory occupancy rate is the value, and the hard disk occupancy rate is the value. And then inquiring a preset weight value list containing the resource items to obtain weight values corresponding to the resource items. And calculating the product between the weight value and the resource use data, and summing the product between the weight value corresponding to each resource item and the resource use data to obtain final performance data.
Step S22, the resource scheduling priority and the resource allocation amount matched with the performance data are obtained.
In the embodiment of the application, the resource scheduling priority and the resource allocation amount matched with the performance data are obtained, and the method comprises the following steps C1-C3:
step C1, obtaining a third corresponding relation between preset electric quantity data and service priority;
step C2, determining a target service priority corresponding to the terminal electric quantity data based on a third corresponding relation;
and step C3, acquiring the resource scheduling priority and the resource allocation amount matched with the performance data under the condition that the target service priority meets the preset condition.
In the embodiment of the application, after obtaining the performance data, the cloud server obtains a third corresponding relation between the preset electric quantity data and the service priority, and queries the target service priority corresponding to the terminal electric quantity data from the third corresponding relation. If the target service priority is greater than the preset service priority, determining that the target service priority meets the preset condition, and at the moment, the cloud server acquires the resource scheduling priority and the resource allocation amount matched with the current performance data.
It should be noted that, the cloud service determines the service priority of the mobile terminal according to the final electric quantity data, the lower the electric quantity of the mobile terminal is, the higher the service priority is, and the service sequence of each mobile terminal is determined from high to low according to the service priority. On the mobile terminal with high service priority, according to the performance bottleneck of the cloud computer running on the mobile terminal, the corresponding resource allocation amount is scheduled to the mobile terminal according to the resource scheduling priority by dynamically adjusting the resource scheduling priority and the resource allocation amount of the cloud computing resources and the cloud storage resources, so that the computing resource scheduling times are increased and the scheduling time is shortened for the cloud computer running on the mobile terminal.
In an embodiment of the present application, the method further includes: under the condition that the target service priority does not meet the preset condition, inquiring the corresponding performance upper limit of the mobile terminal; and comparing the performance upper limit with the performance data, and updating the target service priority corresponding to the terminal electric quantity data under the condition that the difference between the performance upper limit and the performance data falls into a preset range so as to enable the updated target service priority to meet preset conditions.
In the embodiment of the application, if the target service priority is smaller than the preset service priority, it is determined that the target service priority does not meet the preset condition, and at this time, the cloud server queries the performance upper limit corresponding to the mobile terminal. Comparing the performance data of the mobile terminal with the performance upper limit, if the difference between the performance upper limit and the performance data falls into a preset range, the current performance of the mobile terminal is close to the upper limit, and if the current performance of the mobile terminal falls into the preset range, the power consumption is still increased. In this case, the cloud server automatically updates the target service priority corresponding to the terminal power data, so that the updated target service priority meets the preset condition.
According to the method provided by the embodiment of the application, when the target service priority does not meet the preset condition, whether the target service priority is updated is determined by judging whether the performance of the mobile terminal is close to the upper limit, so that the updated target service priority meets the preset condition, and the resource scheduling priority and the resource allocation amount can be obtained.
Step S23, the corresponding resource data of the resource allocation amount is called from the cloud server according to the resource scheduling priority, and the cloud computer of the mobile terminal is provided with service based on the resource data.
In an embodiment of the present application, after transmitting the target transmission frame to the mobile terminal according to the target image transmission code rate, the method further includes: and sending prompt information to the mobile terminal based on the terminal electric quantity data, and storing the operation data corresponding to the cloud computer in the mobile terminal in real time within a preset time period.
According to the method provided by the embodiment of the application, the mobile terminal needing the service urgently can be effectively determined through the emergency level and the ordering of the service priority, so that the resource allocation amount is fetched for the mobile terminal according to the resource scheduling priority, and the fairness of service allocation is ensured. In addition, the cloud computer performance is judged according to the condition that the cloud computer resource is used by the resource use information acquisition terminal sent by the mobile terminal, so that the scheduling and the distribution of the cloud computing resource and the cloud storage resource of the cloud computer are dynamically adjusted, the resource utilization efficiency is improved, the use is maximized, the working efficiency of the cloud computer on the mobile terminal is improved, and the cloud computer can be finished before the terminal is powered off as much as possible.
Fig. 3 is a block diagram of a service processing device based on terminal power according to an embodiment of the present application, where the device may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 3, the apparatus includes:
the receiving module 31 is configured to receive a cloud computer connection request sent by a mobile terminal configured with a cloud computer, where the cloud computer connection request carries current terminal power data of the mobile terminal;
the determining module 32 is configured to determine, when the terminal power data is less than a preset threshold, a target image transmission code rate corresponding to the cloud computer by using the terminal power data;
the acquiring module 33 is configured to acquire a target transmission picture corresponding to the cloud computer based on the cloud computer connection request;
and the transmission module 34 is used for transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate so that the mobile terminal accesses the service of the cloud computer based on the target transmission picture.
In the embodiment of the present application, the determining module 32 is configured to obtain a first correspondence between preset electric quantity data and an emergency level; determining a target emergency level corresponding to the terminal electric quantity data based on the first corresponding relation; acquiring a second corresponding relation between a preset emergency level and an image transmission code rate; and determining a target image transmission code rate corresponding to the target emergency level based on the second corresponding relation.
In this embodiment of the present application, the service processing device based on terminal power further includes: a computing module, the computing module comprising:
the acquisition unit is used for acquiring the current resource use information of the mobile terminal and determining the performance data of the cloud computer in the mobile terminal based on the resource use information;
the query unit is used for acquiring the resource scheduling priority and the resource allocation amount matched with the performance data;
and the allocation unit is used for calling the resource data corresponding to the resource allocation amount from the cloud server according to the resource scheduling priority and providing service for the cloud computer of the mobile terminal based on the resource data.
In this embodiment of the present application, an obtaining unit is configured to send a request for requesting to a mobile terminal, where the request for requesting is used to request resource usage information of the mobile terminal; receiving resource use information fed back by the mobile terminal based on the solicitation request; acquiring resource use data corresponding to a plurality of associated resource items of a cloud computer from the resource use information; and inquiring the weight value corresponding to each resource item, and calculating the performance data of the mobile terminal based on the weight value and the resource use data.
In this embodiment of the present application, the query unit is configured to obtain a third corresponding relationship between preset electric quantity data and service priority; determining a target service priority corresponding to the terminal electric quantity data based on the third corresponding relation; and under the condition that the target service priority meets the preset condition, acquiring the resource scheduling priority and the resource allocation amount matched with the performance data.
In this embodiment of the present application, the computing module further includes an updating unit, configured to query a performance upper limit corresponding to the mobile terminal when the target service priority meets a preset condition; and comparing the performance upper limit with the performance data, and updating the target service priority corresponding to the terminal electric quantity data under the condition that the difference between the performance upper limit and the performance data falls into a preset range so as to enable the updated target service priority to meet preset conditions.
In this embodiment of the present application, the service processing device based on terminal power further includes: and the prompt module is used for sending prompt information to the mobile terminal based on the terminal electric quantity data and storing the operation data corresponding to the cloud computer in the mobile terminal in real time within a preset time period.
The embodiment of the application further provides an electronic device, as shown in fig. 4, the electronic device may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501, when executing the computer program stored in the memory 1503, implements the steps of the above embodiments.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, a computer readable storage medium is provided, where instructions are stored, when the computer readable storage medium runs on a computer, to cause the computer to perform the service processing method based on terminal power according to any one of the above embodiments.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the terminal power based service processing method of any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The service processing method based on the terminal electric quantity is applied to a cloud server and is characterized by comprising the following steps:
receiving a cloud computer connection request sent by a mobile terminal provided with a cloud computer, wherein the cloud computer connection request carries current terminal electric quantity data of the mobile terminal;
under the condition that the terminal electric quantity data is smaller than a preset threshold value, determining a target image transmission code rate corresponding to the cloud computer by utilizing the terminal electric quantity data;
acquiring a target transmission picture corresponding to the cloud computer based on the cloud computer connection request;
and transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate, so that the mobile terminal accesses the service of the cloud computer based on the target transmission picture.
2. The method of claim 1, wherein the determining, using the terminal power data, the target image transmission code rate corresponding to the cloud computer includes:
acquiring a first corresponding relation between preset electric quantity data and emergency level;
determining a target emergency level corresponding to the terminal electric quantity data based on the first corresponding relation;
acquiring a second corresponding relation between a preset emergency level and an image transmission code rate;
and determining a target image transmission code rate corresponding to the target emergency level based on the second corresponding relation.
3. The method according to claim 1, wherein after transmitting the target transmission picture to the mobile terminal at the target image transmission code rate, the method further comprises:
acquiring current resource use information of the mobile terminal, and determining performance data of the cloud computer on the mobile terminal based on the resource use information;
acquiring a resource scheduling priority and a resource allocation amount matched with the performance data;
and according to the resource scheduling priority, the resource data corresponding to the resource allocation amount is acquired from the cloud server, and the cloud computer of the mobile terminal is provided with service based on the resource data.
4. The method of claim 3, wherein the obtaining the current resource usage information of the mobile terminal and determining the performance data of the cloud computer at the mobile terminal based on the resource usage information comprises:
sending a request for asking for the resource use information of the mobile terminal to the mobile terminal;
receiving resource use information fed back by the mobile terminal based on the request;
acquiring resource use data corresponding to a plurality of associated resource items of a cloud computer from the resource use information;
and inquiring a weight value corresponding to each resource item, and calculating the performance data of the mobile terminal based on the weight value and the resource use data.
5. The method of claim 3, wherein the obtaining the resource scheduling priority and the resource allocation amount matched to the performance data comprises:
acquiring a third corresponding relation between preset electric quantity data and service priority;
determining a target service priority corresponding to the terminal electric quantity data based on the third corresponding relation;
and under the condition that the target service priority meets the preset condition, acquiring the resource scheduling priority and the resource allocation quantity matched with the performance data.
6. The method of claim 5, wherein the method further comprises:
inquiring the corresponding performance upper limit of the mobile terminal under the condition that the target service priority does not meet the preset condition;
and comparing the performance upper limit with the performance data, and updating the target service priority corresponding to the terminal electric quantity data under the condition that the difference value between the performance upper limit and the performance data falls into a preset range so as to enable the updated target service priority to meet preset conditions.
7. The method according to claim 1, wherein after transmitting the target transmission picture to the mobile terminal at the target image transmission code rate, the method further comprises:
and sending prompt information to the mobile terminal based on the terminal electric quantity data, and storing operation data corresponding to the cloud computer in the mobile terminal in real time within a preset time period.
8. A service processing device based on terminal power, comprising:
the receiving module is used for receiving a cloud computer connection request sent by a mobile terminal provided with a cloud computer, wherein the cloud computer connection request carries current terminal electric quantity data of the mobile terminal;
the determining module is used for determining a target image transmission code rate corresponding to the cloud computer by utilizing the terminal electric quantity data under the condition that the terminal electric quantity data is smaller than a preset threshold value;
the acquisition module is used for acquiring a target transmission picture corresponding to the cloud computer based on the cloud computer connection request;
and the transmission module is used for transmitting the target transmission picture to the mobile terminal according to the target image transmission code rate so that the mobile terminal accesses the service of the cloud computer based on the target transmission picture.
9. A storage medium comprising a stored program, wherein the program when run performs the method steps of any of the preceding claims 1 to 7.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for executing the method steps of any one of claims 1 to 7 by running a program stored on a memory.
CN202211390126.5A 2022-11-08 2022-11-08 Service processing method and device based on terminal electric quantity Pending CN116048237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211390126.5A CN116048237A (en) 2022-11-08 2022-11-08 Service processing method and device based on terminal electric quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211390126.5A CN116048237A (en) 2022-11-08 2022-11-08 Service processing method and device based on terminal electric quantity

Publications (1)

Publication Number Publication Date
CN116048237A true CN116048237A (en) 2023-05-02

Family

ID=86119573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211390126.5A Pending CN116048237A (en) 2022-11-08 2022-11-08 Service processing method and device based on terminal electric quantity

Country Status (1)

Country Link
CN (1) CN116048237A (en)

Similar Documents

Publication Publication Date Title
CN110049130B (en) Service deployment and task scheduling method and device based on edge computing
CN101945278B (en) Video self-adaptive transcoding method and system
CN110858843B (en) Service request processing method and device and computer readable storage medium
CN110958281B (en) Data transmission method and communication device based on Internet of things
CN110944220B (en) Video screen projection playing method, device, equipment and system
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
CN109151512A (en) The method and device of content is obtained in CDN network
CN112465359A (en) Calculation power calling method and device
CN111581502A (en) Information notification method and device
US20230112127A1 (en) Electronic device for deploying application and operation method thereof
WO2023116219A1 (en) Cdn node distribution method and apparatus, electronic device, medium and program product
CN116048237A (en) Service processing method and device based on terminal electric quantity
CN102377793A (en) Flash interaction method and device based on mobile communication equipment terminal
CN113765964A (en) Method and device for distributing services of distributed system
CN112532664A (en) Data upgrading method and device
CN112187667B (en) Data downloading method, device, equipment and storage medium
CN113835905B (en) Message queue load balancing method and device, electronic equipment and medium
CN113472674B (en) Flow control method and device, storage medium and electronic equipment
CN111901425B (en) CDN scheduling method and device based on Pareto algorithm, computer equipment and storage medium
CN115378879A (en) Data control method and related device
CN114597967A (en) Method and device for distributing output power of power supply, storage medium and equipment
CN114003337A (en) Access request distribution method and device
CN110247808B (en) Information transmission method, device, equipment and readable storage medium
CN109582860B (en) Application distribution method, device and system and computer readable storage medium
CN112306797A (en) Embedded point information reporting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination