WO2020061824A1 - Charging prompt method and related product - Google Patents

Charging prompt method and related product Download PDF

Info

Publication number
WO2020061824A1
WO2020061824A1 PCT/CN2018/107632 CN2018107632W WO2020061824A1 WO 2020061824 A1 WO2020061824 A1 WO 2020061824A1 CN 2018107632 W CN2018107632 W CN 2018107632W WO 2020061824 A1 WO2020061824 A1 WO 2020061824A1
Authority
WO
WIPO (PCT)
Prior art keywords
determining
data
charging
unit power
application
Prior art date
Application number
PCT/CN2018/107632
Other languages
French (fr)
Chinese (zh)
Inventor
康莉
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880095611.5A priority Critical patent/CN112400308A/en
Priority to PCT/CN2018/107632 priority patent/WO2020061824A1/en
Publication of WO2020061824A1 publication Critical patent/WO2020061824A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the technical field of electronic devices, and in particular, to a charging prompt method and related products.
  • an embodiment of the present application provides a charging prompt method applied to an electronic device, where the electronic device includes a curved display screen, the curved display screen includes a front screen area and a side screen area, and the method includes:
  • the operating data includes system operating data and multiple application operating data
  • an embodiment of the present application provides a charging prompting device applied to an electronic device.
  • the electronic device includes a curved display screen, the curved display screen includes a front screen area and a side screen area, and the device includes:
  • An obtaining unit configured to obtain remaining power of the electronic device and operating data, where the operating data includes system operating data and multiple application operating data;
  • a determining unit configured to determine a remaining usage time according to the operating data and the remaining power
  • a display unit configured to control the screen measurement area to perform a charging prompt according to the remaining usage time if the remaining usage time is less than a first threshold.
  • an embodiment of the present application provides an electronic device including a processor, a memory, a communication interface, and one or more programs.
  • the one or more programs are stored in the memory, and are configured by the above.
  • the processor executes the program including instructions for some or all of the steps as described in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program causes a computer to execute the program as described in the first aspect of the embodiment of the application. Describe some or all of the steps.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute Some or all of the steps described in the first aspect of the embodiment of the application.
  • the computer program product can be a software installation package.
  • FIG. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 1B is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a charging prompt method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a charging prompt method according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a charging prompting device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user devices (User Equipment (UE), mobile station (MS), terminal device (terminal), and so on.
  • UE User Equipment
  • MS mobile station
  • terminal terminal
  • electronic devices the devices mentioned above are collectively referred to as electronic devices.
  • FIG. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
  • the control circuit may include a storage and processing circuit.
  • the storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static Or dynamic random access memory, etc.), this embodiment is not limited.
  • the processing circuit in the storage and processing circuit can be used to control the operation of the electronic device.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
  • the storage and processing circuit can be used to run software in an electronic device, such as playing an incoming call alert ringing application, playing a short message alert ringing application, playing an alarm alert ringing application, playing a media file application, Internet protocol voice (voice Over Internet Protocol (VOIP) telephone calling applications, operating system functions, etc.
  • These software can be used to perform some control operations, such as playing the call alert ring, playing the short message alert ring, playing the alarm alert ring, playing media files, making voice phone calls, and other functions in electronic devices.
  • the examples are not limited.
  • the input-output circuit can be used to enable the electronic device to implement data input and output, that is, to allow the electronic device to receive data from an external device and to allow the electronic device to output data from the electronic device to the external device.
  • the input-output circuit may further include a sensor.
  • the sensor may include an ambient light sensor, an infrared proximity sensor based on light and capacitance, an ultrasonic sensor, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen, or Can be used independently as a touch sensor structure), acceleration sensor, gravity sensor, and other sensors.
  • the input-output circuit may further include an audio component, and the audio component may be used to provide audio input and output functions for the electronic device.
  • the audio component may also include a tone generator and other components for generating and detecting sound.
  • the input-output circuit may also include one or more display screens.
  • the display screen may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies.
  • the display screen may include a touch sensor array (ie, the display screen may be a touch display screen).
  • the touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the input-output circuit can further include a communication circuit that can be used to provide the electronic device with the ability to communicate with external devices.
  • the communication circuit may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
  • the wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit may include a circuit for supporting near field communication (NFC) by transmitting and receiving a near field coupled electromagnetic signal.
  • the communication circuit may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
  • the input-output circuit may further include an input-output unit.
  • the input-output unit may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
  • the electronic device may further include a battery (not shown), and the battery is used to provide power to the electronic device.
  • FIG. 1B is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • the electronic device includes a front screen area 110 and a side screen area 120.
  • the front screen area 110 is located in the center of the curved display screen for displaying desktop content;
  • the side screen area 120 is located around the curved display screen, and flash prompts are performed through the side screen area 120, such as notification information, incoming calls, charging, etc. Prompt information to improve prompt efficiency; flash prompts can also be provided during audio playback to improve user experience.
  • This application does not limit how the side screen area is displayed. You can set the corresponding timing, such as: screen off or light on, notification messages for specific applications, and display duration, display position, display color, flicker frequency, transparency, brightness, Display styles such as width, gradient effect, and surround speed.
  • the embodiments of the present application provide a charging prompt method and related products, which can improve the accuracy and flexibility of the charging prompt.
  • an embodiment of the present application provides a schematic flowchart of a charging prompt method.
  • the method is applied to an electronic device as shown in FIG. 1A and FIG. 1B, that is, the electronic device includes a curved display screen, and the curved display screen includes a positive display. Screen area and side screen area.
  • This application does not limit the application scenario of the method, and may include the use of the electronic device, and may also include that the electronic device is in a screen-off or lock-screen state.
  • a charging prompt method includes:
  • the remaining power refers to the ratio of the available power in the battery to the nominal capacity, and the battery management system can control the working state of the battery according to the remaining power.
  • Operation data is used to indicate the current operation data of the electronic device, including system operation data and multiple application operation data.
  • the system operation data includes application programs corresponding to the electronic device system (for example, time, network, Bluetooth, display brightness and other applications).
  • Running data each application running data corresponds to one application, that is, the electronic device currently runs multiple applications, and the application may include a foreground application and a background application.
  • S202 Determine the remaining usage time according to the operation data and the remaining power.
  • the remaining usage time is used to indicate the battery life of the electronic device without charging.
  • the determining the remaining use time according to the running data and the remaining power includes: determining each of the multiple application running data. Estimated operating time and preset unit power consumption corresponding to application running data to obtain multiple estimated operating time and multiple preset unit power consumption; according to the multiple estimated operating time and the plurality of preset units
  • the power consumption determines a plurality of first unit power consumptions; determines a system unit power consumption corresponding to the system operation data; determines each first unit power consumption of the plurality of first unit power consumptions and the A sum of values between system unit power consumptions is used to obtain a plurality of second unit power consumptions; and the remaining usage time is determined according to the remaining power consumption and the plurality of second unit power consumptions.
  • the estimated running time is the estimated running time of running the application.
  • the running time of the video application can be the total playing time of the currently playing video, the total downloading time of the downloaded video in the background, or the total time of the user watching the video using the video.
  • Duration; game application running data may be the estimated duration corresponding to the end of the current game or the total duration of the user playing the game; it may also be the display duration of the notification information.
  • the multiple application running data includes target application running data
  • the determining of each application running in the multiple application running data includes: determining a data type corresponding to the target application runtime data; determining a current time of the electronic device; and determining the according to the data type and the current time Estimated run time of target application run data.
  • the preset unit power consumption is the power consumed by the electronic device to run the application operation data in a unit time
  • the system unit power consumption is the power consumed by the electronic device to run the system operation data in the unit time.
  • the determining the Obtaining a plurality of preset unit power consumptions corresponding to each application running data in the plurality of application running data includes: determining a plurality of power consumption objects corresponding to the target running data; and determining the plurality of power consumption objects.
  • a plurality of operating parameters are obtained by operating parameters corresponding to each power consumption object in the electric object; determining a unit power consumption corresponding to each operating parameter of the plurality of operating parameters to obtain a plurality of unit power consumption; determining the plurality of units
  • the sum of power consumption is a preset unit power consumption corresponding to the target operation data.
  • the power consumption object can be the hardware or hardware collection corresponding to the running data.
  • the power consumption object is a speaker; if a game application requires screen rendering during the running process, the power consumption object is Graphics processing unit (GPU); if the current position needs to be located during the running of the map application, the power consumption object is the Global Positioning System (GPS) and so on.
  • GPS Global Positioning System
  • the operating parameters may include parameters such as voltage, current, and electric power, which are not limited here. According to the above operating parameters, the power consumption per unit time can be determined, so that the unit power consumption of each power consumption object can be obtained.
  • the multiple power consumption objects corresponding to the target operating data are determined first, and then the operating parameters of each power consumption object are determined to obtain multiple operating parameters, and then the unit power consumption corresponding to each operating parameter is determined to obtain multiple unit power consumption Power, and finally, the preset unit power consumption corresponding to the target operating data is determined according to the sum of the power consumption of multiple units.
  • the preset unit power consumption is determined based on the unit power consumption corresponding to the operating parameters of the power consumption object. It can improve the accuracy of determining the power consumption of the preset unit.
  • the first unit power consumption is the unit power consumption within each estimated operating time
  • the second unit power consumption is the sum between the first unit power consumption and the system unit power consumption.
  • the power consumption of the first unit within 5 minutes is 2.5%
  • the power consumption of the first unit within 5 to 10 minutes is 2%
  • the power consumption of the first unit within 10 to 60 minutes is 1%.
  • the unit power consumption is 0.5%
  • the second unit power consumption in 5 minutes is 3%
  • the second unit power consumption in 2.5 to 10 minutes is 2.5%
  • the first unit power consumption in 10 to 60 minutes The amount was 1.5%.
  • the unit power consumption includes: determining a reference application running data set corresponding to each of the multiple estimated running times in the plurality of application running data to obtain a plurality of reference application running data sets; The sum of the preset unit power consumption corresponding to each reference application execution data set in the plurality of reference application execution data sets is used as the unit power consumption corresponding to the reference application execution data to obtain a plurality of first unit power consumptions.
  • the reference application running data set corresponding to the estimated running time includes at least one application running data that is greater than or equal to the estimated running time. It can be understood that by dividing the estimated running time to obtain the reference application running data set, the application running data within each estimated running time can be determined, so as to determine the first unit power consumption according to each reference application running data set. , Can improve the accuracy of determining the power consumption of the first unit.
  • the second unit power consumption is the unit power consumption corresponding to different application operation data and system operation data in a unit time, in this way, the remaining usage time can be determined according to the remaining power and multiple second unit power consumptions. .
  • the second unit power consumption is 3% in 5 minutes
  • the second unit power consumption is 2.5% in 5-10 minutes
  • the first unit power consumption is 1.5% in 10-60 minutes.
  • the remaining power is 30%
  • the estimated running time and preset unit power consumption corresponding to each application running data in multiple application running data to obtain multiple estimated running time and multiple preset unit power consumption, and determine the system The system unit power consumption corresponding to the operating data. Then, a plurality of first unit power consumptions are determined according to a plurality of preset unit power consumptions and a plurality of estimated operating hours, and then a plurality of second units are determined according to the system unit power consumption and the plurality of first unit power consumptions. Power consumption. Finally, the remaining usage time is determined according to the remaining power and the power consumption of multiple second units. In this way, the accuracy of determining the remaining usage time is improved.
  • the first threshold is not limited, and can be a specified duration or determined according to the application environment. For example, when the location in the application environment is a tourist location, the first threshold is 2 hours due to the inconvenience of charging; the application environment When the location is at home, the first threshold is 20 minutes, etc. due to the convenience of charging.
  • the first threshold value may also be determined according to application running data. For example: if the application running data is video data and the video data is played for 45 minutes, the first threshold value is determined to be 45 minutes; the application running data is game data, and the The average duration of the game data is 15 minutes, and the first threshold is determined to be 15 minutes or the like.
  • the method further includes: determining the first threshold according to the plurality of estimated running durations.
  • the multiple estimated runtimes are the estimated runtimes corresponding to the respective application runtime data.
  • the estimated running time corresponding to each application running data is determined first, and then the first threshold is determined according to the estimated running time.
  • the first threshold is flexibly set, which improves the accuracy of determining the first threshold. Sex.
  • determining the first threshold according to the multiple estimated running durations includes: determining a priority corresponding to each application running data in the multiple application running data to obtain multiple priorities; Determine the allocation ratios of the multiple estimated runtimes according to the multiple priorities to obtain multiple allocation ratios; determine the allocation ratios based on the allocation ratios and estimated runtimes corresponding to each application runtime data in the multiple application runtime data The first threshold is described.
  • This application does not limit the method for determining the priority of each application running data.
  • the determining of each application running data corresponding to the plurality of application running data corresponds to Obtaining multiple priorities includes: determining a first reference value corresponding to a data type of the target application running data, determining a second reference value corresponding to an estimated running time of the target application running data; Weighting a first reference value and a preset weight value of a data type corresponding to the target application execution data, and weighting the second reference value and a preset weight value of an estimated runtime corresponding to the target application execution data
  • the target reference value is calculated and determined; the priority corresponding to the target reference value is determined to be the priority corresponding to the target application running data.
  • the preset weights of the data types corresponding to the target application execution data and the preset weights of the estimated runtimes corresponding to the target application execution data are preset and are not limited herein.
  • the first reference value and the second reference value are reference values corresponding to the data type and the estimated running time, respectively. It can be understood that the target reference value is determined according to the data type and the reference value and the preset weight corresponding to the estimated running time, and then the priority corresponding to the target reference value is used to determine the priority corresponding to the target application operation data. In this way, the determination priority is improved Right accuracy.
  • the determination of the first threshold further improves the accuracy of determining the first threshold.
  • controlling the side screen area to perform charging prompts for the remaining usage time includes: determining that the remaining usage time corresponds to Display style; controlling the side screen area to prompt for the remaining usage time according to the display style.
  • the display style includes at least one of the following: display duration, display position, display color, flicker frequency, transparency, brightness, width, gradient effect, and surround speed.
  • a display style corresponding to different remaining usage time may be defined in advance, for example: the remaining usage time is 20 minutes, the color is red, the display position is the entire side screen area, and the surrounding speed is one second per revolution; the remaining usage The duration is 1 hour, the color is yellow, and the display position is on both sides of the side screen area; the remaining use time is longer than 2 hours, the color is green, the gradient effect is used, and the display position is on the upper side of the side screen area.
  • the display style corresponding to the remaining usage time is determined, and the side screen area is controlled to remind the remaining usage time according to the display style, so that the flexibility of the display is improved, and when the user sees the side screen display, it is clear
  • the remaining usage time improves the user experience.
  • determining the display position as the side screen area that is, using all the side screen areas for charging prompts can improve the prompting efficiency and facilitate users in all directions to receive the charging prompts.
  • the remaining power and operating data of the electronic device are obtained, and the remaining usage time is determined according to the operating data and the remaining power. If the remaining usage time is less than a first threshold, the control unit controls The side screen area provides a charging prompt for the remaining usage time. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt.
  • an embodiment of the present application provides a schematic flowchart of another charging prompt method.
  • the method is applied to the electronic device shown in FIG. 1A and FIG. 1B, that is, the electronic device includes a curved display screen, and the curved display screen includes Front screen area and side screen area.
  • This application does not limit the application scenario of the method, and may include the use of the electronic device, and may also include that the electronic device is in a screen-off or lock-screen state.
  • a charging prompt method includes:
  • the operating data includes system operating data and multiple application operating data.
  • S302 Determine the remaining usage time according to the operation data and the remaining power.
  • steps S301-S303 reference may be made to the description of steps S201-S203, and details are not described herein again.
  • the unit power consumption of the specified operating data is greater than a second threshold, for example, games, video, audio, Bluetooth, and the like.
  • a second threshold for example, games, video, audio, Bluetooth, and the like.
  • This application does not limit the charging operation, and a charging data cable may be used for charging, and a wireless charging method may also be adopted.
  • This application does not limit the preset time length either, it may be a specified time length, or it may be determined according to the application environment. For example, when the location in the application environment is a tourist location, the charging time may be inconvenient, and the preset time length is 2 hours; When the location in the application environment is at home, the preset duration is 20 minutes, etc. due to convenient charging.
  • the method further includes: determining a current position of the electronic device; determining a charging probability corresponding to the current position; and determining the preset duration according to the charging probability.
  • the longitude information of an electronic device can be obtained through a GPS chip, thereby determining the position of the electronic device.
  • the latitude and longitude can also be obtained through a Network Location Service (NLP) Information or address information, where the network includes a mobile data network, a wireless-fidelity (Wi-Fi) network, or a Bluetooth network, that is, when an electronic device accesses at least one of the above networks, the corresponding network can be obtained.
  • NLP Network Location Service
  • the time of the signal sent by the receiving device calculates the distance between the device and the base station, and obtains the direction of the device relative to the base station according to the direction of the signal received by the receiver, thereby obtaining the latitude and longitude information or address information of the device.
  • Media access control Media Access Control or Medium Access Control, MAC
  • determining the charging probability corresponding to the current position includes: if the current position is a specified position, obtaining the corresponding position. Determining the charging probability according to the charging record; if the current position is not the specified position, determining a movement speed corresponding to the electronic device and a distance between the current position and the specified position; The charging probability is determined according to the distance and the moving speed.
  • the designated location is an address where the electronic device has a charging record or an address associated with the charging record, for example, a company, a home, a certain area has multiple charging treasures, and the charging treasure is registered by the user.
  • the method for determining the moving speed of the electronic device is not limited, and it can be determined by the distance between the positions in a unit time, or by using multiple three-axis positions collected by the three-axis acceleration sensor in the electronic device. OK, etc.
  • the current position is a specified position
  • a charging record corresponding to the specified position is obtained, and the charging probability is determined according to the charging record, that is, the charging probability of the specified position is determined, and the accuracy of determining the charging probability is improved.
  • the current position is not the specified position, determine the distance between the current position and the specified position and the moving speed of the electronic device, and then determine the charging probability according to the distance and the moving speed, that is, determine whether the current position reaches the specified position. Time, and then determine the charging probability from this time. In this way, the corresponding charging probability can be determined regardless of whether the electronic device is in a designated position, which is convenient for determining the preset duration according to the charging probability.
  • preset time lengths corresponding to different charging probabilities may be set in advance, a current position of the electronic device is determined, and then a charging probability corresponding to the current position is determined, so as to determine the preset according to the charging probability.
  • the duration improves the accuracy and flexibility of determining the preset duration, and it is convenient to detect the accuracy of the charging operation according to the preset duration.
  • the application to be cleaned is a temporarily shuttable application.
  • the application to be cleaned is a wired network connection application and a Bluetooth connection application.
  • the shopping application and video application in the background application are to be cleaned application.
  • the application does not limit the method for determining the application to be cleaned, obtain the priority of each application running data in the multiple application running data, obtain multiple priorities, and obtain multiple system power consumption corresponding to the system operating data.
  • the target application running data is the application running data with the highest priority. There is no limitation on the method for obtaining the correlation value between the system power consumption object and the target application running data. You can shut down the system between the power consumption object and the target application running data. To determine the first correlation value and the second correlation value between the power consumption object of the system being turned off and the electronic device.
  • the priority of each application operation data is determined, and the correlation value between each system power consumption object and the target application operation data, and then at least one application to be cleaned is determined according to multiple correlation values and multiple priorities. After the application to be cleaned is cleaned, the impact on application running data is small and system failure is avoided.
  • the power saving mode corresponding to the running data is used to reduce power consumption, for example, reducing the brightness of the display screen, reducing the sound size, or enabling the microphone to collect voice information only when receiving a microphone collection instruction, and restricting the download of video applications Internet speed.
  • the remaining power and operating data of the electronic device are obtained, and the remaining use time is determined according to the operating data and the remaining power. If the remaining use time is less than a first threshold, the control unit controls The side screen area provides a charging prompt for the remaining usage time. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt. If the application running data is designated running data, since the unit power consumption of the designated running data is greater than the second threshold, the battery needs to be charged as soon as the remaining usage time is shorter than the first threshold.
  • the charging operation is detected within a preset time period, and if the charging operation is not detected within the preset time period, at least one application to be cleaned corresponding to the running data is cleared or a power saving mode corresponding to the running data is entered. .
  • the application running data is specified running data and no charging operation is detected within a specified period of time, the application to be cleaned or enters a power saving mode, thereby saving battery power consumption and improving battery life.
  • the method further includes: if the preset duration is greater than a third threshold, executing at least one application to be cleaned corresponding to the running data or entering a power saving mode corresponding to the running data A step of. If the preset duration is less than or equal to the third threshold, perform the step of detecting a charging operation within the preset duration.
  • the third threshold is not limited, and the third threshold is less than the remaining usage time.
  • the at least one application to be cleaned is cleared regardless of whether a charging operation is detected.
  • the charging operation needs to be detected within the preset duration. If the charging operation is not detected, the at least one application to be cleaned is cleaned up, thereby improving the battery life of the electronic device. During charging operation, no processing is performed.
  • the electronic device determines a charging speed and remaining power of the electronic device; and control the side screen area to perform charging display according to the charging speed and the remaining power.
  • display styles such as display color, flicker frequency, surround speed, or display duration corresponding to different remaining power or different charging speeds can be set in advance. For example: 1 lap per second during fast charge and 1 1/2 sec during slow charge.
  • a charging speed and a remaining power of the electronic device are determined, and then a display style of the side screen area is determined according to the charging speed and the remaining power. In this way, the flexibility of the charging display is improved, and when the user sees the side screen display, the remaining power and charging speed are clarified, and the user experience is improved. If the display position is the side screen area, that is, the entire side screen area is used for the charging prompt, which can improve the prompting efficiency and facilitate users in all directions to receive the charging prompt.
  • FIG. 4 is a schematic structural diagram of a charging prompting device provided in an embodiment of the present application.
  • the charging prompting device is applied to an electronic device, and the electronic device includes A curved display screen including a front screen area and a side screen area.
  • the above apparatus 400 includes:
  • the obtaining unit 401 is configured to obtain the remaining power of the electronic device and operation data, where the operation data includes system operation data and multiple application operation data;
  • the determining unit 402 is configured to determine a remaining usage time according to the operation data and the remaining power;
  • the display unit 403 is configured to control the screen measurement area to perform a charging prompt according to the remaining usage time if the remaining usage time is less than a first threshold.
  • the remaining power and operating data of the electronic device are obtained, and the remaining use time is determined according to the operating data and the remaining power. If the remaining use time is less than a first threshold, controlling the side screen area to target the remaining use Duration for charging tips. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt.
  • the determining unit 402 is specifically configured to determine a corresponding value of each application running data in the multiple application running data. Estimated running time and power consumption per preset unit to obtain multiple estimated running time and power consumption per preset unit; determine based on the estimated running time and power consumption per preset unit A plurality of first unit power consumptions; determining a system unit power consumption corresponding to the system operation data; determining each of the plurality of first unit power consumptions and the system unit power consumption A sum value between the quantities is used to obtain a plurality of second unit power consumptions; and the remaining use time is determined according to the remaining power and the plurality of second unit power consumptions.
  • the determining unit 402 is specifically configured to determine a plurality of first unit power consumptions according to the plurality of estimated running durations and the plurality of preset unit power consumptions.
  • the sum of the preset unit power consumption corresponding to each reference application running data set is collected as the unit power consumption corresponding to the reference application running data to obtain a plurality of first unit power consumptions.
  • the plurality of application running data includes target application running data
  • each application running data corresponds to an estimated running time and a preset unit power consumption.
  • the determining unit 402 is specifically configured to determine a data type corresponding to the target application running data and multiple power consumption objects; determine the electronic device Determine the current estimated running time of the target application running data according to the data type and the current time; determine the operating parameters corresponding to each of the multiple power-consuming objects to obtain multiple running times Parameters; determining a unit power consumption corresponding to each of the plurality of operating parameters to obtain a plurality of unit power consumptions; determining a sum of the plurality of unit power consumptions as a preset corresponding to the target operation data Unit power consumption.
  • the plurality of application running data includes target application running data
  • each application running data corresponds to an estimated running time and a preset unit power consumption.
  • the determining unit 402 is specifically configured to determine a data type corresponding to the target application running data and multiple power consumption objects; determine the electronic device Determine the current estimated running time of the target application running data according to the data type and the current time; determine the operating parameters corresponding to each of the multiple power-consuming objects to obtain multiple running times Parameters; determining a unit power consumption corresponding to each of the plurality of operating parameters to obtain a plurality of unit power consumptions; determining a sum of the plurality of unit power consumptions as a preset corresponding to the target operation data Unit power consumption.
  • the determining unit is further configured to determine the first threshold according to the multiple estimated running durations.
  • the device 400 further includes:
  • the detecting unit 404 is configured to detect a charging operation within a preset time period if the plurality of application running data includes designated running data, and the unit power consumption of the designated running data is greater than a second threshold;
  • the processing unit 405 is configured to clean up at least one application to be cleaned corresponding to the running data or enter a power saving mode corresponding to the running data if the detecting unit 404 does not detect the charging operation within the preset time period.
  • the determining unit 402 is further configured to determine a current position of the electronic device; determine a charging probability corresponding to the current position; determine the preset duration according to the charging probability; If the duration is greater than a third threshold, the processing unit 405 is called to execute the step of clearing at least one application to be cleaned corresponding to the running data or entering a power saving mode corresponding to the running data, and the third threshold is smaller than the The remaining use time; if the preset time is less than or equal to the third threshold, calling the detection unit 404 to perform the step of detecting the charging operation within the preset time.
  • the obtaining unit 401 is further configured to obtain a charging record corresponding to the specified position if the current position is a specified position; the The determining unit 402 is specifically configured to determine the charging probability according to the charging record; if the current position is not the specified position, determine a movement speed corresponding to the electronic device and a distance between the current position and the specified position. Distance; determining the charging probability according to the distance and the moving speed.
  • the determining unit 402 is further configured to determine a display style corresponding to the remaining usage time, and the display style It includes at least one of the following: display duration, display position, display color, flicker frequency, transparency, brightness, width, gradation effect, and surround speed; the display unit 403 is specifically configured to control the side screen area to adjust The remaining use time is prompted for charging.
  • FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • the electronic device includes a curved display screen, and the curved display screen. Including the front screen area and the side screen area.
  • the electronic device 500 includes a processor 510, a memory 520, a communication interface 530, and one or more programs 540.
  • the one or more programs 540 are stored in the memory 520, and are configured by The processor 510 executes, and the program 540 includes instructions for performing the following steps:
  • the remaining power and operating data of the electronic device 500 are obtained, and the remaining usage time is determined according to the operating data and the remaining power. If the remaining usage time is less than a first threshold, controlling the side screen area to target the remaining power Use the time for charging tips. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt.
  • the instructions in the program 540 are specifically used to perform the following operations:
  • the instructions in the program 540 are specifically used To do the following:
  • the plurality of application running data includes target application running data, and in the determining the estimated plurality of application running data, each application running data corresponds to an estimated running time and a preset unit power consumption.
  • the instructions in the program 540 are specifically used to perform the following operations:
  • the sum of the plurality of unit power consumptions is a preset unit power consumption corresponding to the target operation data.
  • the instructions in the program 540 are also used to perform the following operations:
  • the first threshold is determined according to the plurality of estimated running durations.
  • the instructions in the program 540 are further used to perform the following operations:
  • a unit power consumption of the specified operation data is greater than a second threshold, and a charging operation is detected within a preset time period;
  • At least one application to be cleaned corresponding to the running data is cleared or a power saving mode corresponding to the running data is entered.
  • the instructions in the program 540 are also used to perform the following operations:
  • the third threshold is smaller than the remaining usage duration
  • the preset duration is less than or equal to the third threshold, perform the step of detecting a charging operation within the preset duration.
  • the instructions in the program 540 are specifically used to perform the following operations:
  • the charging probability is determined according to the distance and the moving speed.
  • the instructions in the program 540 are specifically used to perform the following operations:
  • the display style including at least one of the following: display duration, display position, display color, flicker frequency, transparency, brightness, width, gradient effect, and surround speed;
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores and stores a computer program, and the computer program causes a computer to perform part or all of the steps of any method described in the foregoing method embodiments.
  • the computer includes electronic equipment.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps of any method.
  • the computer program product may be a software installation package, and the computer includes an electronic device.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may Integration into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include a flash disk , Read-only memory, random access device (, disk or optical disk, etc.).

Abstract

A charging prompt method and a related product. The method is applied to an electronic device. The electronic device comprises a curved display screen, and the curved display screen comprises a front screen area (110) and a side screen area (120). The method comprises: obtaining a remaining battery capacity and operation data of the electronic device (S201), the operation data comprising system operation data and multiple pieces of application operation data; determining a remaining use duration according to the operation data and the remaining battery capacity (S202); and if the remaining use duration is less than a first threshold, controlling the side screen area (120) to perform charging prompt according to the remaining use duration (S203). The method and product can improve the accuracy and flexibility of charging prompt.

Description

充电提示方法及相关产品Charging tips and related products 技术领域Technical field
本申请涉及电子设备技术领域,尤其涉及一种充电提示方法以及相关产品。The present application relates to the technical field of electronic devices, and in particular, to a charging prompt method and related products.
背景技术Background technique
随着电子设备技术的迅速发展,出现了各种各样的电子设备,例如:手机、平板电脑、智能手环等,而对电子设备的电池充电也成为了一项日常行为。With the rapid development of electronic device technology, a variety of electronic devices have appeared, such as: mobile phones, tablet computers, smart bracelets, etc., and charging the battery of electronic devices has become a daily behavior.
相关技术中,用户在使用电子设备的过程中,当电子设备的电量低于某个阈值时,向用户发出提示信息,以提醒用户进行充电。In the related art, when a user uses an electronic device, when the power of the electronic device is lower than a certain threshold, a prompt message is sent to the user to remind the user to charge.
申请内容Application content
第一方面,本申请实施例提供一种充电提示方法,应用于电子设备,所述电子设备包括曲面显示屏,所述曲面显示屏包括正屏区域和侧屏区域,所述方法包括:In a first aspect, an embodiment of the present application provides a charging prompt method applied to an electronic device, where the electronic device includes a curved display screen, the curved display screen includes a front screen area and a side screen area, and the method includes:
获取所述电子设备的剩余电量和运行数据,所述运行数据包括系统运行数据和多个应用运行数据;Acquiring the remaining power of the electronic device and operating data, where the operating data includes system operating data and multiple application operating data;
根据所述运行数据和所述剩余电量确定剩余使用时长;Determining the remaining usage time according to the operating data and the remaining power;
若所述剩余使用时长小于第一阈值,控制所述侧屏区域针对所述剩余使用时长进行充电提示。If the remaining use time is less than the first threshold, controlling the side screen area to perform a charging prompt for the remaining use time.
第二方面,本申请实施例提供一种充电提示装置,应用于电子设备,所述电子设备包括曲面显示屏,所述曲面显示屏包括正屏区域和侧屏区域,所述装置包括:In a second aspect, an embodiment of the present application provides a charging prompting device applied to an electronic device. The electronic device includes a curved display screen, the curved display screen includes a front screen area and a side screen area, and the device includes:
获取单元,用于获取所述电子设备的剩余电量和运行数据,所述运行数据包括系统运行数据和多个应用运行数据;An obtaining unit, configured to obtain remaining power of the electronic device and operating data, where the operating data includes system operating data and multiple application operating data;
确定单元,用于根据所述运行数据和所述剩余电量确定剩余使用时长;A determining unit, configured to determine a remaining usage time according to the operating data and the remaining power;
显示单元,用于若所述剩余使用时长小于第一阈值,控制所述测屏区域按照所述剩余使用时长进行充电提示。A display unit, configured to control the screen measurement area to perform a charging prompt according to the remaining usage time if the remaining usage time is less than a first threshold.
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。According to a third aspect, an embodiment of the present application provides an electronic device including a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory, and are configured by the above. The processor executes the program including instructions for some or all of the steps as described in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program causes a computer to execute the program as described in the first aspect of the embodiment of the application. Describe some or all of the steps.
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机 程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute Some or all of the steps described in the first aspect of the embodiment of the application. The computer program product can be a software installation package.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
其中:among them:
图1A为本申请实施例提供的一种电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application; FIG.
图1B为本申请实施例提供的另一种电子设备的结构示意图;FIG. 1B is a schematic structural diagram of another electronic device according to an embodiment of the present application; FIG.
图2为本申请实施例提供的一种充电提示方法的流程示意图;2 is a schematic flowchart of a charging prompt method according to an embodiment of the present application;
图3为本申请实施例提供的一种充电提示方法的流程示意图;3 is a schematic flowchart of a charging prompt method according to an embodiment of the present application;
图4为本申请实施例提供的一种充电提示装置的结构示意图;4 is a schematic structural diagram of a charging prompting device according to an embodiment of the present application;
图5为本申请实施例提供的另一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包括。例如包括了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms “first”, “second”, and the like in the description and claims of the present application and the above-mentioned drawings are used to distinguish different objects, and are not used to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包括在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "an embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user devices (User Equipment (UE), mobile station (MS), terminal device (terminal), and so on. For ease of description, the devices mentioned above are collectively referred to as electronic devices.
请参阅图1A,图1A是本申请实施例提供了一种电子设备的结构示意图,电子设备包括控制电路和输入-输出电路,输入输出电路与控制电路连接。Please refer to FIG. 1A, which is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
其中,控制电路可以包括存储和处理电路。该存储和处理电路中的存储电路可以是存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路中的处理电路可以用于控制电子设备的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。The control circuit may include a storage and processing circuit. The storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static Or dynamic random access memory, etc.), this embodiment is not limited. The processing circuit in the storage and processing circuit can be used to control the operation of the electronic device. The processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
存储和处理电路可用于运行电子设备中的软件,例如播放来电提示响铃应用程序、播放短消息提示响铃应用程序、播放闹钟提示响铃应用程序、播放媒体文件应用程序、互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序、操作系统功能等。这些软件可以用于执行一些控制操作,例如,播放来电提示响铃、播放短消息提示响铃、播放闹钟提示响铃、播放媒体文件、进行语音电话呼叫以及电子设备中的其它功能等,本申请实施例不作限制。The storage and processing circuit can be used to run software in an electronic device, such as playing an incoming call alert ringing application, playing a short message alert ringing application, playing an alarm alert ringing application, playing a media file application, Internet protocol voice (voice Over Internet Protocol (VOIP) telephone calling applications, operating system functions, etc. These software can be used to perform some control operations, such as playing the call alert ring, playing the short message alert ring, playing the alarm alert ring, playing media files, making voice phone calls, and other functions in electronic devices. The examples are not limited.
其中,输入-输出电路可用于使电子设备实现数据的输入和输出,即允许电子设备从外部设备接收数据和允许电子设备将数据从电子设备输出至外部设备。Among them, the input-output circuit can be used to enable the electronic device to implement data input and output, that is, to allow the electronic device to receive data from an external device and to allow the electronic device to output data from the electronic device to the external device.
输入-输出电路可以进一步包括传感器。传感器可以包括环境光传感器,基于光和电容的红外接近传感器,超声波传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。输入-输出电路还可以进一步包括音频组件,音频组件可以用于为电子设备提供音频输入和输出功能。音频组件还可以包括音调发生器以及其它用于产生和检测声音的组件。The input-output circuit may further include a sensor. The sensor may include an ambient light sensor, an infrared proximity sensor based on light and capacitance, an ultrasonic sensor, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen, or Can be used independently as a touch sensor structure), acceleration sensor, gravity sensor, and other sensors. The input-output circuit may further include an audio component, and the audio component may be used to provide audio input and output functions for the electronic device. The audio component may also include a tone generator and other components for generating and detecting sound.
输入-输出电路还可以包括一个或多个显示屏。显示屏可以包括液晶显示屏,有机发光二极管显示屏,电子墨水显示屏,等离子显示屏,使用其它显示技术的显示屏中一种或者几种的组合。显示屏可以包括触摸传感器阵列(即,显示屏可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。The input-output circuit may also include one or more display screens. The display screen may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. The display screen may include a touch sensor array (ie, the display screen may be a touch display screen). The touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
输入-输出电路还可以进一步包括通信电路可以用于为电子设备提供与外部设备通信的能力。通信电路可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(near field communication,NFC)的电路。例如, 通信电路可以包括近场通信天线和近场通信收发器。通信电路还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。The input-output circuit can further include a communication circuit that can be used to provide the electronic device with the ability to communicate with external devices. The communication circuit may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals. The wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna. For example, the wireless communication circuit in the communication circuit may include a circuit for supporting near field communication (NFC) by transmitting and receiving a near field coupled electromagnetic signal. For example, the communication circuit may include a near field communication antenna and a near field communication transceiver. The communication circuit may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
输入-输出电路还可以进一步包括输入-输出单元。输入-输出单元可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The input-output circuit may further include an input-output unit. The input-output unit may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
其中,电子设备还可以进一步包括电池(未图示),电池用于给电子设备提供电能。The electronic device may further include a battery (not shown), and the battery is used to provide power to the electronic device.
请参照图1B,图1B是本申请实施例提供了另一种电子设备的结构示意图。如图1B所示,该电子设备包括正屏区域110和侧屏区域120。其中,正屏区域110位于曲面显示屏的正中央,用于显示桌面内容;侧屏区域120位于曲面显示屏的周边,通过侧屏区域120的进行闪光提示,例如:通知信息、来电、充电等提示信息,从而提高提示效率;也可在播放音频时进行闪光提示,提高用户体验。Please refer to FIG. 1B. FIG. 1B is a schematic structural diagram of another electronic device according to an embodiment of the present application. As shown in FIG. 1B, the electronic device includes a front screen area 110 and a side screen area 120. Among them, the front screen area 110 is located in the center of the curved display screen for displaying desktop content; the side screen area 120 is located around the curved display screen, and flash prompts are performed through the side screen area 120, such as notification information, incoming calls, charging, etc. Prompt information to improve prompt efficiency; flash prompts can also be provided during audio playback to improve user experience.
本申请对于侧屏区域如何显示不做限定,可以设置对应的时机,例如:熄屏或亮屏、特定应用的通知消息,还可显示时长、显示位置、显示颜色、闪烁频率、透明度、亮度、宽度、渐变效果、环绕速度等显示风格。This application does not limit how the side screen area is displayed. You can set the corresponding timing, such as: screen off or light on, notification messages for specific applications, and display duration, display position, display color, flicker frequency, transparency, brightness, Display styles such as width, gradient effect, and surround speed.
下面对本申请实施例进行详细介绍。The embodiments of the present application are described in detail below.
本申请实施例提供了一种充电提示方法及相关产品,可提高充电提示的准确性和灵活性。The embodiments of the present application provide a charging prompt method and related products, which can improve the accuracy and flexibility of the charging prompt.
请参照图2,本申请实施例提供一种充电提示方法的流程示意图,该方法应用于如图1A和图1B所示的电子设备,即电子设备包括曲面显示屏,且该曲面显示屏包括正屏区域和侧屏区域。本申请对于方法的应用场景不做限定,可包括电子设备的使用过程中,也可包括电子设备处于熄屏或锁屏状态。具体的,如图2所示,一种充电提示方法,包括:Referring to FIG. 2, an embodiment of the present application provides a schematic flowchart of a charging prompt method. The method is applied to an electronic device as shown in FIG. 1A and FIG. 1B, that is, the electronic device includes a curved display screen, and the curved display screen includes a positive display. Screen area and side screen area. This application does not limit the application scenario of the method, and may include the use of the electronic device, and may also include that the electronic device is in a screen-off or lock-screen state. Specifically, as shown in FIG. 2, a charging prompt method includes:
S201:获取电子设备的剩余电量和运行数据。S201: Obtain the remaining power and operating data of the electronic device.
在本申请实施例中,剩余电量是指电池内的可用电量占标称容量的比例,电池管理系统可根据剩余电量控制电池工作状态。In the embodiment of the present application, the remaining power refers to the ratio of the available power in the battery to the nominal capacity, and the battery management system can control the working state of the battery according to the remaining power.
运行数据用于指示电子设备当前运行的数据,包括系统运行数据和多个应用运行数据,其中,系统运行数据包括电子设备系统对应的应用程序(例如:时间、网络、蓝牙、显示屏亮度等应用)的运行数据;每一应用运行数据对应一个应用,也就是说,电子设备当前运行多个应用,该应用可包括前台应用,也包括后台应用。Operation data is used to indicate the current operation data of the electronic device, including system operation data and multiple application operation data. Among them, the system operation data includes application programs corresponding to the electronic device system (for example, time, network, Bluetooth, display brightness and other applications). ) Running data; each application running data corresponds to one application, that is, the electronic device currently runs multiple applications, and the application may include a foreground application and a background application.
S202:根据所述运行数据和所述剩余电量确定剩余使用时长。S202: Determine the remaining usage time according to the operation data and the remaining power.
其中,剩余使用时长用于指示电子设备在不充电的情况下的续航时间。The remaining usage time is used to indicate the battery life of the electronic device without charging.
本申请对于如何确定剩余使用时长的方法不做限定,在一个可能的示例中,所述根据所述运行数据和所述剩余电量确定剩余使用时长包括:确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量得 到多个预估运行时长和多个预设单位耗电量;根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量;确定所述系统运行数据对应的系统单位耗电量;确定所述多个第一单位耗电量中每一第一单位耗电量和所述系统单位耗电量之间的和值得到多个第二单位耗电量;根据所述剩余电量和所述多个第二单位耗电量确定所述剩余使用时长。This application does not limit the method for determining the remaining use time. In a possible example, the determining the remaining use time according to the running data and the remaining power includes: determining each of the multiple application running data. Estimated operating time and preset unit power consumption corresponding to application running data to obtain multiple estimated operating time and multiple preset unit power consumption; according to the multiple estimated operating time and the plurality of preset units The power consumption determines a plurality of first unit power consumptions; determines a system unit power consumption corresponding to the system operation data; determines each first unit power consumption of the plurality of first unit power consumptions and the A sum of values between system unit power consumptions is used to obtain a plurality of second unit power consumptions; and the remaining usage time is determined according to the remaining power consumption and the plurality of second unit power consumptions.
其中,预估运行时长为运行该应用运行数据的预估时长,例如:视频应用运行数据可以是当前播放视频的播放总时长、后台下载视频的下载总时长、或用户使用该视频观看视频的总时长;游戏应用运行数据可以是当前游戏结束对应的预估时长或用户玩游戏的总时长;还可以是通知信息的显示时长等。The estimated running time is the estimated running time of running the application. For example, the running time of the video application can be the total playing time of the currently playing video, the total downloading time of the downloaded video in the background, or the total time of the user watching the video using the video. Duration; game application running data may be the estimated duration corresponding to the end of the current game or the total duration of the user playing the game; it may also be the display duration of the notification information.
本申请对于如何确定预估运行时长的方法不做限定,在一个可能的示例中,所述多个应用运行数据包括目标应用运行数据,所述确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长得到多个预估运行时长包括:确定所述目标应用运行数据对应的数据类型;确定所述电子设备的当前时间;根据所述数据类型和所述当前时间确定所述目标应用运行数据的预估运行时长。This application does not limit the method for determining the estimated running time. In a possible example, the multiple application running data includes target application running data, and the determining of each application running in the multiple application running data Obtaining multiple estimated runtimes corresponding to the data includes: determining a data type corresponding to the target application runtime data; determining a current time of the electronic device; and determining the according to the data type and the current time Estimated run time of target application run data.
由于用户玩游戏、看视频、刷信息的时间往往固定,例如:在工作休息时段玩游戏,在睡觉之前刷信息,在公交车上看视频等,如此,先确定目标应用运行数据的数据类型和电子设备的当前时间,然后根据数据类型和当前时间确定该目标应用运行数据的预估运行时长,可提高确定预估运行时长的准确率。Because users often play games, watch videos, and brush information for a fixed time, such as: playing games during work breaks, brushing information before going to bed, watching videos on a bus, etc., so first determine the data type and The current time of the electronic device, and then determining the estimated running time of the target application running data according to the data type and the current time, can improve the accuracy of determining the estimated running time.
在本申请中,预设单位耗电量为电子设备在单位时间内运行应用运行数据所耗的电量,系统单位耗电量为电子设备在单位时间内运行系统运行数据所耗的电量。In this application, the preset unit power consumption is the power consumed by the electronic device to run the application operation data in a unit time, and the system unit power consumption is the power consumed by the electronic device to run the system operation data in the unit time.
本申请对于如何确定预设单位耗电量和系统单位耗电量不做限定,在一个可能的示例中,以所述多个应用运行数据中的目标应用运行数据为例,所述确定所述多个应用运行数据中每一应用运行数据对应的预设单位耗电量得到多个预设单位耗电量包括:确定所述目标运行数据对应的多个耗电对象;确定所述多个耗电对象中每一耗电对象对应的运行参数得到多个运行参数;确定所述多个运行参数中每一运行参数对应的单位耗电量得到多个单位耗电量;确定所述多个单位耗电量之和为所述目标运行数据对应的预设单位耗电量。This application does not limit how to determine the preset unit power consumption and the system unit power consumption. In a possible example, taking the target application running data among the multiple application running data as an example, the determining the Obtaining a plurality of preset unit power consumptions corresponding to each application running data in the plurality of application running data includes: determining a plurality of power consumption objects corresponding to the target running data; and determining the plurality of power consumption objects. A plurality of operating parameters are obtained by operating parameters corresponding to each power consumption object in the electric object; determining a unit power consumption corresponding to each operating parameter of the plurality of operating parameters to obtain a plurality of unit power consumption; determining the plurality of units The sum of power consumption is a preset unit power consumption corresponding to the target operation data.
其中,耗电对象可以是运行数据对应的硬件或硬件集合,例如:视频应用的运行过程中需播放声音,则耗电对象为扬声器;游戏应用的运行过程中需画面渲染,则耗电对象为图形处理器(Graphics Processing Unit,GPU);地图应用的运行过程中需定位当前位置,则耗电对象为全球定位系统(Global Positioning System,GPS)等等。Among them, the power consumption object can be the hardware or hardware collection corresponding to the running data. For example, if a video application needs to play sound during the running process, the power consumption object is a speaker; if a game application requires screen rendering during the running process, the power consumption object is Graphics processing unit (GPU); if the current position needs to be located during the running of the map application, the power consumption object is the Global Positioning System (GPS) and so on.
运行参数可包括电压、电流、电功率等参数,在此不做限定,根据上述运行参数可确定单位时间内的耗电量,如此可得到各个耗电对象的单位耗电量。The operating parameters may include parameters such as voltage, current, and electric power, which are not limited here. According to the above operating parameters, the power consumption per unit time can be determined, so that the unit power consumption of each power consumption object can be obtained.
可以理解,先确定目标运行数据对应的多个耗电对象,再确定各个耗电对象的运行参数以得到多个运行参数,然后,确定各个运行参数对应的单位耗电量以得到多个单位耗电量,最后,根据多个单位耗电量之和确定目标运行数据 对应的预设单位耗电量,如此,依据耗电对象的运行参数对应的单位耗电量确定预设单位耗电量,可提高确定预设单位耗电量的准确性。It can be understood that the multiple power consumption objects corresponding to the target operating data are determined first, and then the operating parameters of each power consumption object are determined to obtain multiple operating parameters, and then the unit power consumption corresponding to each operating parameter is determined to obtain multiple unit power consumption Power, and finally, the preset unit power consumption corresponding to the target operating data is determined according to the sum of the power consumption of multiple units. In this way, the preset unit power consumption is determined based on the unit power consumption corresponding to the operating parameters of the power consumption object. It can improve the accuracy of determining the power consumption of the preset unit.
在本申请中,第一单位耗电量为各个预估运行时长内的单位耗电量,第二单位耗电量为各个第一单位耗电量和系统单位耗电量之间的和值,例如:5分钟内的第一单位耗电量为2.5%,5~10分钟内的第一单位耗电量为2%,10~60分钟内的第一单位耗电量为1%,若系统单位耗电量为0.5%,则5分钟内的第二单位耗电量为3%,5~10分钟内的第二单位耗电量为2.5%,10~60分钟内的第一单位耗电量为1.5%。In the present application, the first unit power consumption is the unit power consumption within each estimated operating time, and the second unit power consumption is the sum between the first unit power consumption and the system unit power consumption. For example: the power consumption of the first unit within 5 minutes is 2.5%, the power consumption of the first unit within 5 to 10 minutes is 2%, and the power consumption of the first unit within 10 to 60 minutes is 1%. The unit power consumption is 0.5%, then the second unit power consumption in 5 minutes is 3%, the second unit power consumption in 2.5 to 10 minutes is 2.5%, and the first unit power consumption in 10 to 60 minutes The amount was 1.5%.
本申请对于确定第一单位耗电量的方法不做限定,在一个可能的示例中,所述根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量包括:确定所述多个应用运行数据中与所述多个预估运行时长中每一预估运行时长对应的参考应用运行数据集,得到多个参考应用运行数据集;将所述多个参考应用运行数据集中每一参考应用运行数据集对应的预设单位耗电量之间的和值作为该参考应用运行数据对应的单位耗电量得到多个第一单位耗电量。This application does not limit the method for determining the power consumption of the first unit. In a possible example, the determining a plurality of first power units according to the multiple estimated running time periods and the plurality of preset unit power consumption units. The unit power consumption includes: determining a reference application running data set corresponding to each of the multiple estimated running times in the plurality of application running data to obtain a plurality of reference application running data sets; The sum of the preset unit power consumption corresponding to each reference application execution data set in the plurality of reference application execution data sets is used as the unit power consumption corresponding to the reference application execution data to obtain a plurality of first unit power consumptions.
其中,与预估运行时长对应的参考应用运行数据集中包括大于或等于该预估运行时长的至少一个应用运行数据。可以理解,以预估运行时长进行划分以得到参考应用运行数据集,可确定每一预估运行时长内的应用运行数据,从而根据每个参考应用运行数据集确定第一单位耗电量,如此,可提高确定第一单位耗电量的准确性。The reference application running data set corresponding to the estimated running time includes at least one application running data that is greater than or equal to the estimated running time. It can be understood that by dividing the estimated running time to obtain the reference application running data set, the application running data within each estimated running time can be determined, so as to determine the first unit power consumption according to each reference application running data set. , Can improve the accuracy of determining the power consumption of the first unit.
举例来说,第一应用的预估运行时长为5分钟,预设单位耗电量为每分钟0.5%的电量;第二应用的预估运行时长为10分钟,预设单位耗电量为每分钟1%的电量;第三应用的预估运行时长为1个小时,预设单位耗电量为每分钟1%的电量,则确定5分钟内对应的参考应用运行数据集包括第一应用、第二应用和第三应用,确定5~10分钟内对应的参考应用运行数据集包括第二应用和第三应用,确定10~60分钟内对应的参考应用运行数据集包括第三应用,即确定5分钟内的第一单位耗电量为0.5%+1%+1%=2.5%,5~10分钟内的第一单位耗电量为1%+1%=2%,10~60分钟内的第一单位耗电量为1%。For example, the estimated run time of the first application is 5 minutes, and the preset unit power consumption is 0.5% of electricity per minute; the estimated run time of the second application is 10 minutes, and the preset unit power consumption is 1% of electricity per minute; the estimated running time of the third application is 1 hour, and the preset unit power consumption is 1% of electricity per minute, then it is determined that the corresponding reference application running data set within 5 minutes includes the first application, For the second application and the third application, determine that the corresponding reference application operation data set includes the second application and the third application within 5 to 10 minutes, and determine that the corresponding reference application operation data set includes the third application within 10 to 60 minutes, that is, determine The first unit power consumption within 5 minutes is 0.5% + 1% + 1% = 2.5%, and the first unit power consumption within 5-10 minutes is 1% + 1% = 2%, within 10-60 minutes The first unit consumes 1% of power.
在本申请中,由于第二单位耗电量为单位时间内不同应用运行数据和系统运行数据对应的单位耗电量,如此,可根据剩余电量和多个第二单位耗电量确定剩余使用时长。In this application, since the second unit power consumption is the unit power consumption corresponding to different application operation data and system operation data in a unit time, in this way, the remaining usage time can be determined according to the remaining power and multiple second unit power consumptions. .
举例来说,假设5分钟内的第二单位耗电量为3%,5~10分钟内的第二单位耗电量为2.5%,10~60分钟内的第一单位耗电量为1.5%。若剩余电量为30%,则5分钟之后的剩余电量为30%-3%*5=15%,10分钟之后的剩余电量为15%-2.5%*(10-5)=7.5%,而7.5%的剩余电量不足以使用10(60-50)分钟,7.5%的电量可使用5分钟,如此,确定剩余使用时长为10+5=15分钟。For example, suppose the second unit power consumption is 3% in 5 minutes, the second unit power consumption is 2.5% in 5-10 minutes, and the first unit power consumption is 1.5% in 10-60 minutes. . If the remaining power is 30%, the remaining power after 5 minutes is 30% -3% * 5 = 15%, and the remaining power after 10 minutes is 15% -2.5% * (10-5) = 7.5%, and 7.5 The remaining power of% is not enough to use for 10 (60-50) minutes, and the power of 7.5% can be used for 5 minutes. In this way, it is determined that the remaining use time is 10 + 5 = 15 minutes.
可以理解,先确定多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量以得到多个预估运行时长和多个预设单位耗电量,并确 定系统运行数据对应的系统单位耗电量。然后,根据多个预设单位耗电量和多个预估运行时长确定多个第一单位耗电量,再根据系统单位耗电量和多个第一单位耗电量确定多个第二单位耗电量,最后,根据剩余电量和多个第二单位耗电量确定剩余使用时长,如此,提高了确定剩余使用时长的准确性。Understandably, first determine the estimated running time and preset unit power consumption corresponding to each application running data in multiple application running data to obtain multiple estimated running time and multiple preset unit power consumption, and determine the system The system unit power consumption corresponding to the operating data. Then, a plurality of first unit power consumptions are determined according to a plurality of preset unit power consumptions and a plurality of estimated operating hours, and then a plurality of second units are determined according to the system unit power consumption and the plurality of first unit power consumptions. Power consumption. Finally, the remaining usage time is determined according to the remaining power and the power consumption of multiple second units. In this way, the accuracy of determining the remaining usage time is improved.
S203:若所述剩余使用时长小于第一阈值,控制侧屏区域针对所述剩余使用时长进行充电提示。S203: If the remaining usage time is less than the first threshold, control the side screen area to provide a charging prompt for the remaining usage time.
其中,第一阈值不做限定,可以是指定时长,也可以根据应用环境进行确定,例如:应用环境中的地点为旅游地点时,由于充电可能不方便,第一阈值为2个小时;应用环境中的地点为家里时,由于充电方便,第一阈值为20分钟等。第一阈值还可根据应用运行数据进行确定,例如:应用运行数据为视频数据,且该视频数据的播放时长为45分钟,则第一阈值确定为45分钟;应用运行数据为游戏数据,且该游戏数据的平均时长为15分钟,则第一阈值确定为15分钟等。The first threshold is not limited, and can be a specified duration or determined according to the application environment. For example, when the location in the application environment is a tourist location, the first threshold is 2 hours due to the inconvenience of charging; the application environment When the location is at home, the first threshold is 20 minutes, etc. due to the convenience of charging. The first threshold value may also be determined according to application running data. For example: if the application running data is video data and the video data is played for 45 minutes, the first threshold value is determined to be 45 minutes; the application running data is game data, and the The average duration of the game data is 15 minutes, and the first threshold is determined to be 15 minutes or the like.
在一个可能的示例中,所述方法还包括:根据所述多个预估运行时长确定所述第一阈值。In a possible example, the method further includes: determining the first threshold according to the plurality of estimated running durations.
其中,多个预估运行时长是各个应用运行数据对应的预估运行时长。Among them, the multiple estimated runtimes are the estimated runtimes corresponding to the respective application runtime data.
可以理解,在本实施例中,先确定各个应用运行数据对应的预估运行时长,再根据预估运行时长确定第一阈值,如此,灵活的设置第一阈值,提高了确定第一阈值的准确性。It can be understood that in this embodiment, the estimated running time corresponding to each application running data is determined first, and then the first threshold is determined according to the estimated running time. In this way, the first threshold is flexibly set, which improves the accuracy of determining the first threshold. Sex.
在一个可能的示例中,所述根据所述多个预估运行时长确定所述第一阈值包括:确定所述多个应用运行数据中每一应用运行数据对应的优先级得到多个优先级;根据所述多个优先级确定所述多个预估运行时长的分配比值得到多个分配比值;根据所述多个应用运行数据中每一应用运行数据对应的分配比值和预估运行时长确定所述第一阈值。In a possible example, determining the first threshold according to the multiple estimated running durations includes: determining a priority corresponding to each application running data in the multiple application running data to obtain multiple priorities; Determine the allocation ratios of the multiple estimated runtimes according to the multiple priorities to obtain multiple allocation ratios; determine the allocation ratios based on the allocation ratios and estimated runtimes corresponding to each application runtime data in the multiple application runtime data The first threshold is described.
本申请对于确定各个应用运行数据的优先级的方法不做限定,在一个可能的示例中,以目标应用运行数据为例,所述确定所述多个应用运行数据中每一应用运行数据对应的优先级得到多个优先级包括:确定与所述目标应用运行数据的数据类型对应的第一参考值,确定与所述目标应用运行数据的预估运行时长对应的第二参考值;将所述第一参考值和与所述目标应用运行数据对应的数据类型的预设权值,以及所述第二参考值和与所述目标应用运行数据对应的预估运行时长的预设权值进行加权计算得到目标参考值;确定所述目标参考值对应的优先级为所述目标应用运行数据对应的优先级。This application does not limit the method for determining the priority of each application running data. In a possible example, taking the target application running data as an example, the determining of each application running data corresponding to the plurality of application running data corresponds to Obtaining multiple priorities includes: determining a first reference value corresponding to a data type of the target application running data, determining a second reference value corresponding to an estimated running time of the target application running data; Weighting a first reference value and a preset weight value of a data type corresponding to the target application execution data, and weighting the second reference value and a preset weight value of an estimated runtime corresponding to the target application execution data The target reference value is calculated and determined; the priority corresponding to the target reference value is determined to be the priority corresponding to the target application running data.
其中,与所述目标应用运行数据对应的数据类型的预设权值,和与所述目标应用运行数据对应的预估运行时长的预设权值是预先设置的,在此不做限定。The preset weights of the data types corresponding to the target application execution data and the preset weights of the estimated runtimes corresponding to the target application execution data are preset and are not limited herein.
第一参考值和第二参考值分别为数据类型和预估运行时长对应的参考值。可以理解,根据数据类型和预估运行时长对应的参考值和预设权值确定目标参考值,再由目标参考值对应的优先权确定目标应用运行数据对应的优先权,如此,提高了确定优先权的准确性。The first reference value and the second reference value are reference values corresponding to the data type and the estimated running time, respectively. It can be understood that the target reference value is determined according to the data type and the reference value and the preset weight corresponding to the estimated running time, and then the priority corresponding to the target reference value is used to determine the priority corresponding to the target application operation data. In this way, the determination priority is improved Right accuracy.
可以理解,先确定所述多个应用运行数据中每一应用运行数据对应的优先级得到多个优先级,再根据所述多个优先级确定所述多个预估运行时长的分配比值得到多个分配比值,最后根据所述多个应用运行数据中每一应用运行数据对应的分配比值和预估运行时长确定所述第一阈值,如此,基于各个应用运行数据的优先级和预估运行时长确定第一阈值,进一步提高了确定第一阈值的准确性。It can be understood that firstly determining the priority corresponding to each application running data in the multiple application running data to obtain multiple priorities, and then determining the allocation ratio of the multiple estimated runtimes according to the multiple priorities to obtain more Allocation ratios, and finally determining the first threshold value based on the allocation ratios and estimated runtimes corresponding to each of the application runtime data in the plurality of application runtime data, so that based on the priority and estimated runtime of each application runtime data The determination of the first threshold further improves the accuracy of determining the first threshold.
本申请对于如何通过侧屏区域提示剩余使用时长不做限定,在一个可能的示例中,所述控制所述侧屏区域针对所述剩余使用时长进行充电提示包括:确定所述剩余使用时长对应的显示风格;控制所述侧屏区域按照所述显示风格对所述剩余使用时长进行充电提示。This application does not limit how to indicate the remaining usage time through the side screen area. In a possible example, the controlling the side screen area to perform charging prompts for the remaining usage time includes: determining that the remaining usage time corresponds to Display style; controlling the side screen area to prompt for the remaining usage time according to the display style.
其中,所述显示风格至少包括以下一项:显示时长、显示位置、显示颜色、闪烁频率、透明度、亮度、宽度、渐变效果、环绕速度。The display style includes at least one of the following: display duration, display position, display color, flicker frequency, transparency, brightness, width, gradient effect, and surround speed.
在本申请实施例中,可预先定义不同剩余使用时长对应的显示风格,例如:剩余使用时长为20分钟,颜色为红色,显示位置为整个侧屏区域,环绕速度为1秒一圈;剩余使用时长为1小时,颜色为黄色,显示位置为侧屏区域的两侧;剩余使用时长大于2小时,颜色为绿色,采用渐变效果,显示位置为侧屏区域的上侧。In the embodiment of the present application, a display style corresponding to different remaining usage time may be defined in advance, for example: the remaining usage time is 20 minutes, the color is red, the display position is the entire side screen area, and the surrounding speed is one second per revolution; the remaining usage The duration is 1 hour, the color is yellow, and the display position is on both sides of the side screen area; the remaining use time is longer than 2 hours, the color is green, the gradient effect is used, and the display position is on the upper side of the side screen area.
可以理解,确定剩余使用时长对应的显示风格,并控制侧屏区域按照所述显示风格对剩余使用时长进行充电提示,如此,提高了显示的灵活性,且用户在看到侧屏显示时,明确剩余使用时长,提高用户体验。It can be understood that the display style corresponding to the remaining usage time is determined, and the side screen area is controlled to remind the remaining usage time according to the display style, so that the flexibility of the display is improved, and when the user sees the side screen display, it is clear The remaining usage time improves the user experience.
在一个可能的示例中,确定所述显示位置为所述侧屏区域,即采用全部的侧屏区域进行充电提示,可提高提示效率,便于处于各个方向的用户均接收到充电提示。In a possible example, determining the display position as the side screen area, that is, using all the side screen areas for charging prompts can improve the prompting efficiency and facilitate users in all directions to receive the charging prompts.
在如图2所示的充电提示方法中,获取电子设备的剩余电量和运行数据,根据所述运行数据和所述剩余电量确定剩余使用时长,若所述剩余使用时长小于第一阈值,控制所述侧屏区域针对所述剩余使用时长进行充电提示。如此,根据剩余使用时长进行充电提示,提高了充电提示的准确性和灵活性。In the charging prompt method shown in FIG. 2, the remaining power and operating data of the electronic device are obtained, and the remaining usage time is determined according to the operating data and the remaining power. If the remaining usage time is less than a first threshold, the control unit controls The side screen area provides a charging prompt for the remaining usage time. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt.
请参照图3,本申请实施例提供另一种充电提示方法的流程示意图,该方法应用于如图1A和图1B所示的电子设备,即电子设备包括曲面显示屏,且该曲面显示屏包括正屏区域和侧屏区域。本申请对于方法的应用场景不做限定,可包括电子设备的使用过程中,也可包括电子设备处于熄屏或锁屏状态。具体的,如图3所示,一种充电提示方法,包括:Referring to FIG. 3, an embodiment of the present application provides a schematic flowchart of another charging prompt method. The method is applied to the electronic device shown in FIG. 1A and FIG. 1B, that is, the electronic device includes a curved display screen, and the curved display screen includes Front screen area and side screen area. This application does not limit the application scenario of the method, and may include the use of the electronic device, and may also include that the electronic device is in a screen-off or lock-screen state. Specifically, as shown in FIG. 3, a charging prompt method includes:
S301:获取电子设备的剩余电量和运行数据,所述运行数据包括系统运行数据和多个应用运行数据。S301: Obtain the remaining power and operating data of the electronic device. The operating data includes system operating data and multiple application operating data.
S302:根据所述运行数据和所述剩余电量确定剩余使用时长。S302: Determine the remaining usage time according to the operation data and the remaining power.
S303:若所述剩余使用时长小于第一阈值,控制侧屏区域针对所述剩余使用时长进行充电提示。S303: If the remaining usage time is less than the first threshold, control the side screen area to prompt for charging for the remaining usage time.
其中,步骤S301-S303可参照步骤S201-S203的描述,在此不再赘述。For steps S301-S303, reference may be made to the description of steps S201-S203, and details are not described herein again.
S304:若所述多个应用运行数据中包含指定运行数据,在预设时长内检测充电操作。S304: If the plurality of application running data includes specified running data, detect a charging operation within a preset time period.
在本申请实施例中,指定运行数据的单位耗电量大于第二阈值,例如:游戏、视频、音频、蓝牙等。对于确定指定运行数据的单位耗电量可参照应用运行数据确定第一单位耗电量的方法,在此不再赘述。In the embodiment of the present application, the unit power consumption of the specified operating data is greater than a second threshold, for example, games, video, audio, Bluetooth, and the like. For determining the unit power consumption of the specified operating data, a method for determining the first unit power consumption by referring to the application running data may be omitted here.
本申请对于充电操作不做限定,可使用充电数据线进行充电,也可采用无线充电方式等。This application does not limit the charging operation, and a charging data cable may be used for charging, and a wireless charging method may also be adopted.
本申请对于预设时长也不做限定,可以是指定时长,也可以根据应用环境进行确定,例如:应用环境中的地点为旅游地点时,由于充电可能不方便,预设时长为2个小时;应用环境中的地点为家里时,由于充电方便,预设时长为20分钟等。This application does not limit the preset time length either, it may be a specified time length, or it may be determined according to the application environment. For example, when the location in the application environment is a tourist location, the charging time may be inconvenient, and the preset time length is 2 hours; When the location in the application environment is at home, the preset duration is 20 minutes, etc. due to convenient charging.
在一个可能的示例中,所述方法还包括:确定所述电子设备的当前位置;确定所述当前位置对应的充电概率;根据所述充电概率确定所述预设时长。In a possible example, the method further includes: determining a current position of the electronic device; determining a charging probability corresponding to the current position; and determining the preset duration according to the charging probability.
本申请对于确定电子设备的当前位置的方法不做限定,可通过GPS芯片获取电子设备的经维度信息,从而确定该电子设备的位置;也可通过网络定位服务(Network Location Provider,NLP)获取经纬度信息或者地址信息,其中,网络包括移动数据网络、无线保真(Wireless-Fidelity,Wi-Fi)网络或蓝牙网络等,即当电子设备接入上述网络至少一种网络时,可获取对应网络的媒体访问控制(Media Access Control或者Medium Access Control,MAC)地址信息和网络信号强度,并在联网状态下计算与上述MAC地址信息对应的经纬度信息或者地址信息;还可通过基站设置的多个接收器接收设备发送的信号的时间计算设备与基站的距离,根据接收器接收到信号的方向获取设备相对于基站的方向,从而获取设备的经纬度信息或者地址信息。This application does not limit the method for determining the current location of an electronic device. The longitude information of an electronic device can be obtained through a GPS chip, thereby determining the position of the electronic device. The latitude and longitude can also be obtained through a Network Location Service (NLP) Information or address information, where the network includes a mobile data network, a wireless-fidelity (Wi-Fi) network, or a Bluetooth network, that is, when an electronic device accesses at least one of the above networks, the corresponding network can be obtained. Media access control (Media Access Control or Medium Access Control, MAC) address information and network signal strength, and calculate the latitude and longitude information or address information corresponding to the above MAC address information in a networked state; multiple receivers set by the base station can also be used The time of the signal sent by the receiving device calculates the distance between the device and the base station, and obtains the direction of the device relative to the base station according to the direction of the signal received by the receiver, thereby obtaining the latitude and longitude information or address information of the device.
本申请对于确定当前位置的充电概率的方法不做限定,在一个可能的示例中,所述确定所述当前位置对应的充电概率包括:若所述当前位置为指定位置,获取所述指定位置对应的充电记录;根据所述充电记录确定所述充电概率;若所述当前位置不是所述指定位置,确定所述电子设备对应的移动速度和所述当前位置与所述指定位置之间的距离;根据所述距离和所述移动速度确定所述充电概率。This application does not limit the method for determining the charging probability of the current position. In one possible example, determining the charging probability corresponding to the current position includes: if the current position is a specified position, obtaining the corresponding position. Determining the charging probability according to the charging record; if the current position is not the specified position, determining a movement speed corresponding to the electronic device and a distance between the current position and the specified position; The charging probability is determined according to the distance and the moving speed.
其中,指定位置为该电子设备具有充电记录的地址或者是充电记录相关联的地址,例如:公司、家里、某一地区拥有多个充电宝,且该充电宝是用户已注册的等。Wherein, the designated location is an address where the electronic device has a charging record or an address associated with the charging record, for example, a company, a home, a certain area has multiple charging treasures, and the charging treasure is registered by the user.
在本申请中对于确定电子设备的移动速度的方法不做限定,可通过单位时间内的位置之间的距离进行确定,也可通过电子设备中的三轴加速度传感器采集的多个三轴位置进行确定等。In this application, the method for determining the moving speed of the electronic device is not limited, and it can be determined by the distance between the positions in a unit time, or by using multiple three-axis positions collected by the three-axis acceleration sensor in the electronic device. OK, etc.
可以理解,若当前位置为指定位置,则获取该指定位置对应的充电记录,根据所述充电记录确定充电概率,即确定指定位置的充电概率,提高了确定充 电概率的准确性。若当前位置不是该指定位置,则确定当前位置和该指定位置之间的距离以及电子设备的移动速度,再根据所述距离和所述移动速度确定充电概率,即确定了当前位置到达指定位置的时间,再由该时间确定充电概率。如此,无论电子设备是否处于指定位置,均可确定对应的充电概率,便于根据该充电概率确定预设时长。It can be understood that if the current position is a specified position, a charging record corresponding to the specified position is obtained, and the charging probability is determined according to the charging record, that is, the charging probability of the specified position is determined, and the accuracy of determining the charging probability is improved. If the current position is not the specified position, determine the distance between the current position and the specified position and the moving speed of the electronic device, and then determine the charging probability according to the distance and the moving speed, that is, determine whether the current position reaches the specified position. Time, and then determine the charging probability from this time. In this way, the corresponding charging probability can be determined regardless of whether the electronic device is in a designated position, which is convenient for determining the preset duration according to the charging probability.
在本申请实施例中,可预先设置不同充电概率对应的预设时长,确定所述电子设备的当前位置,再确定所述当前位置对应的充电概率,从而根据所述充电概率确定所述预设时长,提高了确定预设时长的准确性和灵活性,便于根据预设时长检测充电操作的准确性。In the embodiment of the present application, preset time lengths corresponding to different charging probabilities may be set in advance, a current position of the electronic device is determined, and then a charging probability corresponding to the current position is determined, so as to determine the preset according to the charging probability. The duration improves the accuracy and flexibility of determining the preset duration, and it is convenient to detect the accuracy of the charging operation according to the preset duration.
S305:若在所述预设时长内未检测到所述充电操作,清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式。S305: If the charging operation is not detected within the preset time period, at least one application to be cleaned corresponding to the running data is cleared or a power saving mode corresponding to the running data is entered.
其中,待清理应用为暂时可关闭的应用,例如:游戏应用中,若连接无线网络,确定待清理应用为有线网络连接应用和蓝牙连接应用,后台应用中的购物应用、视频应用均为待清理应用。Among them, the application to be cleaned is a temporarily shuttable application. For example, in a game application, if a wireless network is connected, it is determined that the application to be cleaned is a wired network connection application and a Bluetooth connection application. The shopping application and video application in the background application are to be cleaned application.
本申请对于确定待清理应用的方法不做限定,获取所述多个应用运行数据中每一应用运行数据的优先级得到多个优先级,并获取所述系统运行数据对应的多个系统耗电对象;再获取所述多个系统耗电对象中每一系统耗电对象与所述多个应用运行数据中的目标应用运行数据之间的关联值得到多个关联值;根据所述多个关联值和所述多个优先级确定所述至少一个待清理应用。The application does not limit the method for determining the application to be cleaned, obtain the priority of each application running data in the multiple application running data, obtain multiple priorities, and obtain multiple system power consumption corresponding to the system operating data. An object; further obtaining correlation values between each of the plurality of system power consumption objects and the target application operation data in the plurality of application operation data to obtain a plurality of correlation values; according to the plurality of associations The value and the plurality of priorities determine the at least one application to be cleaned.
其中,对于确定优先级的方法可参照图2实施例的描述,在此不再赘述。For the method for determining the priority, refer to the description of the embodiment in FIG. 2, and details are not described herein again.
目标应用运行数据为优先级最大的应用运行数据,对于获取系统耗电对象和目标应用运行数据之间的关联值的方法不做限定,可根据关闭该系统耗电对象与目标应用运行数据之间的第一关联值,以及该系统耗电对象关闭与电子设备之间的第二关联值进行确定。The target application running data is the application running data with the highest priority. There is no limitation on the method for obtaining the correlation value between the system power consumption object and the target application running data. You can shut down the system between the power consumption object and the target application running data. To determine the first correlation value and the second correlation value between the power consumption object of the system being turned off and the electronic device.
可以理解,确定各个应用运行数据的优先级,以及各个系统耗电对象和目标应用运行数据之间的关联值,再根据多个关联值和多个优先级确定至少一个待清理应用,如此,在清理待清理应用之后,对应用运行数据的影响较小,且避免引起系统故障。It can be understood that the priority of each application operation data is determined, and the correlation value between each system power consumption object and the target application operation data, and then at least one application to be cleaned is determined according to multiple correlation values and multiple priorities. After the application to be cleaned is cleaned, the impact on application running data is small and system failure is avoided.
在本申请实施例中,运行数据对应的省电模式用于降低功耗,例如:降低显示屏亮度、降低声音大小或在接收到麦克风采集指令时才启用麦克风采集语音信息、限制视频应用的下载网速等。In the embodiment of the present application, the power saving mode corresponding to the running data is used to reduce power consumption, for example, reducing the brightness of the display screen, reducing the sound size, or enabling the microphone to collect voice information only when receiving a microphone collection instruction, and restricting the download of video applications Internet speed.
在如图3所示的充电提示方法中,获取电子设备的剩余电量和运行数据,根据所述运行数据和所述剩余电量确定剩余使用时长,若所述剩余使用时长小于第一阈值,控制所述侧屏区域针对所述剩余使用时长进行充电提示。如此,根据剩余使用时长进行充电提示,提高了充电提示的准确性和灵活性。若应用运行数据为指定运行数据,由于指定运行数据的单位耗电量大于第二阈值,则在剩余使用时长小于第一阈值的情况下,需尽快充电。如此,在预设时长内检测充电操作,若在所述预设时长内未检测到所述充电操作,清理所述运行数据 对应的至少一个待清理应用或进入所述运行数据对应的省电模式。也就是说,在应用运行数据为指定运行数据,且在指定时长内未检测到充电操作,则清理待清理应用或进入省电模式,从而节省电池功耗,提高续航时间。In the charging prompt method shown in FIG. 3, the remaining power and operating data of the electronic device are obtained, and the remaining use time is determined according to the operating data and the remaining power. If the remaining use time is less than a first threshold, the control unit controls The side screen area provides a charging prompt for the remaining usage time. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt. If the application running data is designated running data, since the unit power consumption of the designated running data is greater than the second threshold, the battery needs to be charged as soon as the remaining usage time is shorter than the first threshold. In this way, the charging operation is detected within a preset time period, and if the charging operation is not detected within the preset time period, at least one application to be cleaned corresponding to the running data is cleared or a power saving mode corresponding to the running data is entered. . In other words, if the application running data is specified running data and no charging operation is detected within a specified period of time, the application to be cleaned or enters a power saving mode, thereby saving battery power consumption and improving battery life.
在一个可能的示例中,所述方法还包括:若所述预设时长大于第三阈值,执行所述清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式的步骤。若所述预设时长小于或等于所述第三阈值,执行所述在预设时长内检测充电操作的步骤。In a possible example, the method further includes: if the preset duration is greater than a third threshold, executing at least one application to be cleaned corresponding to the running data or entering a power saving mode corresponding to the running data A step of. If the preset duration is less than or equal to the third threshold, perform the step of detecting a charging operation within the preset duration.
其中,第三阈值不做限定,所述第三阈值小于所述剩余使用时长。The third threshold is not limited, and the third threshold is less than the remaining usage time.
也就是说,在预设时长大于第三阈值时,不论是否检测到充电操作,均清理所述至少一个待清理应用。而在预设时长小于或等于第三阈值时,需在预设时长内检测充电操作,若未检测到充电操作,清理所述至少一个待清理应用,从而提高电子设备的续航能力,若检测到充电操作,则不进行处理。That is, when the preset duration is greater than the third threshold, the at least one application to be cleaned is cleared regardless of whether a charging operation is detected. When the preset duration is less than or equal to the third threshold, the charging operation needs to be detected within the preset duration. If the charging operation is not detected, the at least one application to be cleaned is cleaned up, thereby improving the battery life of the electronic device. During charging operation, no processing is performed.
在一个可能的示例中,若所述电子设备处于充电状态,确定所述电子设备的充电速度和剩余电量;控制所述侧屏区域根据所述充电速度和所述剩余电量进行充电显示。In a possible example, if the electronic device is in a charging state, determine a charging speed and remaining power of the electronic device; and control the side screen area to perform charging display according to the charging speed and the remaining power.
在本申请中,可预先设置不同剩余电量或不同充电速度对应的显示颜色、闪烁频率、环绕速度或显示时长等显示风格。例如:快充时为1秒一圈,慢充时为1秒半圈。In this application, display styles such as display color, flicker frequency, surround speed, or display duration corresponding to different remaining power or different charging speeds can be set in advance. For example: 1 lap per second during fast charge and 1 1/2 sec during slow charge.
可以理解,在所述电子设备处于充电状态时,确定所述电子设备的充电速度和剩余电量,再根据所述充电速度和所述剩余电量确定所述侧屏区域的显示风格。如此,提高了充电显示的灵活性,且用户在看到侧屏显示时,明确剩余电量和充电速度,提高用户体验。若其显示位置为所述侧屏区域,即采用全部的侧屏区域进行充电提示,可提高提示效率,便于处于各个方向的用户均接收到充电提示。It can be understood that when the electronic device is in a charging state, a charging speed and a remaining power of the electronic device are determined, and then a display style of the side screen area is determined according to the charging speed and the remaining power. In this way, the flexibility of the charging display is improved, and when the user sees the side screen display, the remaining power and charging speed are clarified, and the user experience is improved. If the display position is the side screen area, that is, the entire side screen area is used for the charging prompt, which can improve the prompting efficiency and facilitate users in all directions to receive the charging prompt.
与图2和图3所示的实施例一致,请参照图4,图4是本申请实施例提供的一种充电提示装置的结构示意图,该充电提示装置应用于电子设备,所述电子设备包括曲面显示屏,所述曲面显示屏包括正屏区域和侧屏区域。如图4所示,上述装置400包括:Consistent with the embodiments shown in FIGS. 2 and 3, please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a charging prompting device provided in an embodiment of the present application. The charging prompting device is applied to an electronic device, and the electronic device includes A curved display screen including a front screen area and a side screen area. As shown in FIG. 4, the above apparatus 400 includes:
获取单元401用于获取所述电子设备的剩余电量和运行数据,所述运行数据包括系统运行数据和多个应用运行数据;The obtaining unit 401 is configured to obtain the remaining power of the electronic device and operation data, where the operation data includes system operation data and multiple application operation data;
确定单元402用于根据所述运行数据和所述剩余电量确定剩余使用时长;The determining unit 402 is configured to determine a remaining usage time according to the operation data and the remaining power;
显示单元403用于若所述剩余使用时长小于第一阈值,控制所述测屏区域按照所述剩余使用时长进行充电提示。The display unit 403 is configured to control the screen measurement area to perform a charging prompt according to the remaining usage time if the remaining usage time is less than a first threshold.
可以理解,获取电子设备的剩余电量和运行数据,根据所述运行数据和所述剩余电量确定剩余使用时长,若所述剩余使用时长小于第一阈值,控制所述侧屏区域针对所述剩余使用时长进行充电提示。如此,根据剩余使用时长进行充电提示,提高了充电提示的准确性和灵活性。It can be understood that the remaining power and operating data of the electronic device are obtained, and the remaining use time is determined according to the operating data and the remaining power. If the remaining use time is less than a first threshold, controlling the side screen area to target the remaining use Duration for charging tips. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt.
在一个可能的示例中,在所述根据所述运行数据和所述剩余电量确定剩余使用时长方面,所述确定单元402具体用于确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量;根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量;确定所述系统运行数据对应的系统单位耗电量;确定所述多个第一单位耗电量中每一第一单位耗电量和所述系统单位耗电量之间的和值,得到多个第二单位耗电量;根据所述剩余电量和所述多个第二单位耗电量确定所述剩余使用时长。In a possible example, in determining the remaining usage time according to the operating data and the remaining power, the determining unit 402 is specifically configured to determine a corresponding value of each application running data in the multiple application running data. Estimated running time and power consumption per preset unit to obtain multiple estimated running time and power consumption per preset unit; determine based on the estimated running time and power consumption per preset unit A plurality of first unit power consumptions; determining a system unit power consumption corresponding to the system operation data; determining each of the plurality of first unit power consumptions and the system unit power consumption A sum value between the quantities is used to obtain a plurality of second unit power consumptions; and the remaining use time is determined according to the remaining power and the plurality of second unit power consumptions.
在一个可能的示例中,在所述根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量方面,所述确定单元402具体用于确定所述多个应用运行数据中与所述多个预估运行时长中每一预估运行时长对应的参考应用运行数据集,得到多个参考应用运行数据集;将所述多个参考应用运行数据集中每一参考应用运行数据集对应的预设单位耗电量之间的和值作为该参考应用运行数据对应的单位耗电量,得到多个第一单位耗电量。In a possible example, the determining unit 402 is specifically configured to determine a plurality of first unit power consumptions according to the plurality of estimated running durations and the plurality of preset unit power consumptions. A reference application operation data set corresponding to each of the plurality of estimated operation time periods in the plurality of application operation data to obtain a plurality of reference application operation data sets; and the plurality of reference application operation data The sum of the preset unit power consumption corresponding to each reference application running data set is collected as the unit power consumption corresponding to the reference application running data to obtain a plurality of first unit power consumptions.
在一个可能的示例中,所述多个应用运行数据包括目标应用运行数据,在所述确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量方面,所述确定单元402具体用于确定所述目标应用运行数据对应的数据类型和多个耗电对象;确定所述电子设备的当前时间;根据所述数据类型和所述当前时间确定所述目标应用运行数据的预估运行时长;确定所述多个耗电对象中每一耗电对象对应的运行参数,得到多个运行参数;确定所述多个运行参数中每一运行参数对应的单位耗电量,得到多个单位耗电量;确定所述多个单位耗电量之和为所述目标运行数据对应的预设单位耗电量。In a possible example, the plurality of application running data includes target application running data, and in the determining the estimated plurality of application running data, each application running data corresponds to an estimated running time and a preset unit power consumption. In terms of obtaining multiple estimated runtimes and multiple preset unit power consumptions, the determining unit 402 is specifically configured to determine a data type corresponding to the target application running data and multiple power consumption objects; determine the electronic device Determine the current estimated running time of the target application running data according to the data type and the current time; determine the operating parameters corresponding to each of the multiple power-consuming objects to obtain multiple running times Parameters; determining a unit power consumption corresponding to each of the plurality of operating parameters to obtain a plurality of unit power consumptions; determining a sum of the plurality of unit power consumptions as a preset corresponding to the target operation data Unit power consumption.
在一个可能的示例中,所述多个应用运行数据包括目标应用运行数据,在所述确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量方面,所述确定单元402具体用于确定所述目标应用运行数据对应的数据类型和多个耗电对象;确定所述电子设备的当前时间;根据所述数据类型和所述当前时间确定所述目标应用运行数据的预估运行时长;确定所述多个耗电对象中每一耗电对象对应的运行参数,得到多个运行参数;确定所述多个运行参数中每一运行参数对应的单位耗电量,得到多个单位耗电量;确定所述多个单位耗电量之和为所述目标运行数据对应的预设单位耗电量。In a possible example, the plurality of application running data includes target application running data, and in the determining the estimated plurality of application running data, each application running data corresponds to an estimated running time and a preset unit power consumption. In terms of obtaining multiple estimated runtimes and multiple preset unit power consumptions, the determining unit 402 is specifically configured to determine a data type corresponding to the target application running data and multiple power consumption objects; determine the electronic device Determine the current estimated running time of the target application running data according to the data type and the current time; determine the operating parameters corresponding to each of the multiple power-consuming objects to obtain multiple running times Parameters; determining a unit power consumption corresponding to each of the plurality of operating parameters to obtain a plurality of unit power consumptions; determining a sum of the plurality of unit power consumptions as a preset corresponding to the target operation data Unit power consumption.
在一个可能的示例中,所述确定单元还用于根据所述多个预估运行时长确定所述第一阈值。In a possible example, the determining unit is further configured to determine the first threshold according to the multiple estimated running durations.
在一个可能的示例中,在所述控制所述侧屏区域针对所述剩余使用时长进行充电提示之后,所述装置400还包括:In a possible example, after the controlling the side screen area to perform a charging prompt for the remaining usage time, the device 400 further includes:
检测单元404用于若所述多个应用运行数据中包含指定运行数据,所述指定运行数据的单位耗电量大于第二阈值,在预设时长内检测充电操作;The detecting unit 404 is configured to detect a charging operation within a preset time period if the plurality of application running data includes designated running data, and the unit power consumption of the designated running data is greater than a second threshold;
处理单元405用于若所述检测单元404在所述预设时长内未检测到所述充电操作,清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式。The processing unit 405 is configured to clean up at least one application to be cleaned corresponding to the running data or enter a power saving mode corresponding to the running data if the detecting unit 404 does not detect the charging operation within the preset time period.
在一个可能的示例中,所述确定单元402还用于确定所述电子设备的当前位置;确定所述当前位置对应的充电概率;根据所述充电概率确定所述预设时长;若所述预设时长大于第三阈值,调用所述处理单元405执行所述清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式的步骤,所述第三阈值小于所述剩余使用时长;若所述预设时长小于或等于所述第三阈值,调用所述检测单元404执行所述在预设时长内检测充电操作的步骤。In a possible example, the determining unit 402 is further configured to determine a current position of the electronic device; determine a charging probability corresponding to the current position; determine the preset duration according to the charging probability; If the duration is greater than a third threshold, the processing unit 405 is called to execute the step of clearing at least one application to be cleaned corresponding to the running data or entering a power saving mode corresponding to the running data, and the third threshold is smaller than the The remaining use time; if the preset time is less than or equal to the third threshold, calling the detection unit 404 to perform the step of detecting the charging operation within the preset time.
在一个可能的示例中,在所述确定所述当前位置对应的充电概率方面,所述获取单元401还用于若所述当前位置为指定位置,获取所述指定位置对应的充电记录;所述确定单元402具体用于根据所述充电记录确定所述充电概率;若所述当前位置不是所述指定位置,确定所述电子设备对应的移动速度和所述当前位置与所述指定位置之间的距离;根据所述距离和所述移动速度确定所述充电概率。In a possible example, in terms of determining a charging probability corresponding to the current position, the obtaining unit 401 is further configured to obtain a charging record corresponding to the specified position if the current position is a specified position; the The determining unit 402 is specifically configured to determine the charging probability according to the charging record; if the current position is not the specified position, determine a movement speed corresponding to the electronic device and a distance between the current position and the specified position. Distance; determining the charging probability according to the distance and the moving speed.
在一个可能的示例中,在所述控制所述侧屏区域针对所述剩余使用时长进行充电提示方面,所述确定单元402还用于确定所述剩余使用时长对应的显示风格,所述显示风格至少包括以下一项:显示时长、显示位置、显示颜色、闪烁频率、透明度、亮度、宽度、渐变效果、环绕速度;所述显示单元403具体用于控制所述侧屏区域按照所述显示风格对所述剩余使用时长进行充电提示。In a possible example, in terms of controlling the side screen area to provide a charging prompt for the remaining usage time, the determining unit 402 is further configured to determine a display style corresponding to the remaining usage time, and the display style It includes at least one of the following: display duration, display position, display color, flicker frequency, transparency, brightness, width, gradation effect, and surround speed; the display unit 403 is specifically configured to control the side screen area to adjust The remaining use time is prompted for charging.
与图2和图3所示的实施例一致,请参照图5,图5是本申请实施例提供的另一种电子设备的结构示意图,所述电子设备包括曲面显示屏,所述曲面显示屏包括正屏区域和侧屏区域。如图5所示,该电子设备500包括处理器510、存储器520、通信接口530以及一个或多个程序540,其中,上述一个或多个程序540被存储在上述存储器520中,并且被配置由上述处理器510执行,上述程序540包括用于执行以下步骤的指令:Consistent with the embodiments shown in FIG. 2 and FIG. 3, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application. The electronic device includes a curved display screen, and the curved display screen. Including the front screen area and the side screen area. As shown in FIG. 5, the electronic device 500 includes a processor 510, a memory 520, a communication interface 530, and one or more programs 540. The one or more programs 540 are stored in the memory 520, and are configured by The processor 510 executes, and the program 540 includes instructions for performing the following steps:
获取所述电子设备500的剩余电量和运行数据,所述运行数据包括系统运行数据和多个应用运行数据;Acquiring the remaining power and operating data of the electronic device 500, where the operating data includes system operating data and multiple application operating data;
根据所述运行数据和所述剩余电量确定剩余使用时长;Determining the remaining usage time according to the operating data and the remaining power;
若所述剩余使用时长小于第一阈值,控制所述侧屏区域针对所述剩余使用时长进行充电提示。If the remaining use time is less than the first threshold, controlling the side screen area to perform a charging prompt for the remaining use time.
可以理解,获取电子设备500的剩余电量和运行数据,根据所述运行数据和所述剩余电量确定剩余使用时长,若所述剩余使用时长小于第一阈值,控制所述侧屏区域针对所述剩余使用时长进行充电提示。如此,根据剩余使用时长进行充电提示,提高了充电提示的准确性和灵活性。It can be understood that the remaining power and operating data of the electronic device 500 are obtained, and the remaining usage time is determined according to the operating data and the remaining power. If the remaining usage time is less than a first threshold, controlling the side screen area to target the remaining power Use the time for charging tips. In this way, the charging prompt is performed according to the remaining usage time, which improves the accuracy and flexibility of the charging prompt.
在一个可能的示例中,在所述根据所述运行数据和所述剩余电量确定剩余使用时长方面,所述程序540中的指令具体用于执行以下操作:In a possible example, in terms of determining a remaining usage time based on the operating data and the remaining power, the instructions in the program 540 are specifically used to perform the following operations:
确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量;Determining an estimated running time and a preset unit power consumption corresponding to each of the plurality of application running data to obtain multiple estimated running time and multiple preset unit power consumptions;
根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量;Determining a plurality of first unit power consumptions according to the plurality of estimated operating durations and the plurality of preset unit power consumptions;
确定所述系统运行数据对应的系统单位耗电量;Determining a system unit power consumption corresponding to the system operation data;
确定所述多个第一单位耗电量中每一第一单位耗电量和所述系统单位耗电量之间的和值,得到多个第二单位耗电量;Determining a sum between each first unit power consumption of the plurality of first unit power consumptions and the system unit power consumption to obtain a plurality of second unit power consumptions;
根据所述剩余电量和所述多个第二单位耗电量确定所述剩余使用时长。Determining the remaining use time according to the remaining power and the plurality of second unit power consumptions.
在一个可能的示例中,在所述根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量方面,所述程序540中的指令具体用于执行以下操作:In a possible example, in terms of determining a plurality of first unit power consumptions according to the plurality of estimated running durations and the plurality of preset unit power consumptions, the instructions in the program 540 are specifically used To do the following:
确定所述多个应用运行数据中与所述多个预估运行时长中每一预估运行时长对应的参考应用运行数据集,得到多个参考应用运行数据集;Determining a reference application execution data set corresponding to each of the plurality of estimated operation durations in the plurality of application operation data to obtain a plurality of reference application execution data sets;
将所述多个参考应用运行数据集中每一参考应用运行数据集对应的预设单位耗电量之间的和值作为该参考应用运行数据对应的单位耗电量,得到多个第一单位耗电量。Using the sum of the preset unit power consumption corresponding to each reference application running data set in the plurality of reference application running data sets as the unit power consumption corresponding to the reference application running data to obtain a plurality of first unit power consumptions Battery.
在一个可能的示例中,所述多个应用运行数据包括目标应用运行数据,在所述确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量方面,所述程序540中的指令具体用于执行以下操作:In a possible example, the plurality of application running data includes target application running data, and in the determining the estimated plurality of application running data, each application running data corresponds to an estimated running time and a preset unit power consumption. In order to obtain multiple estimated runtimes and multiple preset unit power consumptions, the instructions in the program 540 are specifically used to perform the following operations:
确定所述目标应用运行数据对应的数据类型和多个耗电对象;Determining a data type and a plurality of power consumption objects corresponding to the target application running data;
确定所述电子设备的当前时间;Determining the current time of the electronic device;
根据所述数据类型和所述当前时间确定所述目标应用运行数据的预估运行时长;Determining an estimated running time of the target application running data according to the data type and the current time;
确定所述多个耗电对象中每一耗电对象对应的运行参数,得到多个运行参数;Determining an operating parameter corresponding to each of the plurality of power-consuming objects to obtain a plurality of operating parameters;
确定所述多个运行参数中每一运行参数对应的单位耗电量,得到多个单位耗电量;Determining a unit power consumption corresponding to each of the plurality of operation parameters to obtain a plurality of unit power consumptions;
确定所述多个单位耗电量之和为所述目标运行数据对应的预设单位耗电量。It is determined that the sum of the plurality of unit power consumptions is a preset unit power consumption corresponding to the target operation data.
在一个可能的示例中,所述程序540中的指令还用于执行以下操作:In a possible example, the instructions in the program 540 are also used to perform the following operations:
根据所述多个预估运行时长确定所述第一阈值。The first threshold is determined according to the plurality of estimated running durations.
在一个可能的示例中,在所述控制所述侧屏区域针对所述剩余使用时长进行充电提示之后,所述程序540中的指令还用于执行以下操作:In a possible example, after the controlling the side screen area to prompt for charging for the remaining usage time, the instructions in the program 540 are further used to perform the following operations:
若所述多个应用运行数据中包含指定运行数据,所述指定运行数据的单位耗电量大于第二阈值,在预设时长内检测充电操作;If the plurality of application operation data includes specified operation data, a unit power consumption of the specified operation data is greater than a second threshold, and a charging operation is detected within a preset time period;
若在所述预设时长内未检测到所述充电操作,清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式。If the charging operation is not detected within the preset time period, at least one application to be cleaned corresponding to the running data is cleared or a power saving mode corresponding to the running data is entered.
在一个可能的示例中,所述程序540中的指令还用于执行以下操作:In a possible example, the instructions in the program 540 are also used to perform the following operations:
确定所述电子设备500的当前位置;Determining a current location of the electronic device 500;
确定所述当前位置对应的充电概率;Determining a charging probability corresponding to the current position;
根据所述充电概率确定所述预设时长;Determining the preset duration according to the charging probability;
若所述预设时长大于第三阈值,执行所述清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式的步骤,所述第三阈值小于所述剩余使用时长;If the preset duration is greater than a third threshold, performing the step of clearing at least one application to be cleaned corresponding to the operating data or entering a power saving mode corresponding to the operating data, the third threshold is smaller than the remaining usage duration;
若所述预设时长小于或等于所述第三阈值,执行所述在预设时长内检测充电操作的步骤。If the preset duration is less than or equal to the third threshold, perform the step of detecting a charging operation within the preset duration.
在一个可能的示例中,在所述确定所述当前位置对应的充电概率方面,所述程序540中的指令具体用于执行以下操作:In a possible example, in terms of determining the charging probability corresponding to the current position, the instructions in the program 540 are specifically used to perform the following operations:
若所述当前位置为指定位置,获取所述指定位置对应的充电记录;If the current position is a specified position, obtaining a charging record corresponding to the specified position;
根据所述充电记录确定所述充电概率;Determining the charging probability according to the charging record;
若所述当前位置不是所述指定位置,确定所述电子设备500对应的移动速度和所述当前位置与所述指定位置之间的距离;If the current position is not the specified position, determining a movement speed corresponding to the electronic device 500 and a distance between the current position and the specified position;
根据所述距离和所述移动速度确定所述充电概率。The charging probability is determined according to the distance and the moving speed.
在一个可能的示例中,在所述控制所述侧屏区域针对所述剩余使用时长进行充电提示方面,所述程序540中的指令具体用于执行以下操作:In a possible example, in terms of controlling the side screen area to prompt for charging for the remaining usage time, the instructions in the program 540 are specifically used to perform the following operations:
确定所述剩余使用时长对应的显示风格,所述显示风格至少包括以下一项:显示时长、显示位置、显示颜色、闪烁频率、透明度、亮度、宽度、渐变效果、环绕速度;Determining a display style corresponding to the remaining use time, the display style including at least one of the following: display duration, display position, display color, flicker frequency, transparency, brightness, width, gradient effect, and surround speed;
控制所述侧屏区域按照所述显示风格对所述剩余使用时长进行充电提示。And controlling the side screen area to prompt for the remaining usage time according to the display style.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于存储计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括电子设备。An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores and stores a computer program, and the computer program causes a computer to perform part or all of the steps of any method described in the foregoing method embodiments. The computer includes electronic equipment.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括电子设备。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps of any method. The computer program product may be a software installation package, and the computer includes an electronic device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not described in detail in one embodiment, reference may be made to related descriptions in other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其 它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may Integration into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. The foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器、随机存取器(、磁盘或光盘等。Those of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by a program instructing related hardware. The program may be stored in a computer-readable memory, and the memory may include a flash disk , Read-only memory, random access device (, disk or optical disk, etc.).
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. Specific examples have been used in this document to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. Persons of ordinary skill in the art may change the specific implementation and application scope according to the idea of the present application. In summary, the content of this description should not be construed as a limitation on the present application.

Claims (20)

  1. 一种充电提示方法,其特征在于,应用于电子设备,所述电子设备包括曲面显示屏,所述曲面显示屏包括正屏区域和侧屏区域,所述方法包括:A charging prompt method, which is characterized in that it is applied to an electronic device, the electronic device includes a curved display screen, the curved display screen includes a front screen area and a side screen area, and the method includes:
    获取所述电子设备的剩余电量和运行数据,所述运行数据包括系统运行数据和多个应用运行数据;Acquiring the remaining power of the electronic device and operating data, where the operating data includes system operating data and multiple application operating data;
    根据所述运行数据和所述剩余电量确定剩余使用时长;Determining the remaining usage time according to the operating data and the remaining power;
    若所述剩余使用时长小于第一阈值,控制所述侧屏区域针对所述剩余使用时长进行充电提示。If the remaining use time is less than the first threshold, controlling the side screen area to perform a charging prompt for the remaining use time.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述运行数据和所述剩余电量确定剩余使用时长,包括:The method according to claim 1, wherein the determining the remaining usage time based on the operating data and the remaining power comprises:
    确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量;Determining an estimated running time and a preset unit power consumption corresponding to each of the plurality of application running data to obtain multiple estimated running time and multiple preset unit power consumptions;
    根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量;Determining a plurality of first unit power consumptions according to the plurality of estimated operating durations and the plurality of preset unit power consumptions;
    确定所述系统运行数据对应的系统单位耗电量;Determining a system unit power consumption corresponding to the system operation data;
    确定所述多个第一单位耗电量中每一第一单位耗电量和所述系统单位耗电量之间的和值,得到多个第二单位耗电量;Determining a sum between each first unit power consumption of the plurality of first unit power consumptions and the system unit power consumption to obtain a plurality of second unit power consumptions;
    根据所述剩余电量和所述多个第二单位耗电量确定所述剩余使用时长。Determining the remaining use time according to the remaining power and the plurality of second unit power consumptions.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量,包括:The method according to claim 2, wherein the determining the plurality of first unit power consumptions based on the plurality of estimated operating durations and the plurality of preset unit power consumptions comprises:
    确定所述多个应用运行数据中与所述多个预估运行时长中每一预估运行时长对应的参考应用运行数据集,得到多个参考应用运行数据集;Determining a reference application execution data set corresponding to each of the plurality of estimated operation durations in the plurality of application operation data to obtain a plurality of reference application execution data sets;
    将所述多个参考应用运行数据集中每一参考应用运行数据集对应的预设单位耗电量之间的和值作为该参考应用运行数据对应的单位耗电量,得到多个第一单位耗电量。Using the sum of the preset unit power consumption corresponding to each reference application running data set in the plurality of reference application running data sets as the unit power consumption corresponding to the reference application running data to obtain a plurality of first unit power consumptions Battery.
  4. 根据权利要求2或3所述的方法,其特征在于,所述多个应用运行数据包括目标应用运行数据,所述确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量,包括:The method according to claim 2 or 3, wherein the plurality of application running data includes target application running data, and determining an estimated running time corresponding to each application running data in the plurality of application running data And preset unit power consumption to get multiple estimated runtimes and multiple preset unit power consumption, including:
    确定所述目标应用运行数据对应的数据类型和多个耗电对象;Determining a data type and a plurality of power consumption objects corresponding to the target application running data;
    确定所述电子设备的当前时间;Determining the current time of the electronic device;
    根据所述数据类型和所述当前时间确定所述目标应用运行数据的预估运行时长;Determining an estimated running time of the target application running data according to the data type and the current time;
    确定所述多个耗电对象中每一耗电对象对应的运行参数,得到多个运行参数;Determining an operating parameter corresponding to each of the plurality of power-consuming objects to obtain a plurality of operating parameters;
    确定所述多个运行参数中每一运行参数对应的单位耗电量,得到多个单位耗电量;Determining a unit power consumption corresponding to each of the plurality of operation parameters to obtain a plurality of unit power consumptions;
    确定所述多个单位耗电量之和为所述目标运行数据对应的预设单位耗电量。It is determined that the sum of the plurality of unit power consumptions is a preset unit power consumption corresponding to the target operation data.
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2-4, wherein the method further comprises:
    根据所述多个预估运行时长确定所述第一阈值。The first threshold is determined according to the plurality of estimated running durations.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,在所述控制所述侧屏区域针对所述剩余使用时长进行充电提示之后,所述方法还包括:The method according to any one of claims 1-5, wherein after the controlling the side screen area to provide a charging prompt for the remaining usage time, the method further comprises:
    若所述多个应用运行数据中包含指定运行数据,所述指定运行数据的单位耗电量大于第二阈值,在预设时长内检测充电操作;If the plurality of application operation data includes specified operation data, a unit power consumption of the specified operation data is greater than a second threshold, and a charging operation is detected within a preset time period;
    若在所述预设时长内未检测到所述充电操作,清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式。If the charging operation is not detected within the preset time period, at least one application to be cleaned corresponding to the running data is cleared or a power saving mode corresponding to the running data is entered.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, further comprising:
    确定所述电子设备的当前位置;Determining a current location of the electronic device;
    确定所述当前位置对应的充电概率;Determining a charging probability corresponding to the current position;
    根据所述充电概率确定所述预设时长;Determining the preset duration according to the charging probability;
    若所述预设时长大于第三阈值,执行所述清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式的步骤,所述第三阈值小于所述剩余使用时长;If the preset duration is greater than a third threshold, performing the step of clearing at least one application to be cleaned corresponding to the operating data or entering a power saving mode corresponding to the operating data, the third threshold is smaller than the remaining usage duration;
    若所述预设时长小于或等于所述第三阈值,执行所述在预设时长内检测充电操作的步骤。If the preset duration is less than or equal to the third threshold, perform the step of detecting a charging operation within the preset duration.
  8. 根据权利要求7所述的方法,其特征在于,所述确定所述当前位置对应的充电概率,包括:The method according to claim 7, wherein the determining a charging probability corresponding to the current position comprises:
    若所述当前位置为指定位置,获取所述指定位置对应的充电记录;If the current position is a specified position, obtaining a charging record corresponding to the specified position;
    根据所述充电记录确定所述充电概率;Determining the charging probability according to the charging record;
    若所述当前位置不是所述指定位置,确定所述电子设备对应的移动速度和所述当前位置与所述指定位置之间的距离;If the current position is not the specified position, determining a movement speed corresponding to the electronic device and a distance between the current position and the specified position;
    根据所述距离和所述移动速度确定所述充电概率。The charging probability is determined according to the distance and the moving speed.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述控制所述侧屏区域针对所述剩余使用时长进行充电提示,包括:The method according to any one of claims 1-8, wherein the controlling the side screen area to provide a charging prompt for the remaining usage time comprises:
    确定所述剩余使用时长对应的显示风格,所述显示风格至少包括以下一项:显示时长、显示位置、显示颜色、闪烁频率、透明度、亮度、宽度、渐变效果、环绕速度;Determining a display style corresponding to the remaining use time, the display style including at least one of the following: display duration, display position, display color, flicker frequency, transparency, brightness, width, gradient effect, and surround speed;
    控制所述侧屏区域按照所述显示风格对所述剩余使用时长进行充电提示。And controlling the side screen area to prompt for the remaining usage time according to the display style.
  10. 一种充电提示装置,其特征在于,应用于电子设备,所述电子设备包括曲面显示屏,所述曲面显示屏包括正屏区域和侧屏区域,所述装置包括:A charging prompting device, which is characterized in that it is applied to an electronic device, the electronic device includes a curved display screen, the curved display screen includes a front screen area and a side screen area, and the device includes:
    获取单元,用于获取所述电子设备的剩余电量和运行数据,所述运行数据包括系统运行数据和多个应用运行数据;An obtaining unit, configured to obtain remaining power of the electronic device and operating data, where the operating data includes system operating data and multiple application operating data;
    确定单元,用于根据所述运行数据和所述剩余电量确定剩余使用时长;A determining unit, configured to determine a remaining usage time according to the operating data and the remaining power;
    显示单元,用于若所述剩余使用时长小于第一阈值,控制所述测屏区域针对所述剩余使用时长进行充电提示。A display unit, configured to control the screen measurement area to provide a charging prompt for the remaining usage time if the remaining usage time is less than a first threshold.
  11. 根据权利要求10所述的装置,其特征在于,在所述根据所述运行数据和所述剩余电量确定剩余使用时长方面,所述确定单元具体用于确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量;根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量;确定所述系统运行数据对应的系统单位耗电量;确定所述多个第一单位耗电量中每一第一单位耗电量和所述系统单位耗电量之间的和值,得到多个第二单位耗电量;根据所述剩余电量和所述多个第二单位耗电量确定所述剩余使用时长。The device according to claim 10, wherein in determining the remaining usage time according to the operating data and the remaining power, the determining unit is specifically configured to determine each of the multiple application operating data The estimated running time and preset unit power consumption corresponding to the application running data, to obtain multiple estimated running time and multiple preset unit power consumption; according to the multiple estimated running time and the plurality of presets The unit power consumption determines a plurality of first unit power consumptions; determines a system unit power consumption corresponding to the system operation data; and determines each first unit power consumption and all of the plurality of first unit power consumptions. The sum of the unit power consumption of the system is used to obtain a plurality of second unit power consumptions; and the remaining use time is determined according to the remaining power and the plurality of second unit power consumptions.
  12. 根据权利要求11所述的装置,其特征在于,在所述根据所述多个预估运行时长和所述多个预设单位耗电量确定多个第一单位耗电量方面,所述确定单元具体用于确定所述多个应用运行数据中与所述多个预估运行时长中每一预估运行时长对应的参考应用运行数据集,得到多个参考应用运行数据集;将所述多个参考应用运行数据集中每一参考应用运行数据集对应的预设单位耗电量之间的和值作为该参考应用运行数据对应的单位耗电量,得到多个第一单位耗电量。The device according to claim 11, characterized in that, in determining the plurality of first unit power consumptions based on the plurality of estimated operating time periods and the plurality of preset unit power consumptions, the determining The unit is specifically configured to determine a reference application running data set corresponding to each of the multiple estimated running times in the multiple application running data to obtain a plurality of reference application running data sets; The sum of the preset unit power consumption corresponding to each reference application operation data set in each reference application operation data set is used as the unit power consumption corresponding to the reference application operation data to obtain a plurality of first unit power consumptions.
  13. 根据权利要求11或12所述的装置,其特征在于,所述多个应用运行数据包括目标应用运行数据,在所述确定所述多个应用运行数据中每一应用运行数据对应的预估运行时长和预设单位耗电量,得到多个预估运行时长和多个预设单位耗电量方面,所述确定单元具体用于确定所述目标应用运行数据对应的数据类型和多个耗电对象;确定所述电子设备的当前时间;根据所述数据类型和所述当前时间确定所述目标应用运行数据的预估运行时长;确定所述多个耗电对象中每一耗电对象对应的运行参数,得到多个运行参数;确定所述多个运行参数中每一运行参数对应的单位耗电量,得到多个单位耗电量;确定所述多个单位耗电量之和为所述目标运行数据对应的预设单位耗电量。The device according to claim 11 or 12, wherein the plurality of application operation data includes target application operation data, and in the determining the plurality of application operation data, an estimated operation corresponding to each application operation data is determined. In terms of duration and power consumption per preset unit, multiple estimated runtimes and power consumption per preset unit are obtained, and the determining unit is specifically configured to determine a data type corresponding to the target application running data and multiple power consumptions An object; determining a current time of the electronic device; determining an estimated running time of the target application running data according to the data type and the current time; determining a corresponding one of each of the plurality of power-consuming objects Operating parameters to obtain a plurality of operating parameters; determining a unit power consumption corresponding to each of the plurality of operating parameters to obtain a plurality of unit power consumptions; determining a sum of the plurality of unit power consumptions as the The power consumption of the preset unit corresponding to the target operation data.
  14. 根据权利要求11-13任一项所述的装置,其特征在于,所述确定单元还用于根据所述多个预估运行时长确定所述第一阈值。The apparatus according to any one of claims 11-13, wherein the determining unit is further configured to determine the first threshold value according to the multiple estimated running durations.
  15. 根据权利要求10-14任一项所述的装置,其特征在于,在所述控制所述侧屏区域针对所述剩余使用时长进行充电提示之后,所述装置还包括:The device according to any one of claims 10 to 14, wherein after the controlling the side screen area to perform a charging prompt for the remaining usage time, the device further comprises:
    检测单元,用于若所述多个应用运行数据中包含指定运行数据,所述指定运行数据的单位耗电量大于第二阈值,在预设时长内检测充电操作;A detecting unit, configured to detect a charging operation within a preset time period if the plurality of application operation data includes specified operation data, and a unit power consumption of the specified operation data is greater than a second threshold;
    处理单元,用于若所述检测单元在所述预设时长内未检测到所述充电操作,清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式。A processing unit is configured to clean up at least one application to be cleaned corresponding to the running data or enter a power saving mode corresponding to the running data if the charging unit does not detect the charging operation within the preset time period.
  16. 根据权利要求15所述的装置,其特征在于,所述确定单元还用于确定所述电子设备的当前位置;确定所述当前位置对应的充电概率;根据所述充电概率确定所述预设时长;若所述预设时长大于第三阈值,调用所述处理单元 执行所述清理所述运行数据对应的至少一个待清理应用或进入所述运行数据对应的省电模式的步骤,所述第三阈值小于所述剩余使用时长;若所述预设时长小于或等于所述第三阈值,调用所述检测单元执行所述在预设时长内检测充电操作的步骤。The device according to claim 15, wherein the determining unit is further configured to determine a current position of the electronic device; determine a charging probability corresponding to the current position; and determine the preset duration according to the charging probability If the preset duration is greater than a third threshold, calling the processing unit to execute the step of clearing at least one application to be cleaned corresponding to the running data or entering a power saving mode corresponding to the running data, the third The threshold is less than the remaining use time; if the preset time is less than or equal to the third threshold, calling the detection unit to perform the step of detecting a charging operation within the preset time.
  17. 根据权利要求16所述的装置,其特征在于,在所述确定所述当前位置对应的充电概率方面,所述获取单元还用于若所述当前位置为指定位置,获取所述指定位置对应的充电记录;所述确定单元具体用于根据所述充电记录确定所述充电概率;若所述当前位置不是所述指定位置,确定所述电子设备对应的移动速度和所述当前位置与所述指定位置之间的距离;根据所述距离和所述移动速度确定所述充电概率。The device according to claim 16, wherein in the step of determining a charging probability corresponding to the current position, the acquiring unit is further configured to acquire a corresponding value of the specified position if the current position is a specified position. Charging record; the determining unit is specifically configured to determine the charging probability according to the charging record; if the current position is not the specified position, determine a movement speed corresponding to the electronic device and the current position and the specified Distance between positions; determining the charging probability according to the distance and the moving speed.
  18. 一种电子设备,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行权利要求1-9任一项方法中的步骤的指令。An electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor The program includes instructions for performing the steps in the method of any one of claims 1-9.
  19. 一种计算机可读存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, which is used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1-9.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。A computer program product, characterized in that the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the computer program according to any one of claims 1-9. The method described.
PCT/CN2018/107632 2018-09-26 2018-09-26 Charging prompt method and related product WO2020061824A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880095611.5A CN112400308A (en) 2018-09-26 2018-09-26 Charging prompting method and related product
PCT/CN2018/107632 WO2020061824A1 (en) 2018-09-26 2018-09-26 Charging prompt method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/107632 WO2020061824A1 (en) 2018-09-26 2018-09-26 Charging prompt method and related product

Publications (1)

Publication Number Publication Date
WO2020061824A1 true WO2020061824A1 (en) 2020-04-02

Family

ID=69951015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/107632 WO2020061824A1 (en) 2018-09-26 2018-09-26 Charging prompt method and related product

Country Status (2)

Country Link
CN (1) CN112400308A (en)
WO (1) WO2020061824A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103430A (en) * 2022-08-26 2022-09-23 南昌龙旗信息技术有限公司 Electric quantity monitoring method, device, equipment and storage medium of wearable equipment
CN116320732B (en) * 2023-04-18 2023-12-05 广州市宏视电子技术有限公司 Solar camera control method and device, solar camera and storage medium
CN117496677B (en) * 2023-12-29 2024-03-26 深圳市明心数智科技有限公司 Real-time early warning method and related device for vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal
CN106302965A (en) * 2015-05-29 2017-01-04 北京智谷睿拓技术服务有限公司 Charging opportunity information determines method and apparatus
CN106375561A (en) * 2016-08-29 2017-02-01 上海摩软通讯技术有限公司 Mobile terminal and method of detecting surplus use time thereof
CN106896894A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 Terminal power management method and terminal
CN107889203A (en) * 2017-11-27 2018-04-06 珠海市魅族科技有限公司 A kind of electricity saving method, device, computer installation and computer-readable recording medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979103B (en) * 2013-02-05 2020-05-12 北京奇虎科技有限公司 Battery power guarantee method and device for portable electronic product and mobile terminal
JP2014204184A (en) * 2013-04-02 2014-10-27 シャープ株式会社 Portable terminal and control method thereof
CN104572410A (en) * 2015-01-28 2015-04-29 深圳市中兴移动通信有限公司 Terminal and low-power prompting method for same
CN106453841A (en) * 2016-09-13 2017-02-22 广东小天才科技有限公司 Method for automatically reminding charging of smart phone and smart phone
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal
CN107463435B (en) * 2017-07-31 2020-04-14 Oppo广东移动通信有限公司 Application process priority management method and device, storage medium and electronic equipment
CN107689671A (en) * 2017-08-31 2018-02-13 珠海格力电器股份有限公司 Power consumption control method and device
CN107835311B (en) * 2017-10-31 2020-05-12 Oppo广东移动通信有限公司 Application management method and device, storage medium and electronic equipment
CN108155683A (en) * 2017-12-07 2018-06-12 北京小米移动软件有限公司 Reminding method and device, the electronic equipment of charged state
CN108108294B (en) * 2017-12-29 2021-08-24 北京奇虎科技有限公司 Method and system for acquiring customized operation data according to reference time
CN108205451A (en) * 2018-01-05 2018-06-26 广东欧珀移动通信有限公司 application management method, device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302965A (en) * 2015-05-29 2017-01-04 北京智谷睿拓技术服务有限公司 Charging opportunity information determines method and apparatus
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal
CN106896894A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 Terminal power management method and terminal
CN106375561A (en) * 2016-08-29 2017-02-01 上海摩软通讯技术有限公司 Mobile terminal and method of detecting surplus use time thereof
CN107889203A (en) * 2017-11-27 2018-04-06 珠海市魅族科技有限公司 A kind of electricity saving method, device, computer installation and computer-readable recording medium

Also Published As

Publication number Publication date
CN112400308A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
WO2016150331A1 (en) Method and device for operating game client
CN107835033B (en) Antenna tuning switch control method and device, terminal equipment and storage medium
CN108112063B (en) Power management method, power management device, terminal and readable storage medium
CN107736000B (en) Method for interaction between terminal and network equipment and terminal
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
JP6487044B2 (en) Power management method and power management apparatus for user equipment
WO2018032581A1 (en) Method and apparatus for application program control
WO2017206902A1 (en) Application control method and related device
CN108900231B (en) Dynamic antenna adjustment method and related product
WO2020061824A1 (en) Charging prompt method and related product
CN111371705B (en) Download task execution method and electronic device
US11399088B2 (en) Method for establishing communication connection and related products
CN107317918B (en) Parameter setting method and related product
CN108322602B (en) Method, terminal and computer readable storage medium for processing application no response
CN111901211A (en) Control method, apparatus and storage medium
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
WO2018040844A1 (en) Method, device, and apparatus for voice control based on vehicle multimedia apparatus
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
WO2017206901A1 (en) Process control method and related device
CN109309953B (en) Power consumption detection method, device, terminal and readable storage medium
WO2017206903A1 (en) Application control method and related device
CN112312542B (en) Ephemeris information collection method, device, storage medium and mobile terminal
CN106210325B (en) Method, device and terminal for setting incoming call ringtone of social application
WO2020061816A1 (en) Charging prompting method and related product
CN110611347B (en) Charging control method and related product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18934806

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18934806

Country of ref document: EP

Kind code of ref document: A1