Disclosure of Invention
The invention provides a charging method, a charging device, a charging terminal and a charging medium based on an intelligent mobile terminal, and aims to help parents to close the mobile terminal under the condition of no conflict by controlling the electric quantity of the mobile terminal so as to avoid the infant from being enthusiastic in the mobile terminal.
In one aspect, the present invention provides a charging method based on an intelligent mobile terminal, wherein the charging method includes:
receiving an externally input control instruction in a state of setting a preset threshold value, and reading the current initial electric quantity of the mobile terminal;
reading current electric quantity data of the mobile terminal, and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data;
and switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value.
Preferably, the above charging method based on an intelligent mobile terminal, wherein before receiving an externally input control command in a state where a predetermined threshold is set, and reading a current initial power of the mobile terminal, the method further includes:
the authentication information of the operator is read out,
and receiving a first control threshold value input from the outside in the state that the verification information is matched with the standard information, and forming the preset threshold value according to the first control threshold value.
Preferably, the above charging method based on an intelligent mobile terminal includes:
accepting an externally input second control threshold in a state where the verification information does not match the standard information;
comparing the second control threshold with the predetermined threshold, in a state that the second control threshold is smaller than the predetermined threshold;
updating the predetermined threshold in accordance with the second control threshold to match the predetermined threshold to the second control threshold.
Preferably, in the charging method based on the intelligent mobile terminal, a message output is formed in a state that the predetermined threshold is updated.
On the other hand, the present invention further provides a charging device based on an intelligent mobile terminal, wherein the charging device comprises:
the setting unit receives an externally input control instruction in a state of setting a preset threshold value and reads the current initial electric quantity of the mobile terminal;
the reading unit is used for reading the current electric quantity data of the mobile terminal and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data;
and the control unit switches the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value.
Preferably, an above-mentioned charging device based on intelligent mobile terminal, wherein, still include:
the input unit reads authentication information of an operator, receives a first control threshold value input from the outside in a state that the authentication information matches standard information, and forms the predetermined threshold value according to the first control threshold value.
Preferably, above-mentioned a charging device based on intelligent mobile terminal, wherein, includes: the input unit receives a second control threshold value input externally when the verification information does not match standard information; comparing the second control threshold with the predetermined threshold, in a state that the second control threshold is smaller than the predetermined threshold; updating the predetermined threshold in accordance with the second control threshold to match the predetermined threshold to the second control threshold.
Preferably, in the charging device based on the smart mobile terminal, the input unit forms a message output in a state that the predetermined threshold is updated.
In another aspect, the present invention further provides a terminal, wherein the terminal includes:
one or more processors;
storage means for storing one or more programs;
When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned charging methods based on the intelligent mobile terminal.
Finally, the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the intelligent mobile terminal-based charging method as described in any one of the above.
Compared with the prior art, the invention has the advantages that:
in the invention, an externally input control instruction is received under the state of setting a preset threshold value, and the current initial electric quantity of the mobile terminal is read; reading current electric quantity data of the mobile terminal, and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data; and switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value. The different working modes of the mobile terminal are switched under different electric quantity storage or consumption states, so that a scene that the mobile terminal is temporarily unavailable or the consumption of the mobile terminal is finished is caused to children, the time for the children to use the mobile terminal is controlled under the condition that parents do not intervene, the children are prevented from being addicted to electronic products under the conflict-free state, and the parents can conveniently educate the children.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a charging method based on an intelligent mobile terminal according to an embodiment of the present invention, where the embodiment is applicable to any mobile terminal, and as shown in fig. 1, the method specifically includes:
step S110, receiving an externally input control instruction in a preset threshold setting state, and reading the current initial electric quantity of the mobile terminal; the control instruction can be input for processing commands, such as opening a webpage, playing an audio/video file, taking a picture and the like, and can also be accessed for electric energy, such as supplementing the electric energy to the mobile terminal. When the control instruction is the input of a processing command, the predetermined threshold is the total amount of electric energy which can be consumed by the current mobile terminal, and when the control instruction is electric energy supplement, the predetermined threshold is the total amount of electric energy which can be supplemented by the current mobile terminal,
Step S120, reading current electric quantity data of the mobile terminal, and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data; the current electric quantity data can be read in real time or irregularly, for example, when the initial electric quantity is 100% and the predetermined threshold is set to 20%, the current electric quantity data is 95%, the electric quantity change value is 5%, the time interval between the next time of reading the current electric quantity and the current time can be 10 minutes, when the initial electric quantity is 100% and the predetermined threshold is set to 20%, the current electric quantity data is 85%, the electric quantity change value is 15%, the time interval between the next time of reading the current electric quantity and the current time can be 3 minutes, that is, when the electric quantity change value is closer to the predetermined threshold, the current electric quantity data is read more frequently.
And step S130, switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value. For example, when the working state of the mobile terminal is switched in a state that the electric quantity change value is not less than the total amount of the consumable electric energy, for example, the current mobile terminal is in a playing state, and the mobile terminal is switched in a state that the electric quantity change value is not less than the total amount of the consumable electric energy, the playing state of the mobile terminal is changed into a charging state, and the current electric quantity can be displayed to be 2% or even lower. And when the working state of the mobile terminal is switched under the state that the electric quantity change value is not less than the total amount of the electric energy which can be supplemented, for example, the current mobile terminal is in a charging state, the mobile terminal is switched from the charging state to a power-off state when the electric quantity change value is not less than the total amount of the electric energy which can be supplemented, and the current electric quantity can be displayed to be 100%.
In the invention, an externally input control instruction is received under the state of setting a preset threshold value, and the current initial electric quantity of the mobile terminal is read; reading current electric quantity data of the mobile terminal, and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data; and switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value. The working modes of the mobile terminal are switched under different states of electric quantity storage or consumption, so that the scene that the mobile terminal is temporarily unavailable or the consumption of the mobile terminal is finished is caused to children, the time for the children to use the mobile terminal is controlled under the condition that parents do not intervene, the children are prevented from being addicted to electronic products under the conflict-free state, and parents can conveniently educate the children.
It should be noted that: when the charging method based on the intelligent mobile terminal is specifically applied, the charging method based on the intelligent mobile terminal can be combined with an image acquisition unit for use, whether a current user is a child or not is judged through the image acquisition unit, and the charging method based on the intelligent mobile terminal is applied under the condition that the user is the child.
As a further preferred embodiment, the above charging method based on an intelligent mobile terminal, wherein, before receiving an externally input control command in a state where a predetermined threshold is set and reading a current initial power of the mobile terminal, the step S110 further includes: as shown in figure 2 of the drawings, in which,
Step S1091, reading authentication information of an operator;
step S1092, receiving a first control threshold value input from outside in a state that the verification information matches the standard information, and forming the predetermined threshold value according to the first control threshold value. And when the verification information of the operator is matched with the state of the standard information, the authority of the operator can be judged to be quite high, the first control threshold value input by the operator is received at the moment, and the preset threshold value is formed according to the first control threshold value.
As a further preferred embodiment, the above charging method based on an intelligent mobile terminal further includes,
step S1093, accepting a second control threshold value input from outside in a state where the verification information does not match the standard information;
step S1094, comparing the second control threshold with the predetermined threshold, and determining whether the second control threshold is smaller than the predetermined threshold;
step S1095, updating the predetermined threshold according to the second control threshold, so that the predetermined threshold matches the second control threshold.
When the verification information of the operator does not match the state of the standard information, the authority of the operator can be judged to be quite low, a second control threshold value input by the operator is received at the moment, the second control threshold value is compared with the preset threshold value, and the second control threshold value is smaller than the preset threshold value; updating the predetermined threshold value according to the second control threshold value so that the predetermined threshold value matches the second control threshold value, and discarding the second control threshold value in a state where the second control threshold value is not less than the predetermined threshold value. In short, the permission lower value decreases the range of the predetermined threshold value but refuses to expand the range of the predetermined threshold value.
As a further preferred embodiment, in the above charging method based on a smart mobile terminal, in step S1096, a message output is formed in a state that the predetermined threshold is updated. The operator who is notified of the predetermined threshold value at the time of the update of the predetermined threshold value is facilitated to acquire the setting state of the predetermined threshold value.
Example two
The invention further provides a charging device based on the intelligent mobile terminal, wherein the charging device comprises:
the setting unit receives an externally input control instruction in a state of setting a preset threshold value and reads the current initial electric quantity of the mobile terminal; the control instruction can be input for processing commands, such as opening a webpage, playing an audio/video file, taking a picture and the like, and can also be accessed for electric energy, such as supplementing the electric energy to the mobile terminal. When the control instruction is input of a processing command, the predetermined threshold is the total amount of electric energy which can be consumed by the current mobile terminal, and when the control instruction is electric energy supplement, the predetermined threshold is the total amount of electric energy which can be supplemented by the current mobile terminal.
The reading unit is used for reading the current electric quantity data of the mobile terminal and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data; the current electric quantity data can be read in real time or irregularly, for example, when the initial electric quantity is 100% and the predetermined threshold is set to 20%, the current electric quantity data is 95%, the electric quantity change value is 5%, the time interval between the next time of reading the current electric quantity and the current time can be 10 minutes, when the initial electric quantity is 100% and the predetermined threshold is set to 20%, the current electric quantity data is 85%, the electric quantity change value is 15%, the time interval between the next time of reading the current electric quantity and the current time can be 3 minutes, that is, when the electric quantity change value is closer to the predetermined threshold, the current electric quantity data is read more frequently.
And the control unit is used for switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value. For example, when the working state of the mobile terminal is switched in a state where the electric quantity change value is not less than the total amount of the consumable electric energy, for example, the current mobile terminal is in a playing state, and the mobile terminal is switched in a state where the electric quantity change value is not less than the total amount of the consumable electric energy, the playing state of the mobile terminal is changed into a charging state, and the current electric quantity can be displayed to be 2% or even lower. And when the working state of the mobile terminal is switched under the state that the electric quantity change value is not less than the total amount of the replenishable electric energy, for example, the current mobile terminal is in a charging state, and the mobile terminal is switched under the state that the electric quantity change value is not less than the total amount of the replenishable electric energy, the charging state of the mobile terminal is changed into a power-off state, and the current electric quantity can be displayed to be 100%.
In the invention, an externally input control instruction is received under the state of setting a preset threshold value, and the current initial electric quantity of the mobile terminal is read; reading current electric quantity data of the mobile terminal, and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data; and switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value. The working modes of the mobile terminal are switched under different states of electric quantity storage or consumption, so that the scene that the mobile terminal is temporarily unavailable or the consumption of the mobile terminal is finished is caused to children, the time for the children to use the mobile terminal is controlled under the condition that parents do not intervene, the children are prevented from being addicted to electronic products under the conflict-free state, and parents can conveniently educate the children.
It should be noted that: when the charging method based on the intelligent mobile terminal is specifically applied, the charging method based on the intelligent mobile terminal can be combined with an image acquisition unit for use, whether a current user is a child or not is judged through the image acquisition unit, and the charging method based on the intelligent mobile terminal is applied under the condition that the user is the child.
As a further preferred embodiment, the charging device based on the smart mobile terminal further includes:
the input unit reads authentication information of an operator, receives a first control threshold value input from the outside in a state that the authentication information matches standard information, and forms the predetermined threshold value according to the first control threshold value. And when the verification information of the operator is matched with the state of the standard information, the authority of the operator can be judged to be quite high, the first control threshold value input by the operator is received at the moment, and the preset threshold value is formed according to the first control threshold value.
As a further preferred embodiment, the charging device based on the intelligent mobile terminal includes: the input unit receives a second control threshold value input externally under the condition that the verification information does not match standard information; comparing the second control threshold with the predetermined threshold, in a state that the second control threshold is smaller than the predetermined threshold; updating the predetermined threshold in accordance with the second control threshold to match the predetermined threshold to the second control threshold.
When the verification information of the operator does not match the state of the standard information, the authority of the operator can be judged to be quite low, a second control threshold value input by the operator is received at the moment, the second control threshold value is compared with the preset threshold value, and the second control threshold value is smaller than the preset threshold value; updating the predetermined threshold value according to the second control threshold value so that the predetermined threshold value matches the second control threshold value, and discarding the second control threshold value in a state where the second control threshold value is not less than the predetermined threshold value. In short, the permission lower value decreases the range of the predetermined threshold value but refuses to expand the range of the predetermined threshold value.
As a further preferred embodiment, in the above charging device based on a smart mobile terminal, the input unit forms a message output in a state that the predetermined threshold is updated. The operator who is notified of the predetermined threshold value at the time of the update of the predetermined threshold value is facilitated to acquire the setting state of the predetermined threshold value.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a terminal in a third embodiment of the present invention. Fig. 3 illustrates a block diagram of an exemplary terminal 312 suitable for use in implementing embodiments of the present invention. The terminal 312 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present invention.
As shown in fig. 3, the terminal 312 is in the form of a general purpose computing device. The components of the terminal 312 may include, but are not limited to: one or more processors or processing units 316, a system memory 328, and a bus 318 that couples the various system components including the system memory 328 and the processing unit 316.
Bus 318 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 312 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by terminal 312 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 328 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)330 and/or cache memory 332. The terminal 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 318 by one or more data media interfaces. Memory 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 340 having a set (at least one) of program modules 342 may be stored, for example, in memory 328, such program modules 342 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 342 generally perform the functions and/or methodologies of the described embodiments of the invention.
The terminal 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, display 324, etc.), one or more devices that enable a user to interact with the terminal 312, and/or any devices (e.g., network card, modem, etc.) that enable the terminal 312 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 322. Also, the terminal 312 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 320. As shown, the network adapter 320 communicates with the other modules of the terminal 312 via the bus 318. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with the terminal 312, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 316 executes various functional applications and data processing by running the program stored in the system memory 328, for example, implementing the charging method based on the intelligent mobile terminal provided by the embodiment of the present invention, the method includes:
receiving an externally input control instruction in a state of setting a preset threshold value, and reading the current initial electric quantity of the mobile terminal;
reading current electric quantity data of the mobile terminal, and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data;
and switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value.
Example four
The fourth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the charging method based on the intelligent mobile terminal provided in the fourth embodiment of the present invention, where the method includes:
receiving an externally input control instruction in a state of setting a preset threshold value, and reading the current initial electric quantity of the mobile terminal;
reading current electric quantity data of the mobile terminal, and calculating to form an electric quantity change value according to the initial electric quantity and the current electric quantity data;
And switching the current working state of the mobile terminal under the condition that the electric quantity change value is matched with the preset threshold value.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "for example" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.