Disclosure of Invention
The technical problem to be solved by the embodiment of the application is to provide a child lock control circuit and method of an electronic cigarette and the electronic cigarette aiming at the defects existing in the prior art. The trouble of the user can be reduced.
In order to solve the above technical problem, a first aspect of an embodiment of the present application provides a child lock control circuit of an electronic cigarette, including:
The first state detection module and the second state detection module;
The first child lock module comprises a first timing unit, a first counting unit and a first timing and counting judging unit, wherein the first timing unit and the first counting unit are electrically connected with the first state detection module, and the first timing and counting judging unit is electrically connected with the first timing unit and the first counting unit respectively;
The second child lock module is electrically connected with the second state detection module;
The switch control module is electrically connected with the first child lock module and the second child lock module respectively;
The power MOS tube is used for being connected with the heating element in series to form a heating branch, and two ends of the heating branch are correspondingly and electrically connected with the anode and the cathode of the battery;
The first child lock module is used for generating a first child lock signal to enable the electronic cigarette to enter a first child lock state, the second child lock module is used for generating a second child lock signal to enable the electronic cigarette to enter a second child lock state, and the first timing unit and the first counting unit receive a first reset signal when the electronic cigarette enters the second child lock state so that the first timing unit stops timing and is set to zero, and the first counting unit stops counting and is set to zero.
Optionally, the child lock control circuit further includes a trigger, one input end of the trigger is electrically connected with the first timing and counting judging unit, the other input end of the trigger is electrically connected with the second child lock module, the output end of the trigger is electrically connected with the switch control module, and the first timing unit and the first counting unit are both electrically connected with the output end of the trigger;
The second child lock module is used for generating a second child lock signal which enables the electronic cigarette to enter a second child lock state, the trigger receives the second child lock signal and outputs a first reset signal, the first timing unit receives the first reset signal to enable the first timing unit to stop timing and zero, and the first counting unit receives the first reset signal to enable the first counting unit to stop counting and zero.
Optionally, the first timing unit and the first counting unit are electrically connected with the switch control module;
The second child lock module is used for generating a second child lock signal which enables the electronic cigarette to enter a second child lock state, the switch control module generates a first reset signal corresponding to the second child lock signal, the first timing unit receives the first reset signal to enable the first timing unit to stop timing and zero, and the first counting unit receives the first reset signal to enable the first counting unit to stop counting and zero.
Optionally, the first timing unit and the first counting unit are electrically connected with the output end of the second child lock module;
The second child lock module generates a first reset signal, the first timing unit receives the first reset signal to enable the first timing unit to stop timing and set zero, and the first counting unit receives the first reset signal to enable the first counting unit to stop counting and set zero.
Optionally, the first timing unit and the first counting unit work in both the first child lock state and the second child lock state.
Optionally, the first child lock state is a child lock locking state, the second child lock state is a child lock unlocking state, or the first child lock state is a child lock unlocking state, and the second child lock state is a child lock locking state;
The power MOS tube is kept to be disconnected and cut off in the child lock locking state, and is continuously or intermittently conducted when the electronic cigarette is in the suction state in the child lock unlocking state.
Optionally, the second child lock module includes a second timing unit, a second counting unit and a second timing count judging unit, where the second timing unit and the second counting unit are electrically connected with the second state detecting module, the second timing count judging unit is electrically connected with the second timing unit and the second counting unit respectively, and when the electronic cigarette enters the first child lock state, the second timing unit and the second counting unit receive a second reset signal, so that the second timing unit stops timing and is set to zero, and the second counting unit stops counting and is set to zero.
Optionally, the first state detection module includes a charging management module, a suction and blowing detection module or a cartridge detection module, and the second state detection module includes a suction and blowing detection module, a cartridge detection module or a charging management module.
Optionally, the child lock control circuit further comprises a third timing unit and a third time length judging unit, wherein the third timing unit is electrically connected with the first state detection module, the third time length judging unit is electrically connected with the third timing unit, the output end of the third time length judging unit is respectively electrically connected with the first timing unit and the first counting unit, the third time length judging unit is used for generating a trigger effective signal according to the time length of the third timing unit, the first timing unit receives the trigger effective signal to start timing, and the first counting unit receives the trigger effective signal to start counting, or
The child lock control circuit further comprises a third timing unit and a third time length judging unit, wherein the third timing unit and the first timing unit are respectively and electrically connected with the first state detection module, the third time length judging unit is electrically connected with the third timing unit, the output end of the third time length judging unit is electrically connected with the first counting unit, the third time length judging unit is used for generating a triggering effective signal according to the time length of the third timing unit, and the first counting unit receives the triggering effective signal to start counting.
Optionally, the child lock control circuit comprises a fourth timing unit and a fourth time length judging unit, wherein the fourth timing unit is respectively and electrically connected with the first state detecting module and the third time length judging unit, the fourth time length judging unit is respectively and electrically connected with the fourth timing unit and the third time length judging unit, the third time length judging unit is also electrically connected with the first state detecting module and the third time length judging unit, the fourth timing unit starts timing and the third time length judging unit enters a locking state according to a signal of the first state detecting module and a trigger effective signal of the third time length judging unit, the fourth time length judging unit generates an unlocking signal for enabling the third time length judging unit to enter an unlocking state according to a timing time length of the fourth timing unit, or
The child lock control circuit comprises a fourth timing unit and a fourth time length judging unit, wherein the fourth timing unit is respectively and electrically connected with the first state detecting module and the third time length judging unit, the fourth time length judging unit is respectively and electrically connected with the fourth timing unit, the third timing unit and the first counting unit, the first counting unit is also electrically connected with the first state detecting module and the third time length judging unit, the fourth timing unit starts timing according to a signal of the first state detecting module and a trigger effective signal of the third time length judging unit, the first counting unit enters a locking state, and the fourth time length judging unit generates an unlocking signal for enabling the first counting unit to enter an unlocking state and a reset signal for resetting the first timing unit according to the time length of the fourth timing unit.
Optionally, the first state detection module and the second state detection module are the same state detection module, or
The child lock control circuit is positioned on the same chip, or
The child lock control circuit is located on the same chip except for the first state detection module or the second state detection module.
A second aspect of an embodiment of the present application provides an electronic cigarette, including:
The child lock control circuit of the electronic cigarette;
the heating element is connected with the power MOS tube of the child lock control circuit in series to form a heating branch;
and the positive electrode and the negative electrode of the battery are correspondingly and electrically connected with the two ends of the heating branch.
A third aspect of the embodiment of the present application provides a child lock control method for an electronic cigarette, including:
the second child lock module generates a second child lock signal for enabling the electronic cigarette to enter a second child lock state;
triggering and outputting a first reset signal;
the first timing unit and the first counting unit both receive the first reset signal, the first timing unit stops timing and sets zero, and the first counting unit stops counting and sets zero;
Acquiring information of the electronic cigarette entering a first state;
triggering the first counting unit to count and triggering the first timing unit to count;
Judging whether the number counted in the first preset time period is larger than or equal to a first preset number, wherein the first preset number is larger than or equal to 2;
if the judgment result is yes, the electronic cigarette is controlled to enter a first child lock state.
The embodiment of the application has the advantages that even though the first timing unit in the first child lock state counts time, the first counting unit keeps the count value, when the electronic cigarette enters the second child lock state, the first timing unit and the first counting unit both receive the first reset signal, the first timing unit stops timing and zeroing, the first counting unit stops counting and zeroing, the previous timing and counting can be cleared when entering the second child lock state, the electronic cigarette is not triggered to enter the first child lock state, the electronic cigarette is not affected, the electronic cigarette can be returned to the first child lock state after the user does not trigger less than the expected times, so that the trouble is not caused when the user operates, the operation expectation of the user is met, the user can not misthink the electronic cigarette is damaged, and the brand of the electronic cigarette enterprise is not damaged.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "comprising" and "having" and any variations thereof, as used in the description, claims and drawings, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or units listed but may alternatively include other steps or units not listed or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used for distinguishing between different objects and not for describing a particular sequential order. The electrical connection of the application comprises direct electrical connection and indirect electrical connection, wherein the indirect electrical connection means that other electronic components, unit modules, pins and the like can exist between two components of the electrical connection. The XX end referred to in the present application may or may not be an actual terminal, for example, only one end of a component or one end of a wire. The application refers to and/or includes three cases, e.g., a and/or B, including three cases A, B, A and B.
Referring to fig. 1, an electronic cigarette according to an embodiment of the present application includes a battery 110, a heating element 120, and a child lock control circuit 200. The child lock control circuit 200 includes a power MOS tube M, which is connected in series with the heating element 120 to form a heating branch, and two ends of the heating branch are electrically connected with the positive and negative electrodes of the battery 110 correspondingly. In this embodiment, a first end of the power MOS tube M is electrically connected to the positive electrode of the battery 110, a second end of the power MOS tube M is electrically connected to a first end of the heating element 120, and a second end of the heating element 120 is electrically connected to the negative electrode of the battery 110. In other embodiments of the present application, the second end of the power MOS transistor M is electrically connected to the negative electrode of the battery 110, the first end of the power MOS transistor M is electrically connected to the second end of the heating element 120, and the first end of the heating element 120 is electrically connected to the positive electrode of the battery 110. In this embodiment, the power MOS transistor M is a PMOS transistor. However, the present application is not limited thereto, and in other embodiments of the present application, the power MOS transistor M may be an NMOS transistor. In the present embodiment, the battery 110 is a rechargeable battery 110 such as a lithium battery 110, a nickel cadmium battery 110, a nickel hydrogen battery 110, etc., and the heating element 120 is a heating wire, a ceramic base containing the heating wire or the heating wire, or other conventional heating elements 120.
In this embodiment, the child lock control circuit 200 further includes a first state detection module, a second state detection module, a first child lock module 210, a second child lock module 220, and a switch control module 250.
In this embodiment, the first state detection module detects whether the electronic cigarette is in a first state, for example, a charging state, a sucking state, a blowing state, an un-sucking state, a cartridge inserting state, and the like, and this embodiment describes that the first state detection module detects whether the electronic cigarette is in the charging state. In this embodiment, the first state detection module is a charging management module 260, the charging management module 260 is electrically connected to the charging interface 140, and the charging interface 140 is a conventional interface such as a Type-C interface, a lighting interface, a Micro USB interface, etc. When the electronic cigarette is connected to the external power supply through the charging interface 140 and the charger, the charging management module 260 recognizes that the electronic cigarette is in a charging state, the charging management module 260 outputs a charging signal, for example, a high-level signal, and when the electronic cigarette is not connected to the external power supply, the charging management module 260 outputs an uncharged signal, for example, a low-level signal. According to the embodiment of the application, the original charge state detection, suction state detection, blowing state detection, non-blowing state detection and cartridge insertion state detection of the electronic cigarette are utilized, and the effective triggering of entering the first child lock state can be realized while the design such as Bluetooth/NFC and the mechanical structure are not added, so that the hardware cost of the electronic cigarette entering the first child lock state is reduced, and the technical problem of higher cost of the electronic cigarette entering the first child lock state in the prior art is solved. Additionally, in other embodiments of the present application, the first state detection module may also be a puff detection module 270 or a cartridge detection module, where the cartridge detection module is configured to detect whether a detachable cartridge is loaded onto the tobacco rod. In addition, in other embodiments of the present application, if cost is not considered, the first state detection module may also be a touch detection module, a key detection module, a fingerprint detection module, and so on.
In this embodiment, the second state detection module detects whether the electronic cigarette is in the second state, and in general, the action of triggering the second state is different from the action of triggering the first state, and the second state is, for example, a pumping state, a blowing state, a cartridge inserting state, a charging state, etc., and this embodiment describes that the second state detection module detects whether the electronic cigarette is pumped or not. In this embodiment, the second state detection module is a suction detection module 270, and one specific implementation of the suction detection module 270 may be referred to in the applicant's prior application CN202210500141.4, which is also incorporated in the present application, or the suction detection module 270 is another suction detection module 270 that is conventional in the art. In this embodiment, the suction detection module 270 is electrically connected to the airflow sensor 130, and the airflow sensor 130 is, for example, a MEMS sensor or a microphone. In this embodiment, when the user sucks or blows air, an air flow is generated inside the electronic cigarette, the capacitance value, the frequency value and the like of the air flow sensor 130 are changed due to the air flow, the suction and blowing detection module 270 can detect the change of the air flow sensor 130, so as to correspondingly output a suction signal or a blowing signal, when the electronic cigarette is not sucked or blown, an air flow is not generated inside the electronic cigarette, the air flow sensor 130 is not changed, and the suction and blowing detection module 270 detects that the air flow sensor 130 is not changed, so as to output a non-suction and blowing signal. In this embodiment, when the user sucks the electronic cigarette, the suction detection module 270 recognizes that the electronic cigarette is in a suction state, the suction detection module 270 outputs a suction signal, when the user blows, the suction detection module 270 recognizes that the electronic cigarette is in a blowing state, the suction detection module 270 outputs a blowing signal, and when the user neither blows nor sucks, the suction detection module 270 recognizes that the electronic cigarette is in a non-suction state, and the suction detection module 270 outputs a non-suction signal. In this embodiment, the air blowing signal and the air sucking signal may be single signals or combined signals. In addition, in other embodiments of the present application, the first state detection module may be the suction and blowing detection module 270, where the first state detection module and the second state detection module are the same state detection module, and the first state detection module may be used to detect that the blowing action triggers into the first child lock state. According to the embodiment of the application, the original suction state detection, blowing state detection, cartridge insertion state detection and charging state detection of the electronic cigarette are utilized, and the effective triggering of entering the second child lock state can be realized while the design such as Bluetooth/NFC and the mechanical structure are not added, so that the hardware cost of the electronic cigarette entering the second child lock state is reduced, and the technical problem of higher cost of the electronic cigarette entering the second child lock state in the prior art is solved. In addition, in other embodiments of the present application, the second state detection module may also be a cartridge detection module or a charge management module 260. In addition, in other embodiments of the present application, if the cost is not considered, the second state detection module may also be a touch detection module, a key detection module, a fingerprint detection module, and so on.
In the present embodiment, the first child lock module 210 is electrically connected to the first status detection module. Specifically, the first child lock module 210 includes a first timing unit 211, a first counting unit 212, and a first timing count determining unit 213, where the first timing unit 211 and the first counting unit 212 are electrically connected to the first state detecting module, and the first timing count determining unit 213 is electrically connected to the first timing unit 211 and the first counting unit 212, respectively. In this embodiment, the first timing unit 211 and the first counting unit 212 trigger to start timing and counting according to the output signal of the first state detection module, for example, the charging signal triggers to start timing and counting, when the first timing and counting judging unit 213 judges that the number of counts in the first preset time period is greater than or equal to the first preset number, the first timing and counting judging unit 213 generates a first child lock signal, and then the electronic cigarette enters the first child lock state, and when the first timing and counting judging unit 213 judges that the number of counts in the first preset time period is less than the first preset number, the electronic cigarette maintains the original child lock state unchanged. In this embodiment, when the first timer unit 211 counts up to the first preset time period, the first timer unit 211 stops counting and sets zero, and when the number of counts in the first preset time period is greater than or equal to the first preset number, the first timer unit 211 stops counting and sets zero, and the first counter unit 212 stops counting and sets zero.
In this embodiment, the second child lock module 220 is electrically connected to the second state detection module, and the second child lock module 220 is configured to generate a second child lock signal according to an output signal of the second state detection module, where the second child lock signal is configured to enable the electronic cigarette to enter a second child lock state.
In this embodiment, the switch control module 250 is electrically connected to the first child lock module 210 and the second child lock module 220, the output end of the switch control module 250 is also electrically connected to the control end of the power MOS tube M, and a conventional driving module may also exist between the switch control module 250 and the control end of the power MOS tube. In this embodiment, the switch control module 250 controls the power MOS transistor M to be turned off or on by outputting a high level signal or a low level signal, and the power MOS transistor M is turned off when the switch control module 250 outputs the high level signal and turned on when the switch control module 250 outputs the low level signal. In this embodiment, the switch control module 250 is also electrically connected to the suction detection module 270.
In this embodiment, the switch control module 250 is, for example, a logic gate circuit such as an and gate, a nand gate, an or gate, a nor gate, or a combination circuit thereof, for example, the switch control module 250 includes a nand gate, when the switch control module 250 receives a low-level signal from the first child lock module 210, the output end of the switch control module 250 directly outputs a high-level signal, the power MOS tube M is turned off, when the switch control module 250 receives a high-level signal from the second child lock module 220, the output of the nand gate is controlled by the suction-blowing detection module 270, and when the suction-blowing detection module 270 determines that the user sucks the electronic cigarette, the switch control module 250 controls the power MOS tube M to be continuously turned on or intermittently turned on.
In this embodiment, the first child lock state is a child lock locking state, and the child lock locking state corresponds to a child lock protection function, when the electronic cigarette is in the child lock locking state, no matter whether the user sucks the electronic cigarette, the switch control module 250 controls the power MOS tube M to keep off, for example, the first child lock module 210 continuously outputs a low-level signal, the switch control module 250 continuously outputs a high-level signal, and the power MOS tube M keeps off, so that the heating element 120 cannot heat, and further, the tobacco tar cannot be atomized for the user to suck, that is, even if the user sucks the electronic cigarette, no smoke appears. The second child lock state is a child lock unlock state, and the child lock unlock state corresponds to release of the child lock protection function, at this time, when a user draws the electronic cigarette, the switch control module 250 controls the power MOS tube M to be continuously turned on or intermittently turned on, the intermittent conduction means that the switch control module 250 outputs a square wave signal in a PWM manner and a PFM manner, and the switch control module 250 is controlled by the suction and blowing detection module 270 by adjusting a duty ratio of the square wave signal to be used for controlling output power, for example, the second child lock module 220 continuously outputs a high level signal. The present application is not limited thereto, and in other embodiments of the present application, the first child lock state may also be a child lock unlock state, and the second child lock state may be a child lock state.
In this embodiment, when the electronic cigarette enters the second child-lock state, the first timer unit 211 and the first counter unit 212 receive the first reset signal, that is, when the electronic cigarette is in the first child-lock state, whether the first timer unit 211 starts counting or not, the first counter unit 212 is already counting, when the electronic cigarette enters the second child-lock state from the first child-lock state, the first timer unit 211 and the first counter unit 212 both receive the first reset signal, the first timer unit 211 will reset, that is, the first timer unit 211 stops counting and is set to zero, the first counter unit 212 will reset, that is, the first counter unit 212 will stop counting and is set to zero, after that, the user charges, the electronic cigarette enters the charging state, since the first timer unit 211 has not previously started counting, the first counter unit 212 has not started counting previously, so that the first timer unit 211 is triggered to start counting from 0, and when the number of charging plugs in the first preset period is greater than or equal to the first preset number, the first output switch unit 213 keeps the first power-lock control module 250 to keep the first power-off state, and the first switch module 213 keeps the first power-lock control module 250 from continuously turning off. Therefore, the first timing unit 211 and the first counting unit 212 are not in operation all the time, when the user inserts and withdraws the charger connector normally (or sucks and blows) in the child lock locking state (the child lock unlocking state is similar and is not repeated), the first timing unit 211 and the first counting unit 212 are triggered to perform timing and counting, and when the user normally operates the electronic cigarette to enter the child lock unlocking state, the first timing unit 211 is still in timing, the count value of the first counting unit 212 is kept, so that the first child lock module 210 may receive less charging and plugging times than the first preset number in the child lock unlocking state and enter the child lock locking state, logic errors are caused, trouble is caused to the use of the user, and misoperation of the user is easy to cause. For example, in the child lock locking state, the user charges the electronic cigarette normally, the charger connector is inserted into the charging interface 140, at this time, the first counting unit 211 starts to count 1, after the user operates normally to make the electronic cigarette enter the child lock unlocking state, the first counting unit 211 is still counting time, after that, when the electronic cigarette is plugged in and plugged out for 2 times for various reasons, the first preset number is satisfied (assuming that the first preset number is 3 times, and is still within the first preset time period), the first counting and judging unit 213 outputs the first child lock signal, so that the electronic cigarette returns to the child lock locking state, which causes logic confusion in the use process of the user, does not accord with the expectation of the user, causes trouble to the operation of the user, and causes misoperation of the user easily.
In this embodiment, the child lock control circuit 200 further includes a trigger 240, where the trigger 240 is, for example, an SR trigger 240 or other conventional triggers 240, one input end of the trigger 240 is electrically connected to the output end of the first child lock module 210, the other input end of the trigger 240 is electrically connected to the output end of the second child lock module 220, the output end of the trigger 240 is electrically connected to the switch control module 250, and the output end of the trigger 240 is further electrically connected to the first timing unit 211 and the first counting unit 212. When the second child lock module 220 generates a second child lock signal for enabling the electronic cigarette to enter the second child lock state, the trigger 240 receives the second child lock signal and outputs a second signal, the second signal is a high level signal, wherein the edge signal of the trigger 240 converted from the first signal (described later) to the second signal is a first reset signal, the electronic cigarette enters the second child lock state, meanwhile, the first timing unit 211 and the first counting unit 212 receive the first reset signal, the first timing unit 211 stops timing and sets zero, and the first counting unit 212 stops counting and sets zero. How to reset the first timing unit 211 and the first counting unit 212 after receiving the first reset signal is a conventional technology in the art, and will not be described herein.
In this embodiment, the output of the trigger 240 is also electrically connected to the second child lock module 220. When the first child lock module 210 outputs a first child lock signal for enabling the electronic cigarette to enter the first child lock state, the trigger 240 continuously outputs a low level signal to the switch control module 250 and the second child lock module 220, the low level signal is the first signal, meanwhile, an edge signal converted from the second signal to the first signal is the second reset signal, the electronic cigarette enters the first child lock state, and the second child lock module 220 receives the second reset signal.
In addition, in other embodiments of the present application, the first timing unit 211 and the first counting unit 212 are electrically connected to the switch control module 250, and the second child lock module 220 is electrically connected to the switch control module 250. When the second child lock module 220 outputs a second child lock signal for enabling the electronic cigarette to enter a second child lock state, the trigger 240 continuously outputs a high level signal corresponding to the second child lock signal, the switch control module 250 continuously outputs the high level signal to the first timing unit 211 and the first counting unit 212, the high level signal output by the switch control module 250 is a second signal, the switch control module 250 outputs an edge signal converted from a low level signal (first signal) to a high level signal (second signal) as a first reset signal, the electronic cigarette enters the second child lock state, the switch control module 250 is controlled by the suction detection module 270, the first timing unit 211 and the first counting unit 212 receive the first reset signal, the first timing unit 211 stops timing and sets to zero, the first counting unit 212 stops counting and sets to zero, when the first child lock module 210 outputs the first child lock signal for enabling the electronic cigarette to enter the first child lock state, the trigger 240 continuously outputs a low level signal corresponding to the first child lock signal, the switch control module 250 also continuously outputs the low level signal to the first timing unit 211, the first switch control module 250 outputs the low level signal to the first child lock signal (second signal), and the switch control module 250 outputs the low level signal to the second signal (second signal) as the second reset signal, and the first child lock module 250 receives the low level signal and the second reset signal. For example, the switch control module 250 further includes a reset unit, which includes two not gates, for example, two not gates connected in series, wherein an input end of one not gate is electrically connected to an output end of the trigger 240, and an output end of the other not gate is electrically connected to the first timing unit 211 and the first counting unit 212, respectively. In addition, in other embodiments of the present application, the reset signal may be inverted, the first reset signal may be an edge signal that changes from a high level signal to a low level signal, and the second reset signal may be an edge signal that changes from a low level signal to a high level signal.
In addition, in other embodiments of the present application, similarly, the first timing unit 211 and the first counting unit 212 are electrically connected to the output end of the second child lock module 220, the second child lock module 220 outputs a second child lock signal for enabling the electronic cigarette to enter the second child lock state, the second child lock module 220 outputs an edge signal from a low level signal to a high level signal as a first reset signal, and in other embodiments of the present application, the first reset signal may be a falling edge signal, the first timing unit 211 receives the first reset signal, the first timing unit 211 stops timing and sets to zero, the first counting unit 212 receives the first reset signal, and the first counting unit 212 stops counting and sets to zero.
In the present embodiment, the second child lock module 220 is similar to the first child lock module 210, and the second child lock module 220 includes a second timing unit 221, a second counting unit 222, and a second timing count determining unit 223. The second timing unit 221 and the second counting unit 222 are electrically connected to the second state detection module, the second timing count determination unit 223 is electrically connected to the second timing unit 221 and the second counting unit 222, respectively, and when the electronic cigarette enters the first child lock state, the second timing unit 221 and the second counting unit 222 receive the second reset signal, so that the second timing unit 221 stops timing and is set to zero, and the second counting unit 222 stops counting and is set to zero. In this embodiment, when the electronic cigarette is in the first child-lock state, the second state detection module outputs the inhalation signal to the second timing unit 221 and the second counting unit 222 when the user inhales the electronic cigarette, the second timing unit 221 starts timing, the second counting unit 222 starts counting, the second timing count determination unit 223 is configured to determine whether the count of the second counting unit 222 is greater than or equal to the second preset number within the second preset time period, and when the second timing count determination unit 223 determines that the count of the second counting unit 222 is greater than or equal to the second preset number within the second preset time period, the second timing count determination unit 223 outputs the second child-lock signal to the trigger 240, and the trigger 240 outputs the second signal to the switch control unit. The specific function of the second child lock module 220 may refer to the first child lock module 210, and will not be described herein. In addition, in other embodiments of the present application, when the second child lock state is the child lock locking state, the second child lock module 220 may not include the second counting unit 222, and the second timing count determining unit 223 is a second duration determining unit, where the electronic cigarette determines whether to enter the second child lock state according to the placement duration.
In this embodiment, the first timing unit 211, the first counting unit 212, the second timing unit 221, and the second counting unit 222 operate regardless of whether the electronic cigarette is in the first child lock state or the second child lock state, and when the trigger signal is received, the first timing unit 211 and the second timing unit 221 correspondingly start timing, and the first counting unit 212 and the second counting unit 222 correspondingly start counting. In the present embodiment, the three units of the second timer unit 221, the second counting unit 222, and the second timer count judgment unit 223 may be implemented by conventional timers and counters, that is, although the foregoing is divided into three units by functions, it is actually possible to implement the two circuit modules, which is also within the scope of the present application. In the present embodiment, the three units of the first timer unit 211, the first counting unit 212, and the first timer count judgment unit 213 may be implemented by a conventional timer and a counter, that is, although the foregoing is divided into three units by functions, it is actually possible to implement the two circuit modules, which is also within the scope of the present application.
The inventor of the present application found that, in the actual testing process, the contact between the charger connector and the charging interface 140 is not stable, or the charger connector and the charging interface 140 are damaged due to long-term use, or shake may cause that the charger connector and the charging interface 140 are plugged once, so that the charging management module 260 detects multiple charging signals, and the charger connector and the charging interface 140 are plugged once, so that the electronic cigarette may be triggered by mistake to enter the first child lock state, which causes trouble to the user, and other triggering modes, such as an air extraction mode (air disturbance caused by environmental factors, temperature factors, etc.), an air blowing mode (air disturbance caused by environmental factors, temperature factors, etc.), and a bullet plugging mode (contact is not stable, use loss, etc.), also have similar problems. To solve this problem, in this embodiment, the child lock control circuit 200 further includes a third timing unit 231 and a third duration determining unit 232, where the third timing unit 231 is electrically connected to the first state detecting module, the third duration determining unit 232 is electrically connected to the third timing unit 231, and an output end of the third duration determining unit 232 is electrically connected to the first timing unit 211 and the first counting unit 212, respectively, and the third duration determining unit 232 is configured to generate a trigger valid signal according to a timing duration of the third timing unit 231. In the present embodiment, the two units of the third time counting unit 231 and the third duration judging unit 232 may be implemented by a conventional timer, that is, although the foregoing two units are functionally divided, they may be implemented by one circuit module in practice, which is also within the scope of the present application.
In this embodiment, when the electronic cigarette enters the charging state, the third time counting unit 231 starts to count, when the third time length determining unit 232 determines that the third time length determining unit 231 counts a third preset time length or more, that is, the duration in the charging state is greater than or equal to the third preset time length, at this time, the third time length determining unit 232 outputs a trigger valid signal to the first time counting unit 211 and the first counting unit 212, the first time counting unit 211 is triggered to start counting, and thereafter, the first time counting unit 211 ignores the output signal of the third time length determining unit 232 as long as the first time counting unit 211 is not reset, and each charging detects and determines the duration of the charging signal, and only if the duration of the charging signal is greater than or equal to the third preset time length, the first counting unit 212 counts. Thereafter, the third timer unit 231 is reset, i.e., stops counting and zeroes. In the first preset duration, if the third duration determining unit 232 determines that the third timing unit 231 counts more than or equal to the third preset duration again next time, the first timing unit 211 ignores the signal, and meanwhile, the first counting unit 212 counts up by 1, that is, the following count all performs detection and determination on the holding duration of the charging signal, and only the holding duration of charging is greater than or equal to the third preset duration. In the present embodiment, the third timing unit 231 starts timing triggered by a rising edge signal (edge signal), a falling edge signal (edge signal), a high level signal (level signal), or a low level signal (level signal), so that when the first state detection module is changed from the uncharged signal to the charged signal, the third timing unit 231 is triggered to start timing.
In addition, the first timing unit 211 may not trigger to start timing by receiving the trigger valid signal, and in other embodiments of the present application, the first timing unit 211 is electrically connected to the first state detection module, the first timing unit 211 obtains information that the electronic cigarette enters the first state, and the first timing unit 211 also performs timing, that is, the first timing unit 211 and the third timing unit 231 perform timing at about the same time. In the present embodiment, the first timing unit 211 performs timing by an edge signal trigger, and the third timing unit 231 performs timing by a level signal trigger or an edge signal trigger.
In this embodiment, when the third time period determining unit 232 determines that the third time period determining unit 231 counts less than the third preset time period, that is, the time period in the charged state is less than the third preset time period, the third time period determining unit 232 does not output the trigger valid signal, for example, outputs the trigger invalid signal, and the trigger invalid signal does not trigger the following circuit timing and counting. In this embodiment, when the duration of the charging signal is very short and the charging signal is changed back to the uncharged signal, the third timing unit 231 stops timing and the timing duration is set to zero, that is, the third timing unit 231 is reset, and at the same time, the third duration judging unit 232 still outputs the trigger invalidation signal. In the present embodiment, the third preset time period is, for example, 10ms, 20ms, 30ms, 40ms, 50ms, 60ms, 70ms, 80ms, 90ms, 100ms, or the like. The foregoing problems occur that the charging signal is generated for a plurality of times during one charging, in general, the duration of the foregoing charging signal is very short and is less than 10ms, the charging signal is greater than or equal to 10ms and less than or equal to 100ms when the charging signal is stably connected, the embodiment uses this mode to distinguish whether the charging signal is effective charging or ineffective charging caused by reason of poor reliability, loss, etc., when the duration of the charging signal is very short, the charging signal is quickly changed back to the uncharged signal, the third timing unit 231 is reset, and meanwhile, the third duration judging unit 232 does not output the triggering effective signal to the first timing unit 211 and the first counting unit 212, so that the first timing unit 211 and the first counting unit 212 are not triggered, and thus are not mistakenly triggered, and the situation that the electronic cigarette is triggered to enter the first child lock state once the charger connector is inserted into the charging interface 140 does not occur.
The embodiment also detects the interval between the first states, and prevents the signal corresponding to the first state from shaking to cause miscounting. Specifically, in the present embodiment, the child lock control circuit includes a fourth timing unit 281 and a fourth time length determining unit 282, the fourth timing unit 281 is electrically connected to the first state detecting module and the third time length determining unit 232, the fourth time length determining unit 282 is electrically connected to the fourth timing unit 281 and the third timing unit 231, and the third timing unit 231 is also electrically connected to the first state detecting module and the third time length determining unit 232. When the third duration determining unit 232 outputs the trigger valid signal, the fourth timing unit 281 obtains the information that the electronic cigarette enters the non-first state from the first state after obtaining the trigger valid signal, for example, the information that the electronic cigarette changes from the charged state to the non-charged state (the non-charged state), for example, the high level signal changes to the low level signal, the fourth timing unit 281 is triggered to start timing, meanwhile, the third timing unit 231 also obtains the information that the electronic cigarette enters the non-first state from the first state after obtaining the trigger valid signal, the third timing unit 231 is locked, that is, enters the locked state, the third timing unit 231 is not triggered to start timing after being locked, and at this time, the timing of the third timing unit 291 is 0, and the third timing unit 231 in the unlocked state only after being unlocked clocks the duration of the first state. In this embodiment, when the fourth timing unit 281 starts timing, the fourth timing unit 281 is always timing, the fourth time length determining unit 282 determines whether the timing duration of the fourth timing unit 281 is greater than or equal to a fourth preset duration, for example, 10ms-100ms, for example, 10ms, 20ms, 30ms, 40ms, 50ms, 60ms, 70ms, 80ms, 90ms, 100ms, etc., and preferably 20ms, and when the fourth time length determining unit 282 determines that the timing of the fourth timing unit 281 reaches the fourth preset duration, the fourth timing unit 281 stops timing and is set to zero, that is, the fourth timing unit 281 is reset, and at the same time, the fourth time length determining unit 282 outputs an unlock signal to the third timing unit 231, the third timing unit 231 is unlocked, the third timing unit 231 is in an unlocked state, and thereafter the third timing unit 231 acquires information that the electronic cigarette enters the first state, and the third timing unit 231 can perform timing. In this embodiment, when the fourth timing unit 281 does not receive the trigger valid signal, the fourth timing unit 281 does not trigger to start timing even if the fourth timing unit 281 acquires information that the electronic cigarette enters the non-first state from the first state. In this embodiment, the duration of the first state is determined, and only the duration is greater than the third preset duration, and meanwhile, after the electronic cigarette is converted from the first state to the non-first state after being counted once, the fourth timing unit 281 counts, and only after the fourth timing unit 281 counts more than or equal to the fourth preset duration, the third timing unit 231 may count again effectively, that is, after the valid triggering signal is output, the third timing unit 231 may count again after waiting for at least the fourth preset duration. the setting can prevent the first state action from shaking to cause the first state action to be mistaken for the first state action for several times, so that the first state action does not meet the expectation of the user, and the setting of the embodiment improves the experience of the user and meets the expectation of the user.
In order to prevent the false count caused by the jitter of the signal corresponding to the first state, in other embodiments of the present application, please refer to fig. 3, the child lock control circuit includes a fourth timing unit 281 and a fourth time length determining unit 282, the fourth timing unit 281 is electrically connected to the first state detecting module and the third time length determining unit 232, the fourth time length determining unit 282 is electrically connected to the fourth timing unit 281, the third timing unit 231 and the first counting unit 212, and the first counting unit 212 is further electrically connected to the first state detecting module and the third time length determining unit 232. When the third duration determining unit 232 outputs the trigger valid signal, the fourth timing unit 281 obtains the information that the electronic cigarette enters the non-first state from the first state after receiving the trigger valid signal, the fourth timing unit 281 is triggered to start timing, meanwhile, the first counting unit 212 also obtains the information that the electronic cigarette enters the non-first state from the first state after obtaining the trigger valid signal, the first counting unit 212 is locked, that is, enters the locked state, the first counting unit 212 does not count up even if receiving the trigger valid signal after being locked, that is, the first counting unit 212 keeps the original count value in the locked state, does not count up, and only when the first counting unit 212 in the unlocked state receives the trigger valid signal after being unlocked, the count is incremented. In this embodiment, when the fourth timing unit 281 starts timing, the fourth timing unit 281 is always timing (even if the state is changed from the non-first state to the first state), the fourth time length determining unit 282 determines whether the timing length of the fourth timing unit 281 is greater than or equal to the fourth preset time length, when the fourth time length determining unit 282 determines that the timing length of the fourth timing unit 281 reaches the fourth preset time length, the fourth timing unit 281 stops timing and sets zero, that is, the fourth timing unit 281 resets, while the fourth time length determining unit 282 outputs a reset signal to the third timing unit 231, the timing of the third timing unit 231 is stopped and sets zero, that is, resets, while the fourth time length determining unit outputs an unlock signal to the first counting unit 212, the first counting unit 212 is unlocked, the first counting unit 212 enters the unlocked state, and thereafter the first counting unit 212 acquires the trigger valid signal again, and the first counting unit 212 may perform a count plus action. In this embodiment, when the fourth timing unit 281 does not receive the trigger valid signal, the fourth timing unit 281 does not trigger the start of timing even if the fourth timing unit 281 acquires information that the electronic cigarette enters the non-first state from the first state.
In this embodiment, the first preset duration and the second preset duration are generally less than or equal to 5s, so that false triggering is prevented, where the first preset duration is, for example, 1s, 1.5s, 1.8s, 2s, 2.3s, 2.5s, 2.8s, 3s, 4s, 5s, and preferably 2s. In this embodiment, the first preset number and the second preset number are greater than or equal to 2, for example, 2, 3, 4,5, 6, etc., preferably 3, and the first preset number and the second preset number are generally less than or equal to 6 times, so as to facilitate the user operation.
In this embodiment, the child lock control circuit 200 is located on the same chip, which is commonly referred to as a system control chip. However, the present application is not limited thereto, and in other embodiments of the present application, the child lock control circuit 200 is located on the same chip except for the first state detection module or the second state detection module.
Fig. 4 shows a child lock control method of an electronic cigarette according to an embodiment of the present application, corresponding to the child lock control circuit 200 of an electronic cigarette according to the above embodiment, and for convenience of explanation, only the parts related to the embodiment of the present application are shown.
Referring to fig. 2 and fig. 4 in combination, an embodiment of the present application provides a child lock control method for an electronic cigarette, including the following steps:
s11, the second child lock module 220 generates a second child lock signal for enabling the electronic cigarette to enter a second child lock state;
s12, triggering and outputting a first reset signal;
s13, the first timing unit 211 and the first counting unit 212 both receive the first reset signal, the first timing unit 211 stops timing and sets zero, and the first counting unit 212 stops counting and sets zero;
S14, acquiring information of the electronic cigarette entering a first state;
s15, triggering the first counting unit 212 to count and triggering the first timing unit 211 to count;
s16, judging whether the number counted in the first preset time period is larger than or equal to a first preset number, wherein the first preset number is larger than or equal to 2;
and S17, if the judgment result is yes, controlling the electronic cigarette to enter a first child lock state.
It should be understood that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functions may be allocated to different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
It should be understood that references herein to "a plurality" are to two or more. Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are referred to each other. For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.