CN108333973A - Electronic equipment and its control method, device, machine readable storage medium - Google Patents
Electronic equipment and its control method, device, machine readable storage medium Download PDFInfo
- Publication number
- CN108333973A CN108333973A CN201810184510.7A CN201810184510A CN108333973A CN 108333973 A CN108333973 A CN 108333973A CN 201810184510 A CN201810184510 A CN 201810184510A CN 108333973 A CN108333973 A CN 108333973A
- Authority
- CN
- China
- Prior art keywords
- gear
- signal
- user
- module
- driving module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Control Of Electric Motors In General (AREA)
Abstract
The disclosure is directed to a kind of electronic equipment and its control method, device, machine readable storage mediums.The control method includes:When receiving starting-up signal in the power-offstate, the last history gear is obtained;The starting-up signal is converted by the on & off switch according to the power-on operation of user;Module operation is driven according to the history shift control of described the last time.It can be seen that, driving module is set to operate in the last history gear when electronic equipment is switched in the present embodiment, compared with the scheme for needing repeatedly to be adjusted to target gear in the related technology, the present embodiment can reduce the adjustment time of user, user can be made to use the electronic equipment as soon as possible, so as to promote the usage experience of user.
Description
Technical field
This disclosure relates to control technology field more particularly to a kind of electronic equipment and its control method, device, machine readable
Storage medium.
Background technology
It is desirable to adjust, on & off switch and gear key are usually set on the electronic equipment of gear.When using electronic equipment, use
Family elder generation trigger switch key starts electronic equipment, then utilizes the gear of gear key (sliding, rotation or pressing) adjustment electronic equipment
Position, to make driving module reach the corresponding rotating speed of gear.However, in use, user needs to use on & off switch and gear
Position key repeatedly adjusts electronic equipment, so that driving module is reached the corresponding rotating speed of ownership goal gear, can increase user in this way
Burden, reduces the usage experience of user.
Invention content
The disclosure provides a kind of electronic equipment and its control method, device, machine readable storage medium, to solve related skill
Deficiency in art.
According to the first aspect of the embodiments of the present disclosure, the control method that a kind of electronic equipment is provided, the method includes:
When receiving starting-up signal in the power-offstate, the last history gear is obtained;The starting-up signal is by institute
On & off switch is stated to be converted according to the power-on operation of user;
Module operation is driven according to the history shift control of described the last time.
Optionally, after driving module operation according to the history shift control of described the last time, the method further includes:
It identifies the operation of user, if the operation is gear adjustment operation, adjusts the current gear of the driving module, with
The driving module is set to be run according to the target gear after adjustment.
Optionally, adjusting the current gear of the driving module includes:
Monitor the duration of user's hitless operation;
If the duration is more than setting duration, the current gear of the driving module is adjusted according to setting step-length, obtains mesh
Mark gear;
Driving control signal is generated according to the target gear.
Optionally, adjusting the current gear of the driving module includes:
If monitoring user with less than or equal to the continuous intermittent operation of the time interval of interval threshold, between described
The number of disconnected operation adjusts the current gear of the driving module, obtains target gear;
Driving control signal is generated according to the target gear.
Optionally, adjusting the current gear of the driving module includes:
The current gear of the driving module is adjusted according to setting step-length in first setting operation for monitoring user,
Stop gear adjustment in second setting operation for monitoring user, obtains target gear;
Driving control signal is generated according to the target gear.
Optionally, after adjusting the current gear of the driving module, the method further includes:
If receiving off signal, the current gear of the driving module is preserved;The off signal is by the switch
Key is converted according to the power-off operation of user.
According to the second aspect of the embodiment of the present disclosure, the control device of a kind of electronic equipment is provided, described device includes:
History gear acquisition module when for receiving starting-up signal in the power-offstate, obtains the last history
Gear;The starting-up signal is converted by the on & off switch according to the power-on operation of user;
Module control module is driven, for driving module operation according to the history shift control of described the last time.
Optionally, described device further includes gear adjustment module;The operation of gear adjustment module user for identification,
And the gear for driving module current is adjusted when the operation is gear adjustment operation, so that the driving module is according to tune
Target gear operation after whole.
Optionally, the gear adjustment module includes:
Duration monitoring unit, the duration for monitoring user's hitless operation;
First gear adjustment unit is more than to adjust the driving mould according to setting step-length when setting duration for the duration
The current gear of group, obtains target gear;
Signal generation unit is controlled, for generating driving control signal according to the target gear.
Optionally, the gear adjustment module includes:
Second gear adjustment unit, for monitoring user with continuous less than or equal to the time interval of interval threshold
The current gear of the driving module is adjusted according to the number of the intermittent operation when interval operation, obtains target gear;
Signal generation unit is controlled, for generating driving control signal according to the target gear.
Optionally, the gear adjustment module includes:
Third gear adjustment unit, for adjusting institute according to setting step-length in first setting operation for monitoring user
The current gear of driving module is stated, stops gear adjustment in second setting operation for monitoring user, obtains target gear;
Signal generation unit is controlled, for generating driving control signal according to the target gear.
Optionally, described device further includes gear memory module, for preserving the driving when receiving off signal
The current gear of module;The off signal is converted by the on & off switch according to the power-off operation of user.
According to the third aspect of the embodiment of the present disclosure, a kind of electronic equipment is provided, the electronic equipment includes on & off switch, place
Manage device, memory and driving module;The processor connects with the on & off switch, the memory and the driving module respectively
It connects;
The on & off switch is used to the operation of user being converted to starting-up signal, gear adjustment signal and off signal and send
To the processor;
The memory is used to preserve the history gear of the driving module;
History gear of the processor for reading the last time from the memory when receiving starting-up signal,
It receives described operate and obtains target gear to adjust drive module current gear when gear adjustment operation, and according to described nearest
Primary history gear or the target gear generate driving control signal, and the driving control signal are sent to described
Drive module;
The driving module is used to be run according to the driving control signal.
According to the fourth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating
Machine program, the program are realized when being executed by processor:
When receiving starting-up signal in the power-offstate, the last history gear is obtained;The starting-up signal is by institute
On & off switch is stated to be converted according to the power-on operation of user;
Module operation is driven according to the history shift control of described the last time.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the embodiment of the present disclosure in the case where electronic equipment is in off-mode, if receiving the starting-up signal of on & off switch transmission,
Then obtain the last history gear;Then according to the last history shift control driving module operation.As it can be seen that this reality
Apply in example makes driving module operate in the last history gear when electronic equipment is switched on, and needs in the related technology repeatedly
The scheme for being adjusted to target gear is compared, and the present embodiment can reduce the adjustment time of user, and user is made to use the electricity as soon as possible
Sub- equipment, so as to promote the usage experience of user.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow diagram according to the control method of a kind of electronic equipment shown in an exemplary embodiment;
Fig. 2 is the flow diagram of the control method of a kind of electronic equipment shown according to another exemplary embodiment;
Fig. 3~Fig. 8 is the block diagram according to the control device of a kind of electronic equipment shown in an exemplary embodiment;
Fig. 9 is the block diagram according to a kind of electronic equipment shown in an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The consistent device example of some aspects be described in detail in claims, the disclosure.
It is desirable to adjust, on & off switch and at least one gear key, wherein gear are usually set on the electronic equipment of gear
Key can be slide key, rotation key or button.When using electronic equipment, user elder generation trigger switch key starts electronic equipment, so
The gear for utilizing gear key (sliding, rotation or pressing) adjustment electronic equipment afterwards, corresponds to make driving module reach gear
Rotating speed.However, in use, user needs repeatedly to adjust electronic equipment on & off switch and gear key, makes driving mould
The corresponding rotating speed of group arrival demand gear, can increase the burden of user, reduce the usage experience of user in this way.
To solve the above problems, the embodiment of the present disclosure provides the control method of a kind of electronic equipment, Fig. 1 is shown according to one
Example property implements the flow diagram of the control method of a kind of electronic equipment exemplified.Electronic equipment can be electric shaver,
Hair dryer, electric fan, electric toothbrush etc. need the equipment for adjusting gear.Wherein, each electronic equipment may include an on & off switch,
Processor, memory and driving module;The processor connects with the on & off switch, the driving module and the memory respectively
It connects.For convenience of description, it is described by taking electric shaver as an example in subsequent embodiment.
In the present embodiment, drive module to may operate in multiple gears in electric shaver, for example, low gear, middle gear and
High gear, user can adjust the gear of driving module as desired by Operation switch key, and the mode of Operation switch key can
To be the operations such as pressing, touch, rotation.For convenience of description, subsequent embodiment for compressing switch all by by illustrating.Such as recklessly
On & off switch adjustment driving module can be pressed when must be harder or intensive to run in low gear, it can be with when beard is thinner or sparse
By compressing switch, adjustment driving module is run in high gear, to reach the preferable effect that shaves.
Referring to Fig. 1, the control method of a kind of electronic equipment includes:
101, when receiving starting-up signal in the power-offstate, obtain the last history gear;The starting-up signal
It is converted according to the power-on operation of user by the on & off switch.
In the present embodiment, the processor of electric shaver reads the last history gear from memory, to obtain
Get the history gear of driving module the last time.
In one embodiment, when electronic equipment is in off-mode, processor receives the booting letter of on & off switch transmission
Number when the last history gear is read from memory.After electric shaver shutdown, processor is in off-position, if with
Family Operation switch key, such as short-press operate (when pressing a length of 0.5~1.0 second), then user wishes to start electric shaver, processing
The starting-up signal that device can receive obtains the last history gear of driving module again at this time.It is above-mentioned to open in practical application
Machine signal can be the power on signal to the processor long period, such as when user's pressing on & off switch, processor is corresponded to pin
Voltage be pulled to supply voltage, or ground voltage is pulled down to, to power to processor.
It will be appreciated that after adjusting gear before electric shaver shutdown or for driving module, processor can will drive
The current shift of module operation is preserved to memory.In one embodiment, driving module is preserved when receiving off signal to work as
Preceding gear.Preserving type can be:It preserves sequentially in time, multiple history gears of driving module can be preserved in this way;
Storage region only sets quantity (can be adjusted according to actual scene) a history gear in memory, that is, is preserving last time
History gear after will record time earliest history gear and cover, memory space can be saved in this way.Technical staff can basis
Concrete scene is configured, and no matter which kind of preserving type can realize the scheme of the disclosure, equally fall into the protection of the disclosure
Range.
102, drive module to run according to described in the history shift control of described the last time.
In the present embodiment, the processor of electric shaver is after the history gear that memory reads the last time, according to gear
Position and the relationship of driving control signal, the history gear generation driving control signal based on the last time and by the drive control
Signal is sent to driving module, so that driving module is run according to corresponding gear.
It will be appreciated that the relationship of above-mentioned gear and driving control signal can prestore in memory, processor
Driving control signal can be directly read from memory.Technical staff can also use other modes in the related technology to generate
Driving control signal, equally may be implemented the scheme of the present embodiment, and corresponding scheme also falls into the protection domain of the disclosure.
In one embodiment, above-mentioned driving control signal can be drive signal, the operation of direct controlling and driving module.Such as
It includes motor to drive module only, and a pin of motor and processor connects, and such processor can will be driven by the pin
Dynamic signal is sent to motor, achievees the purpose that control motor operation.In another embodiment, driving module may include driving core
Piece and motor.Driving control signal can be sent to driving chip by processor, and then generating drive signal by driving chip drives
Dynamic motor operation.Under this scene, above-mentioned driving control signal can be the duty ratio of drive signal required for driving module, this
Sample processor can obtain a duty ratio according to the last history gear, and duty ratio is sent to driving chip, drive
Dynamic chip generates PWM drive signal corresponding with duty ratio, with drive motor with the last corresponding rotating speed of history gear
Operation.
In the present embodiment, the control method of above-mentioned electronic equipment can be adapted for after electric shaver is used for multiple times in user
Scene, such user are familiar with the function of electric shaver, and have selected the target gear for being relatively suitble to self-demand, that is, store
The last history gear can compare the actual demand for suiting user in device.
As it can be seen that in the embodiment of the present disclosure electronic equipment by acquisition drive module the last time history gear, and according to
History shift control drives module to be run according to history gear.In this way, making driving mould in the present embodiment when electronic equipment is switched on
Group operates in the last history gear, and in addition to power-on operation and power-off operation, user can be used without other operations should
Electronic equipment greatly reduces the adjustment time of user, promotes the usage experience of user.
It in another embodiment, may be without storage nearest one in memory if electric shaver is to use for the first time
An acquiescence gear (such as low gear) can be then arranged as the last history gear in secondary history gear.Actually answer
In, before user buys electric shaver from supplier, either the electric razor can be debugged or be shown in manufacturer for supplier
Knife, to there be the last history gear in memory.However, the history gear of above-mentioned the last time is possible to not cut
The actual demand at family is shared, the embodiment of the present disclosure additionally provides the control method of a kind of electronic equipment thus, and Fig. 2 is according to another
The flow diagram of the control method of a kind of electronic equipment shown in exemplary embodiment.Referring to Fig. 2, the control of a kind of electronic equipment
Method processed includes:
201, when receiving starting-up signal in the power-offstate, obtain the last history gear;The starting-up signal
It is converted according to the power-on operation of user by the on & off switch.
In the present embodiment, step 201 and the specific method of step 101 are consistent with principle, and detailed description is please referred to Fig.1 and walked
Rapid 101 related content, details are not described herein again.
202, module operation is driven according to the history shift control of described the last time.
In the present embodiment, step 202 and the specific method of step 102 are consistent with principle, and detailed description is please referred to Fig.1 and walked
Rapid 102 related content, details are not described herein again.
203, it identifies the operation of user, if the operation is gear adjustment operation, adjusts the current gear of the driving module
Position, so that the driving module is run according to the target gear after adjustment.
In the present embodiment, user presses the on & off switch of electric shaver, which is converted to the trigger action of user
Starting-up signal, gear adjustment signal or off signal, and send it to processor.Processor receives the letter that on & off switch is sent
Number, and identification signal type is switching signal, off signal or gear adjustment signal.Processor judgment mode may include:
Mode one monitors the duration of user's operation.
In one embodiment, setting duration (can be adjusted according to actual scene) is set as 1 second.If between monitoring user not
Between 0.5~1.0 second, then the operation of user operates the duration of disconnected operation for short-press, indicates that received signal is that booting is believed
Number or off signal.If it is more than setting duration to monitor that the duration of user's operation is more than 1.0 seconds i.e. signal duration, user's
Operation is that long press operation indicates that received signal is gear adjustment signal.
In another embodiment, if monitoring, the duration of user's hitless operation is more than 1.0 seconds (i.e. long press operation),
A gear is adjusted on the basis of the gear for driving module current.For example, the current gear of driving module is low gear, then with
The gear for driving module current is adjusted to middle gear when the long press operation of family.
In another embodiment, if monitoring, the duration of user's hitless operation is more than 1.0 seconds, current in driving module
Gear on the basis of according to setting step-length be sequentially adjusted in gear, until user stops operation, (driven to obtain target gear
Dynamic model group becomes the current shift of driving module after being run according to target gear).Such as the gear for driving module current is low gear
Position adjusted a gear every 1 second when monitoring user's long press operation, and the gear for driving module current in this way is sequentially adjusted in
For middle gear (between the 1.0th~2.0 second), high gear (the 2.0th~3.0 second).When long press operation is 2.5 seconds, this long-press
The current gear of operation rear-guard dynamic model group is adjusted to high gear from low gear.If during long press operation, driving module is worked as
Preceding gear be adjusted to after maximum gear (either minimum gear) then to continue growing from minimum gear (or maximum gear) (or
Person reduces), i.e., cycle adjusts gear.
Mode two monitors the time interval of user's interval operation.
In one embodiment, processor continuously monitors that multiple operations of user operate for short-press, then obtains two neighboring
Short-press operation time interval (between the finish time and the finish time of the latter short-press operation of the operation of previous short-press when
Between section), if time interval be less than or equal to interval threshold, indicate user multiple short-press operation it is (N number of) for gear adjustment behaviour
Make, then the current gear of driving module is adjusted according to the number of intermittent operation.For example, the gear for driving module current is low gear
The operation of position, user operates for N number of short-press, N=2, then processor is i.e. high by the gear adjustment target gear for driving module current
Gear.Driving module is run according to high gear later.It will be appreciated that the power-on operation of electronic equipment or pass in the present embodiment
Machine operation can be long press operation, and cannot be short-press operation.Certainly, technical staff can adjust power-on operation and power-off operation
Mode of operation, such as a long press operation and short-press operation combination etc., the scheme of the disclosure equally may be implemented.
In another embodiment, processor monitors first short-press operation of user, in the knot of first short-press operation
Beam moment timing, if detecting second short-press operation in the time interval less than or equal to interval threshold, then it represents that use
The operation at family is gear adjustment operation, and processor is handled simultaneously at this time:One, continue detection short-press operation in the manner described above.Two,
It is operated for previous short-press, according to the principle of one gear of a short-press operation adjustment, in the driving current gear of module
On the basis of adjust a gear.When monitoring is operated less than short-press, continue to adjust the gear for driving module to target gear.
For example, the current gear of driving module is low gear, operated if the operation of user is 4 short-press, is detecting the
When two short-press operations, the gear for driving module current is adjusted to middle gear by processor from low gear;Detecting third
When short-press operates, by the gear for driving module current, therefrom gear is adjusted to high gear to processor;Detecting the 4th short-press
When operation, the gear for driving module current is adjusted to low gear by processor from high gear.After the 4th short-press operates
Short-press operation is not detected in time threshold, the gear for driving module current is adjusted to middle gear by processor from low gear, from
And complete gear adjustment.Later, driving module is run according to middle gear.
Mode three adjusts gear between two operations of user.In first setting operation for monitoring user, processing
Device is set according to the current gear of setting step-length (such as one grade of adjustment per second) adjustment driving module in detect user second
When operating surely, stop gear adjustment.
First setting operation refers to that for driving module when a gear is run, processor monitors the one of user for the first time
A setting operation, and there is no effective setting operation (no record, or have record but it is invalid).Second setting operation be
Refer to, the setting operation monitored after first setting operation.After the second setting operation, processor can be deleted
The record of setting operation, or first and second setting operation are labeled as invalid state.
Wherein setting operation can be user a long press operation, can also be continuous short-press operate, long press operation or
The explanation of content before the method for determination of person's short-press operation can refer to.Certainly, technical staff can also be that setting operation is arranged
Other operation operations, for example, a long press operation and the operation of short-press are one group, two long press operations and between a short-press
Operation is one group etc., and the scheme of the disclosure equally may be implemented.
For example, setting operation operates for short-press twice in succession.Driving module operates in low gear, and user is continuous on & off switch
Short-press operates twice, and processor goes out user's operation according to the signal identification monitored and operated for short-press twice, indicates a setting
Operation, and effective setting operation is not present before, then according to setting step-length (such as one grade of adjustment per second) one gear of adjustment
Position.User continued that short-press is operated twice in succession on & off switch at the 1.5th second, and such processor monitors that another of user is set
When operating surely, stop gear adjustment, the gear for driving module current at this time becomes high gear from low gear, high gear is made
To drive module target gear.
It will be appreciated that only being illustrated so that electronic equipment includes three gears as an example in the present embodiment, in gear quantity
When more, control method provided in this embodiment is equally applicable.
As it can be seen that so that driving module is operated in the last history gear when electronic equipment is switched in the present embodiment, this
Sample user, which is not necessarily to be adjusted driving module, can be used the electronic equipment, it is possible to reduce the adjustment time of user.Also,
When user needs to adjust driving module, gear is finely tuned on the basis of the last history gear, can be reduced in this way
The adjustment number of user is required for each use in the related technology compared with adjustment, and the present embodiment can reduce the tune of user
The whole time promotes the usage experience of user.
According to the second aspect of the embodiment of the present disclosure, the control device of a kind of electronic equipment is provided, Fig. 3 is according to an example
Property implement the block diagram of the control device of a kind of electronic equipment exemplified.Referring to Fig. 3, the control device 300 of a kind of electronic equipment
Including:
History gear acquisition module 301 when for receiving starting-up signal in the power-offstate, obtains the last go through
History gear;The starting-up signal is converted by the on & off switch according to the power-on operation of user;
Module control module 302 is driven, for driving module operation according to the history shift control of described the last time.
History gear acquisition module 301 obtains the history gear of driving module the last time in the embodiment of the present disclosure, by driving
Dynamic model group control module 302 drives module to be run according to history gear according to history shift control.As it can be seen that the present embodiment is according to most
Module operation, such user is driven to be not necessarily to be adjusted to can be used to driving module to be somebody's turn to do described in nearly primary history shift control
Electronic equipment greatly reduces the adjustment time of user, promotes the usage experience of user.
Optionally, on the basis of control device shown in Fig. 3, the present embodiment additionally provides the control dress of a kind of electronic equipment
It sets, Fig. 4 is the block diagram according to the control device of a kind of electronic equipment shown in an exemplary embodiment.Referring to Fig. 4, a kind of electronics
The control device 300 of equipment further includes that gear adjusts module 401, for identification operation of user, and is operated as gear described
The driving module current gear is adjusted when adjustment operation, so that the driving module is transported according to the target gear after adjustment
Row.
Optionally, on the basis of control device shown in Fig. 4, the present embodiment additionally provides the control dress of a kind of electronic equipment
It sets, Fig. 5 is the block diagram according to the control device of a kind of electronic equipment shown in an exemplary embodiment.Referring to Fig. 5, the gear
Adjusting module 401 includes:
Duration monitoring unit 501, the duration for monitoring user's hitless operation;
First gear adjustment unit 502 is used for when the duration is more than setting duration according to described in setting step-length adjustment
The gear for driving module current, obtains target gear;
Signal generation unit 503 is controlled, for generating driving control signal according to the target gear.
Optionally, on the basis of control device shown in Fig. 5, the present embodiment additionally provides the control dress of a kind of electronic equipment
It sets, Fig. 6 is the block diagram according to the control device of a kind of electronic equipment shown in an exemplary embodiment.Referring to Fig. 6, the gear
Adjusting module 401 includes:
Second gear adjustment unit 601 is used for when the time interval is less than or equal to interval threshold according to
The number of interval operation adjusts the current gear of the driving module, obtains target gear;
Signal element 503 is controlled, for generating driving control signal according to the target gear.
Optionally, on the basis of control device shown in Fig. 5, the present embodiment additionally provides the control dress of a kind of electronic equipment
It sets, Fig. 7 is the block diagram according to the control device of a kind of electronic equipment shown in an exemplary embodiment.Referring to Fig. 7, the gear
Adjusting module 401 includes:
Third gear adjustment unit 701, in first setting operation for monitoring user according to setting step-length tune
The current gear of the whole driving module, stops gear adjustment in second setting operation for monitoring user, obtains target
Gear;
Signal element 503 is controlled, for generating driving control signal according to the target gear.
As it can be seen that in Fig. 5~embodiment illustrated in fig. 7, driving module is made to operate in the last time when electronic equipment is switched on
History gear, such user, which is not necessarily to be adjusted driving module, can be used the electronic equipment, it is possible to reduce the adjustment of user
Time.Also, when user needs to adjust driving module, gear is finely tuned on the basis of the last history gear,
The adjustment number that user can be reduced in this way, compared with use is required for adjusting every time in the related technology, the present embodiment can be with
The adjustment time for reducing user, promotes the usage experience of user.
Optionally, on the basis of control device shown in Fig. 4, the present embodiment additionally provides the control dress of a kind of electronic equipment
It sets, Fig. 8 is the block diagram according to the control device of a kind of electronic equipment shown in an exemplary embodiment.Referring to Fig. 8, a kind of electronics
The control device 300 of equipment includes gear memory module 801, is worked as preserving the driving module when receiving off signal
Preceding gear;The off signal is converted by the on & off switch according to the power-off operation of user.
As it can be seen that being preserved in the present embodiment by the way that the gear for driving module current is sent to memory, facilitate driving module
It is used when being switched on next time, so that electronic equipment is maintained at the last history gear operation, adjusted without user, to be promoted
The usage experience of user.
The embodiment of the present disclosure additionally provides a kind of electronic equipment, and Fig. 9 is a kind of electricity shown according to an exemplary embodiment
The block diagram of sub- equipment.Referring to Fig. 9, which includes on & off switch 901, processor 902, memory 903 and driving module
904.Wherein, processor 902 is connect on & off switch 901, memory 903 and driving module 904 respectively.
The setting position at the outer surface of electronic equipment, such as electronic equipment gripping can be arranged on & off switch 901, with
Family press on & off switch 901 when, on & off switch 901 trigger action of user can be converted to starting-up signal, gear adjustment signal and
Off signal is simultaneously sent to processor 902.
Memory 903 can preserve the history gear of driving module 904.
Processor 902 can read the last history gear when receiving starting-up signal from memory 903, and
When receiving the operation and being gear adjustment operation, the current gear of adjustment drive module obtains target gear, and according to nearest one
Secondary history gear or the target gear generate driving control signal, and driving control signal is sent to drive module
904.Driving module 904 is run according to driving control signal.
It will be appreciated that above-mentioned electronic equipment can be the needs such as electric shaver, hair dryer, electric fan, electric toothbrush
The equipment for adjusting gear.
In the embodiment of the present disclosure in the case where electronic equipment is in off-mode, if receiving the starting-up signal of on & off switch transmission,
Then obtain the last history gear;Then according to the last history shift control driving module operation.As it can be seen that this reality
Apply in example makes driving module operate in the last history gear when electronic equipment is switched on, and needs in the related technology repeatedly
The scheme for being adjusted to target gear is compared, and the present embodiment can reduce the adjustment time of user, and user is made to use the electricity as soon as possible
Sub- equipment, so as to promote the usage experience of user.
The unlatching, closing and gear that electronic equipment can be realized on & off switch is only arranged in electronic equipment in the embodiment of the present disclosure
Position adjustment, it is possible to reduce the quantity of button on electronic equipment is conducive to the volume for reducing electronic equipment, and improves electronic equipment
The succinct degree and aesthetics of appearance.
The embodiment of the present disclosure additionally provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
It is realized when sequence is executed by processor:When receiving starting-up signal in the power-offstate, the last history gear is obtained;It is described
Starting-up signal is converted by the on & off switch according to the power-on operation of user;According to the history shift control of described the last time
Drive module operation.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (14)
1. the control method of a kind of electronic equipment, which is characterized in that the electronic equipment includes an on & off switch, the method packet
It includes:
When receiving starting-up signal in the power-offstate, the last history gear is obtained;The starting-up signal is opened by described
Key is converted according to the power-on operation of user;
Module operation is driven according to the history shift control of described the last time.
2. control method according to claim 1, which is characterized in that driven according to the history shift control of described the last time
After the operation of dynamic model group, the method further includes:
It identifies the operation of user, if the operation is gear adjustment operation, the current gear of the driving module is adjusted, so that institute
Driving module is stated to run according to the target gear after adjustment.
3. control method according to claim 2, which is characterized in that adjusting the current gear of the driving module includes:
Monitor the duration of user's hitless operation;
If the duration is more than setting duration, the current gear of the driving module is adjusted according to setting step-length, obtains targeted gear
Position;
Driving control signal is generated according to the target gear.
4. control method according to claim 2, which is characterized in that adjusting the current gear of the driving module includes:
If monitoring user less than or equal to the continuous intermittent operation of the time interval of interval threshold, to be grasped according to the interruption
The number of work adjusts the current gear of the driving module, obtains target gear;
Driving control signal is generated according to the target gear.
5. control method according to claim 2, which is characterized in that adjusting the current gear of the driving module includes:
The current gear of the driving module is adjusted according to setting step-length in first setting operation for monitoring user, is being supervised
Stop gear adjustment when measuring second setting operation of user, obtains target gear;
Driving control signal is generated according to the target gear.
6. control method according to claim 2, which is characterized in that after the current gear of the adjustment driving module,
The method further includes:
If receiving off signal, the current gear of the driving module is preserved;The off signal is by the on & off switch root
It is converted according to the power-off operation of user.
7. the control device of a kind of electronic equipment, which is characterized in that described device includes:
History gear acquisition module when for receiving starting-up signal in the power-offstate, obtains the last history gear;
The starting-up signal is converted by the on & off switch according to the power-on operation of user;
Module control module is driven, for driving module operation according to the history shift control of described the last time.
8. control device according to claim 7, which is characterized in that described device further includes gear adjustment module;It is described
Gear adjusts the operation of module user for identification, and adjusts the driving module when the operation is gear adjustment operation and work as
Preceding gear, so that the driving module is run according to the target gear after adjustment.
9. control device according to claim 8, which is characterized in that the gear adjusts module and includes:
Duration monitoring unit, the duration for monitoring user's hitless operation;
First gear adjustment unit, for adjusting the driving module according to setting step-length when the duration is more than setting duration
Current gear, obtains target gear;
Signal generation unit is controlled, for generating driving control signal according to the target gear.
10. control device according to claim 8, which is characterized in that the gear adjusts module and includes:
Second gear adjustment unit, for monitoring user with the time interval consecutive intervals less than or equal to interval threshold
The current gear of the driving module is adjusted according to the number of the intermittent operation when operation, obtains target gear;
Signal generation unit is controlled, for generating driving control signal according to the target gear.
11. control device according to claim 8, which is characterized in that the gear adjusts module and includes:
Third gear adjustment unit, for adjusting the drive according to setting step-length in first setting operation for monitoring user
The current gear of dynamic model group stops gear adjustment in second setting operation for monitoring user, obtains target gear;
Signal generation unit is controlled, for generating driving control signal according to the target gear.
12. control device according to claim 8, which is characterized in that described device further includes gear memory module, is used for
The current gear of the driving module is preserved when receiving off signal;The off signal is by the on & off switch according to user
Power-off operation convert.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes on & off switch, processor, memory and driving mould
Group;The processor is connect with the on & off switch, the memory and the driving module respectively;
The on & off switch is used to the operation of user being converted to starting-up signal, gear adjustment signal and off signal and is sent to institute
State processor;
The memory is used to preserve the history gear of the driving module;
The processor from the memory for reading the last history gear, Yi Ji when receiving starting-up signal
It receives described operate and obtains target gear to adjust drive module current gear when gear adjustment operation, and according to described nearest
Primary history gear or the target gear generate driving control signal, and the driving control signal are sent to described
Drive module;
The driving module is used to be run according to the driving control signal.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
It is realized when execution:
When receiving starting-up signal in the power-offstate, the last history gear is obtained;The starting-up signal is opened by described
Key is converted according to the power-on operation of user;
Module operation is driven according to the history shift control of described the last time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810184510.7A CN108333973B (en) | 2018-03-06 | 2018-03-06 | Electronic device, control method and device thereof, and machine-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810184510.7A CN108333973B (en) | 2018-03-06 | 2018-03-06 | Electronic device, control method and device thereof, and machine-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108333973A true CN108333973A (en) | 2018-07-27 |
CN108333973B CN108333973B (en) | 2020-06-02 |
Family
ID=62928900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810184510.7A Active CN108333973B (en) | 2018-03-06 | 2018-03-06 | Electronic device, control method and device thereof, and machine-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108333973B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109907477A (en) * | 2019-03-12 | 2019-06-21 | 深圳丽白科技有限公司 | A kind of false-touch prevention electric toothbrush |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1614338A (en) * | 2004-11-29 | 2005-05-11 | 西安交通大学 | Separated air conditioner driven by IC engine |
CN102395232A (en) * | 2011-10-12 | 2012-03-28 | 南通医疗器械有限公司 | Shadowless lamp control wiring board for nixie tube display |
CN204421153U (en) * | 2014-11-28 | 2015-06-24 | 郑景祥 | A kind of intelligent steam air heater |
CN105223862A (en) * | 2015-09-18 | 2016-01-06 | 南京创维电器研究院有限公司 | A kind of household electrical appliance and audio control method thereof and system |
CN106028588A (en) * | 2016-06-07 | 2016-10-12 | 中国南方航空工业(集团)有限公司 | Anti-collision light control device for helicopter |
CN107969039A (en) * | 2017-11-22 | 2018-04-27 | 南通医疗器械有限公司 | A kind of Digital Operating Room LED shadowless lamp circuit control systems |
-
2018
- 2018-03-06 CN CN201810184510.7A patent/CN108333973B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1614338A (en) * | 2004-11-29 | 2005-05-11 | 西安交通大学 | Separated air conditioner driven by IC engine |
CN102395232A (en) * | 2011-10-12 | 2012-03-28 | 南通医疗器械有限公司 | Shadowless lamp control wiring board for nixie tube display |
CN204421153U (en) * | 2014-11-28 | 2015-06-24 | 郑景祥 | A kind of intelligent steam air heater |
CN105223862A (en) * | 2015-09-18 | 2016-01-06 | 南京创维电器研究院有限公司 | A kind of household electrical appliance and audio control method thereof and system |
CN106028588A (en) * | 2016-06-07 | 2016-10-12 | 中国南方航空工业(集团)有限公司 | Anti-collision light control device for helicopter |
CN107969039A (en) * | 2017-11-22 | 2018-04-27 | 南通医疗器械有限公司 | A kind of Digital Operating Room LED shadowless lamp circuit control systems |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109907477A (en) * | 2019-03-12 | 2019-06-21 | 深圳丽白科技有限公司 | A kind of false-touch prevention electric toothbrush |
Also Published As
Publication number | Publication date |
---|---|
CN108333973B (en) | 2020-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11599093B2 (en) | User interface for tool configuration and data capture | |
US20230234204A1 (en) | Power tool operation recording and playback | |
RU2718036C2 (en) | Device for appearance care | |
CN105394818A (en) | Electronic cigarette battery, electronic cigarette and control method of electronic cigarette | |
EP1413936A3 (en) | Energy management system for an appliance | |
CN103481251B (en) | Electric tool with multiple modes of operation | |
CN101452290B (en) | Intelligent appliance control system based on speech recognition and wireless sensing net | |
EP1457857A3 (en) | Maximum power follow-up control apparatus | |
CN105142862A (en) | Power tool operation recording and playback | |
PL1759620T3 (en) | Method for operating a vacuum cleaner comprising a step for identifying the dust bag type | |
CN107544426B (en) | Control method and device of electric tool and electric tool | |
CN108433515A (en) | Electric cooker and its power interruption recovering controlling method | |
USRE41255E1 (en) | Device having an improved apparatus and method for setting power management mode | |
CN108427335A (en) | A kind of control device of intelligent appliance, method and intelligent appliance | |
CN108056832B (en) | Electric toothbrush control method and electric toothbrush | |
CN105509325B (en) | Water heater and its water data acquisition method | |
EP1571599A3 (en) | Data recording apparatus and the method thereof | |
EP3506567B1 (en) | Device of controlling related device based on operation situation, schedule bot and server controlling thereof | |
CN107340723A (en) | The mode switching method and device of intelligent electric appliance | |
CN108333973A (en) | Electronic equipment and its control method, device, machine readable storage medium | |
CN103354976A (en) | Method and apparatus for motor control | |
CN109994998B (en) | Motor back electromotive force protection method, system, device and storage medium | |
CN108700927A (en) | For reducing the power supplier and method of the stand-by electric of electronic equipment | |
CN109520194A (en) | Frequency conversion household appliance control method, frequency conversion household electrical appliance and computer readable storage medium | |
US7612507B2 (en) | Motor controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |