Power-on prompting method of atomization equipment, atomization equipment and readable storage medium

By acquiring reset source information and storage area identification data, the problem of misjudgment of short-circuit reset in atomizing devices is solved, thus ensuring correct power-on prompts and device stability.

CN121970934APending Publication Date: 2026-05-05ZHUHAI QISI INTELLIGENT MFG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHUHAI QISI INTELLIGENT MFG CO LTD
Filing Date
2025-12-16
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In existing atomization devices, the control module is prone to misinterpreting a short circuit reset as normal power-on, resulting in incorrect power-on prompts, which affects the consistency of production testing and user experience.

Method used

By acquiring reset source information and identifier data from a preset storage area, and combining this with the determination of the reset type, the system can distinguish between normal resets and abnormal power-off resets, ensuring the correct power-on prompt information is displayed.

Benefits of technology

This effectively avoids situations where short-circuit reset is mistakenly interpreted as normal power-on, improves the consistency of prompts and the reliability of detection during production testing and user use, and enhances the safety and operational stability of the atomizing equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121970934A_ABST
    Figure CN121970934A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of atomization equipment, and discloses a power-on prompting method of atomization equipment, the atomization equipment and a readable storage medium, and the power-on prompting method comprises the steps: obtaining reset source information and identification data of a preset storage area after power-on; determining a reset type according to the reset source information and the identification data; and displaying power-on prompt information according to the reset type. According to the technical scheme, the situation that short-circuit reset is misjudged to be normal power-on in the prior art is effectively avoided, so that it is ensured that the system can output a correct protection prompt under the abnormal condition, and misleading caused by mistakenly displaying starting-up information is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of atomization equipment technology, and in particular to a power-on prompt method for an atomization device, an atomization device, and a readable storage medium. Background Technology

[0002] Atomizing devices generally consist of a battery cell, a control module, an inhalation detection module, a power switch, and an atomizing assembly. When a user inhales, the control module drives the power switch to output current to the atomizer based on a trigger signal to complete atomization. In existing technologies, the control module often determines whether the device is powered on normally or has entered short-circuit protection based on the reset state. However, in some scenarios, the system may misinterpret a short-circuit-induced reset as normal power-on, causing the short-circuit protection warning that should be output to be incorrectly displayed as a power-on warning, leading to user misunderstanding and affecting the consistency of production testing. Summary of the Invention

[0003] This invention provides a power-on notification method for an atomizing device, an atomizing device, and a readable storage medium to solve the aforementioned technical problems.

[0004] A first aspect of this invention provides a power-on notification method for an atomizing device, the atomizing device including a control module, the power-on notification method being applied to the control module, the power-on notification method comprising: Upon power-up, the system acquires reset source information and identifier data from a preset storage area, wherein the identifier data is data written based on the detected inhalation state. The reset type is determined based on the reset source information and the identification data; The power-on prompt information is displayed according to the reset type, wherein the power-on prompt information is used to indicate whether the atomizing device has completed power-on normally or has been powered on after an abnormal reset.

[0005] Optionally, the reset type includes abnormal reset and normal reset; The step of obtaining the reset type based on the reset source information and the identification data includes: When the reset source information is an abnormal power failure reset flag and the identifier data is the first data, the reset type is determined to be an abnormal reset; When the reset source information is a normal power-off reset flag and the identifier data is the second data, the reset type is determined to be a normal reset; The first data is the data written to the preset storage area when an inhalation trigger signal is first detected, and the second data is the data written to the preset storage area when no inhalation trigger signal is detected within a preset time period.

[0006] Optionally, the atomizing device includes an inhalation detection module and a power switch device, the control module is connected to the inhalation detection module and the power switch device respectively, and the power switch device is also connected to a battery and a heating device respectively; The process of acquiring reset source information and identifier data of a preset storage area after power-on also includes, prior to: After the intake trigger signal is detected by the intake detection module, first data is written into the preset storage area, and the power switch device is controlled to turn on to heat the heating device.

[0007] Optionally, before acquiring the reset source information and the identifier data of the preset storage area after power-on, and after controlling the power switching device to conduct to heat the heating device, the method further includes: When the current flowing through the power switching device is detected to be greater than the preset current value, the power switching device is controlled to disconnect and an abnormal power failure reset flag is set.

[0008] Optionally, before acquiring the reset source information and the identifier data of the preset storage area after power-on, and after controlling the power switching device to conduct to heat the heating device, the method further includes: If no inhalation trigger signal is detected within a preset time period, second data is written into a preset storage area.

[0009] Optionally, writing the second data within the preset storage area includes: Determine if the number of times the current page of the sector has been written has reached the preset number; When the determination result is yes, switch to the next page storage address of the sector and write the second data and the number of times it is written; If the judgment result is negative, write the second data and the number of times it was written to the current page storage address.

[0010] Optionally, the step of writing second data and the number of writes at the current page storage address includes: The number of times the second data is written, which is based on the starting address of the current page, is written at a first position offset from the starting address by a preset position, and at a second position offset from the first position by a preset position.

[0011] Optionally, the step of acquiring reset source information and identifier data of a preset storage area after power-on further includes: Initialize the clock and peripherals, the peripherals including a timer, an analog-to-digital converter, and a pulse width modulation module; Read the third data at the starting address within the preset storage area, and determine whether the third data is equal to the preset initialization flag value; When the third data is not equal to the initialization flag value, it is determined that the atomizing device is powered on for the first time, and an erasure operation is performed on the sector to which the preset storage area belongs. Immediately after the erasure is completed, the preset initialization flag value is written to the starting address. When the third data is equal to the initialization flag value, skip the erasure operation and continue executing the subsequent program.

[0012] A second aspect of the present invention provides an atomizing device, comprising: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the method described in the first aspect.

[0013] A third aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect.

[0014] The technical advantages of this invention are as follows: By combining the reset source information with the identifier data in the preset storage area, the control module can accurately distinguish between normal reset and abnormal power-down reset caused by output short circuit upon power-up. With the help of the status identifier written before output, this technical solution effectively avoids the situation in the prior art where short-circuit reset is misjudged as normal power-up, thereby ensuring that the system can output correct protection prompts in abnormal situations and avoiding misleading information caused by incorrect power-on displays. Furthermore, this technical solution improves the consistency of prompts and the reliability of detection during production testing and user use, significantly enhancing the safety and operational stability of the atomizing equipment. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart of a power-on notification method for an atomizing device provided in Embodiment 1 of the present invention; Figure 2 This is a detailed flowchart of step S102 in a power-on reminder method for an atomizing device provided in Embodiment 1 of the present invention; Figure 3 This is a schematic diagram of the structure of an atomizing device provided in Embodiment 1 of the present invention; Figure 4 This is a flowchart of the data writing process in a power-on notification method for an atomizing device provided in Embodiment 1 of the present invention; Figure 5 This is a flowchart of the power-on detection process in a power-on prompting method for an atomizing device provided in Embodiment 1 of the present invention; Figure 6 This is a flowchart illustrating the power-on detection process in a power-on notification method for an atomizing device according to Embodiment 1 of the present invention. Figure 7 This is a flowchart of writing first data in a power-on prompt method for an atomizing device provided in Embodiment 1 of the present invention; Figure 8 This is a flowchart of writing second data in a power-on prompt method for an atomizing device provided in Embodiment 1 of the present invention; Figure 9 This is a schematic diagram of the structure of an atomizing device in one embodiment of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] It should be understood that the invention can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein. Rather, providing these embodiments will make the disclosure thorough and complete, and will fully convey the scope of the invention to those skilled in the art. In the drawings, for clarity, the dimensions and relative dimensions of layers and regions may be exaggerated. The same reference numerals denote the same elements throughout.

[0019] It should be understood that when an element or layer is referred to as "on," "adjacent to," "connected to," or "coupled to" other elements or layers, it may be directly on, adjacent to, connected to, or coupled to other elements or layers, or there may be intervening elements or layers. Conversely, when an element is referred to as "directly on," "directly adjacent to," "directly connected to," or "directly coupled to" other elements or layers, there are no intervening elements or layers. It should be understood that although the terms first, second, third, etc., may be used to describe various elements, components, areas, layers, and / or portions, these elements, components, areas, layers, and / or portions should not be limited by these terms. These terms are only used to distinguish one element, component, area, layer, or portion from another element, component, area, layer, or portion. Therefore, without departing from the teachings of this invention, the first element, component, area, layer, or portion discussed below may be referred to as the second element, component, area, layer, or portion.

[0020] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. When used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising” and / or “including,” when used in this specification, identify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups. When used herein, the term “and / or” includes any and all combinations of the associated listed items.

[0021] To fully understand this invention, detailed structures and steps will be presented in the following description to illustrate the technical solution proposed by this invention. Preferred embodiments of the invention are described in detail below; however, in addition to these detailed descriptions, the invention may have other embodiments.

[0022] Example 1 This embodiment provides a power-on notification method for an atomizing device, such as... Figure 1 As shown, the atomizing device includes a control module. A power-on notification method is applied to the control module, and the power-on notification method includes: Step S101. After power-on, acquire reset source information and identification data of preset storage area, wherein the identification data is data written based on the detected inhalation state; Step S102. Determine the reset type based on the reset source information and identification data; Step S103. Display power-on prompt information according to the reset type, wherein the power-on prompt information is used to indicate whether the atomizing device has completed power-on normally or after an abnormal reset.

[0023] In step S101, when the atomizing device is powered on and started, the control module first accesses its internal status register and non-volatile memory area. The control module reads the contents of the reset source register to determine what type of reset event triggered the current system startup, such as normal power-on reset, power-off reset, or external reset. Simultaneously, the control module also retrieves the identifier value written during the previous use from the preset memory area. This identifier reflects the end or output state of the device's previous operation for subsequent comprehensive judgment. The identifier data is written based on the detected inhalation state.

[0024] In step S102, after acquiring the two types of information, the control module compares and analyzes the reset source type with the stored identifier data. When the reset source indicates a power-down reset, and the identifier value stored in the storage area corresponds to the data written before output, the control module determines that the current startup source is an abnormal power-down reset, such as a voltage drop caused by a short circuit. Conversely, if the reset source indicates a normal power-on reset, a watchdog reset, or a normal end identifier is recorded in the storage area, the control module classifies the reset type as a normal power-on process.

[0025] In step S103, after determining the reset type, the control module generates corresponding prompts based on the judgment result. If it is a normal power-on, the device presents a standard power-on prompt or initialization interface to the user; if it is determined to be an abnormal power-off reset, the control module triggers the abnormal prompt logic, displaying prompt information related to short-circuit protection or abnormal power failure, so that the user can clearly identify that the device has experienced an abnormal state in the previous cycle.

[0026] The technical advantage of this embodiment is that by combining the reset source information with the identification data in the preset storage area, the control module can accurately distinguish between normal reset and abnormal power-off reset caused by output short circuit upon power-up. This effectively avoids the situation in the prior art where short-circuit reset is misjudged as normal power-up, thereby ensuring that the system can output the correct protection prompt in abnormal situations and avoiding the misleading effect of incorrect power-on information display. In addition, this technical solution improves the consistency of prompts and detection reliability during production testing and user use, significantly enhancing the safety and operational stability of the atomizing equipment.

[0027] As one implementation method, the reset type includes abnormal reset and normal reset; like Figure 2 As shown, the reset type is obtained based on the reset source information and identification data, including: Step S201. When the reset source information is an abnormal power failure reset flag and the identifier data is the first data, the reset type is determined to be an abnormal reset; Step S202. When the reset source information is a normal power-down reset flag and the identifier data is the second data, the reset type is determined to be a normal reset; The first data is the data written to the preset storage area when the inhalation trigger signal is first detected, and the second data is the data written to the preset storage area when no inhalation trigger signal is detected within the preset time period.

[0028] The control module pre-classifies reset types into two main categories: abnormal resets and normal resets. After completing power-on initialization, the control module uses the aforementioned reset source information and the identification data stored in the preset storage area to classify the reset type of this system startup, so as to select the corresponding prompting and protection strategies in the future.

[0029] In step S201, when the reset source information read by the control module indicates a reset caused by an abnormal power outage, such as a power-down reset triggered by the cell voltage being pulled down below the operating threshold for a short period of time, and the identifier data obtained from the preset storage area is equal to the predefined first data, the control module classifies the current system startup as an abnormal reset. In other words, the control module will only classify this reset as an abnormal reset if both the reset cause is an abnormal power outage and the stored identifier content represents the state before output is met, indicating that an abnormal power interruption or short circuit occurred during the operation of the previous cycle.

[0030] In step S202, in another scenario, when the reset source information detected by the control module corresponds to a normal power-off reset or a normal power-on after a power outage, and the flag value read from the preset storage area is equal to the second data, the control module will recognize this reset as a normal reset. In this scenario, it indicates that the device was normally powered off or normally stopped output after the last operation, and there is no trace of abnormal power-off after power-on. Therefore, the system can output a normal power-on prompt to the user according to the normal power-on procedure without triggering an abnormal alarm.

[0031] It should be noted that in the above embodiments, the first data is used to record the state of the atomizing device when it detects an inhalation event: when the inhalation detection module detects an inhalation trigger signal for the first time, the control module writes the first data into a preset storage area to mark the start state of the inhalation output process. The second data is used to describe the situation where no new inhalation trigger signal is detected within a predetermined time window: when no inhalation action is detected within this time period, or when the previous inhalation process has ended normally according to the established logic, the control module writes the second data into the same storage area to indicate that the previous operation process ended normally without any abnormal interruption.

[0032] The technical advantage of this embodiment lies in the following: By subdividing the reset types as described above and combining the reset source information with the joint judgment of different identification data, this embodiment can accurately distinguish between abnormal resets and normal resets when the device is powered on again. On the one hand, when a short circuit or abnormal power failure occurs, the system can quickly identify the abnormal working process based on the combination of the abnormal power failure reset flag and the first data, thereby triggering the corresponding protection prompt; on the other hand, in the case of normal shutdown and power-on, the matching of the normal power failure flag and the second data can avoid false alarms of abnormal states. Thus, this invention not only significantly improves the consistency between power-on prompt information and the actual operating status of the device, but also enhances the traceability and safety of the atomizing device under complex operating conditions.

[0033] As one implementation method, such as Figure 3 As shown, the atomizing device includes an inhalation detection module 102 and a power switch device 103. The control module 101 is connected to the inhalation detection module 102 and the power switch device 103 respectively. The power switch device 103 is also connected to the battery 104 and the heating device 105 respectively. After power-on, the system acquires reset source information and identifier data for the preset storage area. Prior to this, it also includes: After the intake trigger signal is detected by the intake detection module, the first data is written into the preset storage area, and the power switch device is turned on to heat the heating device.

[0034] The atomizing device includes an inhalation detection module, a power switch, a battery, and a heating element. The control module is electrically connected to both the inhalation detection module and the power switch, receiving the output signal from the inhalation detection module and controlling the power switch's operation based on this signal. The power switch is also connected to both the battery and the heating element, allowing it to directly supply drive current from the battery to the heating element when it is conducting, thus achieving the heating process required for atomization. After the device is powered on and enters standby mode, the inhalation detection module is in continuous monitoring mode, capturing the user's inhalation actions in real time. When the inhalation detection module detects an inhalation trigger signal, it immediately outputs corresponding trigger information to the control module. Upon receiving this signal, the control module recognizes that the device is about to enter the atomization output stage and then executes preset data writing logic to ensure accurate basis for subsequent reset judgments. After detecting the inhalation trigger signal, the control module first writes first data to a preset non-volatile storage area. This data is used to mark the system's current output-ready state and also to provide a basis for judgment in case of abnormal situations such as power failure or short circuit. This write operation takes precedence over power output control to ensure that critical operational information is retained even in the event of a momentary reset under abnormal conditions. After writing the first data, the control module then sends a turn-on command to the power switch, switching it from the off state to the on state. Once the power switch is on, the battery supplies current to the heating element, causing it to heat up and heat the atomizing medium, and the device enters the normal atomization phase. Through this process, the system can immediately initiate atomization output after the inhalation action is triggered.

[0035] The technical advantage of this implementation method is that by prioritizing the writing of first data after inhalation trigger detection and then controlling the power switch to turn on, this method effectively ensures that the atomizing device can accurately record its operating status even in the event of a sudden voltage drop, short circuit, or other unexpected power failure. This allows for differentiation between normal and abnormal resets upon subsequent power-on. Furthermore, this process ensures a clear sequence of data writing and output control, preventing the loss of status information due to abnormal conditions. This improves the device's safety, reliability, and consistency of prompts under various operating conditions, thereby significantly enhancing the overall stability of the atomizing device and the user experience.

[0036] As one implementation, before acquiring reset source information and identifier data of the preset storage area after power-on, and after controlling the power switching device to conduct to heat the heating device, the method further includes: When the current flowing through the power switching device is detected to be greater than the preset current value, the power switching device is controlled to disconnect and an abnormal power failure reset flag is set.

[0037] The control module not only initiates the heating process after air intake triggering but also dynamically monitors the actual current flowing through the power switching device. When the power switching device is in the on state, the control module periodically reads the measurement results from the current detection circuit or internal sampling unit to determine whether the output current is within a reasonable range. If the current through the power switching device exceeds a preset safety threshold, the control module immediately executes a protection action. Once the current value exceeds the threshold, the control module first sends a disconnect command to the power switching device, causing it to quickly switch to the off state to block the abnormal current from continuing to flow to the heating device, preventing overcurrent damage to the battery, switching device, or heating assembly. Following this, the control module writes an abnormal power-off reset flag into a preset storage area to record this abnormal current event and retains this state for judgment upon the next power-on of the device. By writing this flag, the system can identify upon restarting that the abnormal interruption was triggered by overcurrent rather than a normal stop, providing a reliable basis for subsequent processes.

[0038] The technical advantages of this implementation are as follows: By adding real-time monitoring of the current of the power switching devices and immediately disconnecting the switching devices and recording the abnormal reset flag when an overcurrent occurs, this implementation significantly improves the device's protection capability under abnormal conditions. On the one hand, it effectively avoids device damage caused by short circuits or overcurrents; on the other hand, by synchronously recording status information when an abnormality occurs, the system can accurately identify the source of the abnormality upon the next power-on, preventing misjudgment as normal startup. This not only improves the safety and stability of the atomizing device but also makes the power-on prompt logic more accurate and reliable, thereby improving the user experience and enhancing the overall reliability of the device.

[0039] As one implementation, before acquiring reset source information and identifier data of the preset storage area after power-on, and after controlling the power switching device to conduct to heat the heating device, the method further includes: If no inhalation trigger signal is detected within a preset time period, second data is written into a preset storage area.

[0040] After completing power-on initialization and reading necessary status information, the control module continues to monitor the output of the inhalation detection module. Once in standby mode, the system sets a time window to determine if the user has performed an inhalation operation. If the inhalation detection module does not output a new inhalation trigger signal within this time period, the control module considers the device to be in a non-use or normally terminated phase.

[0041] In this scenario, the control module writes second data to a preset non-volatile memory area. This second data indicates that the workflow of the previous cycle ended normally without any abnormalities. By recording this identifier, the system can distinguish between normal shutdown and abnormal power failure during subsequent restarts or power-ups, thus providing a reliable basis for determining the reset type during the next startup.

[0042] The technical advantage of this embodiment is that by writing second data after a preset time period following the absence of the inhalation trigger signal, this embodiment can effectively record the operating information of the device in a normal stopped or idle state, enabling the system to accurately distinguish between normal and abnormal resets upon power-up. This design not only improves the completeness of the detection process but also enhances the accuracy of reset judgment, avoiding false prompts caused by a lack of status records, thereby improving the reliability of the atomizing device and the user experience.

[0043] As one implementation method, such as Figure 4 As shown, writing second data within a preset storage area includes: Step S301. Determine whether the number of times the current page of the sector has been written has reached the preset number; Step S302. When the judgment result is yes, switch to the next page storage address of the sector and write the second data and the number of times it is written; Step S303. When the judgment result is negative, write the second data and the number of times it is written to the current page storage address.

[0044] In step S301, when the control module needs to write second data to the preset storage area, it first reads the write count information of the current page and compares this value with a preset write threshold. This threshold is used to limit the maximum number of writes per page to avoid premature failure of the storage unit due to continuous writing to the same page. Through this logical judgment, the system can decide whether the storage operation needs to switch to the next page for execution.

[0045] In step S302, when the judgment result shows that the write count of the current page has reached the acceptable maximum, the control module automatically locates the address of the next page in the current sector and writes the second data into the starting write area of ​​the new page. After the data is stored, the control module updates the write count corresponding to the page by incrementing the count value by one, so that it can continue to be used as a judgment benchmark in subsequent write operations. This operation ensures that the lifespan of each page is evenly distributed.

[0046] In step S303, if it is determined that the write count of the current page has not yet reached the limit threshold, the control module directly records the second data and its write count in the write area of ​​the page. After the write is completed, the counter for the page is incremented to indicate that a new write operation has been performed on the page. This ensures the continuity of the storage strategy while avoiding the additional overhead caused by unnecessary page switching.

[0047] The technical advantage of this implementation is that by adopting a page-level management mechanism based on write counts, this implementation can dynamically select the write location according to the usage of the storage unit, ensuring that each page in the preset storage area can be rationally utilized within its write lifespan. This method not only extends the overall usable lifespan of the memory but also reduces the risk of data corruption caused by excessive erasure of a single page, thereby improving the reliability of device operation status recording and providing a more stable foundation for reset judgment and prompt strategies.

[0048] As one implementation method, performing data writing of second data and the number of writes at the current page storage address includes: The number of times the second data is written is: based on the starting address of the current page, the second data is written at the first position offset from the starting address by a preset position, and the second data is written at the second position offset from the first position by a preset position.

[0049] When writing the second data to the current storage page, the control module determines the actual data write location based on the page's starting address. To avoid overwriting other storage content, the system first uses the page's starting address as a reference point and selects a first storage location according to a preset offset rule to record the second data. This first location is typically located at a fixed offset after the page's starting address, ensuring structural consistency in the data write area of ​​each page. After completing the second data write, the control module also needs to record the number of write operations to support subsequent page switching decisions. Therefore, the system determines a second storage location after the first location, based on another offset distance, to write the write count associated with that page. This second location maintains a fixed relative offset with the first location, ensuring a stable storage layout for the data and count within the page, facilitating rapid access by the control module in subsequent operations.

[0050] The technical advantages of this implementation are as follows: By adopting a write strategy based on the page start address and offset, this implementation can ensure that the storage structure of the second data and its write count is uniform and the location is fixed in each page, which is beneficial to improving the readability and management efficiency of the storage area. This scheme not only avoids the risk of out-of-order storage of data and count information within a page, but also enables rapid positioning when determining the write count or performing page switching, significantly improving the stability of data access and the maintainability of the storage system, and providing higher reliability for recording device operating status and identifying reset types.

[0051] As one implementation method, such as Figure 5 As shown, after power-on, the system acquires reset source information and identifier data of the preset storage area, and also includes: Step S401. Initialize the clock and peripherals, including timers, analog-to-digital converters, and pulse width modulation modules; Step S402. Read the third data at the starting address within the preset storage area and determine whether the third data is equal to the preset initialization flag value; Step S403. When the third data is not equal to the initialization flag value, determine that the atomizing device is powered on for the first time, perform an erasure operation on the sector to which the preset storage area belongs, and immediately write the preset initialization flag value to the starting address after erasure is completed; Step S404. When the third data is equal to the initialization flag value, skip the erase operation and continue to execute the subsequent program.

[0052] In step S401, after the atomizing device is powered on, the control module first performs system initialization. This initialization process includes not only configuring the master clock, but also preparing peripherals for startup, such as loading timers, analog-to-digital converters, and PWM / DMA function modules, so that the system has the basic operating conditions to perform subsequent logic judgments and signal acquisition.

[0053] In step S402, after completing the system configuration, the control module accesses the starting address of the preset storage area and reads the third data stored at that location. The read data is compared with a preset initialization flag value. This initialization flag value is used to indicate whether the storage area has been correctly configured, and to determine whether the device has undergone the previous power-on initialization process.

[0054] In step S403, if the third data is found to be inconsistent with the initialization flag value, the control module will identify this power-on as the device's first startup. In this scenario, the system needs to erase the entire sector containing the storage area to ensure that the storage space is in a known state. After erasure, the control module immediately writes the initialization flag value at the starting address to establish the initial structure of the storage area, laying the foundation for subsequent data writing logic.

[0055] In step S404, if the read third data is completely consistent with the initialization flag value, it indicates that the storage area has been initialized. This power-on is not the first startup, so there is no need to repeat the erase logic. After confirming this situation, the control module will directly enter the next stage of program processing to ensure the efficiency of the startup process.

[0056] The technical advantage of this implementation is that by automatically identifying whether the storage space has been initialized during the device startup phase, the system can perform necessary sector erasure upon first power-on and avoid repeated erasure and writing during subsequent startups, thereby effectively reducing the number of Flash usage cycles and extending the usable lifespan of the memory. Simultaneously, by determining the initialization flag value, it can ensure that the device can perform subsequent reset judgments and status recordings on a complete and reliable storage structure during any subsequent power-on, making the system initialization phase more robust and providing assurance for the accuracy and reliability of the entire reset identification process.

[0057] In this embodiment, in order to enable the atomizing device to correctly restore its operating state after a power failure and reset caused by an output short circuit, the control module adopts a specific data writing strategy at the software level to achieve persistent recording of the operating state and accurate differentiation of the reset source.

[0058] First, when the control module detects the intake trigger signal for the first time through the intake detection module and prepares to turn on the power switching device to provide output to the heating component, the control module will first write a marker data to a specific area of ​​the internal Flash memory before performing the conduction operation. This data is used to indicate that the device has entered the output preparation stage, so as to identify possible abnormalities in subsequent operation. Since the internal Flash contains the application code area, in order to avoid writing to corrupt the firmware content, the marker data is stored in the end address space of the memory area, so that the application area is not affected. If a short circuit occurs during the subsequent output process, causing the cell voltage to drop to a voltage threshold that the control module cannot support in a very short time, resulting in a power-off reset, the marker data will still be retained. After the device restarts, the control module can clearly determine whether the previous reset was caused by an output short circuit based on the combination of the reset source information and the marker data, thereby distinguishing between normal power-on and abnormal power-off.

[0059] Secondly, to address the limited write lifespan of Flash memory, this embodiment also optimizes the data writing strategy. Each page of the internal Flash memory has a fixed number of write cycles, typically around 100,000, while device users have a high usage frequency and relatively frequent write loads. To extend the overall usable lifespan of the Flash memory, this embodiment designates the last sector of the Flash memory (4 KB in capacity, containing 128 independent pages) as the running data storage area, where each page has a capacity of 128 bytes and can be independently erased and written. By counting the number of data writes per page and comparing it with a preset lifespan threshold, when the number of writes to a page approaches the reliable upper limit, the system automatically switches to the next page for subsequent data writing, thereby balancing the write distribution across the entire sector and reducing the risk of excessive wear on a single page.

[0060] Based on typical user habits, such as approximately 1000 inhalation events per day, the system may perform approximately 2000 data writes daily (both normal end markers and output pre-marks can trigger writes). Assuming a Flash page lifespan of 100,000 write cycles, each page can support approximately 50 days of data writing. Based on 128 pages, this sector theoretically can maintain a write cycle of over 6000 days, which translates to over 17 years, fully covering the expected lifespan of the atomizing device.

[0061] Through the above strategies, the control module can not only ensure the retention of critical operating status information in the event of an abnormal short circuit reset, but also make full use of Flash resources during long-term operation, thereby significantly improving system stability and product lifespan.

[0062] The following describes this embodiment through specific steps: like Figure 6 The following is a flowchart illustrating the power-on detection process in this embodiment: Step S1: Upon power-up, initialize the clock and peripherals (including timers, ADCs, and PWM / DMA). Step S2: Is the data read from the starting address 0x800F000 0x66? If yes, proceed to step S3; otherwise, proceed to step S4. Step S3: Determine the reset source and whether the flag data is 0x55. If yes, proceed to step S5; otherwise, proceed to step S6. Step S4: Erase the entire sector of the storage area once; Step S5: If there is data, it is determined that the reset was caused by an output short circuit; the output short circuit protection signal is displayed, and the corresponding continuous write data flag is reset. The refresh value of the write count and the variables A and B to be read are recorded.

[0063] Step S6: Perform normal power-on display.

[0064] In this embodiment, after the atomizing device is powered on, the control module first initializes the basic resources required for system operation, including the configuration of the clock source and the initialization of peripherals used for subsequent sampling and control, such as timers, analog-to-digital converters (ADCs), and the loading of PWM / DMA modules. After initialization is completed, the system enters a process of checking the identification information in the storage area to determine whether the device's power-on is for the first startup or a normal reset.

[0065] Specifically, the control module reads the data at the starting address 0x800F000 of the preset storage area and compares it with the initialization flag value 0x66. If the data stored at that address is not equal to 0x66, it indicates that the device has not yet completed initialization and is in a state of first power-on without undergoing a readout operation. In this case, the control module performs an erase on the entire sector used to store operating status data to ensure that the storage structure is in a consistent state. After the erase is completed, the system immediately writes the initialization flag 0x66 at the starting address 0x800F000, indicating that the storage area has been initialized as required; after this operation, it is not necessary to repeat the erase on subsequent power-ups.

[0066] When the storage area already contains data, the control module needs to further read and parse the write records to determine whether the device has experienced an abnormal power outage. Therefore, this implementation sets the sector range to be checked to 4 KB of space from the start address 0x800F000 to the end address 0x800FFF. Since the data written during operation is stored sequentially from low to high addresses, to avoid misjudgment, the read operation direction is set to scan in reverse order from high to low addresses. The system first reads the data at the highest address. When the read content is the unused default value 0xFFFF, it indicates that no valid information has been written to that storage location. The control module will offset the read address 8 bytes lower and continue reading to skip this unused storage unit.

[0067] The control module continuously traverses pages from lower addresses. When it reads data equal to 0x55 stored at a certain location during the scan, it indicates that this flag value was written before the device output, used to record the output preparation state caused by the intake trigger. This flag, used in conjunction with the reset source information, can further determine whether an abnormal short-circuit power-off event occurred in the previous operation. If the entire sector has been scanned and no flag data is found (i.e., no content with a value of 0x55 is detected), it indicates that the device has not entered the pre-output state or that no abnormal power-off event occurred, and the normal power-on prompt process can be directly executed.

[0068] Through the above judgment mechanism, the device can accurately identify the previous operating state when powered on and distinguish between normal reset and abnormal reset, providing a reliable data foundation for subsequent prompts and protection logic.

[0069] like Figure 7 The diagram shown is a flowchart illustrating the process of writing the first data in this embodiment. The details are as follows: Step S11: Has the 1ms timer reached? If yes, proceed to step S12; otherwise, return to the loop. Step S12: Microphone signal detected? If yes, proceed to step S13; otherwise, proceed to step S14. Step S13: Increment the microphone start counter by 1; Step S14: Clear the microphone start counter to 0; Step S15: Does the counter reach 5? If yes, proceed to step S16; otherwise, proceed to step S11. Step S16: The microphone is confirmed to start. At this point, write data 0x55 to the specified address in the corresponding MCU's FLASH (this value is only used to determine whether to turn on the MOSFET). Simultaneously, write the write count to a specific address. For example, if this is the 5th write count, write 5. After completing the write count, turn on the MOSFET.

[0070] In this embodiment, to facilitate page-based management of the second data and write count information within the preset storage area, the control module employs an address positioning method based on page offsets when performing data writing. Specifically, the system uses the starting address of the storage sector as the page reference address and writes the required data at a fixed offset position after that address.

[0071] For example, when the starting address of the preset storage area is 0x800F000, the control module will write the second data at the first position 4 bytes off from the starting address of the page. The corresponding write count information is recorded at the second position 4 bytes off from the first position, i.e., address 0x800F008.

[0072] To balance storage usage, the system sequentially switches page addresses according to the set page size. After a page switch, the control module determines the starting address of the next page as 0x800F084 and repeats the same write process at the corresponding offset position on that page: data is written at 0x800F084 + 4 bytes, and the write count is written at 0x800F084 + 8 bytes. Through this method, a regular and ordered storage structure can be formed across the entire sector, enabling continuous and efficient data management.

[0073] like Figure 8 The diagram shown is a flowchart illustrating the process of writing the second data in this embodiment. The details are as follows: Step S21: 1ms timer expires? If yes, proceed to step S22; otherwise, return to the loop. Step S22: Microphone continuously starts signal? If yes, proceed to step S23; otherwise, proceed to step S24. Step S23: Continuous output; Step S24: Microphone not started, timer incremented by 1; Step S25: Does the counter reach 5? If yes, proceed to step S26; otherwise, proceed to step S21. Step S26: Turn off the output; Step S27: Has the number of times data has been written to the current page reached 100,000? If yes, proceed to step S28; otherwise, proceed to step S29. Step S28: Switch to the next page of memory, write 0x33 to the address, increment the value by 1, and then write it to the next address; Step S29: Write 0x33 to the current page memory address, increment the value by 1, and then write it to the next address; Step S30: Perform other tasks.

[0074] In this embodiment, to ensure that the atomizing device can accurately determine the end status of the previous smoking cycle upon power-up, the control module updates the status data in the storage area promptly after the smoking output process ends. When the inhalation detection module confirms that the user's smoking action has ended naturally, and the power switching device subsequently shuts off the output according to preset logic, the control module writes the identifier value 0x33 to the preset storage unit to reflect that the smoking process has terminated normally.

[0075] In contrast, when an output short circuit occurs during the smoking process, causing the battery voltage to drop to a level sufficient to trigger a power-down reset of the MCU within a very short time, the system cannot complete the output shutdown and status update as normally would. In this scenario, because the reset occurs suddenly, the flag value 0x55 previously written in the storage area during the output preparation phase will be retained and will not be overwritten by the new normal termination flag. Therefore, this flag can effectively record the fact that the smoking process was interrupted under abnormal circumstances.

[0076] By distinguishing different values ​​of stored data, the system can identify the true reason for device startup upon power-up based on information differences: 0x33 indicates that the previous cycle ended normally; 0x55 indicates that the device encountered short-circuit protection during the smoking process, triggering an abnormal power-off reset. With this mechanism, the control module can select the correct prompting strategy and abnormal handling method during the power-up phase, thereby improving the reliability and safety of device operation.

[0077] Based on the above embodiments, the present invention also provides an extended implementation method, which is also used to solve the problem that the reset type of the atomizing device is easily misjudged as normal power-on in the case of abnormal power failure or short circuit reset. The only difference is that the generation and judgment logic of the identification data are different, but the technical effect achieved is the same.

[0078] In this extended implementation, during the operation of the atomizing device, the control module no longer writes a single status identifier based solely on the inhalation trigger event, but instead updates the identifier data in the preset storage area based on the stage status of the atomization output process. Specifically, the control module distinguishes at least the "output preparation stage" and the "output end stage" in the atomization output process, and assigns different identifier data to each stage.

[0079] Before the control module detects the inhalation trigger signal and prepares to drive the power switch device to turn on, it writes the first stage identification data to characterize the "output preparation stage" in the preset storage area; after the atomization output process ends normally according to the preset logic and the power switch device completes the turn-off operation, it writes the second stage identification data to characterize the "output end stage" in the preset storage area.

[0080] When the atomizing device is powered on again, the control module reads the reset source information and the most recently written stage identifier data in the preset storage area, and determines the reset type based on the combination of the two: When the reset source information indicates an abnormal power-off reset, and the read stage identifier data corresponds to the "output preparation stage", the current power-on is determined to be an abnormal reset. When the reset source information indicates a normal power-down reset, and the read stage identifier data corresponds to the "output end stage", the current power-on is determined to be a normal reset.

[0081] Therefore, if an abnormal power failure occurs during the atomization output process due to a short circuit or overcurrent, the control module has not yet had time to write the "output end stage" identification data. After power-on, the abnormal reset situation can be accurately identified by the combination of "abnormal power failure reset + output preparation stage identifier". In the case of normal output end and power failure, after power-on, it is identified as a normal reset by the combination of "normal power failure reset + output end stage identifier".

[0082] The technical advantage of this extended implementation is that by expanding the operating status indicator from "whether inhalation is present" to "output process stage," the same reset identification purpose as in Embodiment 1 is achieved without adding additional hardware. This solution also effectively avoids resets caused by short circuits or abnormal power outages being misinterpreted as normal power-on, thereby ensuring that the power-on prompt information is consistent with the actual operating status of the device, and improving the reliability of the atomizing device's prompts and the system's safety under abnormal operating conditions.

[0083] Example 2 This application also provides an atomizing device, such as... Figure 9 As shown, the atomizing device 2 includes: at least one processor 23, a memory 21, and a computer program 22 stored in the memory 21 and capable of running on at least one processor 23. When the processor 23 executes the computer program, it implements the steps in any of the above method embodiments, or when the processor 23 executes the computer program, it implements the functions of each module / unit in the above device embodiments.

[0084] For example, a computer program can be divided into one or more modules / units, one or more of which are stored in memory and executed by a processor to complete this application. One or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the atomizing device.

[0085] Those skilled in the art will understand that Figure 9 This is merely an example of an atomizing device and does not constitute a limitation on the atomizing device. It may include more or fewer components than shown, or combine certain components, or different components. For example, an atomizing device may also include input / output devices, network access devices, buses, etc.

[0086] The aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), or field-programmable gate arrays (FPGAs). Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0087] The memory can be an internal storage unit of the atomizing device, such as the hard drive or RAM of the atomizing device. The memory can also be an external storage device of the atomizing device, such as a plug-in hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory can include both internal storage units and external storage devices of the atomizing device.

[0088] This application also provides a readable storage medium storing a computer program, which, when executed by a processor, implements the steps described in the above-described method embodiments.

[0089] This application provides a computer program product that, when run on an atomizing device, enables a mobile terminal to execute the steps described in the above-described method embodiments.

[0090] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0091] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0092] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0093] In the embodiments provided in this application, it should be understood that the disclosed apparatus / device and method can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0094] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0095] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A power-on notification method for an atomizing device, characterized in that, The atomizing device includes a control module, and the power-on prompt method is applied to the control module. The power-on prompt method includes: Upon power-up, the system acquires reset source information and identifier data from a preset storage area, wherein the identifier data is data written based on the detected inhalation state. The reset type is determined based on the reset source information and the identification data; The power-on prompt information is displayed according to the reset type, wherein the power-on prompt information is used to indicate whether the atomizing device has completed a normal power-on or has been powered on after an abnormal reset.

2. The power-on notification method as described in claim 1, characterized in that, The reset types include abnormal reset and normal reset; The step of obtaining the reset type based on the reset source information and the identification data includes: When the reset source information is an abnormal power failure reset flag and the identifier data is the first data, the reset type is determined to be an abnormal reset; When the reset source information is a normal power-off reset flag and the identifier data is the second data, the reset type is determined to be a normal reset; The first data is the data written to the preset storage area when an inhalation trigger signal is first detected, and the second data is the data written to the preset storage area when no inhalation trigger signal is detected within a preset time period.

3. The power-on notification method as described in claim 2, characterized in that, The atomizing device includes an inhalation detection module and a power switch device. The control module is connected to the inhalation detection module and the power switch device respectively. The power switch device is also connected to a battery and a heating device respectively. The process of acquiring reset source information and identifier data of a preset storage area after power-on also includes, prior to: After the intake trigger signal is detected by the intake detection module, first data is written into the preset storage area, and the power switch device is controlled to turn on to heat the heating device.

4. The power-on notification method as described in claim 3, characterized in that, Before acquiring reset source information and identifier data of the preset storage area after power-on, and after controlling the power switching device to conduct to heat the heating device, the method further includes: When the current flowing through the power switching device is detected to be greater than the preset current value, the power switching device is controlled to disconnect and an abnormal power failure reset flag is set.

5. The power-on notification method as described in claim 3, characterized in that, Before acquiring reset source information and identifier data of the preset storage area after power-on, and after controlling the power switching device to conduct to heat the heating device, the method further includes: If no inhalation trigger signal is detected within a preset time period, second data is written into a preset storage area.

6. The power-on notification method as described in claim 5, characterized in that, The step of writing the second data within the preset storage area includes: Determine if the number of times the current page of the sector has been written has reached the preset number; When the determination result is yes, switch to the next page storage address of the sector and write the second data and the number of times it is written; If the judgment result is negative, write the second data and the number of times it was written to the current page storage address.

7. The power-on notification method as described in claim 6, characterized in that, The step of writing second data and the number of writes at the current page storage address includes: The number of times the second data is written, which is based on the starting address of the current page, is written at a first position offset from the starting address by a preset position, and at a second position offset from the first position by a preset position.

8. The power-on notification method as described in claim 3, characterized in that, The process of acquiring reset source information and identifier data of a preset storage area after power-on also includes: Initialize the clock and peripherals, the peripherals including a timer, an analog-to-digital converter, and a pulse width modulation module; Read the third data at the starting address within the preset storage area, and determine whether the third data is equal to the preset initialization flag value; When the third data is not equal to the initialization flag value, it is determined that the atomizing device is powered on for the first time, and an erasure operation is performed on the sector to which the preset storage area belongs. Immediately after the erasure is completed, the preset initialization flag value is written to the starting address. When the third data is equal to the initialization flag value, skip the erasure operation and continue executing the subsequent program.

9. An atomizing device, characterized in that, include: At least one processor, a memory, and a computer program stored in the memory and executable on at least one processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 8.