A kind of charging method based on intelligent mobile terminal, device and server
Technical field
The present embodiments relate to control technology field more particularly to a kind of charging method based on intelligent mobile terminal,
Device, server and storage medium.
Background technique
Currently, developing with the popularization of computers, the chance of child getting in contact electronic product is greatly increased, and parent can not one
When directly being monitored to the electronic product service condition of children, therefore not can be effectively controlled use of the children using electronic product
It is long, although also there is the electronic product software of timing shutdown at present, since configuration is complicated, parent is needed to have certain software
Knowledge frequently uses, and such software is easy to crack and terminate process, and stability is not high, and children can open again after shut down
Machine, even if being provided with startup password, children can also crack use in the secure mode, especially have in internet at present big
The modification of amount, the software for cracking startup password, although being tasted always limiting child by way of software using the mode of computer
Examination, but its effect is unsatisfactory.Software is when being timed limitation for child, when adult uses electronic product
It is easy to appear confined situation, is unfavorable for adult using the product, in addition especially compares temporarily that there has been no be non-viewpoint
Small children, when manager's length forcibly closes electronic product, small children is all easy to appear the protest reaction cry and screamed, and this mode is not
Conducive to the foundation of parent child relationship, more intensify contradiction instead, is unfavorable for family harmony.
Summary of the invention
The present invention provides a kind of charging method based on intelligent mobile terminal, device, server and storage medium, it is intended to logical
It crosses and the electricity of mobile terminal is controlled, help turning-off mobile terminal in the case where parent's Lothrus apterus, it is heavy to avoid infant
It is confused in mobile terminal.
On the one hand, the present invention provides a kind of charging method based on intelligent mobile terminal, wherein includes:
Receive externally input control instruction in the state of the setting of prefabricated threshold value, and reads current initial of mobile terminal
Electricity;
Mobile terminal current electric quantity data are read, calculate to form one according to the initial quantity of electricity and the current electric quantity data
Electric quantity change value;
Switch the current work shape of the mobile terminal in the state that the electric quantity change value matches the predetermined threshold
State.
Preferably, above-mentioned a kind of charging method based on intelligent mobile terminal, wherein in the state of prefabricated threshold value setting
It is lower to receive externally input control instruction, and before reading the current initial quantity of electricity of mobile terminal further include:
The verification information of read operation person,
Receive externally input first control threshold in the state of the verification information matching criteria information, according to described
First control threshold forms the prefabricated threshold value.
Preferably, above-mentioned a kind of charging method based on intelligent mobile terminal, wherein include:
Receive externally input second control threshold in the state that the verification information mismatches standard information;
Compare second control threshold and the prefabricated threshold value, is less than the predetermined threshold in second control threshold
In the state of;
The predetermined threshold is updated according to second control threshold, so that predetermined threshold matching second control
Threshold value.
Preferably, above-mentioned a kind of charging method based on intelligent mobile terminal, wherein be updated in the predetermined threshold
In the state of formed a message output.
On the other hand, the present invention provides a kind of charging unit based on intelligent mobile terminal again, wherein includes:
Setting unit receives externally input control instruction in the state of the setting of prefabricated threshold value, and reads mobile terminal
Current initial quantity of electricity;
Reading unit reads mobile terminal current electric quantity data, according to the initial quantity of electricity and the current electric quantity data
It calculates and forms an electric quantity change value;
It is current that control unit switches the mobile terminal in the state that the electric quantity change value matches the predetermined threshold
Working condition.
Preferably, above-mentioned a kind of charging unit based on intelligent mobile terminal, wherein further include:
Input unit, the verification information of read operation person receive in the state of the verification information matching criteria information
Externally input first control threshold forms the prefabricated threshold value according to first control threshold.
Preferably, above-mentioned a kind of charging unit based on intelligent mobile terminal, wherein it include: the input unit, in
The verification information receives externally input second control threshold in the state of mismatching standard information;Compare second control
Threshold value and the prefabricated threshold value, in the state that second control threshold is less than the predetermined threshold;According to second control
Threshold value processed updates the predetermined threshold, so that the predetermined threshold matches second control threshold.
Preferably, above-mentioned a kind of charging unit based on intelligent mobile terminal, wherein the input unit, in described
Predetermined threshold forms message output in the state of being updated.
In another aspect, the present invention provides a kind of server again, wherein the server includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes any of the above-described charging method based on intelligent mobile terminal.
Finally, the present invention provides a kind of computer readable storage medium again, it is stored thereon with computer program, wherein should
The charging method based on intelligent mobile terminal as described in any among the above is realized when program is executed by processor.
Compared with prior art, the invention has the advantages that
In the present invention, receive externally input control instruction in the state of the setting of prefabricated threshold value, and read mobile terminal
Current initial quantity of electricity;Mobile terminal current electric quantity data are read, according to the initial quantity of electricity and the current electric quantity data meter
It calculates and forms an electric quantity change value;Switch the mobile terminal in the state that the electric quantity change value matches the predetermined threshold to work as
Preceding working condition.It is right by switching the different working method of mobile terminal in the state of different electricity storage or consumptions
Children cause the scene of a kind of " mobile terminal is temporarily unusable " or " mobile terminal dosage is exhausted ", are not needing parent
The time that children use mobile terminal is controlled in the case where intervention, prevents children from indulging in electronics production in the state of Lothrus apterus
Product facilitate parent education children.
Detailed description of the invention
Fig. 1 is the flow chart of charging method of one of the embodiment of the present invention one based on intelligent mobile terminal;
Fig. 2 is the structural schematic diagram of the projected image processing unit in the embodiment of the present invention two;
Fig. 3 is the structural schematic diagram of the server in the embodiment of the present invention three.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for charging method based on intelligent mobile terminal that the embodiment of the present invention one provides, this reality
The case where example is applicable to any mobile terminal is applied, as shown in Figure 1, this method specifically includes:
Step S110, receive externally input control instruction in the state of the setting of prefabricated threshold value, and read mobile terminal
Current initial quantity of electricity;The control instruction can be the input of processing order, such as open webpage, playing audio-video document, bat
According to etc., it can also be accessed for electric energy, such as electric energy supplement is carried out to mobile terminal.When the control instruction is the defeated of processing order
Fashionable, the predetermined threshold is the consumable electric energy total amount of current mobile terminal, when the control instruction is that electric energy supplements, institute
Stating predetermined threshold is the electric energy total amount that current mobile terminal can supplement,
Step S120, mobile terminal current electric quantity data are read, according to the initial quantity of electricity and the current electric quantity data
It calculates and forms an electric quantity change value;Current electric quantity data can be read in real time, can also irregularly be read, such as initial quantity of electricity is
100%, predetermined threshold is set as in the state of 20%, and current electric quantity data are 95%, then electric quantity change value is 5%, next
At the time of reading current electric quantity and current time interval can be 10 minutes, be 100% in initial quantity of electricity, predetermined threshold is set as
In the state of 20%, current electric quantity data are 85%, then electric quantity change value is 15%, at the time of next readings current electric quantity and
Current time interval can be 3 minutes, i.e., as electric quantity change value is in the state of predetermined threshold, read current electric quantity number
According to then more frequent.
Step S130, to switch the mobile terminal in the state that the electric quantity change value matches the predetermined threshold current
Working condition.For example, switching the mobile terminal in the state that electric quantity change value is not less than consumable electric energy total amount
Working condition, such as current mobile terminal are in broadcast state, then in electric quantity change value not less than consumable electric energy total amount
When switching the mobile terminal under state, mobile terminal is changed to charged state by broadcast state, and can show current electric quantity
It is even lower for 2%.Switch the work of the mobile terminal in the state that electric quantity change value is not less than the electric energy total amount that can be supplemented
Make state, such as current mobile terminal is in charged state, is then not less than the shape for the electric energy total amount that can be supplemented in electric quantity change value
When switching the mobile terminal under state, mobile terminal is changed to off-position by charged state, and can show that current electric quantity is
100%.
In the present invention, receive externally input control instruction in the state of the setting of prefabricated threshold value, and read mobile terminal
Current initial quantity of electricity;Mobile terminal current electric quantity data are read, according to the initial quantity of electricity and the current electric quantity data meter
It calculates and forms an electric quantity change value;Switch the mobile terminal in the state that the electric quantity change value matches the predetermined threshold to work as
Preceding working condition.It is right by switching the different working method of mobile terminal in the state of different electricity storage or consumptions
Children cause the scene of a kind of " mobile terminal is temporarily unusable " or " mobile terminal dosage is exhausted ", are not needing parent
The time that children use mobile terminal is controlled in the case where intervention, prevents children from indulging in electronics production in the state of Lothrus apterus
Product facilitate parent education children.
It should be understood that a kind of above-mentioned charging method based on intelligent mobile terminal is in specific application, it is combinable
Image acquisition unit is used in combination, and judges whether active user is children by image acquisition unit, when the feelings that user is children
The above-mentioned charging method based on intelligent mobile terminal is applied under condition.
As further preferred embodiment, a kind of above-mentioned charging method based on intelligent mobile terminal, wherein step
S110, receive externally input control instruction in the state of the setting of prefabricated threshold value, and read the current initial electricity of mobile terminal
Before amount further include: as shown in Fig. 2,
Step S1091, the verification information of read operation person;
Step S1092, receive externally input first control threshold in the state of the verification information matching criteria information
Value, forms the prefabricated threshold value according to first control threshold.When the state of the verification information matching criteria information of operator,
It can determine that the permission of operator is quite higher, then receive the first control threshold of operator's input at this time, and according to the first control
Threshold value forms the prefabricated threshold value.
As further preferred embodiment, above-mentioned a kind of charging method based on intelligent mobile terminal, wherein also wrap
It includes,
Step S1093, receive externally input second control in the state that the verification information mismatches standard information
Threshold value;
Step S1094, the second control threshold described in comparison and the prefabricated threshold value are less than institute in second control threshold
In the state of stating predetermined threshold;
Step S1095, the predetermined threshold is updated according to second control threshold, so that the predetermined threshold matches institute
State the second control threshold.
When the state of the verification information mismatch standard information of operator, it can determine that the permission of operator is quite lower, then
Receive the second control threshold of operator's input at this time, second control threshold and the prefabricated threshold value, in described the
Two control thresholds are less than in the state of the predetermined threshold;The predetermined threshold is updated according to second control threshold, so that
The predetermined threshold matches second control threshold, is that second control threshold is not less than the state of the predetermined threshold
Under, second control threshold is abandoned.In short, permission lower value is allowed to reduce the range of predetermined threshold, but refuse to expand
Big predetermined threshold range.
As further preferred embodiment, a kind of above-mentioned charging method based on intelligent mobile terminal, wherein step
S1096 forms message output in the state that the predetermined threshold is updated.Notice predetermined threshold is updated in predetermined threshold
Operator, facilitate operator obtain predetermined threshold setting state.
Embodiment two
The present invention provides a kind of charging unit based on intelligent mobile terminal again, wherein includes:
Setting unit receives externally input control instruction in the state of the setting of prefabricated threshold value, and reads mobile terminal
Current initial quantity of electricity;The control instruction can be the input of processing order, such as open webpage, playing audio-video document, bat
According to etc., it can also be accessed for electric energy, such as electric energy supplement is carried out to mobile terminal.When the control instruction is the defeated of processing order
Fashionable, the predetermined threshold is the consumable electric energy total amount of current mobile terminal, when the control instruction is that electric energy supplements, institute
Stating predetermined threshold is the electric energy total amount that current mobile terminal can supplement.
Reading unit reads mobile terminal current electric quantity data, according to the initial quantity of electricity and the current electric quantity data
It calculates and forms an electric quantity change value;Current electric quantity data can be read in real time, can also irregularly be read, such as initial quantity of electricity is
100%, predetermined threshold is set as in the state of 20%, and current electric quantity data are 95%, then electric quantity change value is 5%, next
At the time of reading current electric quantity and current time interval can be 10 minutes, be 100% in initial quantity of electricity, predetermined threshold is set as
In the state of 20%, current electric quantity data are 85%, then electric quantity change value is 15%, at the time of next readings current electric quantity and
Current time interval can be 3 minutes, i.e., as electric quantity change value is in the state of predetermined threshold, read current electric quantity number
According to then more frequent.
Control unit, it is current in the state that the electric quantity change value matches the predetermined threshold to switch the mobile terminal
Working condition.For example, switching the mobile terminal in the state that electric quantity change value is not less than consumable electric energy total amount
Working condition, such as current mobile terminal are in broadcast state, then in electric quantity change value not less than consumable electric energy total amount
When switching the mobile terminal under state, mobile terminal is changed to charged state by broadcast state, and can show current electric quantity
It is even lower for 2%.Switch the work of the mobile terminal in the state that electric quantity change value is not less than the electric energy total amount that can be supplemented
Make state, such as current mobile terminal is in charged state, is then not less than the shape for the electric energy total amount that can be supplemented in electric quantity change value
When switching the mobile terminal under state, mobile terminal is changed to off-position by charged state, and can show that current electric quantity is
100%.
In the present invention, receive externally input control instruction in the state of the setting of prefabricated threshold value, and read mobile terminal
Current initial quantity of electricity;Mobile terminal current electric quantity data are read, according to the initial quantity of electricity and the current electric quantity data meter
It calculates and forms an electric quantity change value;Switch the mobile terminal in the state that the electric quantity change value matches the predetermined threshold to work as
Preceding working condition.It is right by switching the different working method of mobile terminal in the state of different electricity storage or consumptions
Children cause the scene of a kind of " mobile terminal is temporarily unusable " or " mobile terminal dosage is exhausted ", are not needing parent
The time that children use mobile terminal is controlled in the case where intervention, prevents children from indulging in electronics production in the state of Lothrus apterus
Product facilitate parent education children.
It should be understood that a kind of above-mentioned charging method based on intelligent mobile terminal is in specific application, it is combinable
Image acquisition unit is used in combination, and judges whether active user is children by image acquisition unit, when the feelings that user is children
The above-mentioned charging method based on intelligent mobile terminal is applied under condition.
As further preferred embodiment, above-mentioned a kind of charging unit based on intelligent mobile terminal, wherein also wrap
It includes:
Input unit, the verification information of read operation person receive in the state of the verification information matching criteria information
Externally input first control threshold forms the prefabricated threshold value according to first control threshold.When the verifying of operator is believed
The state for ceasing matching criteria information, can determine that the permission of operator is quite higher, then receives the first control of operator's input at this time
Threshold value processed, and the prefabricated threshold value is formed according to the first control threshold.
As further preferred embodiment, a kind of above-mentioned charging unit based on intelligent mobile terminal, wherein packet
Include: the input unit receives externally input second control threshold in the state that the verification information mismatches standard information
Value;Compare second control threshold and the prefabricated threshold value, is less than the shape of the predetermined threshold in second control threshold
Under state;The predetermined threshold is updated according to second control threshold, so that predetermined threshold matching the second control threshold
Value.
When the state of the verification information mismatch standard information of operator, it can determine that the permission of operator is quite lower, then
Receive the second control threshold of operator's input at this time, second control threshold and the prefabricated threshold value, in described the
Two control thresholds are less than in the state of the predetermined threshold;The predetermined threshold is updated according to second control threshold, so that
The predetermined threshold matches second control threshold, is that second control threshold is not less than the state of the predetermined threshold
Under, second control threshold is abandoned.In short, permission lower value is allowed to reduce the range of predetermined threshold, but refuse to expand
Big predetermined threshold range.
As further preferred embodiment, above-mentioned a kind of charging unit based on intelligent mobile terminal, wherein described
Input unit forms message output in the state that the predetermined threshold is updated.It is predetermined that notice is updated in predetermined threshold
The operator of threshold value facilitates operator to obtain the setting state of predetermined threshold.
Embodiment three
Fig. 3 is the structural schematic diagram of the server in the embodiment of the present invention three.Fig. 3, which is shown, to be suitable for being used to realizing the present invention
The block diagram of the exemplary servers 312 of embodiment.The server 312 that Fig. 3 is shown is only an example, should not be to the present invention
The function and use scope of embodiment bring any restrictions.
As shown in figure 3, server 312 is showed in the form of universal computing device.The component of server 312 may include but
Be not limited to: one or more processor or processing unit 316, system storage 328, connect different system components (including
System storage 328 and processing unit 316) bus 318.
Bus 318 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Server 312 typically comprises a variety of computer system readable media.These media can be it is any being capable of bedding and clothing
The usable medium that business device 312 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 328 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 330 and/or cache memory 332.Server 312 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 334 can be used for reading and writing not
Movably, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").It, can be with although being not shown in Fig. 3
The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving
The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 318.Memory 328 may include at least one program
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform the present invention
The function of each embodiment.
Program/utility 340 with one group of (at least one) program module 342, can store in such as memory
In 328, such program module 342 includes but is not limited to operating system, one or more application program, other program modules
And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 342
Usually execute the function and/or method in embodiment described in the invention.
Server 312 can also be with one or more external equipments 314 (such as keyboard, sensing equipment, display 324 etc.)
Communication, can also be enabled a user to one or more equipment interact with the server 312 communicate, and/or with make the clothes
Any equipment (such as network interface card, modem etc.) that business device 312 can be communicated with one or more of the other calculating equipment
Communication.This communication can be carried out by input/output (I/O) interface 322.Also, server 312 can also be suitable by network
Orchestration 320 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy
Net) communication.As shown, network adapter 320 is communicated by bus 318 with other modules of server 312.It should be understood that
Although being not shown in Fig. 3, other hardware and/or software module can be used in conjunction with server 312, including but not limited to: micro- generation
Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited
Storage system etc..
Processing unit 316 by the program that is stored in system storage 328 of operation, thereby executing various function application with
And data processing, such as realize the charging method based on intelligent mobile terminal provided by the embodiment of the present invention, this method comprises:
Receive externally input control instruction in the state of the setting of prefabricated threshold value, and reads current initial of mobile terminal
Electricity;
Mobile terminal current electric quantity data are read, calculate to form one according to the initial quantity of electricity and the current electric quantity data
Electric quantity change value;
Switch the current work shape of the mobile terminal in the state that the electric quantity change value matches the predetermined threshold
State.
Example IV
The embodiment of the present invention four additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should
It realizes as provided by the embodiment of the present invention when program is executed by processor based on the charging method of intelligent mobile terminal, this method
Include:
Receive externally input control instruction in the state of the setting of prefabricated threshold value, and reads current initial of mobile terminal
Electricity;
Mobile terminal current electric quantity data are read, calculate to form one according to the initial quantity of electricity and the current electric quantity data
Electric quantity change value;
Switch the current work shape of the mobile terminal in the state that the electric quantity change value matches the predetermined threshold
State.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " such as " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
The domain wide area network (WAN) is connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.