State-aware toothbrush control method and device, electric toothbrush and medium

By reading historical brushing patterns and parsing button events in the electric toothbrush, independent control of brushing modes and intensity adjustment is achieved, solving the problems of strong functional coupling and weak state perception in existing technologies. This improves the intuitiveness and reliability of operation and supports the persistent storage of personalized configurations.

CN122117233APending Publication Date: 2026-05-29YUANMENG CHUANGZHI TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
YUANMENG CHUANGZHI TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2026-02-09
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The existing control logic of smart toothbrushes suffers from problems such as strong functional coupling, weak state perception, and difficulty in persistently saving personalized configurations, resulting in complex operation, high accidental touch rate, blurred functional boundaries, and imperfect data management.

Method used

By responding to the wake-up event of the electric toothbrush, it reads historical brushing modes from the preset database, obtains the button trigger signal, and parses and generates the corresponding button event, thereby realizing independent control of brushing mode and intensity adjustment, supporting personalized configuration and storing it in the database.

Benefits of technology

It improves the intuitiveness of human-computer interaction and the reliability of operation, avoids accidental operation, supports personalized configuration and persistent storage of force parameters in various modes, enhances the consistency of user experience, and extends the lifespan of storage media.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122117233A_ABST
    Figure CN122117233A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent toothbrushes, and discloses a toothbrush control method and device based on state sensing, an electric toothbrush and a medium, which comprise the following steps: in response to a wake-up event, reading a historical brushing mode from a database as a current mode; acquiring a key trigger signal and analyzing and generating a key event; if it is a start type single-click event, controlling the toothbrush to operate in the current mode and entering a tooth brushing state; in the tooth brushing state, if the key event is a mode switching type single-click event, performing mode switching and updating the current mode; if it is a force adjustment type long-press event, performing force adjustment and generating target force data; after the adjustment is completed, associating the current mode with the target force data and storing the current mode and the target force data in the database. The application improves the operation convenience and interactive intelligence in the multiple modes, realizes accurate memory and continuation of user preference settings, and significantly enhances the use experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart toothbrush technology, and in particular to a state-aware toothbrush control method, device, electric toothbrush and medium. Background Technology

[0002] With the development of smart health devices, electric toothbrushes have evolved from single vibration modes to multi-functional, multi-level, and intelligent designs. Current mainstream products generally feature at least two brushing modes (such as cleaning, whitening, and sensitive), and allow users to switch between selectable functions via a built-in microcontroller. To support personalized usage habits, some models have introduced a non-volatile memory (NVS) unit to save the last operating state before shutdown, achieving a "memory power-on" function. In terms of operation, most products rely on one or two physical buttons for complete control. Typical designs include: a single click to start / pause operation, a short press to switch brushing modes, and a long press to enter system settings or adjust parameters. This type of control logic has improved human-computer interaction efficiency to some extent and, with the help of a simple state machine model, has achieved basic hierarchical management of functions, forming the technological foundation for current smart toothbrush human-computer control.

[0003] While existing solutions achieve basic multi-mode operation and state recovery capabilities, several contradictions remain in user experience and control logic. First, there is strong functional coupling and insufficient independence: most products share the same button for mode switching and intensity adjustment, leading to overlapping operation paths. Users must memorize complex trigger rules (such as "short press to switch modes, long press to adjust intensity"), making them highly susceptible to accidental touches and unexpected behaviors, especially noticeable with wet hands. Second, the lack of state awareness blurs functional boundaries: existing control logic typically does not distinguish between "standby," "running," and "paused" states, failing to establish a conditional mechanism that "dynamic adjustment is only allowed during brushing," resulting in the adjustment function not accurately adapting to usage timing and affecting operational continuity. Third, the data management mechanism is inadequate: although capable of remembering the last mode, there is a general lack of support for "each brushing mode independently remembering its corresponding intensity level." This means that if a user increases the intensity in one mode, switching to another mode may inherit the same intensity, violating the intention of personalized settings. Finally, the event handling mechanism is crude: when multiple buttons are pressed simultaneously, the system often adopts a first-in-first-out or ignore strategy, without defining clear priority response rules, which further reduces the reliability of the interaction. Summary of the Invention

[0004] In view of this, the embodiments of this application provide a toothbrush control method, device, electric toothbrush and medium based on state awareness, which can effectively solve the problems of high functional operation coupling, weak state awareness capability and difficulty in persistently saving personalized configurations in the prior art.

[0005] In a first aspect, embodiments of this application provide a state-aware toothbrush control method, comprising: In response to the wake-up event of the electric toothbrush, the historical brushing patterns are read from the preset database and used as the current brushing pattern; Acquire the trigger signal of the button on the electric toothbrush, and parse the trigger signal to generate the corresponding button event; If the button event is a start-type click event, the electric toothbrush is controlled to run according to the current brushing mode and enter the brushing state; In the brushing state, if the button event is a mode switching click event, the electric toothbrush is controlled to perform brushing mode switching processing and update the current brushing mode; if the button event is a force adjustment long press event, the electric toothbrush is controlled to perform brushing force adjustment processing and generate target force data. After performing the brushing intensity adjustment process, a correspondence is established between the current brushing mode and the target intensity data, and the data is stored in the preset database.

[0006] In some embodiments, the step of reading historical brushing patterns from a preset database as the current brushing pattern in response to a wake-up event of the electric toothbrush includes: After the electric toothbrush enters the wake-up mode, it sends a brushing mode read request to the preset database; Receive the brushing mode identifier returned by the preset database; wherein the brushing mode identifier corresponds to the brushing mode set before the most recent brushing ended; Set the brushing mode identifier to the current brushing mode.

[0007] In some embodiments, obtaining the trigger signal of the button on the electric toothbrush and parsing the trigger signal to generate a corresponding button event includes: The electric toothbrush can detect changes in the power and mode levels of the power button and mode button in real time, and generate a corresponding trigger signal when a level change of either button is detected. Record the key press time and release time corresponding to each trigger signal, and calculate the duration of the trigger signal based on the key press time and release time; The duration is compared with a preset time threshold to determine the key operation type. Generate a corresponding key event based on the key operation type.

[0008] In some embodiments, if the button event is a start-type click event, controlling the electric toothbrush to operate according to the current brushing mode and enter the brushing state includes: After determining that the button event is a start-type click event, obtain the parameter configuration information corresponding to the current brushing mode; Based on the parameter configuration information, a start command is generated and sent to the control unit of the electric toothbrush to drive the electric toothbrush to run, and the current running state is marked as brushing state.

[0009] In some embodiments, when the button event is a mode switching click event, controlling the electric toothbrush to perform brushing mode switching processing and update the current brushing mode includes: After determining that the button event is a mode switching click event, the index position corresponding to the current brushing mode is determined from the preset mode configuration sequence; The next target brushing mode is determined based on the index position and the preset loop rule, and the parameter configuration information corresponding to the target brushing mode is obtained. Set the parameter configuration information corresponding to the target brushing mode to the current brushing mode, and update the operating parameter configuration of the electric toothbrush according to the parameter configuration information.

[0010] In some embodiments, if the button event is a long press event of the force adjustment type, controlling the electric toothbrush to perform brushing force adjustment processing and generate target force data includes: After determining that the button event is a long press event of the force adjustment type, obtain the set of force adjustment options corresponding to the current brushing mode; According to the preset adjustment rules, the target force data is determined from the set of force adjustment options; The target force data is loaded into the control unit of the electric toothbrush.

[0011] In some embodiments, establishing a correspondence between the current brushing mode and the target force data, and storing it in the preset database, includes: Obtain the mode identifier of the current brushing mode and the corresponding target force data; The pattern identifier and the target force data are used to form a data pair; The associated data pairs are written into the preset storage area of ​​the preset database.

[0012] Secondly, embodiments of this application provide a state-aware toothbrush control device, comprising: The pattern reading module is used to respond to the wake-up event of the electric toothbrush and read the historical brushing patterns from the preset database as the current brushing pattern; The signal triggering module is used to acquire the trigger signal of the electric toothbrush button and parse the trigger signal to generate the corresponding button event; The toothbrush operation module is used to control the electric toothbrush to operate according to the current brushing mode and enter the brushing state if the button event is a start-type click event; The mode switching module is used to control the electric toothbrush to perform brushing mode switching processing and update the current brushing mode when the button event is a mode switching click event during the brushing state; and to control the electric toothbrush to perform brushing intensity adjustment processing and generate target intensity data when the button event is an intensity adjustment long press event. The data storage module is used to establish a correspondence between the current brushing mode and the target intensity data after the brushing intensity adjustment process is executed, and to store it in the preset database.

[0013] Thirdly, embodiments of this application provide an electric toothbrush, the electric toothbrush including a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the state-aware toothbrush control method of the first aspect described above.

[0014] Fourthly, embodiments of this application provide a computer-readable storage medium, wherein when the computer program is executed on a processor, it implements the state-aware toothbrush control method of the first aspect described above.

[0015] The embodiments of this application have the following beneficial effects: by responding to the wake-up event of the electric toothbrush, the historical brushing mode is read from the preset database as the current brushing mode; the button trigger signal is obtained and the corresponding button event is generated by parsing; if it is a start-type click event, the brushing mode is run and the brushing state is entered; in the brushing state, if a mode switching type click event is detected, the mode switching process is executed to update the current mode; if it is a pressure adjustment type long press event, the pressure adjustment process is executed to generate target pressure data; and after the adjustment is completed, the current brushing mode and the target pressure data are established in correspondence and stored in the database.

[0016] This application enables independent control and memorization of brushing modes and intensity levels, improving the intuitiveness and reliability of human-computer interaction; it limits the timing of function activation through a state awareness mechanism to avoid accidental operation; it supports personalized configuration and persistent storage of intensity parameters in each mode, enhancing the consistency of user experience; at the same time, it reduces unnecessary storage operations, extends the lifespan of storage media, and improves operating efficiency and intelligence. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This paper shows a flowchart of a state-aware toothbrush control method according to an embodiment of the present application. Figure 2 Another flowchart of the state-aware toothbrush control method according to an embodiment of this application is shown; Figure 3 This paper shows another flowchart of a state-aware toothbrush control method according to an embodiment of the present application; Figure 4 This paper illustrates a structural diagram of a state-aware toothbrush control method according to an embodiment of this application. Detailed Implementation

[0019] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0020] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0021] In the following text, the terms "comprising," "having," and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more combinations thereof. Furthermore, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.

[0022] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.

[0023] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0024] Considering users' comprehensive needs for intuitive operation, real-time response, and continuous personalized settings during actual use, a state-aware toothbrush control method is proposed. This method intelligently restores the power-on state by responding to the electric toothbrush's wake-up event and retrieving historical brushing modes from a preset database as the current brushing mode. It also acquires trigger signals from the electric toothbrush buttons and parses these signals to generate corresponding button events to identify the user's operational intent. If the button event is a start-type click event, the electric toothbrush is controlled to operate according to the current brushing mode, entering brushing mode. In brushing mode, if a mode-switching click event is detected, brushing mode switching processing is performed and the current brushing mode is updated. If a pressure adjustment long-press event is detected, brushing pressure adjustment processing is performed and target pressure data is generated. After performing the brushing pressure adjustment processing, a correspondence is established between the current brushing mode and the target pressure data and stored in the preset database, thereby achieving dynamic interactive control based on the operating state and persistent management of fine-grained personalized configurations.

[0025] The following examples illustrate the state-aware toothbrush control method.

[0026] Figure 1 A flowchart of a state-aware toothbrush control method according to an embodiment of this application is shown. Exemplarily, the state-aware toothbrush control method includes the following steps: Step S100: In response to the wake-up event of the electric toothbrush, retrieve the historical brushing mode from the preset database and use it as the current brushing mode.

[0027] The wake-up event refers to the operation signal that triggers the electric toothbrush to switch from a low-power sleep state to a normal working state. This can originate from physical interactions such as clicking the power button or gently shaking the device to activate the gyroscope sensor. The database is a data storage area for persistently storing user configuration parameters, typically implemented using the chip's built-in non-volatile storage (NVS) mechanism, which retains data even after power loss. The brushing history refers to the brushing mode identifiers set and saved before the end of the most recent brushing session, such as the mode types corresponding to different vibration strategies like cleaning, whitening, sensitive, and massage. Demonstratively, by automatically loading user preference settings at the initial device startup, repetitive selection is avoided each time the device is used, improving the continuity of human-computer interaction and ease of operation.

[0028] In an optional embodiment, step S100 includes the following sub-steps: S101, after the electric toothbrush enters the wake-up mode, sends a brushing mode read request to the preset database.

[0029] The wake-up mode refers to the intermediate operating state of the electric toothbrush after hardware initialization but before it begins brushing. In this state, the system has completed power management, sensor self-testing, and peripheral driver loading, and is capable of responding to external input. The brushing mode read request is a data query command initiated in the form of a software instruction, containing target address information and required field identifiers. For example, when the user briefly presses the power button to trigger the wake-up event, the main control chip (MCU) immediately enters wake-up mode and generates a read request pointing to a fixed offset address in the NVS memory area. This request is sent to the memory module via an internal bus protocol (such as I²C or SPI emulation interface) to initiate data retrieval. This process ensures that the system can restore its context environment in the shortest possible time.

[0030] S102, receive the brushing mode identifier returned by the preset database. The brushing mode identifier corresponds to the brushing mode set before the most recent brushing session ended.

[0031] The brushing mode identifier is a numeric or string code that uniquely corresponds to a brushing mode. For example, "0x01" represents the cleaning mode, and "0x02" represents the whitening mode. Its value is determined by the mode ultimately selected by the user during the previous brushing process and is written to the database before brushing ends. For example, upon receiving a read request, the system locates a preset storage area (such as Flash sector Page 12), reads the raw byte data (such as `0x01`) stored in the 8-bit register, and encapsulates this data into a response message to send back to the MCU. The MCU receives the brushing mode identifier and temporarily stores it in the RAM cache for further parsing.

[0032] S103, resolve the brushing mode identifier to the corresponding brushing mode and set it as the current brushing mode.

[0033] Parsing refers to the process of mapping the received raw identifier data into executable functional entities, involving table lookup matching or conditional judgment logic. The current brushing mode is the system's current effective operating mode, determining the motor vibration curve, LED indicator status, and subsequent executable operation range. For example, the MCU calls its built-in mode mapping table to convert the received `0x01` into a complete parameter configuration package for the "cleaning mode," including the base frequency (e.g., 180Hz), amplitude waveform (sine modulation), recommended duration (120 seconds), etc., and sets this mode as the currently active state. Subsequently, the display screen or indicator lights show the corresponding icon, completing the visual feedback.

[0034] For example, if the user selected "sensitive mode" and set the intensity level to "low" during the last brushing before this wake-up, the brushing mode identifier read this time will be the code of "sensitive mode", and the intensity setting in this mode will remain unchanged even if the mode is switched later.

[0035] Step S200: Obtain the trigger signal of the button on the electric toothbrush, and determine the corresponding button event based on the trigger signal.

[0036] Among them, the trigger signal refers to the electrical signal generated by the change in circuit on / off caused by the user's operation of the physical button, which is manifested as a level jump detected by the MCU; the "button event" is the operation type result parsed from the time characteristics of the trigger signal. Exemplarily, by converting the raw hardware input into semantic functional instructions, the user's operation intention is recognized, which is a prerequisite for completing functional responses such as mode switching and force adjustment.

[0037] In one alternative embodiment, such as Figure 2 As shown, step S200 includes the following sub-steps: S201 detects the changes in the power and mode levels of the electric toothbrush in real time, and generates a corresponding trigger signal when a level change is detected for either button.

[0038] The level change refers to the high-to-low transition of the voltage on the control pin connected to a button when it is pressed or released. For example, the two input ports connected to the power button and mode button are continuously monitored. When a button changes from high to low (indicating a button is pressed), the action is immediately recorded. Similarly, when a button returns from low to high (indicating a button is released), the rising edge signal is also captured simultaneously. Each valid level transition triggers the generation of a trigger signal.

[0039] S202, record the key press time and release time corresponding to each trigger signal, and calculate the duration of the trigger signal based on the press time and release time.

[0040] In this system, the press time is the moment when the button is detected as active, and the release time is the moment when the button is deactivated. The duration is the time difference between the two, measured in milliseconds. For example, timing begins when the falling edge of the button is detected, and the current system clock value is recorded as the press time. Timing stops when the corresponding rising edge is detected, and the clock value at that moment is recorded as the release time. The actual press duration is obtained by subtracting the two values. For instance, in a mode key operation, if the press time is 120ms and the release time is 380ms, the duration is 260ms. This value serves as the direct basis for determining the operation type, completing the transformation from raw signal to discriminable feature.

[0041] S203, compare the duration with a preset time determination threshold to obtain the key operation type.

[0042] The time threshold is a baseline value used to distinguish different operation categories. For example, it can be set to 300ms: if the duration does not exceed this value, it is judged as a "single" operation; if it exceeds this value, it is judged as a "long press". For example, the duration is compared with 300ms: if it is 260ms, it is classified as a "single" operation; if it is 650ms, it is classified as a "long press" operation. For instance, if a user quickly clicks the mode button once, and the measured duration is 280ms, the system identifies this as a single click; while holding down the mode button for a long time to increase the intensity, with a duration exceeding 500ms, the system identifies this as a long press.

[0043] S204, Generate the corresponding key event based on the key operation type.

[0044] Among them, button events refer to logical instructions that, after parsing, can be used to trigger specific functions. For example, by combining the button source (power button or mode button) and the operation type (single click or long press), events for different purposes are generated: a single click on the power button generates a start event to begin brushing; a single click on the mode button generates a mode switching event to switch brushing modes; and a long press on the mode button generates a vibration intensity adjustment event.

[0045] For example, during brushing, if a user briefly presses and releases the mode button (lasting 280ms), the system interprets this as a single click, generates a mode switching event, and triggers mode rotation in the next cycle. In the same state, if the user presses and holds the mode button for a long time (lasting 600ms), the system recognizes this as a long press, generates an intensity adjustment event, and enters the intensity adjustment process, during which the motor continues to run unaffected.

[0046] In other implementations, the specific value of the time determination threshold can be adjusted according to actual product needs, or a function to recognize multiple clicks or other complex operations can be added.

[0047] In one optional embodiment, when a user simultaneously operates the power button and the mode button, the system also has the ability to recognize multiple button inputs and execute the corresponding functions sequentially, ensuring the determinism and predictability of function responses in complex operation scenarios. Concurrent button presses refer to the situation where two physical buttons are pressed and released close to or overlapping in time. Exemplarily, the system determines the trigger sequence by detecting the order in which each button action occurs and executes the corresponding function according to the processing strategy of "the button pressed later responds first, and the button pressed earlier responds subsequently." For example, if the user presses the power button but has not yet released it, and then long-presses the mode button, the system first recognizes the single click of the power button (if the duration is ≤300ms) and starts the brushing process; then it responds to the long-press operation of the mode button, entering the intensity adjustment in the current mode, with the motor running continuously without interruption throughout the process. Conversely, if the user long-presses the mode button first and then presses the power button, the intensity adjustment function is executed first, and then the brushing process is initiated. This mechanism ensures a consistent user experience in multi-tasking scenarios.

[0048] In other implementations, the system can set a maximum waiting window (e.g., 5 seconds) for concurrent operations. If the interval between two key operations is too long, they will be treated as independent events and processed separately to avoid misjudging long-separated operations as concurrent operations.

[0049] Step S300: If the button event is a start-type click event, control the electric toothbrush to run according to the current brushing mode and enter the brushing state.

[0050] Among them, the start-up click event refers to the recognition result corresponding to a short press of the power button by the user, the duration of which does not exceed a preset time threshold (e.g., 300ms); the brushing state refers to the operating phase of the electric toothbrush when it begins normal vibration cleaning, in which interactive operations such as mode switching and intensity adjustment are allowed. Demonstratively, by recognizing specific types of button input, the device is triggered to switch from standby to operating state, ensuring that the system response matches the user's actual usage intent and improving the safety and controllability of operation.

[0051] In one alternative embodiment, such as Figure 3 As shown, step S300 includes the following sub-steps: S301, after determining that the button event is a start-type click event, obtains the parameter configuration information corresponding to the current brushing mode.

[0052] The parameter configuration information refers to a set of operating parameters associated with the current brushing mode, used to define the vibration characteristics of this mode, including the basic vibration intensity, operating rhythm, and recommended brushing time. For example, upon confirming that the current button event is a single click on the power button, the currently activated brushing mode (e.g., cleaning mode) is immediately read, and the complete set of operating parameters bound to it is retrieved from the storage unit based on the mode identifier. For instance, if the current mode is whitening mode, its corresponding standard operating parameters are called, including settings such as initial vibration frequency, default operating rhythm curve, and recommended total brushing time.

[0053] S302 generates a start command for the electric toothbrush control unit based on the parameter configuration information, drives the electric toothbrush to run, and marks the current running state as the brushing state.

[0054] The control unit refers to the internal functional module responsible for executing motor drive and operation control; the start command is a control command generated based on parameter configuration information, used to initialize the electric toothbrush's working process; marking it as brushing state is an internal system state change behavior, indicating that the device has entered the effective working range. For example, the acquired parameters are converted into executable control signals and sent to the motor drive section, causing the electric toothbrush to begin vibrating according to the standard characteristics of the current brushing mode; simultaneously, the system updates its own operating status flag, setting it to "brushing state," so that subsequent steps can determine whether to allow mode switching or intensity adjustment operations.

[0055] For example, before this wake-up, the user's last mode was the sensitive mode, in which a low vibration intensity was set; during the current startup process, the system will still prioritize the cleaning mode as the default display mode (because it is the last overall brushing mode), and start running it with its corresponding parameters. The intensity settings of each mode are saved independently and will not interfere with each other.

[0056] In other implementations, the electric toothbrush may be set to a short, gradual start-up process at the initial stage, that is, to gradually increase the vibration intensity to the target level in a short period of time, so as to reduce the discomfort caused by sudden start-up and improve the user experience.

[0057] In step S400, while brushing, if the button event is a mode switching click event, the electric toothbrush is controlled to perform brushing mode switching processing and update the current brushing mode. If the button event is a pressure adjustment long press event, the electric toothbrush is controlled to perform brushing pressure adjustment processing and generate target pressure data.

[0058] Among them, the mode switching click event refers to the functional instruction generated by a short press operation (duration ≤ 300ms) performed by the user on the mode key, used to trigger the switching of brushing modes; the intensity adjustment long press event refers to the adjustment instruction generated by a long press operation (duration > 300ms) performed by the user on the mode key, used to adjust the vibration intensity in the current mode. This demonstrates how differentiating different types of button behaviors under a unified state improves interaction efficiency.

[0059] In an optional embodiment, step S400 includes the following sub-steps: After determining that the button event is a mode switching click event, the index position corresponding to the current brushing mode is determined from the preset mode configuration sequence.

[0060] The mode configuration sequence is an ordered list that defines the order of all available brushing modes. For example, [Clean, White, Sensitive, Massage] corresponds to indices [0, 1, 2, 3], used to support the loop switching logic. The index position is the array subscript value of the current brushing mode in the sequence. For example, when a mode switching click event is detected, the identifier of the currently active brushing mode (e.g., "Whitening mode" corresponds to index 0x02) is queried, and then the mode configuration table is traversed to match its position in the sequence (assuming it is index 1). Subsequently, the next target index is calculated according to a preset loop rule (e.g., "incremental loop"): if the current index is 3 (Massage mode), then the next target is index 0 (Clean mode), thus achieving the switch.

[0061] The next target brushing mode is determined based on the index position and preset loop rules, and the parameter configuration information corresponding to the target brushing mode is obtained.

[0062] Among them, the loop rule refers to the direction of mode switching and the boundary handling strategy. For example, a forward loop is adopted, that is, after reaching the last mode, it automatically returns to the first one. The target brushing mode is the new working mode to be activated in this switching operation. For example, the current index is incremented by 1 and modulo the sequence length ((index+1)%4) to obtain the next target index (e.g., from 1 to 2). Then, the complete parameter package of the corresponding mode (sensitive mode) is obtained by looking up the table. Then, the parameter is loaded into the runtime cache to prepare to issue the update instruction.

[0063] Set the parameter configuration information corresponding to the target brushing mode to the current brushing mode, and update the operating parameter configuration of the electric toothbrush according to the parameter configuration information.

[0064] Setting the current brushing mode is accomplished through a state assignment operation that updates system-level variables; updating the operating parameter configuration means writing the new parameters into the motor control unit in real time, causing an immediate change in vibration output. Exemplarily, the MCU converts the parameters of the sensitive mode into new signal parameters (such as reducing the frequency to 150Hz and decreasing the amplitude duty cycle), sends them to the drive unit, and simultaneously refreshes the LED indicator to display a blue pulse light effect, indicating that the sensitive mode has been switched. The switching process is completed within milliseconds, and the motor does not stop running.

[0065] For example, after running the cleaning mode at medium intensity for 30 seconds, the user can click the mode button once, and the system will switch to whitening mode, using the last saved "high" intensity setting (which was previously manually increased) without needing to readjust.

[0066] In an optional embodiment, step S400 further includes the following sub-steps: After determining that the button event is a long press event of the intensity adjustment type, obtain the set of intensity adjustment options corresponding to the current brushing mode.

[0067] The intensity adjustment option set is a discrete list of intensity levels, usually expressed as a percentage or level (e.g., low -60%, medium -80%, high -100%). Each brushing mode can have an independently configurable set of options and its default initial value. For example, when the system recognizes a long press event related to intensity adjustment, it reads the current brushing mode identifier (e.g., "Cleaning Mode"), then reads the mode-specific intensity configuration entry from the NVS, extracting its corresponding adjustable range (e.g., three levels selectable: [60%, 80%, 100%]) and the currently set value (e.g., 80%).

[0068] Based on preset adjustment rules, the target intensity data is determined from the intensity adjustment option set. The target intensity data is then loaded into the electric toothbrush's control unit.

[0069] The target intensity data refers to the specific intensity value selected at the end of this adjustment. For example, if a user presses and holds the mode button while brushing their teeth and observes the vibration gradually increasing, releasing the button at the second level (highest setting), the system will lock that setting as the latest setting for the current cleaning mode and will automatically use it when the same mode is activated subsequently.

[0070] In other implementations, bidirectional adjustment recognition is supported: for example, pressing twice in quick succession to enter the "downshift" mode, providing a more flexible operation path; in addition, the current gear can be fed back through a buzzer or indicator light flashing during the adjustment process, enhancing the human-computer interaction perception capability.

[0071] In one optional embodiment, after the electric toothbrush enters brushing mode, the system continuously monitors the current runtime and user actions to determine whether to continue maintaining this state. Exemplarily, a timer function is activated simultaneously with motor startup to record the duration of brushing; when the cumulative total time reaches a preset duration (e.g., 120 seconds), a stop command is automatically sent to the control unit, the motor output is turned off, and the system status is updated to inactive. Furthermore, if the user temporarily stops using the toothbrush during brushing (e.g., removing the toothbrush from the mouth), the system remains in standby mode for a short period; if no button operation is detected for more than 10 seconds during this period, it is determined that use has ended, and the brushing state is exited. Before exiting, the currently active brushing mode is saved as the latest selection to a non-volatile storage area for recall upon the next wake-up.

[0072] For example, if a user pauses the operation after using the whitening mode for 80 seconds during a brushing session, the system will automatically shut down the motor and save the used mode as "whitening mode" after waiting for 10 seconds without response. The next time the device is turned on, even if it is displayed as cleaning mode by default, the user will still use the independently set intensity level when switching back to whitening mode.

[0073] In step S500, after performing the brushing intensity adjustment process, a correspondence is established between the current brushing mode and the target intensity data, and the data is stored in a preset database.

[0074] Among them, brushing intensity adjustment refers to the moment when the user completes the long press operation of the mode button, and the system has determined the final vibration intensity based on the adjustment process and applied it to the current running state; establishing a correspondence means logically binding the currently used brushing mode with its latest set vibration intensity so that the configuration can be automatically restored in subsequent use; as an example, by recording the matching state between mode and intensity after each adjustment, the function of each brushing mode independently memorizing its own vibration intensity is realized, avoiding repeated adjustments by the user and significantly improving the convenience of use.

[0075] In an optional embodiment, step S500 includes the following sub-steps: S501, obtain the mode identifier of the current brushing mode and the corresponding target force data.

[0076] The mode identifier is an information marker used to distinguish different brushing modes, such as cleaning, whitening, and sensitive modes, each with a unique identification basis. The target intensity data refers to the final vibration intensity level determined during this intensity adjustment, usually expressed in the form of gears (such as low, medium, and high). For example, after the user releases the mode button to end the long press operation, the system immediately reads two key pieces of information: first, the currently active brushing mode (e.g., whitening mode), and second, the final intensity level achieved in this adjustment (e.g., high).

[0077] S502, associate the pattern identifier with the target intensity data to form a data pair.

[0078] In this context, a data pair refers to a complete configuration unit that combines a brushing mode with its corresponding vibration intensity, expressing the binding relationship of "this mode should use this intensity." For example, the acquired current brushing mode (e.g., whitening mode) and target intensity data (e.g., high intensity) are merged into a single composite record, indicating that the high vibration intensity will be used by default when the whitening mode is activated in the future. For instance, if a user manually adjusted the vibration intensity of the whitening mode to high intensity during a brushing session, this operation would generate a data pair associated with "whitening mode—high intensity," providing a memory basis for future use.

[0079] S503, write the associated data pair to the preset storage area of ​​the preset database.

[0080] As an example, the associated data pairs are persistently stored in a non-volatile storage mechanism. Once saved, the configuration can still be accurately read even if the device is powered off or restarted. Subsequently, whenever the user re-enters the same brushing mode, the system will prioritize recalling this saved intensity setting, achieving a personalized memory function. For instance, if a user sets the intensity to high and ends brushing after the first use of whitening mode; upon waking the toothbrush and switching back to whitening mode the second time, the system will automatically load the previously saved high intensity, eliminating the need for readjustment.

[0081] Figure 4 A schematic diagram of a state-aware toothbrush control device according to an embodiment of this application is shown. Exemplarily, the device 100 includes: The pattern reading module 110 is used to respond to the wake-up event of the electric toothbrush and read the historical brushing patterns from the preset database as the current brushing pattern. The signal triggering module 120 is used to acquire the trigger signal of the electric toothbrush button and parse the trigger signal to generate a corresponding button event; Toothbrush operation module 130 is used to control the electric toothbrush to operate according to the current brushing mode and enter the brushing state if the button event is a start-type click event; The mode switching module 140 is used to control the electric toothbrush to perform brushing mode switching processing and update the current brushing mode when the button event is a mode switching click event during the brushing state; and to control the electric toothbrush to perform brushing intensity adjustment processing and generate target intensity data when the button event is an intensity adjustment long press event. The data storage module 150 is used to establish a correspondence between the current brushing mode and the target force data after performing the brushing force adjustment process, and store it in the preset database.

[0082] It is understood that the apparatus of this embodiment corresponds to the method of the above embodiments, and the options in the above embodiments are also applicable to this embodiment, so they will not be described again here.

[0083] This application also provides an electric toothbrush, exemplary of which includes a processor and a memory, wherein the memory stores a computer program, and the processor, by running the computer program, causes the electric toothbrush to perform the functions of the various modules in the above-described method or apparatus.

[0084] The processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including at least one of a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Network Processor (NP), Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0085] The memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory is used to store computer programs, and the processor can execute the computer programs accordingly after receiving execution instructions.

[0086] This application also provides a computer-readable storage medium for storing the computer program used in the electric toothbrush described above. For example, the computer-readable storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0087] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that, in alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0088] In addition, the functional modules or units in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0089] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a smartphone, personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0090] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A state-aware toothbrush control method, applied to an electric toothbrush, characterized in that, The method includes: In response to the wake-up event of the electric toothbrush, the historical brushing patterns are read from the preset database and used as the current brushing pattern; Acquire the trigger signal of the button on the electric toothbrush, and parse the trigger signal to generate the corresponding button event; If the button event is a start-type click event, the electric toothbrush is controlled to run according to the current brushing mode and enter the brushing state; In the brushing state, if the button event is a mode switching click event, the electric toothbrush is controlled to perform brushing mode switching processing and update the current brushing mode; if the button event is a force adjustment long press event, the electric toothbrush is controlled to perform brushing force adjustment processing and generate target force data. After performing the brushing intensity adjustment process, a correspondence is established between the current brushing mode and the target intensity data, and the data is stored in the preset database.

2. The toothbrush control method based on state awareness according to claim 1, characterized in that, The step of responding to the wake-up event of the electric toothbrush by reading historical brushing patterns from a preset database as the current brushing pattern includes: After the electric toothbrush enters the wake-up mode, it sends a brushing mode read request to the preset database; Receive the brushing mode identifier returned by the preset database; wherein the brushing mode identifier corresponds to the brushing mode set before the most recent brushing ended; Set the brushing mode identifier to the current brushing mode.

3. The toothbrush control method based on state awareness according to claim 1, characterized in that, The step of acquiring the trigger signal of the button on the electric toothbrush and parsing the trigger signal to generate the corresponding button event includes: The electric toothbrush can detect changes in the power and mode levels of the power button and mode button in real time, and generate a corresponding trigger signal when a level change of either button is detected. Record the key press time and release time corresponding to each trigger signal, and calculate the duration of the trigger signal based on the key press time and release time; The duration is compared with a preset time threshold to determine the key operation type. Generate a corresponding key event based on the key operation type.

4. The toothbrush control method based on state awareness according to claim 1, characterized in that, If the button event is a start-type click event, controlling the electric toothbrush to operate according to the current brushing mode and enter the brushing state includes: After determining that the button event is a start-type click event, obtain the parameter configuration information corresponding to the current brushing mode; Based on the parameter configuration information, a start command is generated and sent to the control unit of the electric toothbrush to drive the electric toothbrush to run, and the current running state is marked as brushing state.

5. The state-aware toothbrush control method according to claim 1, characterized in that, If the button event is a mode switching click event, the electric toothbrush is controlled to perform brushing mode switching processing to update the current brushing mode, including: After determining that the button event is a mode switching click event, the index position corresponding to the current brushing mode is determined from the preset mode configuration sequence; The next target brushing mode is determined based on the index position and the preset loop rule, and the parameter configuration information corresponding to the target brushing mode is obtained. Set the parameter configuration information corresponding to the target brushing mode to the current brushing mode, and update the operating parameter configuration of the electric toothbrush according to the parameter configuration information.

6. The state-aware toothbrush control method according to claim 1, characterized in that, If the button event is a long press event for force adjustment, the electric toothbrush is controlled to perform brushing force adjustment processing to generate target force data, including: After determining that the button event is a long press event of the force adjustment type, obtain the set of force adjustment options corresponding to the current brushing mode; According to the preset adjustment rules, the target force data is determined from the set of force adjustment options; The target force data is loaded into the control unit of the electric toothbrush.

7. The state-aware toothbrush control method according to claim 1, characterized in that, The step of establishing a correspondence between the current brushing mode and the target force data, and storing it in the preset database, includes: Obtain the mode identifier of the current brushing mode and the corresponding target force data; The pattern identifier and the target force data are used to form a data pair; The associated data pairs are written into the preset storage area of ​​the preset database.

8. A state-aware toothbrush control device, characterized in that, include: The pattern reading module is used to respond to the wake-up event of the electric toothbrush and read the historical brushing patterns from the preset database as the current brushing pattern; The signal triggering module is used to acquire the trigger signal of the electric toothbrush button and parse the trigger signal to generate the corresponding button event; The toothbrush operation module is used to control the electric toothbrush to operate according to the current brushing mode and enter the brushing state if the button event is a start-type click event; The mode switching module is used to control the electric toothbrush to perform brushing mode switching processing and update the current brushing mode when the button event is a mode switching click event during the brushing state; and to control the electric toothbrush to perform brushing intensity adjustment processing and generate target intensity data when the button event is an intensity adjustment long press event. The data storage module is used to establish a correspondence between the current brushing mode and the target intensity data after the brushing intensity adjustment process is executed, and to store it in the preset database.

9. An electric toothbrush, characterized in that, The electric toothbrush includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the state-aware toothbrush control method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed on a processor, implements the state-aware toothbrush control method according to any one of claims 1-7.