CN108333973B - Electronic device, control method and device thereof, and machine-readable storage medium - Google Patents

Electronic device, control method and device thereof, and machine-readable storage medium Download PDF

Info

Publication number
CN108333973B
CN108333973B CN201810184510.7A CN201810184510A CN108333973B CN 108333973 B CN108333973 B CN 108333973B CN 201810184510 A CN201810184510 A CN 201810184510A CN 108333973 B CN108333973 B CN 108333973B
Authority
CN
China
Prior art keywords
gear
user
driving module
adjusting
driving
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.)
Active
Application number
CN201810184510.7A
Other languages
Chinese (zh)
Other versions
CN108333973A (en
Inventor
吴珂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810184510.7A priority Critical patent/CN108333973B/en
Publication of CN108333973A publication Critical patent/CN108333973A/en
Application granted granted Critical
Publication of CN108333973B publication Critical patent/CN108333973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme 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 relates to an electronic device, a control method and a control device thereof, and a machine-readable storage medium. The control method comprises the following steps: when a starting signal is received in a shutdown state, acquiring a latest historical gear; the starting signal is converted by the switch key according to the starting operation of the user; and controlling the driving module to operate according to the latest historical gear. It can be seen that, in this embodiment, when the electronic device is turned on, the driving module is operated in the last historical gear, and compared with a scheme that the target gear needs to be adjusted for many times in the related art, this embodiment can reduce the adjustment time of the user, and can enable the user to use the electronic device as fast as possible, so that the use experience of the user can be improved.

Description

Electronic device, control method and device thereof, and machine-readable storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to an electronic device, a control method and apparatus thereof, and a machine-readable storage medium.
Background
At present, an on-off key and a gear key are usually arranged on electronic equipment needing gear adjustment. When the electronic equipment is used, a user firstly triggers the switch key to start the electronic equipment, and then the gear of the electronic equipment is adjusted by using the gear key (sliding, rotating or pressing), so that the driving module reaches the rotating speed corresponding to the gear. However, in the using process, the user needs to use the on-off key and the gear key to adjust the electronic device for multiple times, so that the driving module reaches the rotating speed corresponding to the target gear of the user, the burden of the user is increased, and the use experience of the user is reduced.
Disclosure of Invention
The present disclosure provides an electronic device, a method and an apparatus for controlling the same, and a machine-readable storage medium, to address the deficiencies in the related art.
According to a first aspect of embodiments of the present disclosure, there is provided a method of controlling an electronic device, the method including:
when a starting signal is received in a shutdown state, acquiring a latest historical gear; the starting signal is converted by the switch key according to the starting operation of the user;
and controlling the driving module to operate according to the latest historical gear.
Optionally, after controlling the driving module to operate according to the last historical gear, the method further includes:
and identifying the operation of a user, and if the operation is gear adjustment operation, adjusting the current gear of the driving module so that the driving module operates according to the adjusted target gear.
Optionally, adjusting the current gear of the driving module includes:
monitoring the uninterrupted operation duration of a user;
if the duration exceeds the set duration, adjusting the current gear of the driving module according to the set step length to obtain a target gear;
and generating a driving control signal according to the target gear.
Optionally, adjusting the current gear of the driving module includes:
if the situation that the user continuously and discontinuously operates at the time interval smaller than or equal to the interval threshold value is monitored, adjusting the current gear of the driving module according to the number of the discontinuous operations to obtain a target gear;
and generating a driving control signal according to the target gear.
Optionally, adjusting the current gear of the driving module includes:
adjusting the current gear of the driving module according to a set step length when monitoring the first setting operation of a user, and stopping gear adjustment when monitoring the second setting operation of the user to obtain a target gear;
and generating a driving control signal according to the target gear.
Optionally, after the current gear of the drive module is adjusted, the method further includes:
if a shutdown signal is received, saving the current gear of the driving module; the shutdown signal is converted by the on-off key according to the shutdown operation of the user.
According to a second aspect of the embodiments of the present disclosure, there is provided a control apparatus of an electronic device, the apparatus including:
the historical gear acquisition module is used for acquiring the latest historical gear when a starting signal is received in a shutdown state; the starting signal is converted by the switch key according to the starting operation of the user;
and the driving module control module is used for controlling the driving module to operate according to the latest historical gear.
Optionally, the device further comprises a gear adjustment module; the gear adjusting module is used for identifying the operation of a user and adjusting the current gear of the driving module when the operation is the gear adjusting operation, so that the driving module operates according to the adjusted target gear.
Optionally, the gear adjustment module includes:
the time length monitoring unit is used for monitoring the time length of uninterrupted operation of a user;
the first gear adjusting unit is used for adjusting the current gear of the driving module according to a set step length when the time length exceeds a set time length to obtain a target gear;
and the control signal generating unit is used for generating a driving control signal according to the target gear.
Optionally, the gear adjustment module includes:
the second gear adjusting unit is used for adjusting the current gear of the driving module according to the number of the discontinuous operations when monitoring that a user operates at continuous intervals at time intervals smaller than or equal to an interval threshold value, so as to obtain a target gear;
and the control signal generating unit is used for generating a driving control signal according to the target gear.
Optionally, the gear adjustment module includes:
the third gear adjusting unit is used for adjusting the current gear of the driving module according to the set step length when the first setting operation of the user is monitored, and stopping gear adjustment when the second setting operation of the user is monitored to obtain a target gear;
and the control signal generating unit is used for generating a driving control signal according to the target gear.
Optionally, the device further includes a gear storage module, configured to store a current gear of the driving module when a shutdown signal is received; the shutdown signal is converted by the on-off key according to the shutdown operation of the user.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including a switch key, a processor, a memory, and a driving module; the processor is respectively connected with the on-off key, the memory and the driving module;
the switch key is used for converting the operation of a user into a starting signal, a gear adjusting signal and a shutdown signal and sending the starting signal, the gear adjusting signal and the shutdown signal to the processor;
the memory is used for storing the historical gear of the driving module;
the processor is used for reading a latest historical gear from the memory when a starting signal is received, adjusting a current gear of the driving module to obtain a target gear when the operation is received as a gear adjusting operation, generating a driving control signal according to the latest historical gear or the target gear, and sending the driving control signal to the driving module;
the driving module is used for operating according to the driving control signal.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements:
when a starting signal is received in a shutdown state, acquiring a latest historical gear; the starting signal is converted by the switch key according to the starting operation of the user;
and controlling the driving module to operate according to the latest historical gear.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, when the electronic device is in a power-off state, if a power-on signal sent by a switch key is received, a latest historical gear is obtained; and then controlling the driving module to operate according to the latest historical gear. It can be seen that, in this embodiment, when the electronic device is turned on, the driving module is operated in the last historical gear, and compared with a scheme that the target gear needs to be adjusted for many times in the related art, this embodiment can reduce the adjustment time of the user, so that the user can use the electronic device as fast as possible, and thus the user experience can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart diagram illustrating a method of controlling an electronic device in accordance with an exemplary embodiment;
FIG. 2 is a flow chart diagram illustrating a method of controlling an electronic device in accordance with another exemplary embodiment;
FIGS. 3-8 are block diagrams illustrating a control apparatus of an electronic device according to an exemplary embodiment;
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
At present, an on-off key and at least one gear key are usually arranged on the electronic device needing to adjust the gear, wherein the gear key can be a sliding key, a rotating key or a key. When the electronic equipment is used, a user firstly triggers the switch key to start the electronic equipment, and then the gear of the electronic equipment is adjusted by using the gear key (sliding, rotating or pressing), so that the driving module reaches the rotating speed corresponding to the gear. However, in the use, the user needs to open the key and shift the position key to adjust electronic equipment many times, makes the drive module reach the rotational speed that the required fender position corresponds, can increase user's burden like this, reduces user's use and experiences.
In order to solve the above problem, an embodiment of the present disclosure provides a control method of an electronic device, and fig. 1 is a flowchart illustrating the control method of the electronic device according to an exemplary embodiment. The electronic equipment can be equipment needing to adjust gears, such as an electric shaver, an electric hair drier, an electric fan, an electric toothbrush and the like. Each electronic device can comprise a switch key, a processor, a memory and a driving module; the processor is respectively connected with the on-off key, the driving module and the memory. For convenience of explanation, the following embodiments will be described by taking an electric shaver as an example.
In this embodiment, the driving module in the electric shaver can operate in a plurality of gears, for example, a low gear, a middle gear and a high gear, and a user can adjust the gear of the driving module by operating an on/off key as required, where the on/off key can be pressed, touched, rotated, or the like. For convenience of explanation, the following embodiments will be described by taking the push switch as an example. For example, when the beard is hard or dense, the switch key can be pressed to adjust the driving module to operate at a low gear, and when the beard is thin or sparse, the switch can be pressed to adjust the driving module to operate at a high gear, so that a better shaving effect is achieved.
Referring to fig. 1, a control method of an electronic device includes:
101, acquiring a latest historical gear when a starting signal is received in a shutdown state; the starting signal is converted by the switch key according to the starting operation of the user.
In this embodiment, the processor of the electric shaver reads the latest historical shift from the memory, so as to obtain the latest historical shift of the driving module.
In one embodiment, when the electronic device is in a power-off state, the processor reads the latest historical gear from the memory when receiving a power-on signal sent by the switch key. After the electric shaver is turned off, the processor is in a power-off state, if a user operates a switch key, for example, a short pressing operation (the pressing time is 0.5-1.0 second), the user hopes to start the electric shaver, and the processor can receive a starting signal and then acquire the latest historical gear of the driving module. In practical applications, the power-on signal may be a power-on signal for a long time to the processor, for example, when a user presses a switch key, the voltage of a corresponding pin of the processor is pulled up to a power supply voltage, or pulled down to a ground voltage, so as to supply power to the processor.
It can be understood that before the electric shaver is turned off or after the gear of the driving module is adjusted, the processor stores the current gear of the driving module to the memory. In one embodiment, the current gear of the driving module is saved when the shutdown signal is received. The storage mode can be as follows: the gear shifting control method comprises the steps of storing according to a time sequence, so that a plurality of historical gears of a driving module can be stored; the storage area in the memory only has a set number of historical gears (which can be adjusted according to actual scenes), namely, the historical gear with the earliest record time is covered after the last historical gear is saved, so that the storage space is saved. Technical personnel can set according to concrete scenes, and the scheme of the disclosure can be realized in any storage mode, and the scheme also falls into the protection scope of the disclosure.
And 102, controlling the driving module to operate according to the latest historical gear.
In this embodiment, after the processor of the electric shaver reads the last historical shift from the memory, according to the relationship between the shift and the driving control signal, the processor generates a driving control signal based on the last historical shift and sends the driving control signal to the driving module, so that the driving module operates according to the corresponding shift.
It is understood that the relationship between the gear and the driving control signal may be stored in a memory in advance, and the processor may read the driving control signal from the memory directly. The skilled person can also generate the driving control signal by other manners in the related art, and the solution of the embodiment can also be implemented, and the corresponding solution also falls within the protection scope of the present disclosure.
In an embodiment, the driving control signal may be a driving signal, which directly controls the driving module to operate. For example, the driving module only comprises a motor, and the motor is connected with one pin of the processor, so that the processor can send a driving signal to the motor through the pin to achieve the purpose of controlling the operation of the motor. In another embodiment, the driving module may include a driving chip and a motor. The processor can send the driving control signal to the driving chip, and then the driving chip generates the driving signal to drive the motor to run. In this scenario, the driving control signal may be a duty ratio of a driving signal required by the driving module, so that the processor may obtain a duty ratio according to the latest historical gear and send the duty ratio to the driving chip, and the driving chip generates a PWM driving signal corresponding to the duty ratio to drive the motor to operate at a rotation speed corresponding to the latest historical gear.
In this embodiment, the control method of the electronic device may be applicable to a scene after the user uses the electric shaver for multiple times, so that the user is familiar with the functions of the electric shaver, and selects a target gear that is more suitable for the user's own requirements, that is, a latest historical gear in the memory can be more suitable for the actual requirements of the user.
Therefore, in the embodiment of the disclosure, the electronic device obtains the last historical gear of the driving module, and controls the driving module to operate according to the historical gear. Therefore, in the embodiment, when the electronic equipment is started, the driving module is operated in the latest historical gear, and besides the starting operation and the shutdown operation, a user can use the electronic equipment without other operations, so that the adjustment time of the user is greatly reduced, and the use experience of the user is improved.
In another embodiment, if the electric shaver is used for the first time, and the last historical gear may not be stored in the memory, a default gear (e.g., a low gear) may be set as the last historical gear. In practical applications, before the user purchases the electric shaver from the supplier, the supplier or the manufacturer may debug or display the electric shaver, so that the last historical gear is stored in the memory. However, the last historical gear may not meet the actual requirement of the user, and for this reason, the embodiment of the present disclosure further provides a control method of an electronic device, and fig. 2 is a flowchart illustrating a control method of an electronic device according to another exemplary embodiment. Referring to fig. 2, a control method of an electronic device includes:
201, when a starting signal is received in a shutdown state, obtaining a latest historical gear; the starting signal is converted by the switch key according to the starting operation of the user.
In this embodiment, the specific method and principle of step 201 and step 101 are the same, and please refer to fig. 1 and related contents of step 101 for detailed description, which is not repeated herein.
And 202, controlling the driving module to operate according to the latest historical gear.
In this embodiment, the specific method and principle of step 202 and step 102 are the same, and please refer to fig. 1 and the related contents of step 102 for detailed description, which are not repeated herein.
And 203, recognizing the operation of a user, and if the operation is gear adjustment operation, adjusting the current gear of the driving module so that the driving module operates according to the adjusted target gear.
In this embodiment, the user presses the on-off key of the electric shaver, and the on-off key converts the trigger operation of the user into a power-on signal, a gear adjustment signal, or a power-off signal, and sends the power-on signal, the gear adjustment signal, or the power-off signal to the processor. The processor receives the signal sent by the on-off key and identifies whether the signal type is an on-off signal, a shutdown signal or a gear adjusting signal. The processor judging mode can comprise:
in the first mode, the duration of user operation is monitored.
In one embodiment, the set duration (which may be adjusted based on the actual scene) is set to 1 second. If the duration of the uninterrupted operation of the user is monitored to be between 0.5 and 1.0 second, the operation of the user is a short-press operation, and the received signal is a power-on signal or a power-off signal. If the monitored time length of the user operation is more than 1.0 second, namely the signal time length exceeds the set time length, the user operation is that the signal received by the long-time pressing operation is a gear adjusting signal.
In another embodiment, if the duration of the uninterrupted operation of the user is monitored to be longer than 1.0 second (i.e., long press operation), a gear is adjusted based on the current gear of the drive module. For example, if the current gear of the drive module is a low gear, the current gear of the drive module is adjusted to a medium gear when the user presses the button for a long time.
In another embodiment, if it is monitored that the duration of the uninterrupted operation of the user is longer than 1.0 second, the gears are sequentially adjusted according to the set step size on the basis of the current gear of the driving module until the user stops operating, so as to obtain the target gear (which becomes the current gear of the driving module after the driving module operates according to the target gear). For example, the current gear of the driving module is a low gear, and when the long-time pressing operation of a user is monitored, the current gear of the driving module is adjusted at intervals of 1 second, so that the current gear of the driving module is sequentially adjusted to be a middle gear (between 1.0 and 2.0 seconds) and a high gear (between 2.0 and 3.0 seconds). When the long-press operation is 2.5 seconds, the current gear of the driving module is adjusted from a low gear to a high gear after the long-press operation. If the current gear of the driving module is adjusted to the maximum gear (or the minimum gear) in the long-press operation process, the current gear is continuously increased (or decreased) from the minimum gear (or the maximum gear), namely, the gears are adjusted circularly.
And secondly, monitoring the time interval of the interval operation of the user.
In an embodiment, the processor continuously monitors that the plurality of operations of the user are short-press operations, obtains a time interval (a time period between an end time of a previous short-press operation and an end time of a next short-press operation) of two adjacent short-press operations, and if the time interval is smaller than or equal to an interval threshold value, which indicates that the plurality of (N) short-press operations of the user are gear adjustment operations, adjusts the current gear of the driving module according to the number of discontinuous operations. For example, if the current gear of the drive module is a low gear, the user operation is N short press operations, and N is 2, the processor adjusts the current gear of the drive module to a target gear, i.e., a high gear. And then the driving module operates according to the high gear. It can be understood that the power-on operation or the power-off operation of the electronic device in the present embodiment may be a long-press operation, but cannot be a short-press operation. Of course, the technician may adjust the operation modes of the power-on operation and the power-off operation, such as a combination of a long-press operation and a short-press operation, and the like, and may also implement the solution of the present disclosure.
In another embodiment, the processor monitors a first short press operation of the user, counts time at an end time of the first short press operation, and if a second short press operation is detected within a time interval less than or equal to an interval threshold, the operation of the user is a gear shift adjustment operation, and at this time, the processor simultaneously processes: first, the short press operation continues to be detected in the manner described above. And secondly, aiming at the previous short press operation, adjusting a gear on the basis of the current gear of the driving module according to the principle that one gear is adjusted by one short press operation. And continuously adjusting the gear of the driving module to the target gear until the short-press operation is not monitored.
For example, if the current gear of the driving module is a low gear, if the user operation is 4 short press operations, when a second short press operation is detected, the processor adjusts the current gear of the driving module from the low gear to a medium gear; when the third short press operation is detected, the processor adjusts the current gear of the driving module from the middle gear to the high gear; and when the fourth short-press operation is detected, the processor adjusts the current gear of the driving module from the high gear to the low gear. And if the short-press operation is not detected within the time threshold value after the fourth short-press operation, the processor adjusts the current gear of the driving module from the low gear to the middle gear, so that gear adjustment is completed. And then, the driving module operates according to the middle gear.
And thirdly, adjusting the gear between two operations of the user. When the first setting operation of the user is monitored, the processor adjusts the current gear of the driving module according to the setting step (for example, adjusting one gear per second), and when the second setting operation of the user is detected, the gear adjustment is stopped.
The first setting operation means that when the driving module operates in a gear, the processor firstly monitors a setting operation of the user, and no effective setting operation exists (no record, or a record but no effect exists). The second setting operation is a setting operation monitored after the first setting operation. After the second set operation, the processor may delete the record of the set operation or mark the first and second set operations as invalid.
The setting operation may be a long press operation by the user, or may also be a continuous short press operation, and the determination manner of the long press operation or the short press operation may refer to the description of the previous content. Of course, the skilled person may also set other operation operations for the setting operation, for example, one long press operation and one short press operation are in a group, two long press operations and one short press operation therebetween are in a group, and the like, and the solution of the present disclosure may also be implemented.
For example, the setting operation is two consecutive short press operations. The driving module operates at a low gear, a user continuously performs two short pressing operations on the opening key, the processor identifies that the user operation is the two short pressing operations according to the monitored signals, a setting operation is represented, and if no effective setting operation exists before, a gear is adjusted according to a setting step length (for example, a gear is adjusted every second). The user continues to perform two continuous short pressing operations on the key-on in the 1.5 th second, so that when the processor monitors another setting operation of the user, gear adjustment is stopped, the current gear of the driving module is changed from the low gear to the high gear, and the high gear is used as the target gear of the driving module.
It can be understood that, in the embodiment, only the electronic device including three gears is taken as an example for description, and when the number of the gears is larger, the control method provided in the embodiment is also applicable.
Therefore, in the embodiment, the driving module is operated in the latest historical gear when the electronic equipment is started, so that the user can use the electronic equipment without adjusting the driving module, and the adjustment time of the user can be reduced. And, when the user need adjust the drive module, on the basis of the historical fender position of last time finely tune the fender position can, can reduce user's adjustment number of times like this, with all need the adjustment to compare in the correlation technique every time use, user's adjustment time can be reduced to this embodiment, promotes user's use and experiences.
According to a second aspect of the embodiments of the present disclosure, a control apparatus of an electronic device is provided, and fig. 3 is a block diagram illustrating a control apparatus of an electronic device according to an exemplary embodiment. Referring to fig. 3, a control apparatus 300 of an electronic device includes:
a historical gear acquiring module 301, configured to acquire a latest historical gear when a power-on signal is received in a power-off state; the starting signal is converted by the switch key according to the starting operation of the user;
and the driving module control module 302 is configured to control the driving module to operate according to the latest historical gear.
In the embodiment of the present disclosure, the historical gear obtaining module 301 obtains the historical gear of the last time of the driving module, and the driving module control module 302 controls the driving module to operate according to the historical gear. Therefore, the driving module is controlled to operate according to the latest historical gear, so that the user can use the electronic equipment without adjusting the driving module, the adjustment time of the user is greatly reduced, and the use experience of the user is improved.
Optionally, on the basis of the control apparatus shown in fig. 3, the present embodiment further provides a control apparatus of an electronic device, and fig. 4 is a block diagram of the control apparatus of an electronic device shown according to an exemplary embodiment. Referring to fig. 4, the control device 300 of an electronic device further includes a gear adjustment module 401, configured to recognize an operation of a user, and adjust a current gear of the driving module when the operation is a gear adjustment operation, so that the driving module operates according to an adjusted target gear.
Optionally, on the basis of the control apparatus shown in fig. 4, the present embodiment further provides a control apparatus of an electronic device, and fig. 5 is a block diagram of the control apparatus of an electronic device shown according to an exemplary embodiment. Referring to fig. 5, the gear adjustment module 401 includes:
a duration monitoring unit 501, configured to monitor a duration of an uninterrupted operation performed by a user;
a first gear adjusting unit 502, configured to adjust a current gear of the driving module according to a set step length when the duration exceeds a set duration, so as to obtain a target gear;
a control signal generating unit 503, configured to generate a driving control signal according to the target gear.
Optionally, on the basis of the control apparatus shown in fig. 5, the present embodiment further provides a control apparatus of an electronic device, and fig. 6 is a block diagram of the control apparatus of an electronic device shown according to an exemplary embodiment. Referring to fig. 6, the gear adjustment module 401 includes:
a second gear adjusting unit 601, configured to adjust a current gear of the driving module according to the number of times of the interval operation when the time interval is smaller than or equal to an interval threshold, so as to obtain a target gear;
and a control signal unit 503, configured to generate a driving control signal according to the target gear.
Optionally, on the basis of the control apparatus shown in fig. 5, the present embodiment further provides a control apparatus of an electronic device, and fig. 7 is a block diagram of the control apparatus of an electronic device shown according to an exemplary embodiment. Referring to fig. 7, the gear adjustment module 401 includes:
a third gear adjustment unit 701, configured to adjust a current gear of the drive module according to a set step length when a first setting operation of a user is monitored, and stop gear adjustment when a second setting operation of the user is monitored, so as to obtain a target gear;
and a control signal unit 503, configured to generate a driving control signal according to the target gear.
It can be seen that, in the embodiments shown in fig. 5 to 7, when the electronic device is turned on, the driving module is operated in the last historical gear, so that the user can use the electronic device without adjusting the driving module, and the adjustment time of the user can be reduced. And, when the user need adjust the drive module, on the basis of the historical fender position of last time finely tune the fender position can, can reduce user's adjustment number of times like this, with all need the adjustment to compare in the correlation technique every time use, user's adjustment time can be reduced to this embodiment, promotes user's use and experiences.
Optionally, on the basis of the control apparatus shown in fig. 4, the present embodiment further provides a control apparatus of an electronic device, and fig. 8 is a block diagram of the control apparatus of an electronic device shown according to an exemplary embodiment. Referring to fig. 8, a control apparatus 300 of an electronic device includes a gear storage module 801, configured to store a current gear of a driving module when a shutdown signal is received; the shutdown signal is converted by the on-off key according to the shutdown operation of the user.
It can be seen that, in this embodiment, the current gear of the driving module is sent to the memory for storage, so that the driving module can be conveniently used when being started next time, the electronic device is kept in the latest historical gear for operation, user adjustment is not needed, and the use experience of a user is improved.
An electronic device is also provided in an embodiment of the present disclosure, and fig. 9 is a block diagram of an electronic device shown according to an exemplary embodiment. Referring to fig. 9, the electronic device includes a switch key 901, a processor 902, a memory 903, and a driving module 904. The processor 902 is connected to the on-off key 901, the memory 903 and the driving module 904.
The on-off key 901 may be disposed on an outer surface of the electronic device, for example, a set position of a holding position of the electronic device, and when the on-off key 901 is pressed by a user, the on-off key 901 may convert a trigger operation of the user into a power-on signal, a gear adjustment signal, and a power-off signal, and send the power-on signal, the gear adjustment signal, and the power-off signal to the processor 902.
The memory 903 may store historical gear of the drive module 904.
The processor 902 may read the last historical gear from the memory 903 when receiving the power-on signal, adjust the current gear of the driving module to obtain the target gear when receiving the gear adjustment operation, generate a driving control signal according to the last historical gear or the target gear, and send the driving control signal to the driving module 904. The driving module 904 operates according to the driving control signal.
It can be understood that the electronic device can be an electric shaver, an electric hair drier, an electric fan, an electric toothbrush, and other devices requiring gear adjustment.
In the embodiment of the disclosure, when the electronic device is in a power-off state, if a power-on signal sent by a switch key is received, a latest historical gear is obtained; and then controlling the driving module to operate according to the latest historical gear. It can be seen that, in this embodiment, when the electronic device is turned on, the driving module is operated in the last historical gear, and compared with a scheme that the target gear needs to be adjusted for many times in the related art, this embodiment can reduce the adjustment time of the user, so that the user can use the electronic device as fast as possible, and thus the user experience can be improved.
In the embodiment of the present disclosure, the electronic device can be turned on, turned off, and adjusted at a gear position only by setting a one-time on/off key, so that the number of keys on the electronic device can be reduced, the size of the electronic device can be reduced, and the appearance of the electronic device can be more concise and more beautiful.
Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements: when a starting signal is received in a shutdown state, acquiring a latest historical gear; the starting signal is converted by the switch key according to the starting operation of the user; and controlling the driving module to operate according to the latest historical gear.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for controlling an electronic device, wherein the electronic device includes an on/off switch, the method comprising:
when a starting signal is received in a shutdown state, acquiring a latest historical gear; the starting signal is converted by the switch key according to the starting operation of the user;
controlling the driving module to operate according to the latest historical gear;
recognizing the operation of a user, and if the operation is gear adjustment operation, adjusting the current gear of the driving module so that the driving module operates according to the adjusted target gear;
wherein, adjust the present fender position of drive module includes:
adjusting the current gear of the driving module according to a set step length when monitoring the first setting operation of a user, and stopping gear adjustment when monitoring the second setting operation of the user to obtain a target gear;
and generating a driving control signal according to the target gear.
2. The control method according to claim 1, wherein adjusting the current gear of the drive module comprises:
monitoring the uninterrupted operation duration of a user;
if the duration exceeds the set duration, adjusting the current gear of the driving module according to the set step length to obtain a target gear;
and generating a driving control signal according to the target gear.
3. The control method according to claim 1, wherein adjusting the current gear of the drive module comprises:
if the situation that the user continuously and discontinuously operates at the time interval smaller than or equal to the interval threshold value is monitored, adjusting the current gear of the driving module according to the number of the discontinuous operations to obtain a target gear;
and generating a driving control signal according to the target gear.
4. The control method according to claim 1, wherein after adjusting the current gear of the drive module, the method further comprises:
if a shutdown signal is received, saving the current gear of the driving module; the shutdown signal is converted by the on-off key according to the shutdown operation of the user.
5. An apparatus for controlling an electronic device, the electronic device including an on/off switch, the apparatus comprising:
the historical gear acquisition module is used for acquiring the latest historical gear when a starting signal is received in a shutdown state; the starting signal is converted by the switch key according to the starting operation of the user;
the driving module control module is used for controlling the driving module to operate according to the latest historical gear;
the gear adjusting module is used for identifying the operation of a user and adjusting the current gear of the driving module when the operation is the gear adjusting operation so as to enable the driving module to operate according to the adjusted target gear;
wherein, the gear adjustment module includes:
the third gear adjusting unit is used for adjusting the current gear of the driving module according to the set step length when the first setting operation of the user is monitored, and stopping gear adjustment when the second setting operation of the user is monitored to obtain a target gear;
and the control signal generating unit is used for generating a driving control signal according to the target gear.
6. The control apparatus of claim 5, wherein the gear adjustment module comprises:
the time length monitoring unit is used for monitoring the time length of uninterrupted operation of a user;
the first gear adjusting unit is used for adjusting the current gear of the driving module according to a set step length when the time length exceeds a set time length to obtain a target gear;
and the control signal generating unit is used for generating a driving control signal according to the target gear.
7. The control apparatus of claim 5, wherein the gear adjustment module comprises:
the second gear adjusting unit is used for adjusting the current gear of the driving module according to the number of interval operations when monitoring that a user continuously operates at intervals with time intervals smaller than or equal to an interval threshold value to obtain a target gear;
and the control signal generating unit is used for generating a driving control signal according to the target gear.
8. The control device according to claim 5, further comprising a gear storage module, configured to store a current gear of the driving module when receiving a shutdown signal; the shutdown signal is converted by the on-off key according to the shutdown operation of the user.
9. An electronic device is characterized by comprising an on-off key, a processor, a memory and a driving module; the processor is respectively connected with the on-off key, the memory and the driving module;
the switch key is used for converting the operation of a user into a starting signal, a gear adjusting signal and a shutdown signal and sending the starting signal, the gear adjusting signal and the shutdown signal to the processor;
the memory is used for storing the historical gear of the driving module;
the processor is used for reading a latest historical gear from the memory when a starting signal is received, adjusting a current gear of the driving module to obtain a target gear when the received operation is a gear adjusting operation, generating a driving control signal according to the latest historical gear or the target gear, and sending the driving control signal to the driving module; identifying the operation of a user, if the operation is a gear adjustment operation, adjusting the current gear of the driving module according to a set step length when the first setting operation of the user is monitored, and stopping the gear adjustment when the second setting operation of the user is monitored to obtain a target gear; generating a driving control signal according to the target gear so that the driving module operates according to the adjusted target gear;
the driving module is used for operating according to the driving control signal.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing:
when a starting signal is received in a shutdown state, acquiring a latest historical gear; the starting signal is converted by a switch key on the electronic equipment according to the starting operation of a user;
controlling the driving module to operate according to the latest historical gear;
recognizing the operation of a user, and if the operation is gear adjustment operation, adjusting the current gear of the driving module so that the driving module operates according to the adjusted target gear;
wherein, adjust the present fender position of drive module includes:
adjusting the current gear of the driving module according to a set step length when monitoring the first setting operation of a user, and stopping gear adjustment when monitoring the second setting operation of the user to obtain a target gear;
and generating a driving control signal according to the target gear.
CN201810184510.7A 2018-03-06 2018-03-06 Electronic device, control method and device thereof, and machine-readable storage medium Active CN108333973B (en)

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 CN108333973A (en) 2018-07-27
CN108333973B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN108333973A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN107340723B (en) Mode switching method and device of intelligent electrical appliance
JP6475869B2 (en) Grooming equipment
EP1413936A3 (en) Energy management system for an appliance
CN105094015B (en) Control circuit, control method and shooting equipment
WO2015119070A1 (en) Electronic endoscopic system, electronic endoscope, power supply device, method for operating electronic endoscopic system
CN108333973B (en) Electronic device, control method and device thereof, and machine-readable storage medium
CN106155797B (en) Terminal equipment and switching method of performance modes thereof
US10015396B2 (en) Video doorbell system and related power supply adjusting method
CN112910038A (en) Power conversion device and method and electronic equipment
US6677740B1 (en) Applied control system of the power periphery of a health apparatus having function of power generation
JP2006202744A (en) Power switch system
KR101720227B1 (en) Apparatus for cutting off standby power
KR20100129664A (en) Apparatus and method for controlling an input power
CN113545583A (en) Control method and device and hairdressing device
KR20050003395A (en) Flash device, camera device and method and program thereof for the elimination of wasteful power consumption therein
CN111645493B (en) Parking air conditioner and control method and device thereof
KR20040036963A (en) Driving apparatus for reciprocating compressor
US20130117583A1 (en) Method for managing the supply voltage of a microcontroller for an electronic computer of a motor vehicle
CN110249273B (en) Control circuit and circuit control method
JP2000349948A5 (en) Image forming device
KR100950773B1 (en) Method and Apparatus for saving power of electric home system
CN112140837B (en) Data transmission method and communication equipment of vehicle air conditioning system
KR100995013B1 (en) Lower consumption standby power circuit apparatus for electric apparatus and method for controlling the same
JP2009140335A (en) Electronic appliance
CN110332658B (en) Control method and device of air conditioner and air conditioner

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