WO2017185456A1 - Method and apparatus for controlling displayed electricity quantity of terminal - Google Patents
Method and apparatus for controlling displayed electricity quantity of terminal Download PDFInfo
- Publication number
- WO2017185456A1 WO2017185456A1 PCT/CN2016/084065 CN2016084065W WO2017185456A1 WO 2017185456 A1 WO2017185456 A1 WO 2017185456A1 CN 2016084065 W CN2016084065 W CN 2016084065W WO 2017185456 A1 WO2017185456 A1 WO 2017185456A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- power
- terminal
- display
- preset
- camouflage
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/81—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
Definitions
- the present invention relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling power display of a terminal.
- terminals In addition to the most basic communication functions, terminals also have the most basic communication functions. Provide users with a lot of entertainment applications. These entertainment applications have great appeal to children, often causing children to indulge in it, regardless of parental dissuasion, until the terminal's power consumption is exhausted.
- the parent can only turn on the timed shutdown function before the terminal is given to the child, so that the terminal automatically shuts down after reaching the predetermined time of the user, pretending to be the terminal cause.
- the power display of the terminal can only be performed according to the real power of the terminal, and the situation that the terminal power is too low can be simulated very realistically, so that the way of controlling the child's use time of the terminal through the timed shutdown is effective. low.
- the invention provides a method and a device for controlling the display of the power of the terminal, which solves the technical problem that the terminal can only perform the power display according to the real power, thereby making it impossible to perform the realistic power camouflage.
- the present invention adopts the following technical solutions:
- a method for controlling power display of a terminal comprising:
- the control terminal After receiving the first instruction input by the user, the control terminal enters the power camouflage mode
- the display power of the terminal is masqueraded according to the power consumption camouflage policy.
- the terminal When the display power level after the masquerading process is lower than the preset threshold, the terminal is controlled to enter a low power control state, and in the low power control state, the terminal cannot run the first application.
- the terminal is controlled to exit the power camouflage mode.
- the display power of the terminal is camouflaged according to a preset charging camouflage policy and/or the use of the terminal is controlled.
- the generating the power consumption camouflage strategy according to the preset rule according to the first instruction includes:
- the manner of determining, according to the first instruction and the preset rule, the initial display power quantity and the consumption speed of the display power quantity when the terminal enters the power camouflage mode includes any one of the following:
- the preset power quantity is used as the initial display power quantity, and the real power consumption speed of the terminal is used as the consumption speed of the display power quantity;
- the initial display power is estimated according to the preset duration, and the consumption speed of the display power is determined according to the initial display power and the preset duration degree;
- the current real power of the terminal is used as the initial display power, and the consumption speed of the display power is determined according to the initial display power and the preset duration;
- the current real power of the terminal is used as the initial display power
- the preset power consumption speed is used as the consumption speed of the displayed power.
- a control device for displaying power of a terminal comprising:
- a first switching module configured to: after receiving the first instruction input by the user, the control terminal enters a power disguise mode
- a masquerading policy generating module configured to generate a power masquerading strategy according to the preset rule according to the first instruction
- the masquerading processing module is configured to perform masquerading processing on the display power of the terminal according to the power masquerading strategy.
- the low-power control module is configured to control the terminal to enter a low-power control state when the display power level after the masquerading process is lower than a preset threshold, and the terminal cannot run the first application in the low-power control state.
- the masquerading policy generation module includes:
- the binary determining module is configured to determine, according to the first instruction and the preset rule, an initial display power quantity and a consumption speed of the display power quantity when the terminal enters the power camouflage mode.
- the binary determination module includes any one of the following:
- a first determining submodule configured to include a preset power amount in the first instruction, use the preset power quantity as the initial display power quantity, and use a real power consumption speed of the terminal as a consumption speed of the display power quantity ;
- a second determining submodule configured to: when the first instruction includes a preset duration, estimating the initial display power according to the preset duration, and determining, according to the initial display power and the preset duration Describe the rate of consumption of electricity;
- a third determining submodule configured to: when the first instruction includes a preset duration, the current real power of the terminal is used as the initial display power, and determining the initial display power and the preset duration according to the initial display power Display the consumption speed of the power;
- a fourth determining submodule configured to: when the first instruction includes a preset power consumption speed, use the current real power of the terminal as the initial display power, and use the preset power consumption speed as the display power The speed of consumption.
- the method and device for controlling the power display of the terminal enters the power disguise mode after receiving the first instruction input by the user, and generates a power masquerading strategy according to the first instruction and the preset rule, and then according to the power consumption camouflage strategy
- the display power of the terminal is camouflaged, so that the display of the power of the terminal is no longer fixed and rigidly based on the real power, but the "false" power can be displayed according to the power consumption camouflage strategy, and the power disguise is more closely related to the real situation.
- the user can input instructions according to his own wishes, thereby indirectly determining the power consumption camouflage strategy, and then controlling the display power of the terminal according to his own wishes, thereby increasing the autonomy and flexibility of the user to control the terminal, and improving the user experience.
- FIG. 1 is a flowchart of a method for controlling display power of a terminal according to Embodiment 1 of the present invention
- FIG. 2 is a schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 3 of the present invention
- FIG. 3 is a schematic structural diagram of a masquerading policy generation module in FIG. 2;
- FIG. 4 is a schematic structural diagram of a binary determination module of FIG. 3;
- FIG. 5 is a schematic structural diagram of a binary determination module of FIG. 3; FIG.
- FIG. 6 is a schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 4 of the present invention.
- FIG. 7 is another schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 4 of the present invention.
- FIG. 8 is still another schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 4 of the present invention.
- FIG. 9 is a schematic structural diagram of a binary determination module of FIG. 3;
- FIG. 10 is a schematic structural diagram of a binary determination module of FIG. 3;
- FIG. 11 is a flowchart of a method for controlling display power of a terminal according to Embodiment 5 of the present invention.
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- FIG. 1 is a flowchart of a method for controlling display power of a terminal according to Embodiment 1 of the present invention. Referring to FIG. 1, the following process is included:
- control terminal After receiving the first instruction input by the user, the control terminal enters a power camouflage mode.
- the purpose of power disguise is to present false battery information to users of the terminal, especially children. Therefore, the biggest difference between the terminal in the power camouflage mode and the normal mode is that the power displayed on the terminal is not the actual power, but the power after the camouflage.
- the first instruction may be generated by the user by triggering a certain terminal button or a button. For example, a long press “volume +" in the terminal may enter the power camouflage mode, or a "power camouflage mode” may be set in the terminal. The option is similar to the existing "silent mode", "flight mode”, etc. of the terminal. When the user chooses to enter the "power camouflage mode", the mode in which the terminal is located can be directly switched.
- the parameters of the mode can be set by the user. For example, if the user wants to put the mobile phone into the “outdoor mode”, before entering the outdoor mode, First set the parameters such as the incoming call volume, incoming call ringtone, and display brightness of the mobile phone in "outdoor mode”. After the setting is completed, click OK to switch to the set "outdoor mode”. Therefore, those skilled in the art can understand. Yes, various parameters of the terminal in the "power camouflage mode" can also be customized by the user. For example, the user can customize the duration of entering the power camouflage mode or the initial display power when entering the power camouflage mode.
- the power consumption camouflage strategy is mainly to determine the amount of display power at each moment after the terminal enters the power camouflage mode, that is, it needs to determine the initial display power and the consumption speed of the displayed power after entering the power camouflage mode.
- a method for generating a power consumption camouflage strategy is proposed.
- the display device can be masqueraded at the beginning of the power masquerading mode, that is, the initial display power is disguised.
- the first instruction input by the user includes the preset power amount
- the The preset power included in an instruction is used as the initial display power.
- the display power is consumed according to the real power consumption speed of the terminal, that is, the real power consumption speed of the terminal is used as the consumption speed of the display power.
- the user can enter the power camouflage mode before entering the power camouflage mode.
- the initial display power is set to 18%.
- the display power at each moment can be determined according to the user-child of the mode, and the actual power consumption of the terminal is determined, for example, at 180s.
- the child uses the terminal to entertain, so that the terminal consumes 1% of the real power, then the display power of the terminal should be 17% after entering the power camouflage mode for 3 minutes. In other words, this situation is equivalent to the user extracting a part of the real power for entertainment for children. When this part of the power is about to run out, the terminal is in a false "low battery" state.
- the terminal display according to the embodiment is displayed.
- the power control method can estimate an initial display power according to the duration of the time period. For example, the time range of the entering power dumping mode set by the user is 20:00 to 20:30, then it can be known that the user desires to enter the power camouflage mode. The total duration is 30 minutes. According to the normal usage of the terminal, it can be determined that the power consumption of the half hour is about 12%, then 12% can be used as the initial display power.
- the estimated power is not necessarily accurate, that is, the power used in the preset time period is not necessarily the initial display power estimated by the terminal.
- this does not affect the user's control over the child's use of the terminal time, because the estimated initial display power is only a display value, and the time when the terminal is in the power camouflage mode is determined only according to the preset duration in the first instruction. That is, it is determined only according to the time period input by the user, and is independent of the estimated initial display power.
- the terminal when the time is about to arrive at 20:30, the terminal will tell the child that the battery is too low by voice prompting or changing the battery icon of the terminal to a more conspicuous red, even when the time reaches 20 : At 30 o'clock, it can also control the terminal to automatically shut down. In this half hour, if the child only turns on the application with lower power consumption level, the power consumption of the terminal may be lower than 12%. If the application opened by the child itself consumes more power, or multiple applications are enabled at the same time, the terminal The amount of electricity consumed may It will be much larger than 12%, but in general, the time for children to use the terminal must be 30 minutes preset by the user.
- the time when the terminal enters the power camouflage mode is not related to the estimated display power, it is not necessary to determine the initial power consumption according to the normal power consumption of the terminal, or even an initial determination.
- the power is displayed, but in order to be close to the real situation, the estimated initial display power should be as low as possible.
- the average consumption method assuming that the initial display power is 12%, and the user preset value is 30 minutes, then need to reduce by 0.4% per minute, assuming that the terminal update shows that the minimum scale of power is 1%, then the display power of the terminal is updated to 11% when it enters the battery camouflage mode for 150s.
- non-average consumption mode can also be adopted. For example, the power consumption of each application in the terminal is evaluated in advance, and the power consumption levels of each application are determined to be high, medium, and low, respectively. In the application, the display power consumption is reduced to a small extent. When the power consumption level of the application that is turned on by the terminal is high, the display power is reduced by a large amount.
- the non-average consumption method is complicated, the analog power consumption is simulated. The process is more realistic.
- the first instruction includes a preset duration, which can facilitate the user to accurately control the time of the child using the terminal, so that the user can safely hand over the terminal to the child without fear of the child using the mobile terminal for a long time to cause vision
- the adverse effects can further reduce the burden on the user and effectively improve the user experience.
- the terminal enters the power camouflage mode.
- Each parameter may be preset in advance. For example, the time period in which the terminal enters the power camouflage mode by default is after the current time to 30 minutes, then when the user enters the power camouflage mode by long pressing “volume+” at 11:40 am, the terminal The estimated initial display power is displayed at 12%, and the 12% "charge” is gradually “consumed” from 11:40 to 12:10 until 12:10 shows that the power is 0, then The control terminal enters the shutdown state.
- the above default parameter mode is applicable to all cases where the power camouflage mode is entered without parameter customization, and is not limited to the scenario of entering the power camouflage mode through the terminal entity button.
- the display power of the terminal may be masqueraded according to the power masquerading strategy.
- the masquerading strategy determined according to the first instruction is: the initial display power is 17%, and the display is The power consumption rate is 0.5% per minute.
- the display power of the terminal is disguised as 16%, and after the end of the 32nd minute, the power is displayed as 1%.
- the display power of the terminal is mainly to achieve the effect of allowing the user to obtain false information. Therefore, in the power camouflage mode, the user should be prevented from obtaining the real power information.
- the display icon of the real battery can be overwritten or replaced with the display icon of the terminal power after camouflage.
- the shape, size and color of the display icon after the camouflage and the real power icon should be the same as possible.
- the present embodiment further provides a preferred example: when the power of the terminal after the masquerading is lower than a preset value, A corresponding prompt message will pop up to indicate that the battery is too low.
- the prompt message that pops up can be a text message or an icon that indicates that the battery is too low. Since the child may not be familiar or sensitive to the text information, further, the voice message may be used to synchronize the prompt while the text prompt message is popped up.
- the icon information is popped up, for example, a battery icon that is about to be exhausted, in order to be conspicuous, the battery icon can be enlarged, for example, to cover the entire display, and the color of the icon is changed to a red with warning effect.
- a voice prompt or a warning sound can be simultaneously synchronized.
- the user can control the time when the child uses the terminal by disguising the terminal power. It is not necessary to enter the shutdown state. For example, if the terminal power is lower than 3%, the displayed power icon will turn red. Parents can agree with the child to stop using the terminal when the battery icon turns red. This is also possible in some scenarios.
- the power consumption camouflage strategy is generated according to the first instruction input by the user and the preset rule. Therefore, the display power of the terminal is disguised according to the power consumption camouflage strategy, so that the terminal entering the power camouflage mode “consumes” the camouflage power according to the power consumption camouflage policy, so that the user in the power camouflage mode, for example, the child obtains falsehood.
- the power display information reaches the purpose of controlling the time for the child to use the terminal, thereby reducing the burden on the user and improving the user experience.
- Embodiment 2 is a diagrammatic representation of Embodiment 1:
- the present embodiment is still directed to a control method for displaying power of a terminal. Unlike the first embodiment, the power masquerading strategy generated in this embodiment is different.
- the terminal enters the power camouflage mode with a disguised initial charge, which we refer to as the "initial camouflage mode".
- the power can be entered with real power, that is, the real power is directly used as the initial display power when entering the power camouflage mode.
- the power consumption of the terminal is consumed by the power consumption speed after the camouflage, that is, the display power of the terminal is “consumed” by a display power consumption speed different from the actual power consumption speed.
- This camouflage method is "intermediate camouflage mode".
- the consumption speed of the display power is determined according to the first instruction input by the user and the preset rule. For example, when the first instruction includes the preset duration input by the user, the real power of the current terminal may be used as the initial display power, and then according to the following formula. Get the speed of the display power:
- the preset duration must be smaller than the actual real power usage of the terminal, that is, the consumption speed of the display power must be greater than the actual power consumption speed of the terminal.
- the preset power consumption speed of the user when the first command directly includes the preset power consumption speed, the preset power consumption speed of the user may be directly parsed as the consumption speed of the display power. Similarly, the preset power consumption is The speed must be greater than the actual power consumption speed of the terminal.
- the initial display power of the terminal is the same every time the terminal enters the power camouflage mode, which may cause the child to perceive the power. camouflage. For example, every time the user wants the child to use 10% of the power and then stops using it, the initial display power of the terminal into the power camouflage mode is 10% each time. According to the actual power consumption of the terminal, the probability of this situation is very small, so the simulation situation will be "distorted".
- the initial camouflage mode there is another method for determining the initial display power, that is, determining the initial state of the terminal entering the power camouflage mode according to the preset duration.
- the power is displayed, and it is assumed that the initial display power estimated based on the preset duration is not very accurate, but since the power consumption level of a terminal at different time points is roughly average, it will also cause the terminal to enter the initial state of the power camouflage mode each time.
- the display power is almost the same.
- the related prompt of the low battery is started, preferably, after the camouflage power of the terminal is lower than the first preset value, every certain time
- the first preset value of the mobile phone is set to 3%, and when the display power of the mobile phone is less than 3% after the camouflage, the display is displayed every 1 minute. The text message of the phone is too low, it will be automatically turned off, or the icon indicating low battery is displayed on the display.
- the prompt information of the low battery may be displayed all the time, or the voice prompt information may be played all the time.
- the size of the first preset value and the second preset value can be set by the user.
- the control terminal when the display power amount after the masquerading process is lower than a preset threshold, the control terminal enters a low power control state.
- the terminal In the low power control state, the terminal cannot run the first application, and the first application may be an application specified by the user in advance.
- the user is preset to be in a low power control state, and the terminal cannot run the “fruit ninja” or “angry small”. Birds and other games.
- the first application may also be all applications of the terminal.
- the low power control state may also be the shutdown state of the terminal.
- the low power control state is the shutdown state, the first application includes all applications of the terminal.
- the size of the preset threshold may also be set by the user. It can be understood that the preset threshold should be smaller than the first preset value.
- the preset recovery command when the terminal enters the low power control state, the preset recovery command must be monitored to control the terminal to exit the power camouflage mode. Assuming that the terminal in the low-power control state can only run certain applications specified by the user and does not enter the shutdown state, the preset recovery command can be specific input information, for example, the user can press and hold the "volume-" button. Exit the power caption mode.
- the preset recovery command may be the preset number of power-on times. For example, it must be monitored that the user has tried the power-on three times, and the terminal is not allowed until the fourth time the terminal attempts to power on. Switch to normal mode and display the remaining power normally, no doubt, before 3 starts should fail.
- the user enters the power camouflage mode with the initial display power of 10% when the actual power of the mobile phone is 50%.
- the display power is lower than 0.1%
- the mobile phone enters the low power control state to make the power off state.
- the child may try a 1 ⁇ 2 boot attempt to continue to use the phone for entertainment.
- the phone can be turned on normally. Therefore, when the child tries to boot from 1 to 2, the message “The phone is too low to boot properly!” is displayed. He may really think that the phone is running low and give up the idea of using a mobile phone to play or surf the Internet.
- the embodiment further provides a solution for: when the charging signal of the terminal is monitored when the terminal is in the power camouflage mode, the display power of the terminal is camouflaged according to a preset charging camouflage policy, for example, the terminal displays a decrease in the amount of power generated.
- the actual charging speed creates the effect of the terminal "slow charging speed”.
- the display screen of the terminal can be controlled to display information characterizing the charging abnormality. For example, it is directly displayed that "charging abnormality! or "charging failure!” Of course, those skilled in the art should understand that the terminal is actually in a normal state of charge.
- the charging signal to the terminal may further determine whether the user continues to use the terminal. If no signal is used, the information indicating the charging failure may not be displayed, but the terminal is controlled. It shows the characteristics of slower charging speed, for example, making the camouflage power increase faster than the real charging speed. If the usage signal to the terminal is detected, information indicating the charging failure is displayed, and the use of the terminal is controlled, for example, the terminal is unable to run certain programs, or directly controls the terminal to enter the shutdown state.
- Embodiment 3 is a diagrammatic representation of Embodiment 3
- the present embodiment provides a device for controlling the amount of power displayed by the terminal.
- the method for controlling the amount of power displayed by the terminal provided in the first embodiment and the second embodiment can be applied to the device for controlling the amount of power displayed by the terminal provided in this embodiment.
- the control device 2 for displaying the power of the terminal includes a first switching module 21, a masquerading policy generation module 22, and a masquerading processing module 23.
- the first switching module 21 is configured to control the terminal to enter the power camouflage mode after receiving the first instruction input by the user.
- the purpose of power disguise is to present false battery information to users of the terminal, especially children. Therefore, after the switching of the first switching module 21, the maximum difference between the power masquerading mode and the normal mode of the terminal is that the power displayed on the terminal is not the actual power, but the masqueraded power.
- the first instruction may be generated by the user by triggering a certain terminal button or a button. For example, a long press “volume +" in the terminal may enter the power camouflage mode, or a "power camouflage mode” may be set in the terminal. The option is similar to the existing "silent mode", "flight mode”, etc. of the terminal. When the user chooses to enter the "power camouflage mode", the mode in which the terminal is located can be directly switched.
- the parameters of the mode can be set by the user. For example, if the user wants to put the mobile phone into the “outdoor mode”, before entering the outdoor mode, First set the parameters such as the incoming call volume, incoming call ringtone, and display brightness of the mobile phone in "outdoor mode”. After the setting is completed, click OK to switch to the set "outdoor mode”. Therefore, those skilled in the art can understand. Yes, before the first switching module 21 controls the terminal to enter the power camouflage mode, the user may also customize various parameters of the terminal in the power camouflage mode, for example, the user may customize the duration of entering the power camouflage mode or enter the power camouflage mode. The initial display power and so on.
- the masquerading policy generation module 22 is capable of generating a power masquerading policy according to a preset rule according to the first instruction.
- the power consumption camouflage strategy is mainly for determining the amount of display power at each moment after the terminal enters the power masquerading mode. Therefore, as shown in FIG. 3, the masquerading policy generation module 22 includes a binary determination module 221, and the binary determination module 221 It is used to determine the speed at which the display power is consumed after the initial display power and the power charge camouflage mode.
- the display device may be masqueraded at the beginning of the power masquerading mode, that is, the initial display power is disguised.
- the binary determination module 221 includes a first determination sub-module 2211.
- the first determination sub-module 2211 may set the preset power included in the first instruction.
- the display power is consumed according to the real power consumption speed of the terminal, that is, the real power consumption speed of the terminal is used as the consumption speed of the display power.
- the first determining sub-module 2211 can be used before the terminal enters the power camouflage mode.
- Camouflage into the battery according to the first user command input by the user In the mode the initial display power is set to 18%.
- the display power at each moment can be determined according to the user's actual consumption of the terminal according to the user in the mode. For example, in a period of 180s, the child uses the terminal to entertain, so that the terminal consumes 1% of the real power, then the display power of the terminal should become 17% after entering the power camouflage mode for 3 minutes. In other words, this situation is equivalent to the user extracting a part of the real power for entertainment for children. When this part of the power is about to run out, the terminal is in a false "low battery" state.
- the binary determination module 221 includes a second determination sub-module 2212.
- the first instruction does not include the preset power, but includes the preset duration, for example, when the user sets the parameter in the power camouflage mode, only the setting is performed.
- the second determining sub-module 2212 can estimate an initial display power according to the duration of the time period. For example, the time range of the entering power masquerading mode set by the user is 20:00-20. : 30, then you can know that the total time required for the user to enter the power camouflage mode is 30 minutes.
- the second determining sub-module 2212 can use 12% as the initial display power.
- the estimated initial display power of the second determining sub-module 2212 is not necessarily accurate, that is, the amount of power used in the preset duration is not necessarily the initial displayed power estimated by the second determining sub-module 2212.
- this does not affect the user's control of the child's use of the terminal time, because the initial display power estimated by the second determination sub-module 2212 is only one display value, and the time when the terminal is in the power camouflage mode is only based on the first instruction.
- the preset duration is determined, that is, it is determined only according to the time period input by the user, and is independent of the estimated initial display power.
- the terminal when the time is about to arrive at 20:30, the terminal will tell the child that the battery is too low by voice prompting or changing the battery icon of the terminal to a more conspicuous red, even when the time reaches 20 : At 30 o'clock, it can also control the terminal to automatically shut down. In this half hour, if the child only turns on the application with lower power consumption level, the power consumption of the terminal may be lower than 12%. If the application opened by the child itself consumes more power, or multiple applications are enabled at the same time, the terminal The amount of power consumed may be much greater than 12%, but in general, the time the child uses the terminal must be 30 minutes preset by the user.
- the second determining sub-module 2212 since the time when the terminal enters the power camouflage mode is not related to the estimated display power, the second determining sub-module 2212 does not necessarily have to perform the power consumption according to the normal power consumption of the terminal. The second determining sub-module 2212 can even determine an initial display power amount at will, However, in order to be close to the real situation, the estimated initial display power should be as low as possible.
- the second determining sub-module 2212 determines the consumption speed of the displayed power, it can be performed according to various strategies, for example, using the average consumption mode, assuming that the initial display power is 12%, and the user preset value is 30 minutes, then the second The determination sub-module 2212 determines that the reduction is required to be 0.4% per minute, and assuming that the terminal updates the display power to the lowest scale of 1%, then the masquerading processing module 23 updates the display power of the terminal to 11% when it enters the battery masquerading mode for 150 s.
- non-average consumption mode can also be adopted. For example, the power consumption of each application in the terminal is evaluated in advance, and the power consumption levels of each application are determined to be high, medium, and low, respectively.
- the display power consumption is reduced to a small extent.
- the display power is reduced by a large amount.
- the non-average consumption method is complicated, the analog power consumption is simulated. The process is more realistic.
- the masquerading policy generated by the first determining sub-module 2211 enables the masquerading processing module 23 to further update the display power of the terminal, and also facilitates the user to control the remaining power. Applicable to the situation where the user needs to ensure that the terminal can be used normally after the child uses the terminal.
- the power masquerading strategy generated by the second determining sub-module 2212 can facilitate the user to accurately control the time of the child using the terminal, so that the user can safely hand over the terminal to the child without worrying about the child using the mobile terminal for a long time. Vision causes adverse effects, which in turn reduces the burden on the user and enhances the user experience.
- the terminal enters the power camouflage mode.
- Each parameter may be preset in advance. For example, the time period in which the terminal enters the power camouflage mode by default is after the current time to 30 minutes, then when the user enters the power camouflage mode by long pressing “volume+” at 11:40 am, the terminal The estimated initial display power is displayed at 12%, and the 12% "charge” is gradually “consumed” from 11:40 to 12:10 until 12:10 shows that the power is 0, then The control terminal enters the shutdown state.
- the above default parameter mode is applicable to all cases where the power camouflage mode is entered without parameter customization, and is not limited to the scenario of entering the power camouflage mode through the terminal entity button.
- the masquerading processing module 23 needs to perform masquerading processing on the display power of the terminal according to the power masquerading strategy. For example, when the second determination sub-module 2212 determines the camouflage strategy The initial display power is 17%, and the display power consumption rate is 0.5% per minute. After 120s after entering the terminal, the masquerading processing module 23 masquerades the display power of the terminal to 16%, after the end of the 32nd minute. The camouflage processing module 23 controls the amount of power displayed by the terminal to be 1%.
- the display power of the terminal is mainly to achieve the effect of allowing the user to obtain false information. Therefore, in the power camouflage mode, the user should be prevented from obtaining the real power information.
- the display icon of the real battery can be overwritten or replaced with the display icon of the terminal power after camouflage.
- the shape, size and color of the display icon after the camouflage and the real power icon should be the same as possible.
- the present embodiment also provides a preferred example: when the power of the terminal after the masquerading is lower than the preset value, A corresponding prompt message pops up indicating that the battery is too low.
- the prompt message that pops up can be a text message or an icon that indicates that the battery is too low. Since the child may not be familiar or sensitive to the text information, further, the voice message may be used to synchronize the prompt while the text prompt message is popped up.
- the icon information is popped up, for example, a battery icon that is about to be exhausted, in order to be conspicuous, the battery icon can be enlarged, for example, to cover the entire display, and the color of the icon is changed to a red with warning effect.
- a voice prompt or a warning sound can be simultaneously synchronized.
- the user can control the time when the child uses the terminal by disguising the terminal power. It is not necessary to enter the shutdown state. For example, if the terminal power is lower than 3%, the displayed power icon will turn red. Parents can agree with the child to stop using the terminal when the battery icon turns red. This is also possible in some scenarios.
- the masquerading policy generation module 22 generates a power masquerading strategy according to the first instruction input by the user and the preset rule, so that the masquerading processing module 23 performs masquerading processing on the display power of the terminal according to the power masquerading policy, so as to enter
- the terminal after the power camouflage mode consumes the camouflage power according to the power consumption camouflage strategy, so that the user in the power camouflage mode, for example, the child obtains the false power display information, achieves the purpose of controlling the time of the child using the terminal, and thereby reduces User's burden, improve User experience.
- Embodiment 4 is a diagrammatic representation of Embodiment 4:
- This embodiment proposes a control device for displaying the power amount of the terminal different from that in the third embodiment. Please refer to FIG. 6:
- the control device 2 for displaying the power of the terminal includes a first switching module 21, a masquerading policy generating module 22 and a masquerading processing module 23, and a low power prompting module 24.
- the low power prompting module 24 starts to perform a related prompt that the power is too low, preferably, after the terminal's camouflage power is lower than the first preset value.
- the low power prompting module 24 prompts the low battery at a certain time.
- the first preset value of the mobile phone is set to 3%, and after the camouflage, the display power of the mobile phone is lower than At 3%, the low power prompt module 24 displays a text message "The mobile phone is too low, that is, will be automatically turned off" every 1 minute, or displays an icon indicating low battery on the display screen.
- the low power prompting module 24 may also display the low battery prompt information or play the voice prompt information all the time.
- the size of the first preset value and the second preset value can be set by the user.
- the terminal display power control device 2 includes a first switching module 21, a masquerading policy generation module 22 and a masquerading processing module 23, a low power prompt module 24, and low power control.
- Module 25 second switching module 26.
- the low power control module 25 controls the terminal to enter the low power control state.
- the terminal In the low power control state, the terminal cannot run the first application, and the first application may be an application specified by the user in advance, for example, the user presets, in the low power control state, the terminal cannot run the "fruit ninja", "angry” Birds and other games.
- the first application may also be all applications of the terminal.
- the low-power control module 25 may also control the terminal to enter a shutdown state, directly using the shutdown state of the terminal as a low-power control state, and when the low-power control state is a shutdown state.
- the first application includes all applications of the terminal.
- the size of the preset threshold can also be set by the user. It can be understood that the preset threshold should be smaller than the first preset value.
- the second switching module 26 after the low power control module 25 controls the terminal to enter the low power control state, the second switching module 26 must monitor the preset recovery command to control the terminal to exit the power camouflage mode. Assume that the terminal in the low power control state is only unable to run certain applications specified by the user.
- the sequence, without entering the shutdown state, the preset recovery command can be a specific input information, for example, the user long presses the "volume-" button to exit the power camouflage mode.
- the preset recovery command may be the preset number of power on. For example, the second switching module 26 must monitor that the user has tried the power on 3 times until the terminal attempts to boot the fourth time.
- the user enters the power camouflage mode with the initial display power of 10% when the actual power of the mobile phone is 50%.
- the low power control module 25 controls the mobile phone to enter the low power control state to make the power off. status.
- the child may try a 1 ⁇ 2 boot attempt to continue to use the phone for entertainment.
- the second switching module 26 can make the mobile phone boot normally, so when the child tries to boot from 1 to 2, the mobile phone is too low to power on! After the prompt message, he may really think that the mobile phone is too low, thus giving up the idea of using the mobile phone for games or surfing the Internet.
- the control device 2 for displaying the amount of electric power in the terminal includes a first switching module 21, a masquerading policy generation module 22, a masquerading processing module 23, and a charging camouflage module 27.
- the charging camouflage module 27 can prevent the child from attempting to charge the terminal to extend the usage time after the terminal enters the power camouflage mode.
- the embodiment further provides a solution: when the terminal is in the power camouflage mode, the charging camouflage module 27 monitors the charging signal to the terminal, and camouflages the display power of the terminal according to a preset charging camouflage policy, for example, causing the terminal to display the power.
- the growth rate is lower than the actual charging speed, creating the effect of the terminal "slow charging speed”.
- the charging camouflage module 27 can control the display screen of the terminal to display information characterizing the charging abnormality.
- the charging camouflage module 27 can further determine whether the user continues to use the terminal. If no signal is used, the information indicating the charging failure may not be displayed. However, the control terminal exhibits a slow charging characteristic, for example, the camouflage power is increased at a slower speed than the real charging speed.
- the charging camouflage module 27 controls the terminal to display information characterizing the charging failure, and the charging camouflage module 27 also controls the use of the terminal, for example, making the terminal unable to run certain programs, or directly controlling The terminal enters the shutdown state.
- the power consumption camouflage strategy is to make the terminal enter the power camouflage mode with a camouflaged initial power.
- this camouflage mode initial camouflage mode.
- the power can be entered with real power, that is, the real power is directly used as the initial display power when entering the power camouflage mode.
- the power consumption of the terminal is consumed by the power consumption speed after the camouflage, that is, the display power of the terminal is "consumed” by a display power consumption speed different from the actual power consumption speed.
- This camouflage method is "intermediate camouflage mode".
- the binary determination module 221 includes a third determination sub-module 2213.
- the third determining sub-module 2213 determines the consumption speed of the display power according to the first instruction input by the user and the preset rule. For example, when the first instruction includes the preset duration input by the user, the third determining sub-module 2213 may set the current terminal. The actual power is used as the initial display power, and then the display power consumption rate is obtained according to the following formula:
- the preset duration must be smaller than the actual real power usage of the terminal, that is, the consumption speed of the display power must be greater than the actual power consumption speed of the terminal.
- the binary determination module 221 includes a fourth determination sub-module 2214.
- the fourth determination sub-module 2214 The preset power consumption speed of the user can be directly analyzed as the consumption speed of the display power. Similarly, the preset power consumption speed must be greater than the actual power consumption speed of the terminal.
- the initial display is the same amount of power, which may cause the child to perceive the battery disguise. For example, every time the user wants the child to use 10% of the power and then stops using it, the initial display power of the terminal into the power camouflage mode is 10% each time. According to the actual power consumption of the terminal, the probability of this situation is very small, so the simulation situation will be "distorted".
- the second determining sub-module 2212 can further determine the initial display power of the terminal into the power masquerading mode according to the preset duration, and assume that the second determining sub-module 2212 estimates the initial according to the preset duration.
- the display power is not very accurate, but because the power consumption level of a terminal at different time points is roughly average, it will also cause the terminal to display the initial display power of the power camouflage mode every time.
- Embodiment 5 is a diagrammatic representation of Embodiment 5:
- S1101 Receive a setting of each parameter of the user in the power camouflage mode.
- the user can enter the mobile phone operation interface, click the setting icon on the mobile phone desktop, enter the setting list, and select the power control for the mobile phone.
- the user password can be set while setting the parameters, and the user password can be a number, a letter, or a combination thereof. It can also be information such as user gestures and user fingerprints obtained through acquisition. When the user sets the user password, when using the power masquerading function later, the user may need to input the matching password information to use normally.
- the parameters that the user can set include the way to enter the power camouflage mode, whether it is the initial camouflage mode or the intermediate camouflage mode. After the user selects the corresponding camouflage mode, other parameters in the mode need to be further set. For example, when the user selects to enter the power camouflage mode in the initial camouflage mode, either the initial power in the power camouflage mode needs to be customized, or the time period in the power camouflage mode needs to be set. If the current phone's battery is 47% and the user wants to reserve 35% of the battery for their subsequent use, he may set the initial charge to 12%.
- S1102 Receive a first instruction of the user, and control the mobile phone to enter a power camouflage mode.
- this "OK” is equivalent to a switching finger.
- the mobile phone after receiving the signal that the user triggers “OK” on the mobile phone, the mobile phone is controlled to enter the power camouflage mode with an initial power of 12%.
- S1103 masquerade the real power of the mobile phone according to the first instruction and the preset policy.
- the power camouflage mode entered by the initial power reserved by the user when the camouflage power is subsequently "consumed", it can be simply based on the actual power consumption, for example, the real power consumption of the mobile phone. After 3%, the mobile phone power after camouflage is 9%, and the remaining battery power is also 9%.
- the first preset value is a boundary for performing a low battery prompt or not.
- the prompt is started. Otherwise, the prompt is not prompted.
- the prompting strategy may refer to the second embodiment, for example, every second. Prompted once at a fixed time.
- the first preset value in the embodiment is 3%, and when the power of the masqueraded mobile phone is less than 3%, the prompt is prompted every one minute.
- S1105 When detecting that the power of the mobile phone is zero, the mobile phone is controlled to enter a shutdown state.
- the shutdown state belongs to a low-power control state
- controlling the mobile phone to enter the shutdown state essentially enters the low-power control state. It can be understood by those skilled in the art that the mobile phone may not enter the shutdown state, but only the first application cannot be run, and the first application may be some application specified by the user.
- the preset power on time can be used as the preset recovery command.
- S1107. Determine whether the number of power-on times reaches a preset value. If yes, execute S1108. If no, continue to execute S1106.
- the preset number of power-on actions is a recovery command. If the power-on number reaches the preset value, the normal mode can be entered. Otherwise, it is necessary to continue counting the number of times the mobile phone attempts to power on.
- each booting before reaching the preset booting number should end in failure.
- the user can be prompted to "the mobile phone is too low to be turned on”.
- the mobile phone can be controlled to exit the power camouflage mode and enter the normal mode.
- the phone In normal mode, the phone can display its true battery level.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
Disclosed are a method and apparatus for controlling a displayed electricity quantity of a terminal. The method for controlling a displayed electricity quantity of a terminal comprises: entering an electricity quantity camouflaging mode after receiving a first instruction input by a user; generating a power consumption camouflaging strategy according to the first instruction and a pre-set rule; and then performing camouflaging processing on a displayed electricity quantity of a terminal according to the power consumption camouflaging strategy. By means of the embodiments of the present invention, a terminal can display a "false" electricity quantity according to a power consumption camouflaging strategy rather than displaying the electricity quantity fixedly and rigidly according to an actual electricity quantity, so that electricity quantity camouflaging closer to an actual condition can be performed. A user can input an instruction according to the user's own wishes, so as to indirectly determine a power consumption camouflaging strategy and thus control the displayed electricity quantity of a terminal according to the user's own wishes, so that the autonomy and flexibility in terminal control by the user are enhanced, and the user experience is improved.
Description
本申请要求于2016年4月29日提交中国专利局,申请号为201610281204.6、发明名称为“一种终端显示电量的控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610281204.6, entitled "Control Method and Apparatus for Displaying Power of Terminals", filed on April 29, 2016, the entire contents of which are incorporated by reference. In this application.
本发明涉及电子设备领域,尤其涉及一种终端显示电量的控制方法及装置。The present invention relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling power display of a terminal.
随着终端价格的平民化,笔记本电脑、智能手机、PDA(Personal Digital Assistant,个人数字助理)、PAD(平板电脑)等已经走进了千家万户,终端除了承担最基本的通信功能以外,也向用户提供了很多娱乐方面的应用。这些娱乐应用对儿童具有巨大的吸引力,常常使得孩子们沉溺其中,对家长的劝阻不管不顾,直至终端的电量消耗殆尽为止。With the civilianization of terminal prices, laptops, smart phones, PDAs (Personal Digital Assistants), and PADs (tablets) have entered thousands of households. In addition to the most basic communication functions, terminals also have the most basic communication functions. Provide users with a lot of entertainment applications. These entertainment applications have great appeal to children, often causing children to indulge in it, regardless of parental dissuasion, until the terminal's power consumption is exhausted.
为了防止孩子沉溺于终端提供的各色娱乐应用,现有技术中,家长只能在将终端给到孩子之前,先开启定时关机功能,使得终端在到达用户预定的时间后自动关机,伪装出终端因电量不足而自动关机的现象。但是这种伪装并不逼真,很容易被孩子识别出来:In order to prevent children from indulging in various entertainment applications provided by the terminal, in the prior art, the parent can only turn on the timed shutdown function before the terminal is given to the child, so that the terminal automatically shuts down after reaching the predetermined time of the user, pretending to be the terminal cause. The phenomenon of automatic shutdown when the battery is low. But this camouflage is not realistic and is easily recognized by children:
首先,由于终端在自动关机之前的电量显示都是正常的,所以,孩子很容易根据终端显示的真实电量确定终端的关机是否是因为电量过低。First of all, since the power display of the terminal before the automatic shutdown is normal, it is easy for the child to determine whether the shutdown of the terminal is due to the low battery according to the actual power displayed by the terminal.
然后,定时关机的控制方式显得比较生硬,这种关机情形与终端因电量不足而关机的情形有很大的不同,例如,在终端自动关机之前,并不会像低电量自动关机一样提示用户电量过低。Then, the control mode of the timed shutdown is relatively blunt. This kind of shutdown situation is very different from the situation that the terminal is shut down due to insufficient power. For example, before the terminal automatically shuts down, it does not prompt the user to charge like the low power automatic shutdown. Too low.
最后,如果孩子经常在使用终端时遭遇到定时关机的现象,就会明白这种关机仅仅是家长为了阻止自己使用终端的一种手段,并非终端出现故障或者电量过低,孩子很可能会再次开机,然后继续玩耍。Finally, if the child often encounters a timed shutdown when using the terminal, it will be understood that this kind of shutdown is only a means for parents to prevent themselves from using the terminal. It is not the terminal failure or the battery is too low, and the child is likely to boot again. And then continue to play.
由于现有技术中,对终端的电量显示只能根据终端的真实电量进行,不能很逼真的模仿终端电量过低的情况,所以,导致通过定时关机来控制孩子对终端的使用时间的方式有效性低。
Because in the prior art, the power display of the terminal can only be performed according to the real power of the terminal, and the situation that the terminal power is too low can be simulated very realistically, so that the way of controlling the child's use time of the terminal through the timed shutdown is effective. low.
发明内容Summary of the invention
本发明提供一种终端显示电量的控制方法及装置,解决现有技术中终端因为只能根据真实电量进行电量显示,从而导致无法进行逼真的电量伪装的技术问题。The invention provides a method and a device for controlling the display of the power of the terminal, which solves the technical problem that the terminal can only perform the power display according to the real power, thereby making it impossible to perform the realistic power camouflage.
为解决上述技术问题,本发明采用以下技术方案:In order to solve the above technical problems, the present invention adopts the following technical solutions:
一种终端显示电量的控制方法,包括:A method for controlling power display of a terminal, comprising:
接收到用户输入的第一指令后控制终端进入电量伪装模式;After receiving the first instruction input by the user, the control terminal enters the power camouflage mode;
根据所述第一指令按照预设规则生成耗电伪装策略;Generating a power consumption camouflage strategy according to the preset rule according to the first instruction;
根据所述耗电伪装策略对所述终端的显示电量进行伪装处理。The display power of the terminal is masqueraded according to the power consumption camouflage policy.
进一步地,还包括:Further, it also includes:
当伪装处理后的显示电量低于预设阈值时,控制所述终端进入低电控制状态,在所述低电控制状态下,所述终端无法运行第一应用。When the display power level after the masquerading process is lower than the preset threshold, the terminal is controlled to enter a low power control state, and in the low power control state, the terminal cannot run the first application.
进一步地,还包括:Further, it also includes:
在所述低电控制状态下监测到预设的恢复指令时,控制所述终端退出电量伪装模式。When the preset recovery instruction is detected in the low power control state, the terminal is controlled to exit the power camouflage mode.
进一步地,还包括:Further, it also includes:
在电量伪装模式下监测到充电信号时,根据预设的充电伪装策略对所述终端的显示电量进行伪装和/或对所述终端的使用进行控制。When the charging signal is detected in the power camouflage mode, the display power of the terminal is camouflaged according to a preset charging camouflage policy and/or the use of the terminal is controlled.
进一步地,所述根据所述第一指令按照预设规则生成耗电伪装策略包括:Further, the generating the power consumption camouflage strategy according to the preset rule according to the first instruction includes:
根据所述第一指令和所述预设规则确定所述终端进入电量伪装模式时的初始显示电量和所述显示电量的消耗速度。And determining, according to the first instruction and the preset rule, an initial display power quantity and a consumption speed of the display power quantity when the terminal enters the power camouflage mode.
进一步地,所述根据所述第一指令和所述预设规则确定所述终端进入电量伪装模式时的初始显示电量和所述显示电量的消耗速度的方式包括以下任意一种:Further, the manner of determining, according to the first instruction and the preset rule, the initial display power quantity and the consumption speed of the display power quantity when the terminal enters the power camouflage mode includes any one of the following:
当所述第一指令中包括预设电量,将所述预设电量作为所述初始显示电量,将所述终端的真实耗电速度作为所述显示电量的消耗速度;When the first instruction includes a preset power quantity, the preset power quantity is used as the initial display power quantity, and the real power consumption speed of the terminal is used as the consumption speed of the display power quantity;
当所述第一指令中包括预设时长,根据所述预设时长预估出所述初始显示电量,并根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速
度;When the first instruction includes a preset duration, the initial display power is estimated according to the preset duration, and the consumption speed of the display power is determined according to the initial display power and the preset duration
degree;
当所述第一指令中包括预设时长,将所述终端当前的真实电量作为所述初始显示电量,根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速度;When the first instruction includes a preset duration, the current real power of the terminal is used as the initial display power, and the consumption speed of the display power is determined according to the initial display power and the preset duration;
当所述第一指令中包括预设耗电速度,将所述终端当前的真实电量作为所述初始显示电量,将所述预设耗电速度作为所述显示电量的消耗速度。When the first instruction includes a preset power consumption speed, the current real power of the terminal is used as the initial display power, and the preset power consumption speed is used as the consumption speed of the displayed power.
一种终端显示电量的控制装置,包括:A control device for displaying power of a terminal, comprising:
第一切换模块,用于接收到用户输入的第一指令后控制终端进入电量伪装模式;a first switching module, configured to: after receiving the first instruction input by the user, the control terminal enters a power disguise mode;
伪装策略生成模块,用于根据所述第一指令按照预设规则生成耗电伪装策略;a masquerading policy generating module, configured to generate a power masquerading strategy according to the preset rule according to the first instruction;
伪装处理模块,用于根据所述耗电伪装策略对终端的显示电量进行伪装处理。The masquerading processing module is configured to perform masquerading processing on the display power of the terminal according to the power masquerading strategy.
进一步地,还包括:Further, it also includes:
低电控制模块,用于当伪装处理后的显示电量低于预设阈值时,控制所述终端进入低电控制状态,在所述低电控制状态下,所述终端无法运行第一应用。The low-power control module is configured to control the terminal to enter a low-power control state when the display power level after the masquerading process is lower than a preset threshold, and the terminal cannot run the first application in the low-power control state.
进一步地,所述伪装策略生成模块包括:Further, the masquerading policy generation module includes:
二值确定模块,用于根据所述第一指令和所述预设规则确定所述终端进入电量伪装模式时的初始显示电量和所述显示电量的消耗速度。The binary determining module is configured to determine, according to the first instruction and the preset rule, an initial display power quantity and a consumption speed of the display power quantity when the terminal enters the power camouflage mode.
进一步地,所述二值确定模块包括以下任意一种:Further, the binary determination module includes any one of the following:
第一确定子模块,用于当所述第一指令中包括预设电量,将所述预设电量作为所述初始显示电量,将所述终端的真实耗电速度作为所述显示电量的消耗速度;a first determining submodule, configured to include a preset power amount in the first instruction, use the preset power quantity as the initial display power quantity, and use a real power consumption speed of the terminal as a consumption speed of the display power quantity ;
第二确定子模块,用于当所述第一指令中包括预设时长,根据所述预设时长预估出所述初始显示电量,并根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速度;a second determining submodule, configured to: when the first instruction includes a preset duration, estimating the initial display power according to the preset duration, and determining, according to the initial display power and the preset duration Describe the rate of consumption of electricity;
第三确定子模块,用于当所述第一指令中包括预设时长,将所述终端当前的真实电量作为所述初始显示电量,根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速度;
a third determining submodule, configured to: when the first instruction includes a preset duration, the current real power of the terminal is used as the initial display power, and determining the initial display power and the preset duration according to the initial display power Display the consumption speed of the power;
第四确定子模块,用于当所述第一指令中包括预设耗电速度,将所述终端当前的真实电量作为所述初始显示电量,将所述预设耗电速度作为所述显示电量的消耗速度。a fourth determining submodule, configured to: when the first instruction includes a preset power consumption speed, use the current real power of the terminal as the initial display power, and use the preset power consumption speed as the display power The speed of consumption.
本发明提供的终端显示电量的控制方法及装置,当接收到用户输入的第一指令后进入电量伪装模式,并根据第一指令和预设规则生成耗电伪装策略,然后根据耗电伪装策略对终端的显示电量进行伪装处理,使终端对电量的显示不再固定僵化地依据真实电量,而是可以根据耗电伪装策略显示“虚假”的电量,进行更接近真实情况的电量伪装。使用户可以根据自己的意愿输入指令,从而间接地确定耗电伪装策略,进而根据自己的意愿对终端的显示电量进行控制,增加了用户对终端控制的自主性与灵活性,提高了用户体验。The method and device for controlling the power display of the terminal provided by the present invention enters the power disguise mode after receiving the first instruction input by the user, and generates a power masquerading strategy according to the first instruction and the preset rule, and then according to the power consumption camouflage strategy The display power of the terminal is camouflaged, so that the display of the power of the terminal is no longer fixed and rigidly based on the real power, but the "false" power can be displayed according to the power consumption camouflage strategy, and the power disguise is more closely related to the real situation. The user can input instructions according to his own wishes, thereby indirectly determining the power consumption camouflage strategy, and then controlling the display power of the terminal according to his own wishes, thereby increasing the autonomy and flexibility of the user to control the terminal, and improving the user experience.
图1为本发明实施例一提供的终端显示电量的控制方法的流程图;1 is a flowchart of a method for controlling display power of a terminal according to Embodiment 1 of the present invention;
图2为本发明实施例三提供的终端显示电量的控制装置的一种结构示意图;2 is a schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 3 of the present invention;
图3为图2中伪装策略生成模块的一种结构示意图;3 is a schematic structural diagram of a masquerading policy generation module in FIG. 2;
图4为图3中二值确定模块的一种结构示意图;4 is a schematic structural diagram of a binary determination module of FIG. 3;
图5为图3中二值确定模块的一种结构示意图;FIG. 5 is a schematic structural diagram of a binary determination module of FIG. 3; FIG.
图6为本发明实施例四提供的终端显示电量的控制装置的一种结构示意图;FIG. 6 is a schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 4 of the present invention; FIG.
图7为本发明实施例四提供的终端显示电量的控制装置的另一种结构示意图;FIG. 7 is another schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 4 of the present invention; FIG.
图8为本发明实施例四提供的终端显示电量的控制装置的又一种结构示意图;FIG. 8 is still another schematic structural diagram of a device for controlling power display of a terminal according to Embodiment 4 of the present invention; FIG.
图9为图3中二值确定模块的一种结构示意图;9 is a schematic structural diagram of a binary determination module of FIG. 3;
图10为图3中二值确定模块的一种结构示意图;10 is a schematic structural diagram of a binary determination module of FIG. 3;
图11为本发明实施例五提供的终端显示电量的控制方法流程图。
FIG. 11 is a flowchart of a method for controlling display power of a terminal according to Embodiment 5 of the present invention.
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
图1为本发明实施例一提供的终端显示电量的控制方法的流程图,请参考图1,包括如下流程:FIG. 1 is a flowchart of a method for controlling display power of a terminal according to Embodiment 1 of the present invention. Referring to FIG. 1, the following process is included:
S101、接收到用户输入的第一指令后控制终端进入电量伪装模式。S101. After receiving the first instruction input by the user, the control terminal enters a power camouflage mode.
电量伪装的目的在于向终端的使用者,特别是儿童,提示虚假的电量信息。因此,终端在电量伪装模式下和正常模式下最大的不同在于,终端上显示的电量并非是其真实电量,而是经过伪装后的电量。The purpose of power disguise is to present false battery information to users of the terminal, especially children. Therefore, the biggest difference between the terminal in the power camouflage mode and the normal mode is that the power displayed on the terminal is not the actual power, but the power after the camouflage.
第一指令可以是用户通过触发某一终端按钮或按键而产生的,例如,在终端中预先设定长按“音量+”可以进入电量伪装模式,或者也可以在终端中设置一个“电量伪装模式”的选项,这一模式与终端现有的“静音模式”、“飞行模式”等类似,当用户选择进入“电量伪装模式”时,可以直接对终端所处的模式进行切换。The first instruction may be generated by the user by triggering a certain terminal button or a button. For example, a long press "volume +" in the terminal may enter the power camouflage mode, or a "power camouflage mode" may be set in the terminal. The option is similar to the existing "silent mode", "flight mode", etc. of the terminal. When the user chooses to enter the "power camouflage mode", the mode in which the terminal is located can be directly switched.
由于现有的终端,例如手机,在进入某种预设模式时,可以由用户对该模式下的参数进行设置,如用户想要使手机进入“户外模式”,则在进入户外模式”之前,先对手机在“户外模式”下的来电音量、来电铃声、显示亮度等参数进行设置,设置完成后点击确认,从而切换到经过设置后的“户外模式”。因此,本领域技术人员可以理解的是,“电量伪装模式”下终端的各种参数也可以由用户自定义,例如,用户可以自定义进入电量伪装模式的时长或者进入电量伪装模式时的初始显示电量等。Since an existing terminal, such as a mobile phone, can enter a certain preset mode, the parameters of the mode can be set by the user. For example, if the user wants to put the mobile phone into the “outdoor mode”, before entering the outdoor mode, First set the parameters such as the incoming call volume, incoming call ringtone, and display brightness of the mobile phone in "outdoor mode". After the setting is completed, click OK to switch to the set "outdoor mode". Therefore, those skilled in the art can understand. Yes, various parameters of the terminal in the "power camouflage mode" can also be customized by the user. For example, the user can customize the duration of entering the power camouflage mode or the initial display power when entering the power camouflage mode.
S102、根据第一指令按照预设规则生成耗电伪装策略。S102. Generate a power consumption camouflage policy according to a preset rule according to the first instruction.
耗电伪装策略主要是为了确定终端进入电量伪装模式后,每个时刻的显示电量应当为多少,即需要确定出初始显示电量和进入电量伪装模式后对显示电量的消耗速度。The power consumption camouflage strategy is mainly to determine the amount of display power at each moment after the terminal enters the power camouflage mode, that is, it needs to determine the initial display power and the consumption speed of the displayed power after entering the power camouflage mode.
在本实施例中,提出一种生成耗电伪装策略方式,通过这种方式,可以在终端进入电量伪装模式的起始时刻就对其显示电量进行伪装处理,即对初始显示电量进行伪装。例如,当用户输入的第一指令中包括预设电量时,可以将第
一指令中包含的预设电量作为初始显示电量。在随后的时间内,按照终端真实的电量消耗速度对显示电量进行消耗,即将终端的真实耗电速度作为显示电量的消耗速度。In this embodiment, a method for generating a power consumption camouflage strategy is proposed. In this manner, the display device can be masqueraded at the beginning of the power masquerading mode, that is, the initial display power is disguised. For example, when the first instruction input by the user includes the preset power amount, the
The preset power included in an instruction is used as the initial display power. In the subsequent time, the display power is consumed according to the real power consumption speed of the terminal, that is, the real power consumption speed of the terminal is used as the consumption speed of the display power.
假设终端当前的真实电量为78%,用户希望在孩子进行娱乐消耗之后还能有60%的剩余电量供其自身进行正常通讯,那么用户可以在进入电量伪装模式之前,就将进入电量伪装模式时的初始显示电量设置为18%,在随后处于电量伪装模式的情况下,每一时刻的显示电量可以根据该模式下的使用者——儿童,对终端实际电量消耗情况来确定,例如,在180s的时间内,儿童使用终端来娱乐,使终端消耗了1%的真实电量,那么在进入电量伪装模式3分钟后,终端的显示电量就应当变为17%。换句话说,这种情况就相当于用户从真实电量中提取出一部分供儿童娱乐使用,当这一部分电量即将耗尽时,终端就处于虚假的“低电量”状态。Assuming that the current real power of the terminal is 78%, the user wants to have 60% of the remaining power after the child has entertainment consumption for normal communication, then the user can enter the power camouflage mode before entering the power camouflage mode. The initial display power is set to 18%. In the case of subsequent power camouflage mode, the display power at each moment can be determined according to the user-child of the mode, and the actual power consumption of the terminal is determined, for example, at 180s. During the time, the child uses the terminal to entertain, so that the terminal consumes 1% of the real power, then the display power of the terminal should be 17% after entering the power camouflage mode for 3 minutes. In other words, this situation is equivalent to the user extracting a part of the real power for entertainment for children. When this part of the power is about to run out, the terminal is in a false "low battery" state.
若第一指令中不包含预设电量,而是包含预设时长,例如用户在设置电量伪装模式下的参数时,仅设置了进入电量伪装模式的时间段,那么按照本实施例提供的终端显示电量的控制方法,可以根据时间段的时长预估出一个初始显示电量,例如,用户设定的进入电量伪装模式的时间段为20:00~20:30,那么可以知道用户期望进入电量伪装模式的总时长为30分钟。根据该终端通常的使用情况,可以确定其半个小时的耗电在12%左右,那么就可以将12%作为初始显示电量。当然,在预估初始显示电量的方式中,预估出来的电量并不一定准确,也就是说,在预设时长内使用的电量并不一定就是终端预估出来的初始显示电量。但是这并不会影响用户对儿童使用终端时间的控制,因为,预估出来的初始显示电量仅仅是一个显示值,而终端处于电量伪装模式的时间仅依据第一指令中的预设时长来确定,即仅根据用户输入的时间段确定,与预估出来的初始显示电量无关。If the preset command does not include the preset power, but includes the preset duration, for example, when the user sets the parameter in the power camouflage mode, only the time period of entering the power camouflage mode is set, then the terminal display according to the embodiment is displayed. The power control method can estimate an initial display power according to the duration of the time period. For example, the time range of the entering power dumping mode set by the user is 20:00 to 20:30, then it can be known that the user desires to enter the power camouflage mode. The total duration is 30 minutes. According to the normal usage of the terminal, it can be determined that the power consumption of the half hour is about 12%, then 12% can be used as the initial display power. Of course, in the method of estimating the initial display power, the estimated power is not necessarily accurate, that is, the power used in the preset time period is not necessarily the initial display power estimated by the terminal. However, this does not affect the user's control over the child's use of the terminal time, because the estimated initial display power is only a display value, and the time when the terminal is in the power camouflage mode is determined only according to the preset duration in the first instruction. That is, it is determined only according to the time period input by the user, and is independent of the estimated initial display power.
例如,在上述示例中,当时间即将到达20:30时,终端就会通过语音提示,或者将终端的电池图标更改为更醒目的红色等方式来告诉儿童电量过低,甚至,当时间到达20:30时,还能控制终端自动关机。在这半小时内,如果儿童仅仅开启了耗电等级较低的应用,终端消耗的电量可能低于12%,如果儿童开启的应用本身耗电较高,或者同时开启了多个应用,那么终端消耗的电量可能
会远远大于12%,但总体来说,儿童使用终端的时间一定是用户预设的30分钟。For example, in the above example, when the time is about to arrive at 20:30, the terminal will tell the child that the battery is too low by voice prompting or changing the battery icon of the terminal to a more conspicuous red, even when the time reaches 20 : At 30 o'clock, it can also control the terminal to automatically shut down. In this half hour, if the child only turns on the application with lower power consumption level, the power consumption of the terminal may be lower than 12%. If the application opened by the child itself consumes more power, or multiple applications are enabled at the same time, the terminal The amount of electricity consumed may
It will be much larger than 12%, but in general, the time for children to use the terminal must be 30 minutes preset by the user.
综上,由于终端进入电量伪装模式的时间与预估的显示电量并无关联,所以,预估初始显示电量时,也并不一定要依据终端通常的耗电情况进行,甚至可以随意确定一个初始显示电量,不过为了贴近真实情况,预估的初始显示电量应当尽量低于终端的真实电量。In summary, since the time when the terminal enters the power camouflage mode is not related to the estimated display power, it is not necessary to determine the initial power consumption according to the normal power consumption of the terminal, or even an initial determination. The power is displayed, but in order to be close to the real situation, the estimated initial display power should be as low as possible.
至于如何确定显示电量的消耗速度,即如何对预估出来初始显示电量进行更新,可以依据的策略有多种,例如采用平均消耗的方式,假设初始显示电量为12%,用户预设值长为30分钟,那么每分钟需要减少0.4%,假定终端更新显示电量的最低标度为1%,那么在进入电量伪装模式后的150s时,将终端的显示电量更新为11%。同样的,还可以采用非平均的消耗方式,例如,事先对终端中各个应用的耗电情况进行评估,确定各应用的耗电等级分别为高、中、低,当终端开启一个耗电等级为中的应用时,显示电量减小的幅度较小,当终端开启的应用耗电等级为高,显示电量减小的幅度较大,虽然这种非平均消耗的方式较为复杂,但是其模拟电量消耗过程更为逼真。As for how to determine the consumption speed of the displayed power, that is, how to update the estimated initial display power, there are various strategies that can be used, for example, the average consumption method, assuming that the initial display power is 12%, and the user preset value is 30 minutes, then need to reduce by 0.4% per minute, assuming that the terminal update shows that the minimum scale of power is 1%, then the display power of the terminal is updated to 11% when it enters the battery camouflage mode for 150s. Similarly, non-average consumption mode can also be adopted. For example, the power consumption of each application in the terminal is evaluated in advance, and the power consumption levels of each application are determined to be high, medium, and low, respectively. In the application, the display power consumption is reduced to a small extent. When the power consumption level of the application that is turned on by the terminal is high, the display power is reduced by a large amount. Although the non-average consumption method is complicated, the analog power consumption is simulated. The process is more realistic.
在上述两种确定耗电伪装策略的方式当中,在直接输入初始显示电量的方式中,后续对终端显示电量的更新过程更为简单,同时也方便用户对剩余电量的把控,适用于用户需要保证在孩子使用终端之后,其自身还能正常使用终端的情形。而第一指令中包含预设时长的方式,能够方便用户对孩子使用终端的时间进行精确把控,从而使用户能够放心地将终端交给儿童使用,不必担心儿童长时间使用移动终端对视力造成不良影响,进而能够减轻用户的负担,有效提升用户体验。In the above two methods for determining the power consumption camouflage strategy, in the manner of directly inputting the initial display power, the subsequent process of updating the display power of the terminal is simpler, and the user is more convenient to control the remaining power, which is suitable for the user's needs. It is guaranteed that the child can still use the terminal normally after the child uses the terminal. The first instruction includes a preset duration, which can facilitate the user to accurately control the time of the child using the terminal, so that the user can safely hand over the terminal to the child without fear of the child using the mobile terminal for a long time to cause vision The adverse effects can further reduce the burden on the user and effectively improve the user experience.
毫无疑义的是,当用户通过触发某一终端按钮或按键使终端进入电量伪装模式时,用户并未自定义预设时长或预设电量,那么在这种情况下,终端进入电量伪装模式的各个参数可以是预先默认设置的,例如,终端默认进入电量伪装模式的时间段为当前时刻至30分钟之后,那么当用户在上午11:40通过长按“音量+”进入电量伪装模式时,终端会将预估出的初始显示电量12%进行显示,并在11:40~12:10的时间内对这12%的“电量”进行逐步“消耗”,直至12:10显示电量为0,然后控制终端进入关机状态。
Undoubtedly, when the user enters the power camouflage mode by triggering a terminal button or button, the user does not customize the preset duration or the preset power, then in this case, the terminal enters the power camouflage mode. Each parameter may be preset in advance. For example, the time period in which the terminal enters the power camouflage mode by default is after the current time to 30 minutes, then when the user enters the power camouflage mode by long pressing “volume+” at 11:40 am, the terminal The estimated initial display power is displayed at 12%, and the 12% "charge" is gradually "consumed" from 11:40 to 12:10 until 12:10 shows that the power is 0, then The control terminal enters the shutdown state.
同样的,上述默认参数的方式适用于所有未进行参数自定义就进入电量伪装模式的情况,并不仅限于通过终端实体按键进入电量伪装模式这一场景。Similarly, the above default parameter mode is applicable to all cases where the power camouflage mode is entered without parameter customization, and is not limited to the scenario of entering the power camouflage mode through the terminal entity button.
S103、根据耗电伪装策略对终端的显示电量进行伪装处理。S103. Perform masquerading processing on the display power of the terminal according to the power consumption camouflage policy.
在得到耗电伪装策略后,在随后的时间里,可以根据耗电伪装策略对终端的显示电量进行伪装处理,例如,根据第一指令确定出的伪装策略为:初始显示电量为17%,显示电量的消耗速度为每分钟0.5%,则在进入终端后的120s后,将终端的显示电量伪装处理为16%,在第32分钟结束后,显示电量为1%。After obtaining the power masquerading strategy, in the following time, the display power of the terminal may be masqueraded according to the power masquerading strategy. For example, the masquerading strategy determined according to the first instruction is: the initial display power is 17%, and the display is The power consumption rate is 0.5% per minute. After 120 seconds after entering the terminal, the display power of the terminal is disguised as 16%, and after the end of the 32nd minute, the power is displayed as 1%.
电量伪装模式下,终端的显示电量主要就是为了达到让使用者获取到虚假信息的效果,所以,在电量伪装模式下,应当尽量避免让使用者获取到真实的电量信息。在本实施例的一种优选示例当中,可以用伪装后终端电量的显示图标覆盖或代替真实电量的显示图标。同时,为了使伪装后终端电量的显示方式尽量与真实电量的显示保持一致,所以伪装后的显示图标与真实电量图标的形状、大小、颜色应尽量相同。In the power camouflage mode, the display power of the terminal is mainly to achieve the effect of allowing the user to obtain false information. Therefore, in the power camouflage mode, the user should be prevented from obtaining the real power information. In a preferred example of the embodiment, the display icon of the real battery can be overwritten or replaced with the display icon of the terminal power after camouflage. At the same time, in order to make the display mode of the terminal power after camouflage as consistent as possible with the display of the real power, the shape, size and color of the display icon after the camouflage and the real power icon should be the same as possible.
另外,在某些时候,使用者并不会特意关注终端的显示电量,例如,当使用者全神贯注地玩着终端的游戏时,他并不会注意到当前电量的多少。所以,为了让使用者不需要对终端电量信息投入过分的关注,就能够直观地获取到虚假电量信息,本实施例还提供一种优选示例:当伪装后的终端电量低于预设值时,还会弹出相应的提示信息提示电量过低。弹出的提示信息可以是文字信息或表征电量过低的图标。由于儿童可能对文字信息不够熟悉或敏感,所以,更进一步地,还可以在弹出文字提示信息的同时,采用语音信息进行同步提示。如果弹出的是图标信息,例如一个即将耗尽的电池图标,为了醒目,可以将该电池图标放大,比如覆盖整个显示屏,同时将图标的颜色更改为具有警示作用的红色。另外,在弹出图标信息进行提示的时候,还可以同步进行语音提示或播放警示音。In addition, at some point, the user does not pay attention to the display power of the terminal. For example, when the user concentrates on playing the game of the terminal, he does not notice the current amount of power. Therefore, in order to allow the user to obtain the false battery information without paying excessive attention to the power information of the terminal, the present embodiment further provides a preferred example: when the power of the terminal after the masquerading is lower than a preset value, A corresponding prompt message will pop up to indicate that the battery is too low. The prompt message that pops up can be a text message or an icon that indicates that the battery is too low. Since the child may not be familiar or sensitive to the text information, further, the voice message may be used to synchronize the prompt while the text prompt message is popped up. If the icon information is popped up, for example, a battery icon that is about to be exhausted, in order to be conspicuous, the battery icon can be enlarged, for example, to cover the entire display, and the color of the icon is changed to a red with warning effect. In addition, when the icon information is popped up, a voice prompt or a warning sound can be simultaneously synchronized.
毫无疑义的是,用户通过伪装终端电量对儿童使用终端的时间进行控制并不一定要终端进入关机状态才能实现,例如,假定终端电量低于3%的时候,显示的电量图标会变为红色,家长可以和孩子约定,当电量图标变为红色的时候就停止使用终端,这种做法在某些场景下也是可行的。Undoubtedly, the user can control the time when the child uses the terminal by disguising the terminal power. It is not necessary to enter the shutdown state. For example, if the terminal power is lower than 3%, the displayed power icon will turn red. Parents can agree with the child to stop using the terminal when the battery icon turns red. This is also possible in some scenarios.
在本实施例中,根据用户输入的第一指令和预设规则生成耗电伪装策略,
从而根据耗电伪装策略对终端的显示电量进行伪装处理,使进入电量伪装模式后的终端按照耗电伪装策略对伪装电量进行“消耗”,让电量伪装模式下的使用者,例如儿童获取到虚假的电量显示信息,达到控制儿童使用终端时间的目的,进而减小用户的负担,提高用户体验。In this embodiment, the power consumption camouflage strategy is generated according to the first instruction input by the user and the preset rule.
Therefore, the display power of the terminal is disguised according to the power consumption camouflage strategy, so that the terminal entering the power camouflage mode “consumes” the camouflage power according to the power consumption camouflage policy, so that the user in the power camouflage mode, for example, the child obtains falsehood. The power display information reaches the purpose of controlling the time for the child to use the terminal, thereby reducing the burden on the user and improving the user experience.
实施例二:Embodiment 2:
本实施例依然针对终端显示电量的控制方法提出,和第一实施例不同的是,本实施例中生成的耗电伪装策略有所不同。The present embodiment is still directed to a control method for displaying power of a terminal. Unlike the first embodiment, the power masquerading strategy generated in this embodiment is different.
在第一实施例中,终端是以一个伪装的初始电量进入电量伪装模式的,我们将这种方式称为“初始伪装方式”。但在本实施例中,进入电量伪装模式的时候,可以以真实的电量进入,也即,直接将真实的电量作为进入电量伪装模式时的初始显示电量。只是在随后的过程当中,以伪装后的耗电速度对终端的电量进行消耗,即,以一个与真实电量消耗速度不同的显示电量消耗速度对终端的显示电量进行“消耗”。这种伪装方式为“中间伪装方式”。In the first embodiment, the terminal enters the power camouflage mode with a disguised initial charge, which we refer to as the "initial camouflage mode". However, in this embodiment, when entering the power camouflage mode, the power can be entered with real power, that is, the real power is directly used as the initial display power when entering the power camouflage mode. Only in the subsequent process, the power consumption of the terminal is consumed by the power consumption speed after the camouflage, that is, the display power of the terminal is "consumed" by a display power consumption speed different from the actual power consumption speed. This camouflage method is "intermediate camouflage mode".
显示电量的消耗速度根据用户输入的第一指令和预设规则确定,例如,当第一指令中包含用户输入的预设时长时,可以将当前终端的真实电量作为初始显示电量,然后根据以下公式得到显示电量的消耗速度:The consumption speed of the display power is determined according to the first instruction input by the user and the preset rule. For example, when the first instruction includes the preset duration input by the user, the real power of the current terminal may be used as the initial display power, and then according to the following formula. Get the speed of the display power:
显示电量的消耗速度=初始显示电量/预设时长;Display the consumption speed of the power = initial display power / preset duration;
可以理解的是,预设时长必须小于终端当前真实电量实际能够使用时间,也就是说,显示电量的消耗速度必须大于终端真实的耗电速度。It can be understood that the preset duration must be smaller than the actual real power usage of the terminal, that is, the consumption speed of the display power must be greater than the actual power consumption speed of the terminal.
在本发明的另外一种示例当中,当第一指令中直接包含预设的耗电速度时,可以直接解析出用户的预设耗电速度作为显示电量的消耗速度,同样的,预设耗电速度必须大于终端真实的耗电速度。In another example of the present invention, when the first command directly includes the preset power consumption speed, the preset power consumption speed of the user may be directly parsed as the consumption speed of the display power. Similarly, the preset power consumption is The speed must be greater than the actual power consumption speed of the terminal.
按照实施例一中的伪装方式,如果用户经常都通过同一方式来控制孩子使用终端的时间,那么很可能终端每一次进入电量伪装模式时的初始显示电量都相同,这可能会导致儿童察觉到电量伪装。例如,用户每次都希望孩子使用10%的电量后就停止使用,那么终端每次进入电量伪装模式的初始显示电量都为10%。而根据终端真实的耗电情况来看,出现这种情形的概率微乎其微,所以,模拟的情况会有所“失真”。当然,在初始伪装方式中,确定初始显示电量的方案还有另外一种,即根据预设时长来确定终端进入电量伪装模式的初始
显示电量,而且假定根据预设时长预估出的初始显示电量并不十分准确,但由于一个终端在不同时间点的耗电水平大致比较平均,所以也会导致终端每次进入电量伪装模式的初始显示电量相差无几。所以为了保证每次的初始显示电量更贴近真实水平,采用“中间伪装方式”来对电量进行伪装处理会显得更为逼真,因为这种伪装是通过增大显示电量的消耗速度,使得终端的显示电量在无形之中被快速消耗,所以更难以被儿童察觉。According to the masquerading method in the first embodiment, if the user often controls the time of the child using the terminal in the same manner, it is likely that the initial display power of the terminal is the same every time the terminal enters the power camouflage mode, which may cause the child to perceive the power. camouflage. For example, every time the user wants the child to use 10% of the power and then stops using it, the initial display power of the terminal into the power camouflage mode is 10% each time. According to the actual power consumption of the terminal, the probability of this situation is very small, so the simulation situation will be "distorted". Of course, in the initial camouflage mode, there is another method for determining the initial display power, that is, determining the initial state of the terminal entering the power camouflage mode according to the preset duration.
The power is displayed, and it is assumed that the initial display power estimated based on the preset duration is not very accurate, but since the power consumption level of a terminal at different time points is roughly average, it will also cause the terminal to enter the initial state of the power camouflage mode each time. The display power is almost the same. Therefore, in order to ensure that the initial display power is closer to the true level, it is more realistic to use the “intermediate camouflage method” to camouflage the power, because this camouflage is to increase the display power consumption speed, so that the terminal display Electricity is quickly consumed invisibly, so it is more difficult for children to detect.
电量伪装模式下,若终端的显示电量低于第一预设值时,开始进行电量过低的相关提示,优选地,当终端的伪装电量低于第一预设值之后,每隔一定的时间就进行低电量的提示,例如,在本实施例中,将手机的第一预设值设置为3%,当经过伪装后,手机的显示电量低于3%时,就每隔1分钟显示“手机电量过低,即将自动关机”的文字信息,或者在显示屏上显示表征低电量的图标。优选地,当手机显示的电量低于第二预设值的时候,例如显示电量低于1%时,还可以一直显示低电量的提示信息,或者一直播放语音提示信息。第一预设值和第二预设值的大小可以由用户自行设置。In the power camouflage mode, if the display power of the terminal is lower than the first preset value, the related prompt of the low battery is started, preferably, after the camouflage power of the terminal is lower than the first preset value, every certain time In the case of the low battery, for example, in the embodiment, the first preset value of the mobile phone is set to 3%, and when the display power of the mobile phone is less than 3% after the camouflage, the display is displayed every 1 minute. The text message of the phone is too low, it will be automatically turned off, or the icon indicating low battery is displayed on the display. Preferably, when the power displayed by the mobile phone is lower than the second preset value, for example, when the display power is lower than 1%, the prompt information of the low battery may be displayed all the time, or the voice prompt information may be played all the time. The size of the first preset value and the second preset value can be set by the user.
在本发明提供的一种优选示例当中,当伪装处理后的显示电量低于预设阈值时,控制终端进入低电控制状态。在低电控制状态下,终端无法运行第一应用,第一应用可以是用户预先指定的应用,例如,用户预先设定在低电控制状态下,终端无法运行“水果忍者”、“愤怒的小鸟”等游戏。优选地,第一应用也可以是终端的所有应用,这时候,低电控制状态也可以是终端的关机状态,当低电控制状态为关机状态时,第一应用包括终端所有的应用。在本发明中,预设阈值的大小也可以由用户自行设置,可以理解的是预设阈值应当小于第一预设值。In a preferred example provided by the present invention, when the display power amount after the masquerading process is lower than a preset threshold, the control terminal enters a low power control state. In the low power control state, the terminal cannot run the first application, and the first application may be an application specified by the user in advance. For example, the user is preset to be in a low power control state, and the terminal cannot run the “fruit ninja” or “angry small”. Birds and other games. Preferably, the first application may also be all applications of the terminal. At this time, the low power control state may also be the shutdown state of the terminal. When the low power control state is the shutdown state, the first application includes all applications of the terminal. In the present invention, the size of the preset threshold may also be set by the user. It can be understood that the preset threshold should be smaller than the first preset value.
在一种较好的实施例当中,当终端进入低电控制状态后,必须要监测到预设的恢复指令时才能控制终端退出电量伪装模式。假设低电控制状态下的终端只是不能运行用户指定的某些应用程序,而没有进入关机状态,那么预设的恢复指令可以为特定的输入信息,例如,用户长按“音量-”键即可退出电量伪装模式。当低电控制状态为关机状态,那么预设的恢复指令可以为预设的开机的次数,如,必须要监测到用户已经尝试过3次开机,直到终端第4次尝试开机的时候才让终端切换到正常模式,并正常显示剩余电量,毫无疑义的是,前
3次开机都应当失败。假设用户在手机真实电量为50%的时候,预设以10%的初始显示电量进入电量伪装模式,当显示电量低于0.1%时,控制手机进入低电控制状态,使关机状态。在手机关机之后,孩子可能会进行1~2的开机尝试,以期望能够继续使用手机进行娱乐。但因为用户事先设置了必须要检测到第4次开机信号之后,才能使手机正常开机,所以当孩子在1~2开机尝试都得到“手机电量过低,无法正常开机!”的提示信息后,他可能就会真的以为手机电量过低,从而放弃利用手机进行游戏或上网的想法。In a preferred embodiment, when the terminal enters the low power control state, the preset recovery command must be monitored to control the terminal to exit the power camouflage mode. Assuming that the terminal in the low-power control state can only run certain applications specified by the user and does not enter the shutdown state, the preset recovery command can be specific input information, for example, the user can press and hold the "volume-" button. Exit the power caption mode. When the low power control state is the shutdown state, the preset recovery command may be the preset number of power-on times. For example, it must be monitored that the user has tried the power-on three times, and the terminal is not allowed until the fourth time the terminal attempts to power on. Switch to normal mode and display the remaining power normally, no doubt, before
3 starts should fail. Suppose the user enters the power camouflage mode with the initial display power of 10% when the actual power of the mobile phone is 50%. When the display power is lower than 0.1%, the mobile phone enters the low power control state to make the power off state. After the phone is turned off, the child may try a 1~2 boot attempt to continue to use the phone for entertainment. However, because the user has to set the fourth boot signal after the user has to be detected, the phone can be turned on normally. Therefore, when the child tries to boot from 1 to 2, the message “The phone is too low to boot properly!” is displayed. He may really think that the phone is running low and give up the idea of using a mobile phone to play or surf the Internet.
为了防止终端进入电量伪装模式之后,儿童尝试对终端进行充电以便延长使用时间的情况发生。本实施例还提供这样的方案:当终端处于电量伪装模式时监测到对终端的充电信号后,根据预设的充电伪装策略对终端的显示电量进行伪装,例如使终端显示电量的增长幅度低于实际的充电速度,营造出终端“充电速度慢”的效果。更进一步地,可以控制终端的显示屏显示表征充电异常的信息。例如,直接显示“充电异常!”或“充电失败!”当然,本领域技术人员应当明白,终端实际上是处于正常充电状态的。优选地,当终端处于电量伪装模式时监测到对终端的充电信号后,还可以进一步判断用户是否在继续对终端进行使用,如果没有使用信号,则可以不显示表征充电失败的信息,只是控制终端表现出充电速度较慢的特点,例如使伪装电量的增长速度低于真实的充电速度。如果检测到对终端的使用信号后,则显示表征充电失败的信息,同时对终端的使用进行控制,例如,使终端无法运行某些程序,或者直接控制终端进入关机状态。In order to prevent the terminal from entering the power camouflage mode, the child attempts to charge the terminal to prolong the use time. The embodiment further provides a solution for: when the charging signal of the terminal is monitored when the terminal is in the power camouflage mode, the display power of the terminal is camouflaged according to a preset charging camouflage policy, for example, the terminal displays a decrease in the amount of power generated. The actual charging speed creates the effect of the terminal "slow charging speed". Further, the display screen of the terminal can be controlled to display information characterizing the charging abnormality. For example, it is directly displayed that "charging abnormality!" or "charging failure!" Of course, those skilled in the art should understand that the terminal is actually in a normal state of charge. Preferably, after the charging signal to the terminal is monitored when the terminal is in the power camouflage mode, it may further determine whether the user continues to use the terminal. If no signal is used, the information indicating the charging failure may not be displayed, but the terminal is controlled. It shows the characteristics of slower charging speed, for example, making the camouflage power increase faster than the real charging speed. If the usage signal to the terminal is detected, information indicating the charging failure is displayed, and the use of the terminal is controlled, for example, the terminal is unable to run certain programs, or directly controls the terminal to enter the shutdown state.
实施例三:Embodiment 3:
本实施例提供一种终端显示电量的控制装置,上述实施示例一和二提供的终端显示电量的控制方法可以应用于本实施例提供的终端显示电量的控制装置,请参考图2:The present embodiment provides a device for controlling the amount of power displayed by the terminal. The method for controlling the amount of power displayed by the terminal provided in the first embodiment and the second embodiment can be applied to the device for controlling the amount of power displayed by the terminal provided in this embodiment.
终端显示电量的控制装置2包括第一切换模块21、伪装策略生成模块22和伪装处理模块23。The control device 2 for displaying the power of the terminal includes a first switching module 21, a masquerading policy generation module 22, and a masquerading processing module 23.
第一切换模块21用于接收到用户输入的第一指令后控制终端进入电量伪装模式。The first switching module 21 is configured to control the terminal to enter the power camouflage mode after receiving the first instruction input by the user.
电量伪装的目的在于向终端的使用者,特别是儿童,提示虚假的电量信息。
因此,经过第一切换模块21的切换之后,终端在电量伪装模式和正常模式最大的不同在于,终端上显示的电量并非是其真实电量,而是经过伪装后的电量。The purpose of power disguise is to present false battery information to users of the terminal, especially children.
Therefore, after the switching of the first switching module 21, the maximum difference between the power masquerading mode and the normal mode of the terminal is that the power displayed on the terminal is not the actual power, but the masqueraded power.
第一指令可以是用户通过触发某一终端按钮或按键而产生的,例如,在终端中预先设定长按“音量+”可以进入电量伪装模式,或者也可以在终端中设置一个“电量伪装模式”的选项,这一模式与终端现有的“静音模式”、“飞行模式”等类似,当用户选择进入“电量伪装模式”时,可以直接对终端所处的模式进行切换。The first instruction may be generated by the user by triggering a certain terminal button or a button. For example, a long press "volume +" in the terminal may enter the power camouflage mode, or a "power camouflage mode" may be set in the terminal. The option is similar to the existing "silent mode", "flight mode", etc. of the terminal. When the user chooses to enter the "power camouflage mode", the mode in which the terminal is located can be directly switched.
由于现有的终端,例如手机,在进入某种预设模式时,可以由用户对该模式下的参数进行设置,如用户想要使手机进入“户外模式”,则在进入户外模式”之前,先对手机在“户外模式”下的来电音量、来电铃声、显示亮度等参数进行设置,设置完成后点击确认,从而切换到经过设置后的“户外模式”。因此,本领域技术人员可以理解的是,第一切换模块21控制终端进入电量伪装模式之前,用户也可以对电量伪装模式下终端的各种参数进行自定义,例如,用户可以自定义进入电量伪装模式的时长或者进入电量伪装模式时的初始显示电量等。Since an existing terminal, such as a mobile phone, can enter a certain preset mode, the parameters of the mode can be set by the user. For example, if the user wants to put the mobile phone into the “outdoor mode”, before entering the outdoor mode, First set the parameters such as the incoming call volume, incoming call ringtone, and display brightness of the mobile phone in "outdoor mode". After the setting is completed, click OK to switch to the set "outdoor mode". Therefore, those skilled in the art can understand. Yes, before the first switching module 21 controls the terminal to enter the power camouflage mode, the user may also customize various parameters of the terminal in the power camouflage mode, for example, the user may customize the duration of entering the power camouflage mode or enter the power camouflage mode. The initial display power and so on.
伪装策略生成模块22能够根据第一指令按照预设规则生成耗电伪装策略。耗电伪装策略主要是为了确定终端进入电量伪装模式后,每个时刻的显示电量应当为多少,所以,如图3所示,伪装策略生成模块22包括二值确定模块221,二值确定模块221用于确定出初始显示电量和进入电量伪装模式后对显示电量的消耗速度。The masquerading policy generation module 22 is capable of generating a power masquerading policy according to a preset rule according to the first instruction. The power consumption camouflage strategy is mainly for determining the amount of display power at each moment after the terminal enters the power masquerading mode. Therefore, as shown in FIG. 3, the masquerading policy generation module 22 includes a binary determination module 221, and the binary determination module 221 It is used to determine the speed at which the display power is consumed after the initial display power and the power charge camouflage mode.
在本实施例中,可以在终端进入电量伪装模式的起始时刻就对其显示电量进行伪装处理,即对初始显示电量进行伪装。如图4所示,二值确定模块221包括第一确定子模块2211,当用户输入的第一指令中包括预设电量时,第一确定子模块2211可以将第一指令中包含的预设电量作为初始显示电量。在随后的时间内,按照终端真实的电量消耗速度对显示电量进行消耗,即将终端的真实耗电速度作为显示电量的消耗速度。In this embodiment, the display device may be masqueraded at the beginning of the power masquerading mode, that is, the initial display power is disguised. As shown in FIG. 4, the binary determination module 221 includes a first determination sub-module 2211. When the first instruction input by the user includes a preset power, the first determination sub-module 2211 may set the preset power included in the first instruction. As the initial display power. In the subsequent time, the display power is consumed according to the real power consumption speed of the terminal, that is, the real power consumption speed of the terminal is used as the consumption speed of the display power.
假设终端当前的真实电量为78%,用户希望在孩子进行娱乐消耗之后还能有60%的剩余电量供其自身进行正常通讯,那么可以在终端进入电量伪装模式之前,由第一确定子模块2211根据用户输入的第一用户指令将进入电量伪装
模式时的初始显示电量设置为18%,在随后处于电量伪装模式的情况下,每一时刻的显示电量可以根据该模式下的使用者——儿童,对终端实际电量消耗情况来确定。例如,在180s的时间内,儿童使用终端来娱乐,使终端消耗了1%的真实电量,那么在进入电量伪装模式3分钟后,终端的显示电量就应当变为17%。换句话说,这种情况就相当于用户从真实电量中提取出一部分供儿童娱乐使用,当这一部分电量即将耗尽时,终端就处于虚假的“低电量”状态。Assuming that the current real power of the terminal is 78%, the user hopes that after the child has entertainment consumption, 60% of the remaining power can be used for normal communication, then the first determining sub-module 2211 can be used before the terminal enters the power camouflage mode. Camouflage into the battery according to the first user command input by the user
In the mode, the initial display power is set to 18%. In the case of subsequent power camouflage mode, the display power at each moment can be determined according to the user's actual consumption of the terminal according to the user in the mode. For example, in a period of 180s, the child uses the terminal to entertain, so that the terminal consumes 1% of the real power, then the display power of the terminal should become 17% after entering the power camouflage mode for 3 minutes. In other words, this situation is equivalent to the user extracting a part of the real power for entertainment for children. When this part of the power is about to run out, the terminal is in a false "low battery" state.
如图5,二值确定模块221包括第二确定子模块2212,当第一指令中不包含预设电量,而是包含预设时长时,例如用户在设置电量伪装模式下的参数时,仅设置了进入电量伪装模式的时间段,那么第二确定子模块2212可以根据该时间段的时长预估出一个初始显示电量,例如,用户设定的进入电量伪装模式的时间段为20:00~20:30,那么可以知道用户期望进入电量伪装模式的总时长为30分钟。根据该终端通常的使用情况,可以确定其半个小时的耗电在12%左右,那么第二确定子模块2212就可以将12%作为初始显示电量。当然,第二确定子模块2212预估的初始显示电量并不一定准确,也就是说,在预设时长内使用的电量并不一定就是第二确定子模块2212预估出来的初始显示电量。但是这并不会影响用户对儿童使用终端时间的控制,因为,第二确定子模块2212预估出来的初始显示电量仅仅是一个显示值,而终端处于电量伪装模式的时间仅依据第一指令中的预设时长来确定,即仅根据用户输入的时间段确定,与预估出来的初始显示电量无关。As shown in FIG. 5, the binary determination module 221 includes a second determination sub-module 2212. When the first instruction does not include the preset power, but includes the preset duration, for example, when the user sets the parameter in the power camouflage mode, only the setting is performed. After the time period of entering the power masquerading mode, the second determining sub-module 2212 can estimate an initial display power according to the duration of the time period. For example, the time range of the entering power masquerading mode set by the user is 20:00-20. : 30, then you can know that the total time required for the user to enter the power camouflage mode is 30 minutes. According to the normal usage of the terminal, it can be determined that the power consumption of the half hour is about 12%, and then the second determining sub-module 2212 can use 12% as the initial display power. Certainly, the estimated initial display power of the second determining sub-module 2212 is not necessarily accurate, that is, the amount of power used in the preset duration is not necessarily the initial displayed power estimated by the second determining sub-module 2212. However, this does not affect the user's control of the child's use of the terminal time, because the initial display power estimated by the second determination sub-module 2212 is only one display value, and the time when the terminal is in the power camouflage mode is only based on the first instruction. The preset duration is determined, that is, it is determined only according to the time period input by the user, and is independent of the estimated initial display power.
例如,在上述示例中,当时间即将到达20:30时,终端就会通过语音提示,或者将终端的电池图标更改为更醒目的红色等方式来告诉儿童电量过低,甚至,当时间到达20:30时,还能控制终端自动关机。在这半小时内,如果儿童仅仅开启了耗电等级较低的应用,终端消耗的电量可能低于12%,如果儿童开启的应用本身耗电较高,或者同时开启了多个应用,那么终端消耗的电量可能会远远大于12%,但总体来说,儿童使用终端的时间一定是用户预设的30分钟。For example, in the above example, when the time is about to arrive at 20:30, the terminal will tell the child that the battery is too low by voice prompting or changing the battery icon of the terminal to a more conspicuous red, even when the time reaches 20 : At 30 o'clock, it can also control the terminal to automatically shut down. In this half hour, if the child only turns on the application with lower power consumption level, the power consumption of the terminal may be lower than 12%. If the application opened by the child itself consumes more power, or multiple applications are enabled at the same time, the terminal The amount of power consumed may be much greater than 12%, but in general, the time the child uses the terminal must be 30 minutes preset by the user.
综上,由于终端进入电量伪装模式的时间与预估的显示电量并无关联,所以,第二确定子模块2212预估初始显示电量时,也并不一定要依据终端通常的耗电情况进行。第二确定子模块2212甚至可以随意确定一个初始显示电量,
不过为了贴近真实情况,预估的初始显示电量应当尽量低于终端的真实电量。In summary, since the time when the terminal enters the power camouflage mode is not related to the estimated display power, the second determining sub-module 2212 does not necessarily have to perform the power consumption according to the normal power consumption of the terminal. The second determining sub-module 2212 can even determine an initial display power amount at will,
However, in order to be close to the real situation, the estimated initial display power should be as low as possible.
至于第二确定子模块2212如何确定显示电量的消耗速度,其可以依据多种策略进行,例如采用平均消耗的方式,假设初始显示电量为12%,用户预设值长为30分钟,那么第二确定子模块2212确定每分钟需要减少0.4%,假定终端更新显示电量的最低标度为1%,那么在进入电量伪装模式后的150s时,伪装处理模块23将终端的显示电量更新为11%。同样的,还可以采用非平均的消耗方式,例如,事先对终端中各个应用的耗电情况进行评估,确定各应用的耗电等级分别为高、中、低,当终端开启一个耗电等级为中的应用时,显示电量减小的幅度较小,当终端开启的应用耗电等级为高,显示电量减小的幅度较大,虽然这种非平均消耗的方式较为复杂,但是其模拟电量消耗过程更为逼真。As for how the second determining sub-module 2212 determines the consumption speed of the displayed power, it can be performed according to various strategies, for example, using the average consumption mode, assuming that the initial display power is 12%, and the user preset value is 30 minutes, then the second The determination sub-module 2212 determines that the reduction is required to be 0.4% per minute, and assuming that the terminal updates the display power to the lowest scale of 1%, then the masquerading processing module 23 updates the display power of the terminal to 11% when it enters the battery masquerading mode for 150 s. Similarly, non-average consumption mode can also be adopted. For example, the power consumption of each application in the terminal is evaluated in advance, and the power consumption levels of each application are determined to be high, medium, and low, respectively. In the application, the display power consumption is reduced to a small extent. When the power consumption level of the application that is turned on by the terminal is high, the display power is reduced by a large amount. Although the non-average consumption method is complicated, the analog power consumption is simulated. The process is more realistic.
在上述两种二值确定模块221当中,第一确定子模块2211生成的伪装策略能够使伪装处理模块23后续对终端显示电量的更新过程更为简单,同时也方便用户对剩余电量的把控,适用于用户需要保证在孩子使用终端之后,其自身还能正常使用终端的情形。而第二确定子模块2212生成的耗电伪装策略,能够方便用户对孩子使用终端的时间进行精确把控,从而使用户能够放心地将终端交给儿童使用,不必担心儿童长时间使用移动终端对视力造成不良影响,进而能够减轻用户的负担,有效提升用户体验。The masquerading policy generated by the first determining sub-module 2211 enables the masquerading processing module 23 to further update the display power of the terminal, and also facilitates the user to control the remaining power. Applicable to the situation where the user needs to ensure that the terminal can be used normally after the child uses the terminal. The power masquerading strategy generated by the second determining sub-module 2212 can facilitate the user to accurately control the time of the child using the terminal, so that the user can safely hand over the terminal to the child without worrying about the child using the mobile terminal for a long time. Vision causes adverse effects, which in turn reduces the burden on the user and enhances the user experience.
毫无疑义的是,当用户通过触发某一终端按钮或按键使终端进入电量伪装模式时,用户并未自定义预设时长或预设电量,那么在这种情况下,终端进入电量伪装模式的各个参数可以是预先默认设置的,例如,终端默认进入电量伪装模式的时间段为当前时刻至30分钟之后,那么当用户在上午11:40通过长按“音量+”进入电量伪装模式时,终端会将预估出的初始显示电量12%进行显示,并在11:40~12:10的时间内对这12%的“电量”进行逐步“消耗”,直至12:10显示电量为0,然后控制终端进入关机状态。Undoubtedly, when the user enters the power camouflage mode by triggering a terminal button or button, the user does not customize the preset duration or the preset power, then in this case, the terminal enters the power camouflage mode. Each parameter may be preset in advance. For example, the time period in which the terminal enters the power camouflage mode by default is after the current time to 30 minutes, then when the user enters the power camouflage mode by long pressing “volume+” at 11:40 am, the terminal The estimated initial display power is displayed at 12%, and the 12% "charge" is gradually "consumed" from 11:40 to 12:10 until 12:10 shows that the power is 0, then The control terminal enters the shutdown state.
同样的,上述默认参数的方式适用于所有未进行参数自定义就进入电量伪装模式的情况,并不仅限于通过终端实体按键进入电量伪装模式这一场景。Similarly, the above default parameter mode is applicable to all cases where the power camouflage mode is entered without parameter customization, and is not limited to the scenario of entering the power camouflage mode through the terminal entity button.
在得到耗电伪装策略后,伪装处理模块23需要根据耗电伪装策略对终端的显示电量进行伪装处理。例如,当第二确定子模块2212确定出的伪装策略
为:初始显示电量为17%,显示电量的消耗速度为每分钟0.5%,则在进入终端后的120s后,伪装处理模块23将终端的显示电量伪装处理为16%,在第32分钟结束后,伪装处理模块23控制终端显示的电量为1%。After the power masquerading strategy is obtained, the masquerading processing module 23 needs to perform masquerading processing on the display power of the terminal according to the power masquerading strategy. For example, when the second determination sub-module 2212 determines the camouflage strategy
The initial display power is 17%, and the display power consumption rate is 0.5% per minute. After 120s after entering the terminal, the masquerading processing module 23 masquerades the display power of the terminal to 16%, after the end of the 32nd minute. The camouflage processing module 23 controls the amount of power displayed by the terminal to be 1%.
电量伪装模式下,终端的显示电量主要就是为了达到让使用者获取到虚假信息的效果,所以,在电量伪装模式下,应当尽量避免让使用者获取到真实的电量信息。在本实施例的一种优选示例当中,可以用伪装后终端电量的显示图标覆盖或代替真实电量的显示图标。同时,为了使伪装后终端电量的显示方式尽量与真实电量的显示保持一致,所以伪装后的显示图标与真实电量图标的形状、大小、颜色应尽量相同。In the power camouflage mode, the display power of the terminal is mainly to achieve the effect of allowing the user to obtain false information. Therefore, in the power camouflage mode, the user should be prevented from obtaining the real power information. In a preferred example of the embodiment, the display icon of the real battery can be overwritten or replaced with the display icon of the terminal power after camouflage. At the same time, in order to make the display mode of the terminal power after camouflage as consistent as possible with the display of the real power, the shape, size and color of the display icon after the camouflage and the real power icon should be the same as possible.
另外,在某些时候,使用者并不会特意关注终端的显示电量,例如,当使用者全神贯注地玩着终端的游戏时,他并不会注意到当前电量的多少。所以,为了让使用者不需要对终端电量信息投入过分的关注,就能够直观地获取到虚假电量信息,本实施例还提供优选示例:当伪装后的终端电量低于预设值时,还会弹出相应的提示信息提示电量过低。弹出的提示信息可以是文字信息或表征电量过低的图标。由于儿童可能对文字信息不够熟悉或敏感,所以,更进一步地,还可以在弹出文字提示信息的同时,采用语音信息进行同步提示。如果弹出的是图标信息,例如一个即将耗尽的电池图标,为了醒目,可以将该电池图标放大,比如覆盖整个显示屏,同时将图标的颜色更改为具有警示作用的红色。另外,在弹出图标信息进行提示的时候,还可以同步进行语音提示或播放警示音。In addition, at some point, the user does not pay attention to the display power of the terminal. For example, when the user concentrates on playing the game of the terminal, he does not notice the current amount of power. Therefore, in order to allow the user to obtain the false battery information without paying excessive attention to the power information of the terminal, the present embodiment also provides a preferred example: when the power of the terminal after the masquerading is lower than the preset value, A corresponding prompt message pops up indicating that the battery is too low. The prompt message that pops up can be a text message or an icon that indicates that the battery is too low. Since the child may not be familiar or sensitive to the text information, further, the voice message may be used to synchronize the prompt while the text prompt message is popped up. If the icon information is popped up, for example, a battery icon that is about to be exhausted, in order to be conspicuous, the battery icon can be enlarged, for example, to cover the entire display, and the color of the icon is changed to a red with warning effect. In addition, when the icon information is popped up, a voice prompt or a warning sound can be simultaneously synchronized.
毫无疑义的是,用户通过伪装终端电量对儿童使用终端的时间进行控制并不一定要终端进入关机状态才能实现,例如,假定终端电量低于3%的时候,显示的电量图标会变为红色,家长可以和孩子约定,当电量图标变为红色的时候就停止使用终端,这种做法在某些场景下也是可行的。Undoubtedly, the user can control the time when the child uses the terminal by disguising the terminal power. It is not necessary to enter the shutdown state. For example, if the terminal power is lower than 3%, the displayed power icon will turn red. Parents can agree with the child to stop using the terminal when the battery icon turns red. This is also possible in some scenarios.
在本实施例中,伪装策略生成模块22根据用户输入的第一指令和预设规则生成耗电伪装策略,从而使伪装处理模块23根据耗电伪装策略对终端的显示电量进行伪装处理,使进入电量伪装模式后的终端按照耗电伪装策略对伪装电量进行“消耗”,让电量伪装模式下的使用者,例如儿童获取到虚假的电量显示信息,达到控制儿童使用终端时间的目的,进而减小用户的负担,提高用
户体验。In this embodiment, the masquerading policy generation module 22 generates a power masquerading strategy according to the first instruction input by the user and the preset rule, so that the masquerading processing module 23 performs masquerading processing on the display power of the terminal according to the power masquerading policy, so as to enter The terminal after the power camouflage mode consumes the camouflage power according to the power consumption camouflage strategy, so that the user in the power camouflage mode, for example, the child obtains the false power display information, achieves the purpose of controlling the time of the child using the terminal, and thereby reduces User's burden, improve
User experience.
实施例四:Embodiment 4:
本实施例提出一种和第三实施例中不同的终端显示电量的控制装置,请参考图6:This embodiment proposes a control device for displaying the power amount of the terminal different from that in the third embodiment. Please refer to FIG. 6:
终端显示电量的控制装置2包括第一切换模块21、伪装策略生成模块22与伪装处理模块23以外,还包括低电提示模块24。The control device 2 for displaying the power of the terminal includes a first switching module 21, a masquerading policy generating module 22 and a masquerading processing module 23, and a low power prompting module 24.
电量伪装模式下,若终端的显示电量低于第一预设值时,低电提示模块24就开始进行电量过低的相关提示,优选地,当终端的伪装电量低于第一预设值之后,低电提示模块24每隔一定的时间就进行低电量的提示,例如,在本实施例中,将手机的第一预设值设置为3%,当经过伪装后,手机的显示电量低于3%时,低电提示模块24就每隔1分钟显示“手机电量过低,即将自动关机”的文字信息,或者在显示屏上显示表征低电量的图标。当手机显示的电量低于第二预设值的时候,例如显示电量低于1%时,低电提示模块24还可以一直显示低电量的提示信息,或者一直播放语音提示信息。第一预设值和第二预设值的大小可以由用户自行设置。In the power camouflage mode, if the display power of the terminal is lower than the first preset value, the low power prompting module 24 starts to perform a related prompt that the power is too low, preferably, after the terminal's camouflage power is lower than the first preset value. The low power prompting module 24 prompts the low battery at a certain time. For example, in this embodiment, the first preset value of the mobile phone is set to 3%, and after the camouflage, the display power of the mobile phone is lower than At 3%, the low power prompt module 24 displays a text message "The mobile phone is too low, that is, will be automatically turned off" every 1 minute, or displays an icon indicating low battery on the display screen. When the power displayed by the mobile phone is lower than the second preset value, for example, when the display power is lower than 1%, the low power prompting module 24 may also display the low battery prompt information or play the voice prompt information all the time. The size of the first preset value and the second preset value can be set by the user.
在本发明提供的一种优选示例当中,请参考图7,终端显示电量的控制装置2包括第一切换模块21、伪装策略生成模块22与伪装处理模块23、低电提示模块24和低电控制模块25、第二切换模块26。In a preferred example provided by the present invention, referring to FIG. 7, the terminal display power control device 2 includes a first switching module 21, a masquerading policy generation module 22 and a masquerading processing module 23, a low power prompt module 24, and low power control. Module 25, second switching module 26.
当伪装处理后的显示电量低于预设阈值时,低电控制模块25控制终端进入低电控制状态。在低电控制状态下,终端无法运行第一应用,第一应用可以是用户预先指定的应用,例如,用户预先设定,在低电控制状态下,终端无法运行“水果忍者”、“愤怒的小鸟”等游戏。优选地,第一应用也可以是终端的所有应用,这时候,低电控制模块25也可以控制终端进入关机状态,直接将终端的关机状态作为低电控制状态,当低电控制状态为关机状态时,第一应用包括终端所有的应用。预设阈值的大小也可以由用户自行设置,可以理解的是预设阈值应当小于第一预设值。When the display power after the masquerading process is lower than the preset threshold, the low power control module 25 controls the terminal to enter the low power control state. In the low power control state, the terminal cannot run the first application, and the first application may be an application specified by the user in advance, for example, the user presets, in the low power control state, the terminal cannot run the "fruit ninja", "angry" Birds and other games. Preferably, the first application may also be all applications of the terminal. At this time, the low-power control module 25 may also control the terminal to enter a shutdown state, directly using the shutdown state of the terminal as a low-power control state, and when the low-power control state is a shutdown state. The first application includes all applications of the terminal. The size of the preset threshold can also be set by the user. It can be understood that the preset threshold should be smaller than the first preset value.
在一种较好的实施例当中,当低电控制模块25控制终端进入低电控制状态后,第二切换模块26必须要监测到预设的恢复指令时才能控制终端退出电量伪装模式。假设低电控制状态下的终端只是不能运行用户指定的某些应用程
序,而没有进入关机状态,那么预设的恢复指令可以为特定的输入信息,例如,用户长按“音量-”键,即可退出电量伪装模式。当低电控制状态为关机状态,那么预设的恢复指令可以为预设的开机的次数,如,第二切换模块26必须要监测到用户已经尝试过3次开机,直到终端第4次尝试开机的时候才让终端切换到正常模式,并正常显示剩余电量,毫无疑义的是,前3次开机都应当失败。假设用户在手机真实电量为50%的时候,预设以10%的初始显示电量进入电量伪装模式,当显示电量低于0.1%时,低电控制模块25控制手机进入低电控制状态,使关机状态。在手机关机之后,孩子可能会进行1~2的开机尝试,以期望能够继续使用手机进行娱乐。但因为用户事先设置了必须要检测到第4次开机信号之后,第二切换模块26才能使手机正常开机,所以当孩子在1~2开机尝试都得到“手机电量过低,无法正常开机!”的提示信息后,他可能就会真的以为手机电量过低,从而放弃利用手机进行游戏或上网的想法。In a preferred embodiment, after the low power control module 25 controls the terminal to enter the low power control state, the second switching module 26 must monitor the preset recovery command to control the terminal to exit the power camouflage mode. Assume that the terminal in the low power control state is only unable to run certain applications specified by the user.
The sequence, without entering the shutdown state, the preset recovery command can be a specific input information, for example, the user long presses the "volume-" button to exit the power camouflage mode. When the low power control state is the shutdown state, the preset recovery command may be the preset number of power on. For example, the second switching module 26 must monitor that the user has tried the power on 3 times until the terminal attempts to boot the fourth time. Only when the terminal switches to the normal mode, and the remaining power is displayed normally, there is no doubt that the first three starts should fail. Suppose the user enters the power camouflage mode with the initial display power of 10% when the actual power of the mobile phone is 50%. When the display power is lower than 0.1%, the low power control module 25 controls the mobile phone to enter the low power control state to make the power off. status. After the phone is turned off, the child may try a 1~2 boot attempt to continue to use the phone for entertainment. However, because the user has previously set the need to detect the 4th power-on signal, the second switching module 26 can make the mobile phone boot normally, so when the child tries to boot from 1 to 2, the mobile phone is too low to power on! After the prompt message, he may really think that the mobile phone is too low, thus giving up the idea of using the mobile phone for games or surfing the Internet.
如图8所示,在终端显示电量的控制装置2中包括第一切换模块21、伪装策略生成模块22、伪装处理模块23和充电伪装模块27。As shown in FIG. 8, the control device 2 for displaying the amount of electric power in the terminal includes a first switching module 21, a masquerading policy generation module 22, a masquerading processing module 23, and a charging camouflage module 27.
充电伪装模块27可以防止终端进入电量伪装模式之后,儿童尝试对终端进行充电以便延长使用时间的情况发生。本实施例还提供这样的方案:当终端处于电量伪装模式时,充电伪装模块27监测到对终端的充电信号后,根据预设的充电伪装策略对终端的显示电量进行伪装,例如使终端显示电量的增长幅度低于实际的充电速度,营造出终端“充电速度慢”的效果。更进一步地,充电伪装模块27可以控制终端的显示屏显示表征充电异常的信息。例如,直接显示“充电异常!”或“充电失败!”当然,本领域技术人员应当明白,终端实际上是处于正常充电状态的。优选地,当终端处于电量伪装模式时监测到对终端的充电信号后,充电伪装模块27还可以进一步判断用户是否在继续对终端进行使用,如果没有使用信号,则可以不显示表征充电失败的信息,只是控制终端表现出充电速度较慢的特点,例如使伪装电量的增长速度低于真实的充电速度。如果检测到对终端的使用信号后,充电伪装模块27则控制终端显示表征充电失败的信息,同时充电伪装模块27还对终端的使用进行控制,例如,使终端无法运行某些程序,或者直接控制终端进入关机状态。The charging camouflage module 27 can prevent the child from attempting to charge the terminal to extend the usage time after the terminal enters the power camouflage mode. The embodiment further provides a solution: when the terminal is in the power camouflage mode, the charging camouflage module 27 monitors the charging signal to the terminal, and camouflages the display power of the terminal according to a preset charging camouflage policy, for example, causing the terminal to display the power. The growth rate is lower than the actual charging speed, creating the effect of the terminal "slow charging speed". Further, the charging camouflage module 27 can control the display screen of the terminal to display information characterizing the charging abnormality. For example, it is directly displayed that "charging abnormality!" or "charging failure!" Of course, those skilled in the art should understand that the terminal is actually in a normal state of charge. Preferably, after the terminal is in the power camouflage mode, the charging camouflage module 27 can further determine whether the user continues to use the terminal. If no signal is used, the information indicating the charging failure may not be displayed. However, the control terminal exhibits a slow charging characteristic, for example, the camouflage power is increased at a slower speed than the real charging speed. If the usage signal to the terminal is detected, the charging camouflage module 27 controls the terminal to display information characterizing the charging failure, and the charging camouflage module 27 also controls the use of the terminal, for example, making the terminal unable to run certain programs, or directly controlling The terminal enters the shutdown state.
另外,在第三实施例中,第一确定子模块2211和第二确定子模块2212生
成的耗电伪装策略都是使终端以一个伪装的初始电量进入电量伪装模式,我们将这种伪装方式称为“初始伪装方式”。但在本实施例中,进入电量伪装模式的时候,可以以真实的电量进入,也即,直接将真实的电量作为进入电量伪装模式时的初始显示电量。只是在随后的过程当中,以伪装后的耗电速度对终端的电量进行消耗,即,以一个与真实电量消耗速度不同的显示电量消耗速度对终端的显示电量进行“消耗”。这种伪装方式为“中间伪装方式”。In addition, in the third embodiment, the first determining submodule 2211 and the second determining submodule 2212 are born
The power consumption camouflage strategy is to make the terminal enter the power camouflage mode with a camouflaged initial power. We call this camouflage mode "initial camouflage mode". However, in this embodiment, when entering the power camouflage mode, the power can be entered with real power, that is, the real power is directly used as the initial display power when entering the power camouflage mode. Only in the subsequent process, the power consumption of the terminal is consumed by the power consumption speed after the camouflage, that is, the display power of the terminal is "consumed" by a display power consumption speed different from the actual power consumption speed. This camouflage method is "intermediate camouflage mode".
如图9所示,二值确定模块221包括第三确定子模块2213。第三确定子模块2213根据用户输入的第一指令和预设规则确定显示电量的消耗速度,例如,当第一指令中包含用户输入的预设时长时,第三确定子模块2213可以将当前终端的真实电量作为初始显示电量,然后根据以下公式得到显示电量的消耗速度:As shown in FIG. 9, the binary determination module 221 includes a third determination sub-module 2213. The third determining sub-module 2213 determines the consumption speed of the display power according to the first instruction input by the user and the preset rule. For example, when the first instruction includes the preset duration input by the user, the third determining sub-module 2213 may set the current terminal. The actual power is used as the initial display power, and then the display power consumption rate is obtained according to the following formula:
显示电量的消耗速度=初始显示电量/预设时长;Display the consumption speed of the power = initial display power / preset duration;
可以理解的是,预设时长必须小于终端当前真实电量实际能够使用时间,也就是说,显示电量的消耗速度必须大于终端真实的耗电速度。It can be understood that the preset duration must be smaller than the actual real power usage of the terminal, that is, the consumption speed of the display power must be greater than the actual power consumption speed of the terminal.
在本发明的另外一种示例当中,如图10所示,二值确定模块221包括第四确定子模块2214,当第一指令中直接包含预设的耗电速度时,第四确定子模块2214可以直接解析出用户的预设耗电速度作为显示电量的消耗速度,同样的,预设耗电速度必须大于终端真实的耗电速度。In another example of the present invention, as shown in FIG. 10, the binary determination module 221 includes a fourth determination sub-module 2214. When the first instruction directly includes a preset power consumption speed, the fourth determination sub-module 2214 The preset power consumption speed of the user can be directly analyzed as the consumption speed of the display power. Similarly, the preset power consumption speed must be greater than the actual power consumption speed of the terminal.
按照实施例三中二值确定模块221生成的伪装策略,如果用户经常都使用第一确定子模块2211来生成伪装策略,控制孩子使用终端的时间,那么很可能终端每一次进入电量伪装模式时的初始显示电量都相同,这可能会导致儿童察觉到电量伪装。例如,用户每次都希望孩子使用10%的电量后就停止使用,那么终端每次进入电量伪装模式的初始显示电量都为10%。而根据终端真实的耗电情况来看,出现这种情形的概率微乎其微,所以,模拟的情况会有所“失真”。当然,在初始伪装方式中,还能又第二确定子模块2212根据预设时长来确定终端进入电量伪装模式的初始显示电量,而且假定第二确定子模块2212根据预设时长预估出的初始显示电量并不十分准确,但由于一个终端在不同时间点的耗电水平大致比较平均,所以也会导致终端每次进入电量伪装模式的初始显示电量相差无几。所以为了保证每次的初始显示电量更贴近真实水平,采
用“中间伪装方式”来对电量进行伪装处理会显得更为逼真,因为这种伪装是通过增大显示电量的消耗速度,使得终端的显示电量在无形之中被快速消耗,所以更难以被儿童察觉。According to the masquerading policy generated by the binary value determining module 221 in the third embodiment, if the user often uses the first determining sub-module 2211 to generate the masquerading policy and controls the time for the child to use the terminal, it is likely that the terminal enters the power masquerading mode each time. The initial display is the same amount of power, which may cause the child to perceive the battery disguise. For example, every time the user wants the child to use 10% of the power and then stops using it, the initial display power of the terminal into the power camouflage mode is 10% each time. According to the actual power consumption of the terminal, the probability of this situation is very small, so the simulation situation will be "distorted". Of course, in the initial masquerading mode, the second determining sub-module 2212 can further determine the initial display power of the terminal into the power masquerading mode according to the preset duration, and assume that the second determining sub-module 2212 estimates the initial according to the preset duration. The display power is not very accurate, but because the power consumption level of a terminal at different time points is roughly average, it will also cause the terminal to display the initial display power of the power camouflage mode every time. So in order to ensure that the initial display power is closer to the true level,
It is more realistic to use the "intermediate camouflage method" to camouflage the power, because this camouflage is to increase the display power consumption speed, so that the display power of the terminal is quickly consumed in the invisible, so it is more difficult to be children. aware.
实施例五:Embodiment 5:
下面以终端为手机作为示例,对本发明提供的终端显示电量的控制方法和装置做进一步阐述,如图11:In the following, taking the terminal as a mobile phone as an example, the method and device for controlling the display power of the terminal provided by the present invention are further elaborated, as shown in FIG. 11:
S1101、接收用户对电量伪装模式下各参数的设置。S1101: Receive a setting of each parameter of the user in the power camouflage mode.
例如,用户可以进入手机操作界面,点击手机桌面上的设置图标,进入设置列表,选择对手机电量控制。For example, the user can enter the mobile phone operation interface, click the setting icon on the mobile phone desktop, enter the setting list, and select the power control for the mobile phone.
假设用户首次使用电量伪装功能,可以在对参数进行设置的同时设置用户密码,该用户密码可以是数字、字母或其结合。也可以是通过采集得到的用户手势、用户指纹等信息。当用户设定了用户密码后,在以后使用电量伪装功能的时候,可能都需要用户输入与之匹配的密码信息才能正常使用。Assuming that the user first uses the power masquerading function, the user password can be set while setting the parameters, and the user password can be a number, a letter, or a combination thereof. It can also be information such as user gestures and user fingerprints obtained through acquisition. When the user sets the user password, when using the power masquerading function later, the user may need to input the matching password information to use normally.
用户可以设置的参数包括以何种方式进入电量伪装模式,是初始伪装方式还是中间伪装方式,当用户选择了相应的伪装方式后,需要进一步设定该方式下的其他参数。例如,当用户选择了以初始伪装方式进入电量伪装模式后,要么需要自定义在电量伪装模式下的初始电量,要么需要设定进入电量伪装模式中的时间段。如果当前手机的电量为47%,用户想要保留35%的电量供其自身在随后使用,那么他可能会将初始电量设置为12%。The parameters that the user can set include the way to enter the power camouflage mode, whether it is the initial camouflage mode or the intermediate camouflage mode. After the user selects the corresponding camouflage mode, other parameters in the mode need to be further set. For example, when the user selects to enter the power camouflage mode in the initial camouflage mode, either the initial power in the power camouflage mode needs to be customized, or the time period in the power camouflage mode needs to be set. If the current phone's battery is 47% and the user wants to reserve 35% of the battery for their subsequent use, he may set the initial charge to 12%.
S1102、接收用户的第一指令,控制手机进入电量伪装模式。S1102: Receive a first instruction of the user, and control the mobile phone to enter a power camouflage mode.
用户设定好各参数之后点击“确定”,这个“确定”就相当于一个切换指。在本实施例中,接收到用户在手机上触发“确定”的信号后,控制手机以12%的初始电量进入电量伪装模式。After the user sets each parameter and clicks "OK", this "OK" is equivalent to a switching finger. In this embodiment, after receiving the signal that the user triggers “OK” on the mobile phone, the mobile phone is controlled to enter the power camouflage mode with an initial power of 12%.
S1103、根据第一指令与预设策略对手机的真实电量进行伪装。S1103: masquerade the real power of the mobile phone according to the first instruction and the preset policy.
由于在此次伪装当中,是以用户预定的初始电量进入的电量伪装模式,所以,在随后对伪装电量进行“消耗”时,可以简单地根据真实电量的消耗情况进行,例如,手机真实电量消耗了3%,那么伪装后的手机电量为9%,显示的剩余电量也为9%。Because in this camouflage, the power camouflage mode entered by the initial power reserved by the user, when the camouflage power is subsequently "consumed", it can be simply based on the actual power consumption, for example, the real power consumption of the mobile phone. After 3%, the mobile phone power after camouflage is 9%, and the remaining battery power is also 9%.
S1104、当检测手机伪装后的电量低于第一预设值时,开始进行低电量提
示。S1104. When detecting that the power of the mobile phone after the camouflage is lower than the first preset value, start low battery charging.
Show.
第一预设值为进行低电量提示与否的界限,当伪装后的电量低于第一预设值时,就开始提示,否则不提示,提示的策略可以参照第二实施例,例如每隔固定的时间就提示一次。优选地,本实施例中的第一预设值为3%,当伪装后的手机电量低于3%的时候,每隔一分钟提示一次。The first preset value is a boundary for performing a low battery prompt or not. When the masqueted power is lower than the first preset value, the prompt is started. Otherwise, the prompt is not prompted. The prompting strategy may refer to the second embodiment, for example, every second. Prompted once at a fixed time. Preferably, the first preset value in the embodiment is 3%, and when the power of the masqueraded mobile phone is less than 3%, the prompt is prompted every one minute.
S1105、当检测手机伪装后的电量为零时,控制手机进入关机状态。S1105: When detecting that the power of the mobile phone is zero, the mobile phone is controlled to enter a shutdown state.
由于关机状态属于低电控制状态的一种,所以控制手机进入关机状态实质上就是进入低电控制状态。本领域技术人员可以理解的是,手机也可以不进入关机状态,而只是不能运行第一应用,第一应用可以是用户指定的某些应用程序。Since the shutdown state belongs to a low-power control state, controlling the mobile phone to enter the shutdown state essentially enters the low-power control state. It can be understood by those skilled in the art that the mobile phone may not enter the shutdown state, but only the first application cannot be run, and the first application may be some application specified by the user.
S1106、监测并统计手机尝试开机的次数。S1106. Monitor and count the number of times the mobile phone attempts to boot.
进入低电控制状态后,需要监测预设的恢复指令,当低电状态为关机状态时,可以将预设的开机次数作为预设的恢复指令。After entering the low power control state, it is necessary to monitor the preset recovery command. When the low power state is the shutdown state, the preset power on time can be used as the preset recovery command.
S1107、判断开机的次数是否达到预设值,若是,则执行S1108,若否,则继续执行S1106。S1107. Determine whether the number of power-on times reaches a preset value. If yes, execute S1108. If no, continue to execute S1106.
在这里,预设次数的开机动作即是恢复指令,若开机次数达到预设值,则可以进入正常模式,否则,需要继续统计手机尝试开机的次数。Here, the preset number of power-on actions is a recovery command. If the power-on number reaches the preset value, the normal mode can be entered. Otherwise, it is necessary to continue counting the number of times the mobile phone attempts to power on.
可以理解的是,在到达预设开机次数之前的每一次开机都应当以失败告终,例如,可以提示使用者“手机电量过低,无法开机”。It can be understood that each booting before reaching the preset booting number should end in failure. For example, the user can be prompted to "the mobile phone is too low to be turned on".
S1108、控制手机正常开机并显示真实电量。S1108, control the mobile phone to start normally and display the real power.
当使用者已经进行了预设次数的开机动作之后,可以控制手机退出电量伪装模式,进入正常模式。在正常模式下,手机可以显示其真实电量。After the user has performed the preset number of power-on actions, the mobile phone can be controlled to exit the power camouflage mode and enter the normal mode. In normal mode, the phone can display its true battery level.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。
The embodiments of the present invention have been described above with reference to the drawings, but the present invention is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative and not restrictive, and those skilled in the art In the light of the present invention, many forms may be made without departing from the spirit and scope of the invention as claimed.
Claims (10)
- 一种终端显示电量的控制方法,其特征在于,包括:A method for controlling power display of a terminal, comprising:接收到用户输入的第一指令后控制终端进入电量伪装模式;After receiving the first instruction input by the user, the control terminal enters the power camouflage mode;根据所述第一指令按照预设规则生成耗电伪装策略;Generating a power consumption camouflage strategy according to the preset rule according to the first instruction;根据所述耗电伪装策略对所述终端的显示电量进行伪装处理。The display power of the terminal is masqueraded according to the power consumption camouflage policy.
- 如权利要求1所述的终端显示电量的控制方法,其特征在于,还包括:The method for controlling the amount of power displayed by the terminal according to claim 1, further comprising:当伪装处理后的显示电量低于预设阈值时,控制所述终端进入低电控制状态,在所述低电控制状态下,所述终端无法运行第一应用。When the display power level after the masquerading process is lower than the preset threshold, the terminal is controlled to enter a low power control state, and in the low power control state, the terminal cannot run the first application.
- 如权利要求2所述的终端显示电量的控制方法,其特征在于,还包括:The method for controlling the amount of power displayed by the terminal according to claim 2, further comprising:在所述低电控制状态下监测到预设的恢复指令时,控制所述终端退出电量伪装模式。When the preset recovery instruction is detected in the low power control state, the terminal is controlled to exit the power camouflage mode.
- 如权利要求1所述的终端显示电量的控制方法,其特征在于,还包括:The method for controlling the amount of power displayed by the terminal according to claim 1, further comprising:在电量伪装模式下监测到充电信号时,根据预设的充电伪装策略对所述终端的显示电量进行伪装和/或对所述终端的使用进行控制。When the charging signal is detected in the power camouflage mode, the display power of the terminal is camouflaged according to a preset charging camouflage policy and/or the use of the terminal is controlled.
- 如权利要求1-4任一项所述的终端显示电量的控制方法,其特征在于,所述根据所述第一指令按照预设规则生成耗电伪装策略包括:The method for controlling the power consumption of the terminal according to any one of claims 1 to 4, wherein the generating the power consumption camouflage strategy according to the preset rule according to the first instruction comprises:根据所述第一指令和所述预设规则确定所述终端进入电量伪装模式时的初始显示电量和所述显示电量的消耗速度。And determining, according to the first instruction and the preset rule, an initial display power quantity and a consumption speed of the display power quantity when the terminal enters the power camouflage mode.
- 如权利要求5所述的终端显示电量的控制方法,其特征在于,所述根据所述第一指令和所述预设规则确定所述终端进入电量伪装模式时的初始显示电量和所述显示电量的消耗速度的方式包括以下任意一种:The method for controlling the display of the electric quantity of the terminal according to claim 5, wherein the determining the initial display electric quantity and the display electric quantity when the terminal enters the electric energy camouflage mode according to the first instruction and the preset rule The way to consume speed includes any of the following:当所述第一指令中包括预设电量,将所述预设电量作为所述初始显示电量,将所述终端的真实耗电速度作为所述显示电量的消耗速度;When the first instruction includes a preset power quantity, the preset power quantity is used as the initial display power quantity, and the real power consumption speed of the terminal is used as the consumption speed of the display power quantity;当所述第一指令中包括预设时长,根据所述预设时长预估出所述初始显示电量,并根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速度;When the first instruction includes a preset duration, the initial display power is estimated according to the preset duration, and the consumption speed of the display power is determined according to the initial display power and the preset duration;当所述第一指令中包括预设时长,将所述终端当前的真实电量作为所述初始显示电量,根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速度; When the first instruction includes a preset duration, the current real power of the terminal is used as the initial display power, and the consumption speed of the display power is determined according to the initial display power and the preset duration;当所述第一指令中包括预设耗电速度,将所述终端当前的真实电量作为所述初始显示电量,将所述预设耗电速度作为所述显示电量的消耗速度。When the first instruction includes a preset power consumption speed, the current real power of the terminal is used as the initial display power, and the preset power consumption speed is used as the consumption speed of the displayed power.
- 一种终端显示电量的控制装置,其特征在于,包括:A control device for displaying power of a terminal, comprising:第一切换模块,用于接收到用户输入的第一指令后控制终端进入电量伪装模式;a first switching module, configured to: after receiving the first instruction input by the user, the control terminal enters a power disguise mode;伪装策略生成模块,用于根据所述第一指令按照预设规则生成耗电伪装策略;a masquerading policy generating module, configured to generate a power masquerading strategy according to the preset rule according to the first instruction;伪装处理模块,用于根据所述耗电伪装策略对终端的显示电量进行伪装处理。The masquerading processing module is configured to perform masquerading processing on the display power of the terminal according to the power masquerading strategy.
- 如权利要求7所述的终端显示电量的控制装置,其特征在于,还包括:The apparatus for controlling the amount of power displayed by the terminal according to claim 7, further comprising:低电控制模块,用于当伪装处理后的显示电量低于预设阈值时,控制所述终端进入低电控制状态,在所述低电控制状态下,所述终端无法运行第一应用。The low-power control module is configured to control the terminal to enter a low-power control state when the display power level after the masquerading process is lower than a preset threshold, and the terminal cannot run the first application in the low-power control state.
- 如权利要求7或8所述的终端显示电量的控制装置,其特征在于,所述伪装策略生成模块包括:The apparatus for controlling the amount of power displayed by the terminal according to claim 7 or 8, wherein the masquerading policy generation module comprises:二值确定模块,用于根据所述第一指令和所述预设规则确定所述终端进入电量伪装模式时的初始显示电量和所述显示电量的消耗速度。The binary determining module is configured to determine, according to the first instruction and the preset rule, an initial display power quantity and a consumption speed of the display power quantity when the terminal enters the power camouflage mode.
- 如权利要求9所述的终端显示电量的控制装置,其特征在于,所述二值确定模块包括以下任意一种:The apparatus for controlling the amount of electric power displayed by the terminal according to claim 9, wherein the binary determination module comprises any one of the following:第一确定子模块,用于当所述第一指令中包括预设电量,将所述预设电量作为所述初始显示电量,将所述终端的真实耗电速度作为所述显示电量的消耗速度;a first determining submodule, configured to include a preset power amount in the first instruction, use the preset power quantity as the initial display power quantity, and use a real power consumption speed of the terminal as a consumption speed of the display power quantity ;第二确定子模块,用于当所述第一指令中包括预设时长,根据所述预设时长预估出所述初始显示电量,并根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速度;a second determining submodule, configured to: when the first instruction includes a preset duration, estimating the initial display power according to the preset duration, and determining, according to the initial display power and the preset duration Describe the rate of consumption of electricity;第三确定子模块,用于当所述第一指令中包括预设时长,将所述终端当前的真实电量作为所述初始显示电量,根据所述初始显示电量和所述预设时长确定所述显示电量的消耗速度;a third determining submodule, configured to: when the first instruction includes a preset duration, the current real power of the terminal is used as the initial display power, and determining the initial display power and the preset duration according to the initial display power Display the consumption speed of the power;第四确定子模块,用于当所述第一指令中包括预设耗电速度,将所述终端当前的真实电量作为所述初始显示电量,将所述预设耗电速度作为所述显示电量的消耗速度。 a fourth determining submodule, configured to: when the first instruction includes a preset power consumption speed, use the current real power of the terminal as the initial display power, and use the preset power consumption speed as the display power The speed of consumption.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610281204.6 | 2016-04-29 | ||
CN201610281204.6A CN105975879A (en) | 2016-04-29 | 2016-04-29 | Control method and device for displayed electric quantity of terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017185456A1 true WO2017185456A1 (en) | 2017-11-02 |
Family
ID=56994334
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/084065 WO2017185456A1 (en) | 2016-04-29 | 2016-05-31 | Method and apparatus for controlling displayed electricity quantity of terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105975879A (en) |
WO (1) | WO2017185456A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109033768A (en) * | 2018-06-28 | 2018-12-18 | 上海与德科技有限公司 | A kind of charging method based on intelligent mobile terminal, device and server |
CN114047449A (en) * | 2021-11-16 | 2022-02-15 | 深圳市广和通无线股份有限公司 | Battery power display method and device, electronic equipment and storage medium |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109992084A (en) * | 2017-12-28 | 2019-07-09 | 深圳市优必选科技有限公司 | Robot low-power protection method and device and robot |
CN109104533A (en) * | 2018-11-02 | 2018-12-28 | 上海掌门科技有限公司 | A kind of method and device showing virtual electricity |
CN112394802A (en) * | 2019-07-31 | 2021-02-23 | 奇酷互联网络科技(深圳)有限公司 | Reminding method, mobile terminal and computer readable storage medium |
CN114236461B (en) * | 2021-12-17 | 2023-11-21 | 深圳市百富智能新技术有限公司 | Electric quantity calibration method, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312866A (en) * | 2012-03-11 | 2013-09-18 | 上海闻泰电子科技有限公司 | Mobile phone with power exhaustion prompt function and power exhaustion prompt method |
CN105653002A (en) * | 2014-11-14 | 2016-06-08 | 东莞宇龙通信科技有限公司 | Display method and device for battery electric quantity and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375127B (en) * | 2011-11-11 | 2014-01-08 | 深圳市中兴移动通信有限公司 | Method for displaying residual battery electricity quantity of mobile terminal |
CN103207660A (en) * | 2012-01-16 | 2013-07-17 | 宇龙计算机通信科技(深圳)有限公司 | Invalidating processing method for application icons, and communication terminal |
CN103257320B (en) * | 2013-05-08 | 2019-04-02 | 百度在线网络技术(北京)有限公司 | The electric quantity environment construction method and apparatus of mobile terminal |
CN103792489B (en) * | 2013-11-22 | 2017-03-22 | 广州视源电子科技股份有限公司 | Improved method for measuring and calculating system battery capacity |
-
2016
- 2016-04-29 CN CN201610281204.6A patent/CN105975879A/en active Pending
- 2016-05-31 WO PCT/CN2016/084065 patent/WO2017185456A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312866A (en) * | 2012-03-11 | 2013-09-18 | 上海闻泰电子科技有限公司 | Mobile phone with power exhaustion prompt function and power exhaustion prompt method |
CN105653002A (en) * | 2014-11-14 | 2016-06-08 | 东莞宇龙通信科技有限公司 | Display method and device for battery electric quantity and electronic equipment |
Non-Patent Citations (1)
Title |
---|
JEVONTOVSKI, DISGUISE BATTERY STATUS WITH IOS7 JAILBREAK PLUGIN, 14 February 2014 (2014-02-14), Retrieved from the Internet <URL:http://ios.d.cn/news/view-9515.html> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109033768A (en) * | 2018-06-28 | 2018-12-18 | 上海与德科技有限公司 | A kind of charging method based on intelligent mobile terminal, device and server |
CN114047449A (en) * | 2021-11-16 | 2022-02-15 | 深圳市广和通无线股份有限公司 | Battery power display method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105975879A (en) | 2016-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017185456A1 (en) | Method and apparatus for controlling displayed electricity quantity of terminal | |
CN110769319B (en) | Standby wakeup interaction method and device | |
US10244099B2 (en) | Method and device for determining status of terminal, and terminal | |
CN105528228A (en) | Apparatus and method for automatically closing applications | |
CN107885534A (en) | A kind of screen locking method, terminal and computer-readable medium | |
CN107391062A (en) | Method and device for adjusting screen display and mobile terminal thereof | |
CN106502371A (en) | A kind of electricity-saving control method and device | |
WO2017113821A1 (en) | Method and apparatus for operating smart phone and smart phone | |
WO2022199470A1 (en) | Dynamic wallpaper acquisition method and device | |
US20230152956A1 (en) | Wallpaper display control method and apparatus and electronic device | |
US11270087B2 (en) | Object scanning method based on mobile terminal and mobile terminal | |
CN104965703A (en) | Method and mobile terminal for controlling screen-on of mobile terminal | |
CN104503568A (en) | Method and device for realizing terminal use rule | |
CN106294079B (en) | A kind of information prompting method and device | |
WO2014023259A1 (en) | Multifunctional intelligent terminal and energy management method thereof | |
CN109224445B (en) | Game control method, device, equipment and storage medium in intelligent wearable equipment | |
CN110209428A (en) | A kind of terminal screen awakening method, device, terminal and storage medium | |
CN111290926A (en) | Terminal prompting method and device, storage medium and terminal | |
WO2023045921A1 (en) | Display method and apparatus, and electronic device | |
WO2018018685A1 (en) | Screen control method, and terminal | |
US11266910B2 (en) | Control method and control device | |
CN110177172A (en) | Terminal Anti-addiction method, apparatus, terminal and computer readable storage medium | |
CN113786619A (en) | Reminding event processing method and device and electronic equipment | |
CN103984483A (en) | Method for taking videos as before-unlocking screensaver of intelligent terminal | |
CN109219112B (en) | Mobile terminal and power saving method and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16899966 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16899966 Country of ref document: EP Kind code of ref document: A1 |