CN115616954A - Wake-up method and device for electric toothbrush, electronic equipment and storage medium - Google Patents
Wake-up method and device for electric toothbrush, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115616954A CN115616954A CN202211183374.2A CN202211183374A CN115616954A CN 115616954 A CN115616954 A CN 115616954A CN 202211183374 A CN202211183374 A CN 202211183374A CN 115616954 A CN115616954 A CN 115616954A
- Authority
- CN
- China
- Prior art keywords
- data
- awakening
- preset
- acceleration
- electric toothbrush
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000008859 change Effects 0.000 claims abstract description 45
- 230000005484 gravity Effects 0.000 claims abstract description 32
- 230000002618 waking effect Effects 0.000 claims abstract description 14
- 230000001133 acceleration Effects 0.000 claims description 139
- 230000004044 response Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000008901 benefit Effects 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 17
- 230000008569 process Effects 0.000 description 15
- 238000012545 processing Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 6
- 238000013473 artificial intelligence Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
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
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Brushes (AREA)
Abstract
The utility model discloses a method, a device, electronic equipment and a storage medium for awakening an electric toothbrush, which relate to the technical field of intelligent equipment, and the main scheme comprises the following steps: responding to the gravity change of the sensor exceeding a preset gravity change threshold value, waking up the sensor, and collecting wake-up data; judging whether the acquired awakening data conforms to the preset awakening strategy or not based on a micro-control unit; if the awakening data are determined to meet the preset awakening strategy, awakening the electric toothbrush; and if the awakening data is determined not to accord with the preset awakening strategy, controlling the electric toothbrush to be switched to a low power consumption mode. Compared with the prior art, the awakening method based on the sensor has the advantages that awakening data are collected based on the sensor, whether the awakening data accord with a preset awakening strategy or not is judged based on the micro control unit, if the awakening data accord with the preset awakening strategy, the electric toothbrush is awakened, accordingly, the mode of awakening the electric toothbrush is provided, and the problem that the awakening triggering mode of the electric toothbrush is single is solved.
Description
Technical Field
The present disclosure relates to the field of smart device technologies, and in particular, to a method and an apparatus for waking up an electric toothbrush, an electronic device, and a storage medium.
Background
The current wake-up mode of the electric toothbrush is mainly triggered by pressing a key or presses the toothbrush head to wake up the toothbrush, so that the wake-up trigger mode is single.
Disclosure of Invention
The present disclosure provides a wake-up method, apparatus, electronic device, and storage medium for an electric toothbrush. The main purpose of the electric toothbrush is to solve the problem that the current electric toothbrush has a single wake-up triggering mode and can be realized only by some operations of a user.
According to a first aspect of the present disclosure, there is provided a wake-up method of an electric toothbrush, comprising:
responding to the gravity change of the sensor exceeding a preset gravity change threshold value, awakening the sensor and collecting awakening data;
judging whether the acquired awakening data conforms to the preset awakening strategy or not based on a micro-control unit;
if the awakening data are determined to accord with the preset awakening strategy, awakening the electric toothbrush;
and if the awakening data are determined not to accord with the preset awakening strategy, controlling the electric toothbrush to be switched to a low power consumption mode.
Optionally, the determining, based on the micro control unit, whether the acquired wake-up data conforms to the preset wake-up policy includes:
judging whether the collected awakening data is valid data or not;
if so, calculating the mean acceleration of the preset number of acceleration data;
comparing the average acceleration with a preset awakening acceleration;
if the mean acceleration meets the preset acceleration requirement, determining that the electric toothbrush meets a preset awakening strategy;
and if the mean acceleration does not meet the preset acceleration requirement, determining that the electric toothbrush does not meet a preset awakening strategy. .
Optionally, the determining whether the acquired wake-up data is valid data includes:
when first interrupt information generated by the sensor, judging whether the awakening data is forward acceleration data or not;
if so, determining the awakening data as the effective data;
and if not, determining that the awakening data is not the valid data.
Optionally, the calculating the mean acceleration of the preset number of acceleration data includes:
reading original data acquired at different times in the register;
when the awakening data is determined to be the effective data, accumulating acceleration data;
and if the accumulated acceleration data reaches a preset number, calculating the average acceleration according to the acceleration data of the preset number.
Optionally, the determining, based on the micro control unit, whether the acquired wake-up data conforms to the preset wake-up policy includes:
acquiring first interrupt information stored in a register in the sensor;
controlling a level signal of a first pin of a sensor to jump once, wherein the first pin is connected with a second pin of the MCU;
and awakening the micro control unit after the second pin is activated according to the jump of the level signal of the first pin.
Optionally, before waking up the electric toothbrush, the method further comprises:
controlling to close the preset awakening strategy in the sensor;
initializing the sensor, wherein the initialization is to initialize at least one of a clock, a range, a preset acquisition frequency and an algorithm;
and controlling to start an acceleration data acquisition function of the sensor.
Optionally, the reading the original data acquired at different times in the register includes:
generating second interrupt information by the sensor according to the initialized preset acquisition frequency, and storing the second interrupt information in the register;
and reading the original data acquired at different times in the register based on the micro control unit according to the second interrupt information.
Optionally, after waking the electric toothbrush, the method further comprises:
controlling to close an acceleration data acquisition function of the sensor;
displaying a current toothbrush mode of the electric toothbrush by a first indicator light;
and displaying the current electric quantity state of the electric toothbrush through a second indicator light.
Optionally, the waking up the sensor in response to the gravity change of the sensor exceeding a preset gravity change threshold, and acquiring wake-up data includes:
determining whether the change in gravity is caused by a change in the position of the sensor;
if so, waking up the sensor.
According to a second aspect of the present disclosure, there is provided a wake-up unit for an electric toothbrush, comprising:
the first awakening unit is used for awakening the sensor and collecting awakening data in response to the fact that the gravity change of the sensor exceeds a preset gravity change threshold value;
the judging unit is used for judging whether the acquired awakening data accords with the preset awakening strategy or not based on the micro-control unit;
a second wake-up unit for waking up the electric toothbrush when it is determined that the wake-up data conforms to the preset wake-up policy;
and the control unit is used for controlling the electric toothbrush to be switched to a low power consumption mode when the awakening data is determined not to accord with the preset awakening strategy.
Optionally, the determining unit includes:
the judging module is used for judging whether the acquired awakening data is valid data;
the calculation module is used for calculating the average acceleration of the preset number of acceleration data when the judgment result of the judgment module is valid data;
the comparison module is used for comparing the average acceleration with a preset awakening acceleration;
the first determining module is used for determining that the electric toothbrush meets a preset awakening strategy when the mean acceleration meets a preset acceleration requirement;
and the second determining module is used for determining that the electric toothbrush does not accord with a preset awakening strategy when the mean acceleration does not meet the preset acceleration requirement.
Optionally, the determining module is further configured to:
when first interrupt information generated by the sensor, judging whether the awakening data is forward acceleration data or not;
if so, determining the awakening data as the effective data;
and if not, determining that the awakening data is not the valid data.
Optionally, the calculation module is further configured to:
reading original data obtained at different times in the register;
when the awakening data is determined to be the effective data, accumulating acceleration data;
and if the accumulated acceleration data reaches a preset number, calculating the average acceleration according to the acceleration data of the preset number.
Optionally, the apparatus further comprises:
the acquisition unit is used for acquiring first interrupt information stored in a register in the sensor;
the second control unit is used for controlling a level signal of a first pin of the sensor to jump once, wherein the first pin is connected with a second pin of the MCU;
and the third awakening unit is used for awakening the micro control unit after the second pin is activated according to the jump of the level signal of the first pin.
Optionally, the apparatus further comprises:
the first closing unit is used for controlling the preset awakening strategy in the sensor to be closed;
the initialization unit is used for initializing the sensor, and the initialization is to initialize at least one of a clock, a measuring range, a preset acquisition frequency and an algorithm;
and the starting unit is used for controlling and starting the acceleration data acquisition function of the sensor.
Optionally, the determining module is further configured to:
generating second interrupt information by the sensor according to the initialized preset acquisition frequency, and storing the second interrupt information in the register;
and reading the original data acquired at different times in the register based on the micro control unit according to the second interrupt information.
Optionally, the apparatus further comprises:
the second closing unit is used for controlling the acceleration data acquisition function of the sensor to be closed;
a first display unit for displaying a current toothbrush mode of the electric toothbrush through a first indicator lamp;
and the second display unit is used for displaying the current electric quantity state of the electric toothbrush through a second indicator lamp.
Optionally, the first wake-up unit includes:
the judging module is used for judging whether the gravity change is caused by the position change of the sensor;
and the awakening module is used for awakening the sensor when the second judgment result is yes.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the aforementioned first aspect.
According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method as set forth in the preceding first aspect.
According to the awakening method, the awakening device, the electronic equipment and the storage medium of the electric toothbrush, the sensor is awakened in response to the fact that the gravity change of the sensor exceeds a preset gravity change threshold value, and awakening data are collected; judging whether the acquired awakening data conforms to the preset awakening strategy or not based on a micro control unit; if the awakening data are determined to accord with the preset awakening strategy, awakening the electric toothbrush; and if the awakening data is determined not to accord with the preset awakening strategy, controlling the electric toothbrush to be switched to a low power consumption mode. Compared with the prior art, the awakening method based on the sensor has the advantages that awakening data are collected based on the sensor, whether the awakening data accord with a preset awakening strategy or not is judged based on the micro control unit, if the awakening data accord with the preset awakening strategy, the electric toothbrush is awakened, accordingly, the mode of awakening the electric toothbrush is provided, and the problem that the awakening triggering mode of the electric toothbrush is single is solved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart illustrating a wake-up method of an electric toothbrush according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another method of waking up a power toothbrush according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electric toothbrush wake-up device provided in the embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a wake-up unit of another electric toothbrush according to an embodiment of the present disclosure;
fig. 5 is a schematic block diagram of an example electronic device 300 provided by embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of embodiments of the present disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A wake-up method, apparatus, electronic device, and storage medium of the electric toothbrush of the embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a wake-up method of an electric toothbrush according to an embodiment of the present disclosure.
As shown in fig. 1, the method comprises the following steps:
The sensor can detect the position change of the electric toothbrush, a preset gravity change threshold value is set for the sensor, the purpose is to completely wake up the sensor after the sensor detects that the gravity change of the electric toothbrush is larger than the preset gravity change threshold value, a scene description is provided, namely after the electric toothbrush is taken up, the electric toothbrush is changed in space, the change is sensed by the sensor and converted into data, the converted data is compared with the preset gravity change, if the change is larger than the preset gravity change, the sensor is completely waken up, the sensor generates one-time level jump on a pin connected with a micro control unit after being waken up, the micro control unit wakes up the change of the level of an external pin, the micro control unit judges whether the change is a false touch, if the change is the false touch or the waken caused by other wake-up signals, the equipment enters a low power consumption mode again, and if the change is normal wake-up, the sensor starts to acquire the waken-up data.
And 102, judging whether the acquired awakening data conforms to the preset awakening strategy or not based on a micro control unit.
And the preset awakening strategy is to compare the calculated mean acceleration with a preset awakening acceleration so as to judge whether the gravity change of the electric toothbrush can awaken the electric toothbrush.
The sensor and the micro control unit are awakened through step 101, but the next process execution is required to be performed based on the components inside the electric toothbrush to realize the real start of the electric toothbrush.
The sensor stores original data in a register after acquiring wake-up data, the sensor sends a signal capable of acquiring data from the register outwards at a certain frequency, meanwhile, a micro control unit monitors the signal capable of acquiring data from the register sent by the sensor in real time, and when monitoring the signal capable of acquiring data from the register sent by the sensor, the micro control unit acquires the wake-up data from the register of the sensor and processes the wake-up data to obtain acceleration. If the acceleration is positive acceleration, the awakening data is effective acceleration, and if the acceleration is negative acceleration, the awakening data is ineffective acceleration. The method comprises the steps of acquiring effective acceleration data of a preset number based on a micro control unit, carrying out average calculation on the acceleration data meeting the preset number to obtain mean acceleration, and awakening the electric toothbrush after meeting conditions by comparing the preset acceleration with a preset acceleration value.
The effective data is the data which is screened by the micro control unit and participates in the awakening of the electric toothbrush and accords with the awakening strategy of the electric toothbrush.
The screening and the acquisition of the data are realized by the micro control unit through the process, and the collection of the awakening data is realized by the sensor.
If the awakening data is determined to conform to the preset awakening strategy, executing step 103; if it is determined that the wakeup data does not conform to the preset wakeup policy, step 104 is performed.
The above 102 describes the determination process of valid data, and mentions that whether to wake up the electric toothbrush based on the comparison of the average acceleration with the preset wake-up acceleration value. If the average acceleration value is larger than the preset acceleration value, the electric toothbrush is awakened, otherwise, the electric toothbrush enters a low power consumption mode. The purpose of the mean-based determination is to reduce the likelihood that the power toothbrush will be woken up by mistake.
And 104, controlling the electric toothbrush to switch to a low power consumption mode.
The electric toothbrush is switched into a low power consumption mode, namely, the basic detection function of the sensor is reserved, the purpose is to realize that the change of the electric toothbrush can be detected in the low power consumption mode, and the basic detection function is also the basis for realizing the embodiment.
According to the awakening method of the electric toothbrush, the sensor is awakened in response to the fact that the gravity change of the sensor exceeds a preset gravity change threshold value, and awakening data are collected; judging whether the acquired awakening data conforms to the preset awakening strategy or not based on a micro-control unit; if the awakening data are determined to meet the preset awakening strategy, awakening the electric toothbrush; and if the awakening data are determined not to accord with the preset awakening strategy, controlling the electric toothbrush to be switched to a low power consumption mode. Compared with the prior art, the awakening method based on the sensor has the advantages that awakening data are collected based on the sensor, whether the awakening data accord with a preset awakening strategy or not is judged based on the micro control unit, if the awakening data accord with the preset awakening strategy, the electric toothbrush is awakened, accordingly, the mode of awakening the electric toothbrush is provided, and the problem that the awakening triggering mode of the electric toothbrush is single is solved.
For clarity of explanation of the disclosed embodiment, fig. 2 is a schematic flow chart of another wake-up method for an electric toothbrush according to the disclosed embodiment. As shown in fig. 2, includes:
If so, go to step 203, otherwise go to step 202.
In step 202, the sensor wake-up function is started, and step 204 is continuously executed.
If not, the process returns to step 205, and if yes, step 206 is executed.
At step 206, the sensor wake-up data acquisition function is enabled.
If yes, go to step 208, otherwise, go back to step 207.
In step 208, acceleration data is acquired.
In step 209, it is determined whether the acceleration is a positive acceleration.
If not, go to step 211, and if yes, go to step 210.
At step 210, the acceleration data is determined to be valid data, and the process continues to step 212.
In step 211, the acceleration data is determined to be invalid data, and the data is ignored.
In step 213, it is determined whether the accumulated number is greater than or equal to the predetermined number, if yes, the step 207 is executed again, and if no, the step 214 is executed.
In step 214, the mean acceleration is calculated.
If yes, go to step 216, otherwise go to step 217.
The electric toothbrush enters a low power mode, step 217.
For the description of step 201 to step 217, reference may be made to the description of the above embodiments, and the embodiments of the present disclosure are not described in detail herein.
As a refinement of the embodiment of the present disclosure, when the step 102 is executed to determine whether the acquired wake-up data conforms to the preset wake-up policy based on the micro control unit, the following implementation manners may be adopted, for example: judging whether the acquired awakening data is valid data or not; if so, calculating the average acceleration of the preset number of acceleration data; comparing the mean acceleration with a preset awakening acceleration; if the mean acceleration meets the preset acceleration requirement, determining that the electric toothbrush meets a preset awakening strategy; and if the mean acceleration does not meet the preset acceleration requirement, determining that the electric toothbrush does not meet a preset awakening strategy. .
The effective data is forward acceleration data detected by the sensor, and the preset awakening strategy is a strategy of solving a mean acceleration based on the obtained preset number of forward accelerations, and comparing the mean acceleration with the preset awakening acceleration to judge whether to awaken the electric toothbrush. Exemplary, for example: the two obtained accelerations a1=10 and a2=8 are calculated as a mean acceleration of a1 and a2, that is, (a 1+ a 2)/2, the mean acceleration is 9, the preset wake-up acceleration is 8, and the mean acceleration is greater than the preset wake-up acceleration, so as to wake up the electric toothbrush. In addition, the above embodiment has already described the wake-up process, and for clarity and conciseness, this description is not repeated.
As a refinement of the above embodiment, the method may employ, but is not limited to, the following implementations, for example: acquiring first interrupt information stored in a register in the sensor; controlling a level signal of a first pin of a sensor to perform one-time jumping, wherein the first pin is connected with a second pin of the MCU; and awakening the micro control unit after the second pin is activated according to the jump of the level signal of the first pin.
The MCU is a micro control unit, can perform some simple data operations, is a core data processing unit for realizing awakening of the electric toothbrush, and the process is that the sensor detects that the change is awakened and then awakens the MCU.
As a refinement of the above embodiment, the method may employ, but is not limited to, the following implementations, for example: controlling to close the preset awakening strategy in the sensor; initializing the sensor, wherein the initialization is to initialize at least one of a clock, a range, a preset acquisition frequency and an algorithm; and controlling to start an acceleration data acquisition function of the sensor.
After the process is performed after the micro control unit is awakened by the sensor and judged to be effectively awakened by the micro control unit, the process is executed, specifically, the process between the step 101 and the step 102, at this time, the sensor preset awakening strategy is turned off, the data are initialized, and the acceleration data acquisition function is started, wherein the preset awakening strategy includes but is not limited to that in a low power consumption mode, the sensor can detect the change of the electric toothbrush.
For the acquisition of the acceleration, in order to prevent the data fluctuation from influencing the awakening judgment, data filtering processing is added.
As a refinement of the above embodiment, when calculating the mean acceleration, the following implementation may be adopted, but not limited to, for example: reading original data acquired at different times in the register; calculating the original data according to a preset algorithm to obtain acceleration data; and if the accumulated acceleration data reaches a preset number, calculating the average acceleration according to the acceleration data of the preset number.
The original data are awakening data acquired by a sensor, before the mean acceleration is calculated, whether the original data are valid data or not needs to be judged, namely whether the awakening data contain the forward acceleration or not is judged, if the awakening data contain the forward acceleration, the awakening data are valid data, then the acceleration data are accumulated, and the mean acceleration is obtained after the acceleration accumulation reaches a preset amount.
As a refinement of the above embodiment, when the micro-processing control unit acquires the raw data in the register in the sensor, the following processes are further included, for example: generating second interrupt information by the sensor according to the initialized preset acquisition frequency, and storing the second interrupt information in the register; and reading the original data acquired at different times in the register based on the micro control unit according to the second interrupt information.
In order to describe the process of acquiring the original data in the register of the sensor by the micro-processing control unit in detail, the disclosure provides an exemplary description that the sensor acquires the wake-up data at a preset frequency and stores the wake-up data in the register, the sensor generates interrupt information after the above steps are completed, and the micro-control unit responds to the interrupt information and calls the original data from the register.
As a refinement of the above embodiment, the method may employ, but is not limited to, the following implementations, for example: controlling to close an acceleration data acquisition function of the sensor; displaying a current toothbrush mode of the electric toothbrush by a first indicator light; and displaying the current electric quantity state of the electric toothbrush through a second indicator light.
When the electric toothbrush is turned off, the acceleration data acquisition function of the sensor is turned off, and when the electric toothbrush is awakened, the current toothbrush mode of the electric toothbrush is displayed through a first indicator light; and displaying the current electric quantity state of the electric toothbrush through a second indicator light.
To sum up, the embodiment of the present disclosure can achieve the following effects:
1. the awakening data are collected based on the sensor, whether the awakening data accord with a preset awakening strategy or not is judged based on the micro control unit, if the awakening data accord with the preset awakening strategy, the electric toothbrush is awakened, and therefore the mode of awakening the electric toothbrush by picking up is provided, and the problem that the awakening triggering mode of the electric toothbrush is single is solved.
2. The electric toothbrush changes are obtained based on the sensor, the micro control unit is awakened, and effective judgment of awakening is achieved through the micro control unit.
3. And finally awakening the electric toothbrush based on the comparison between the acceleration mean value calculation and the preset acceleration value.
Corresponding to the awakening method of the electric toothbrush, the invention also provides an awakening device of the electric toothbrush. Since the device embodiment of the present invention corresponds to the method embodiment described above, details that are not disclosed in the device embodiment may refer to the method embodiment described above, and are not described in detail in the present invention.
Fig. 3 is a schematic structural diagram of an electric toothbrush wake-up device provided in an embodiment of the present disclosure, as shown in fig. 3, including:
the first awakening unit 31 is configured to awaken the sensor in response to a change in gravity of the sensor exceeding a preset gravity change threshold value, and acquire awakening data;
the judging unit 32 is configured to judge whether the acquired wake-up data conforms to the preset wake-up policy based on the micro control unit;
a second wake-up unit 33 for waking up the electric toothbrush when it is determined that the wake-up data conforms to the preset wake-up policy;
a control unit 34, configured to control the electric toothbrush to switch to a low power consumption mode when it is determined that the wake-up data does not conform to the preset wake-up policy.
The awakening device of the electric toothbrush provided by the disclosure responds to the condition that the gravity change of the sensor exceeds a preset gravity change threshold value, awakens the sensor and collects awakening data; judging whether the acquired awakening data conforms to the preset awakening strategy or not based on a micro-control unit; if the awakening data are determined to meet the preset awakening strategy, awakening the electric toothbrush; and if the awakening data is determined not to accord with the preset awakening strategy, controlling the electric toothbrush to be switched to a low power consumption mode. Compared with the prior art, the awakening method based on the sensor has the advantages that awakening data are collected based on the sensor, whether the awakening data accord with a preset awakening strategy or not is judged based on the micro control unit, if the awakening data accord with the preset awakening strategy, the electric toothbrush is awakened, accordingly, the mode of awakening the electric toothbrush is provided, and the problem that the awakening triggering mode of the electric toothbrush is single is solved.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, fig. 4 is a schematic structural diagram of another wake-up device of an electric toothbrush provided by the embodiment of the present disclosure, where the determining unit 22 includes:
further, in a possible implementation manner of this embodiment, as shown in fig. 4, the determining unit 32 includes:
a determining module 321, configured to determine whether the acquired wake-up data is valid data;
a calculating module 322, configured to calculate a mean acceleration of the preset number of acceleration data when a determination result of the determining module is valid data;
a comparison module 323, configured to compare the mean acceleration with a preset wake-up acceleration;
a first determining module 324, configured to determine that the electric toothbrush meets a preset wake-up policy when the mean acceleration meets a preset acceleration requirement;
a second determining module 325, configured to determine that the electric toothbrush does not comply with a preset wake-up policy when the mean acceleration does not satisfy the preset acceleration requirement.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, the determining module 321 is further configured to:
when first interrupt information generated by the sensor is received, judging whether the awakening data is positive acceleration data or not;
if so, determining the awakening data as the effective data;
and if not, determining that the awakening data is not the valid data.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, the calculating module 322 is further configured to:
reading original data acquired at different times in the register;
accumulating acceleration data when the awakening data is determined to be the effective data;
and if the accumulated acceleration data reaches a preset number, calculating the average acceleration according to the acceleration data of the preset number.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, the apparatus further includes:
an acquiring unit 35, configured to acquire first interrupt information stored in the register in the sensor;
the second control unit 36 is configured to control a level signal of a first pin of the sensor to perform one-time transition, where the first pin is connected to a second pin of the MCU;
and a third wake-up unit 37, configured to wake up the micro control unit after activating the second pin according to a transition of the level signal of the first pin.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, the apparatus further includes:
a first closing unit 38, configured to control to close the preset wake-up policy in the sensor;
an initialization unit 39, configured to initialize the sensor, where the initialization is to initialize at least one of a clock, a range, a preset acquisition frequency, and an algorithm;
and a starting unit 310 for controlling and starting an acceleration data acquiring function of the sensor.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, the determining module 321 is further configured to:
generating second interrupt information by the sensor according to the initialized preset acquisition frequency, and storing the second interrupt information in the register;
and reading the original data acquired at different times in the register based on the micro control unit according to the second interrupt information.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, the apparatus further includes:
a second shutdown unit 3011 configured to control to shut down an acceleration data acquisition function of the sensor;
a first presentation unit 3012 for presenting a current toothbrush mode of the electric toothbrush through a first indicator lamp;
and a second display unit 3013 for displaying the current power state of the electric toothbrush through a second indicator.
Further, in a possible implementation manner of this embodiment, as shown in fig. 4, the first waking unit 31 includes:
a determining module 311, configured to determine whether the gravity change is caused by a change in the sensor position;
a wake-up module 312, configured to wake up the sensor when the second determination result is yes.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of the present embodiment, and the principle is the same, and the present embodiment is not limited thereto.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the device 400 includes a computing unit 401 that can perform various appropriate actions and processes in accordance with a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 into a RAM (Random Access Memory) 403. In the RAM403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, ROM 402, and RAM403 are connected to each other via a bus 404. An I/O (Input/Output) interface 405 is also connected to the bus 404.
A number of components in the device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, FPGAs (Field Programmable Gate arrays), ASICs (Application-Specific Integrated circuits), ASSPs (Application Specific Standard products), SOCs (System On Chip), CPLDs (Complex Programmable Logic devices), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an EPROM (erasable Programmable Read-Only-Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Disc Read-Only-Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a Display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), internet, and blockchain Network.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be noted that artificial intelligence is a subject for studying a computer to simulate some human thinking process and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and has both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, machine learning/deep learning, a big data processing technology, a knowledge map technology and the like.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.
Claims (10)
1. A method of waking up a power toothbrush, comprising:
responding to the gravity change of the sensor exceeding a preset gravity change threshold value, awakening the sensor and collecting awakening data;
judging whether the acquired awakening data conforms to the preset awakening strategy or not based on a micro-control unit;
if the awakening data are determined to meet the preset awakening strategy, awakening the electric toothbrush;
and if the awakening data is determined not to accord with the preset awakening strategy, controlling the electric toothbrush to be switched to a low power consumption mode.
2. The method of claim 1, wherein the determining whether the collected wake-up data conforms to the preset wake-up policy based on the mcu comprises:
judging whether the collected awakening data is valid data or not;
if so, calculating the average acceleration of the preset number of acceleration data;
comparing the mean acceleration with a preset awakening acceleration;
if the mean acceleration meets the preset acceleration requirement, determining that the electric toothbrush meets a preset awakening strategy;
and if the mean acceleration does not meet the preset acceleration requirement, determining that the electric toothbrush does not meet a preset awakening strategy. .
3. The method of claim 2, wherein determining whether the collected wake-up data is valid comprises:
when first interrupt information generated by the sensor, judging whether the awakening data is forward acceleration data or not;
if so, determining the awakening data as the effective data;
and if not, determining that the awakening data is not the valid data.
4. The method of claim 3, wherein the calculating the mean acceleration of the preset amount of acceleration data comprises:
reading original data acquired at different times in the register;
when the awakening data is determined to be the effective data, accumulating acceleration data;
and if the accumulated acceleration data reaches a preset number, calculating the average acceleration according to the acceleration data of the preset number.
5. A wake-up device for a power toothbrush, comprising:
the first awakening unit is used for awakening the sensor and collecting awakening data in response to the fact that the gravity change of the sensor exceeds a preset gravity change threshold value;
the judging unit is used for judging whether the acquired awakening data accords with the preset awakening strategy or not based on the micro-control unit;
a second wake-up unit for waking up the electric toothbrush when it is determined that the wake-up data conforms to the preset wake-up policy;
and the control unit is used for controlling the electric toothbrush to be switched to a low power consumption mode when the awakening data is determined not to accord with the preset awakening strategy.
6. The apparatus according to claim 5, wherein the judging unit includes:
the judging module is used for judging whether the acquired awakening data is valid data or not;
the calculation module is used for calculating the average acceleration of the preset number of acceleration data when the judgment result of the judgment module is valid data;
the comparison module is used for comparing the average acceleration with a preset awakening acceleration;
the first determining module is used for determining that the electric toothbrush meets a preset awakening strategy when the mean acceleration meets a preset acceleration requirement;
and the second determining module is used for determining that the electric toothbrush does not conform to a preset awakening strategy when the mean acceleration does not meet the preset acceleration requirement.
7. The apparatus of claim 6, wherein the determining module is further configured to:
when first interrupt information generated by the sensor is received, judging whether the awakening data is positive acceleration data or not;
if so, determining the awakening data as the effective data;
and if not, determining that the awakening data is not the valid data.
8. The apparatus of claim 7, wherein the computing module is further configured to:
reading original data acquired at different times in the register;
when the awakening data is determined to be the effective data, accumulating acceleration data;
and if the accumulated acceleration data reaches a preset number, calculating the average acceleration according to the acceleration data of the preset number.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211183374.2A CN115616954A (en) | 2022-09-27 | 2022-09-27 | Wake-up method and device for electric toothbrush, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211183374.2A CN115616954A (en) | 2022-09-27 | 2022-09-27 | Wake-up method and device for electric toothbrush, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115616954A true CN115616954A (en) | 2023-01-17 |
Family
ID=84860164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211183374.2A Pending CN115616954A (en) | 2022-09-27 | 2022-09-27 | Wake-up method and device for electric toothbrush, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115616954A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100085203A1 (en) * | 2008-10-08 | 2010-04-08 | Philippe Kahn | Method and System for Waking Up a Device Due to Motion |
US20130082939A1 (en) * | 2011-10-03 | 2013-04-04 | Motorola Mobility, Inc. | Method for Detecting False Wake Conditions of a Portable Electronic Device |
US8560229B1 (en) * | 2010-09-15 | 2013-10-15 | Google Inc. | Sensor based activity detection |
CN111150515A (en) * | 2020-02-17 | 2020-05-15 | 广州薇美姿实业有限公司 | Electric toothbrush control method |
CN111297506A (en) * | 2020-02-17 | 2020-06-19 | 广州薇美姿实业有限公司 | Electric toothbrush control method |
US20210319894A1 (en) * | 2020-04-08 | 2021-10-14 | CareBand Inc. | Wearable electronic device and system using low-power cellular telecommunication protocols |
-
2022
- 2022-09-27 CN CN202211183374.2A patent/CN115616954A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100085203A1 (en) * | 2008-10-08 | 2010-04-08 | Philippe Kahn | Method and System for Waking Up a Device Due to Motion |
US8560229B1 (en) * | 2010-09-15 | 2013-10-15 | Google Inc. | Sensor based activity detection |
US20130082939A1 (en) * | 2011-10-03 | 2013-04-04 | Motorola Mobility, Inc. | Method for Detecting False Wake Conditions of a Portable Electronic Device |
CN111150515A (en) * | 2020-02-17 | 2020-05-15 | 广州薇美姿实业有限公司 | Electric toothbrush control method |
CN111297506A (en) * | 2020-02-17 | 2020-06-19 | 广州薇美姿实业有限公司 | Electric toothbrush control method |
US20210319894A1 (en) * | 2020-04-08 | 2021-10-14 | CareBand Inc. | Wearable electronic device and system using low-power cellular telecommunication protocols |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112732341B (en) | Sleep control method and device for vehicle-mounted computing platform and readable storage medium | |
US20180329713A1 (en) | Fitness sensor with low power attributes in sensor hub | |
WO2014039824A1 (en) | Providing support for device states | |
CN103412634A (en) | Device and method for awakening MCU (micro control unit) of SOC (system on chip) chip | |
CN106662970A (en) | Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device | |
CN108509225A (en) | A kind of information processing method and electronic equipment | |
CN115904656A (en) | State control method, device and equipment applied to chip and storage medium | |
CN111261143B (en) | Voice wakeup method and device and computer readable storage medium | |
WO2024114612A1 (en) | Smart-device image recording method and apparatus, electronic device, and storage medium | |
CN105547491B (en) | A kind of automatic power-saving method of telescope-type laser ranging thermal imaging system | |
CN112767935B (en) | Awakening index monitoring method and device and electronic equipment | |
CN114987368B (en) | Control method and device for vehicle quiescent current, electronic equipment and storage medium | |
CN115616954A (en) | Wake-up method and device for electric toothbrush, electronic equipment and storage medium | |
WO2023070890A1 (en) | Working mode control method for wearable device, wearable device, and medium | |
CN112596600B (en) | Screen unlocking method and device, storage medium and mobile terminal | |
WO2022057093A1 (en) | Wearable device and screen wake-up method therefor, and readable storage medium | |
EP4311480A1 (en) | Method for monitoring sleep, apparatus, device, and storage medium | |
CN115985066B (en) | Method, device, system and storage medium for automatically waking up user | |
CN111797044A (en) | Data delay processing system and method for asynchronous serial port communication system | |
CN118596886A (en) | Charging system for vehicle battery, charging method for vehicle battery, electronic device, medium, and vehicle | |
CN114385252A (en) | Device control method, device, storage medium and electronic device | |
CN116740684A (en) | Driver state monitoring method, device, equipment and medium | |
CN116152964A (en) | Method and device for identifying intelligent door lock, electronic equipment and storage medium | |
CN116467136A (en) | Smoothness monitoring method, device and equipment for application program and storage medium | |
CN116578346A (en) | Proximity wake-up method, device, equipment and storage medium |
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 |