CN117223904A - Child lock control method, child lock control circuit, child lock control device and electronic cigarette - Google Patents

Child lock control method, child lock control circuit, child lock control device and electronic cigarette Download PDF

Info

Publication number
CN117223904A
CN117223904A CN202210892553.7A CN202210892553A CN117223904A CN 117223904 A CN117223904 A CN 117223904A CN 202210892553 A CN202210892553 A CN 202210892553A CN 117223904 A CN117223904 A CN 117223904A
Authority
CN
China
Prior art keywords
unit
timing
state
electronic cigarette
lock control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210892553.7A
Other languages
Chinese (zh)
Inventor
宋朋亮
贺玉婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Wenxian Microelectronics Co ltd
Original Assignee
Wuxi Wenxian Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Wenxian Microelectronics Co ltd filed Critical Wuxi Wenxian Microelectronics Co ltd
Priority to CN202210892553.7A priority Critical patent/CN117223904A/en
Publication of CN117223904A publication Critical patent/CN117223904A/en
Pending legal-status Critical Current

Links

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

The application provides a child lock control method of an electronic cigarette, which comprises the following steps: acquiring information of the electronic cigarette entering a first state; triggering a third timing unit to perform timing; judging whether the duration of the electronic cigarette in the first state is greater than or equal to a third preset duration; if the judgment result is yes, outputting a trigger effective signal; receiving the trigger effective signal and triggering counting; judging whether the number of counts 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, controlling the electronic cigarette to enter a locking state or an unlocking state. The embodiment of the application also provides a child lock control circuit, a child lock control device and an electronic cigarette.

Description

Child lock control method, child lock control circuit, child lock control device and electronic cigarette
Technical Field
The application relates to the technical field of electronic cigarettes, in particular to a child lock control method, a child lock control circuit, a child lock control device and an electronic cigarette.
Background
The electronic cigarette is electronic equipment for simulating the cigarette, and the taste and the smoke of the real cigarette are simulated, so that the traditional cigarette is replaced, the expenditure of a consumer is saved, and the harm caused by second-hand smoke is reduced.
At present, the electronic cigarette is common, the children can easily touch the electronic cigarette, most of the electronic cigarettes have no child lock function, and the children can easily suck the electronic cigarette by mistake due to curiosity and imitation of the children. Therefore, for safety reasons, it is very necessary for the electronic cigarette to have a child lock function for preventing the child from sucking and touching by mistake. At present, child lock functions of electronic cigarettes on the market are generally realized by means of Bluetooth, WIFI, NFC, fingerprints, touch keys, mechanical keys and the like, child lock functions generally comprise locking sub-functions and unlocking sub-functions, the general locking sub-functions and the unlocking sub-functions are realized in the same mode, and are realized by means of Bluetooth, WIFI, NFC, fingerprints, touch keys, mechanical keys and the like, however, in the realization modes, the hardware cost is greatly increased by means of Bluetooth, WIFI, NFC, fingerprints and the like, the complexity of structural design is additionally increased by means of the touch keys, the mechanical keys and the like, and certain influence is caused on the appearance of the electronic cigarettes.
In the prior art, the locking sub-function and the unlocking sub-function are realized by blowing, sucking and the like on the electronic cigarette, however, the inventor of the application discovers in the actual test process: the electronic cigarette is easy to be mistriggered by the modes of air blowing, air suction and the like, for example, the air suction and the unlocking are taken as an example for explanation, after the electronic cigarette enters a locking state, the electronic cigarette can be disturbed and shaken for many times in a short time due to the change of environment, temperature and the like, so that the electronic cigarette is easily misjudged to be inhaled by a user for many times, the electronic cigarette is switched from the locking state to the unlocking state, the electronic cigarette is misunderstood to be locked, and at the moment, when the user takes the electronic cigarette to prepare for unlocking, the electronic cigarette is found to be unlocked and does not meet the expectations of the user, and the trouble is caused to the use of the user; moreover, the user can damage the electronic cigarette to cause damage to brands of electronic cigarette enterprises; moreover, the electronic cigarette is unsafe to use.
Disclosure of Invention
The technical problem to be solved by the embodiment of the application is to provide a child lock control method, a child lock control circuit, a child lock control device and an electronic cigarette for the electronic cigarette aiming at the problems in the prior art. The probability of locking or unlocking the electronic cigarette by mistake can be reduced.
In order to solve the above technical problems, a first aspect of the present application provides a child lock control method for an electronic cigarette, including:
acquiring information of the electronic cigarette entering a first state;
triggering a third timing unit to perform timing;
judging whether the duration of the electronic cigarette in the first state is greater than or equal to a third preset duration;
if the judgment result is yes, outputting a trigger effective signal;
receiving the trigger effective signal and triggering counting;
judging whether the number of counts 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, controlling the electronic cigarette to enter a locking state or an unlocking state.
Optionally, if the result of the step is yes, outputting the trigger valid signal further includes: the first timing unit receives the trigger effective signal and triggers to start timing; or alternatively;
Before the step of judging whether the duration of the electronic cigarette in the first state is greater than or equal to the third preset duration, the method further comprises the following steps: triggering the first timing unit to start timing.
Optionally, if the result of the step is yes, outputting the trigger valid signal further includes:
acquiring information of the electronic cigarette entering a non-first state from the first state;
triggering a fourth timing unit to start timing and locking the third timing unit;
judging whether the timing duration of the fourth timing unit is greater than or equal to a fourth preset duration;
if the judgment results are yes, unlocking the third time counting unit.
Optionally, if the result of the step is yes, outputting the trigger valid signal further includes:
acquiring information of the electronic cigarette entering a non-first state from the first state;
triggering a fourth timing unit to start timing and locking the count;
judging whether the timing duration of the fourth timing unit is greater than or equal to a fourth preset duration;
if the judgment results are yes, resetting the third timing unit, and unlocking the counting.
Optionally, the method further comprises:
acquiring information of the electronic cigarette entering a non-first state from the first state;
the third timing unit stops timing and the timing is set to zero.
Optionally, the method further comprises:
if the judging result of judging whether the duration of the electronic cigarette in the first state is greater than or equal to the third preset duration is yes, the third timing unit stops timing and the timing is set to zero.
Optionally, the method further comprises:
if the timing of the first timing unit is greater than or equal to the first preset time length, stopping counting, stopping timing by the first timing unit, and setting the timing and counting to zero; and/or the number of the groups of groups,
if the time length is smaller than the first preset time length and the count number reaches the first preset number, stopping counting and timing, and setting the count number and the time length to zero.
Optionally, the first state is an inhalation state, a blowing state, a cartridge insertion state or a charging state.
Optionally, the third timing duration ranges from 10ms to 100ms; and/or the range of the first preset duration is 1s-5s; and/or the first preset number ranges from 2 to 6; and/or the third timing unit starts timing triggered by an edge signal or a level signal.
A second aspect of an embodiment of the present application provides a child lock control circuit of an electronic cigarette, including:
the state detection unit is used for detecting the state of the electronic cigarette, wherein the state of the electronic cigarette comprises a first state and a non-first state;
The third timing unit is electrically connected with the state detection unit, and starts timing when the third timing unit receives a signal that the electronic cigarette is in the first state;
the third time length judging unit is electrically connected with the third time counting unit and is used for outputting a triggering effective signal when judging that the continuous time length of the electronic cigarette in the first state is greater than or equal to a third preset time length;
the first counting unit is electrically connected with the third duration judging unit and counts when receiving the trigger effective signal;
the first timing counting judgment unit is electrically connected with the first counting unit and the first timing unit and is used for judging that the counting number of the first counting unit is greater than or equal to the first preset number in the first preset time period and outputting a child lock control signal;
and the child lock control unit is electrically connected with the first timing and counting judging unit and is used for receiving the child lock control signal so as to enable the electronic cigarette to enter a locking state or an unlocking state.
Optionally, the state detection unit is a blowing detection unit, a cartridge detection unit or a charging management unit.
A third aspect of the embodiment of the present application provides a child lock control device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the child lock control method of the electronic cigarette is implemented when the processor executes the computer program.
A fourth aspect of an embodiment of the present application provides an electronic cigarette, including:
the child lock control circuit;
the power MOS tube is connected with the child lock control circuit in series, and the child lock control circuit is connected with the child lock control circuit.
According to the embodiment of the application, the continuous time of the first state is judged, so that the situation that the electronic cigarette is erroneously in the locking state or the unlocking state caused by environmental change, temperature change, abnormal electronic cigarette and the like can be prevented, the trouble to the use of a user can be prevented, the use experience of the user is improved, the stability of the electronic cigarette is improved, and the damage to enterprise brands is avoided. In addition, the first state is counted, the electronic cigarette can be changed in locking state or unlocking state only when the counted number is larger than or equal to the first preset number in the first preset time, locking or unlocking difficulty is improved, and use safety of the electronic cigarette is improved. In addition, the third duration judging unit is matched with the counting unit for use, so that false triggering of the electronic cigarette is further prevented, and safety is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a circuit block diagram of an electronic cigarette according to an embodiment of the application;
FIG. 2 is a flowchart illustrating a method of controlling a child lock according to an embodiment of the present application;
FIG. 3 is a schematic block diagram of the connection of the child lock control circuit, the suction and blowing detection unit, the power MOS tube, etc. according to an embodiment of the present application;
FIG. 4 is a schematic block diagram of a child lock control circuit, a suction and blowing detection unit, a power MOS tube, and the like according to another embodiment of the present application;
FIG. 5 is a schematic view of a child lock control device according to an embodiment of the present application;
reference numerals:
110-cell; 120-a charging management unit; 130-heating elements; 140-an airflow sensor; 150-a suction and blowing detection unit; 160-a charging interface; m-power MOS tube; BAT-power supply terminal; GND-the power ground; an AT-atomizing end; SW-air flow detection end;
200-child lock control circuit; 210-a first timing unit; 220-a first counting unit; 230-a first timing count judgment unit; 240-child lock control unit; 250-a third timing unit; 260-a third time period judging unit; 281-a fourth timing unit; 282-a fourth time length determination unit; 300-child lock control device; 310-memory; 320-processor.
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, for example a and/or B, including those of A, B, A and B.
Referring to fig. 1 and 3 in combination, the electronic cigarette includes a battery 110, a child lock control circuit 200, a heating element 130, a suction and blowing detection unit 150, an airflow sensor 140, a power MOS tube M, and the like. The child lock control circuit 200 is electrically connected to the battery 110, the suction and blowing detection unit 150, the power MOS transistor M, and the like, respectively. In this embodiment, the battery 110 is, for example, a rechargeable battery 110 such as a lithium battery 110, a nickel cadmium battery 110, or a nickel hydrogen battery 110, and the suction and blowing detection unit 150 is further electrically connected to the airflow sensor 140, and the suction and blowing detection unit 150 is configured to determine whether the electronic cigarette is sucked or blown and send a signal to the child lock control circuit 200, and a specific implementation of the suction and blowing detection unit 150 may take part in the applicant's prior application CN202210500141.4, which is also incorporated into the present application, or other conventional suction and blowing detection units 150 in the field. The airflow sensor 140 is, for example, a MEMS sensor or a microphone, and the child lock control circuit 200 is electrically connected to a control end of the power MOS tube M, where the child lock control circuit 200 is used to control whether the power MOS tube M is turned on, the power MOS tube M and the heating element 130 are connected in series to form a serial branch, one end of the serial branch is electrically connected to an anode of the battery 110, and the other end of the serial branch is electrically connected to a cathode of the battery 110. In this embodiment, the power MOS transistor M is exemplified as a PMOS transistor, and of course, the power MOS transistor M may be an NMOS transistor. In this embodiment, the power MOS transistor M, the child lock control circuit 200, and the suction and blowing detection unit 150 may be located on the same chip, which is generally referred to as a system control chip.
In this embodiment, the first end of the power MOS tube M is electrically connected to the positive electrode or the negative electrode of the battery 110, the second end of the power MOS tube M is electrically connected to one end of the heating element 130, the other end of the heating element 130 is correspondingly electrically connected to the negative electrode or the positive electrode of the battery 110, and the heating element 130 is, for example, a heating wire, a ceramic base containing the heating wire or the heating wire, or other conventional heating elements 130. In this embodiment, the heating element 130 heats to atomize the tobacco tar when the child lock control circuit 200 outputs a low level signal to control the power MOS tube M to be turned on, and the heating element 130 stops heating when the child lock control circuit 200 outputs a high level signal to control the power MOS tube M to be turned off.
Referring to fig. 2, an embodiment of the present application provides a child lock control method for an electronic cigarette, including the following steps:
s11, acquiring information of the electronic cigarette entering a first state;
the child lock control circuit 200 includes a state detection unit, where the state detection unit is configured to obtain whether the electronic cigarette is in a first state, and in this embodiment, the first state is, for example, an air suction state, an air blowing state, a cartridge insertion state, a charging state, or a key press state, and the first state is taken as a charging state for illustration.
In this embodiment, the first state is a charging state, the state detection unit includes a charging management unit 120, the charging management unit 120 is electrically connected with a charging interface 160, the charging interface 160 is electrically connected with a charger, when a charger connector is inserted into the charging interface 160 to charge the battery 110, the charging management unit 120 determines that the electronic cigarette is in a charging state, and when the charging interface 160 is not electrically connected with the charger connector or an external power supply is not connected, the charging management unit 120 determines that the electronic cigarette is in an uncharged state. In addition, in other embodiments of the present application, the first state is an air suction state or an air blowing state, and the state detection unit includes an air suction detection unit 150, and when the electronic cigarette is sucked, the air suction detection unit 150 determines that the electronic cigarette is in the air suction state; when the electronic cigarette is blown, the blowing detection unit 150 judges that the electronic cigarette is in a blowing state; when the electronic cigarette is not blown or exhausted, the suction and blowing detection unit 150 determines that the electronic cigarette is in a non-suction and blowing state. In addition, in other embodiments of the present application, the first state is a cartridge insertion state, the electronic cigarette includes a cigarette stem and a cartridge, the cigarette stem includes a cartridge detection unit, the cartridge includes a tobacco tar and a heating element 130, and the like, and the cartridge and the cigarette stem are connected in a pluggable manner; the state detection unit comprises a cartridge detection unit, the cartridge detection unit can detect whether the cartridge is inserted into the tobacco rod, when the cartridge is inserted into the tobacco rod, the cartridge detection unit judges that the electronic cigarette enters the cartridge insertion state, and when the cartridge is not inserted into the tobacco rod, the cartridge detection unit judges that the electronic cigarette is in the cartridge non-insertion state.
In this embodiment, the charging management unit 120 identifies whether the electronic cigarette is in a charging state, and when the electronic cigarette is connected to an external power supply through the charging interface 160 and the charger, the charging management unit 120 identifies that the electronic cigarette is in the charging state, and the charging management unit 120 outputs a charging signal, for example, a high-level signal; when the electronic cigarette is not connected to the external power supply, the charging management unit 120 outputs an uncharged signal, for example, a low level signal. Therefore, when the e-cigarette is changed from the uncharged state to the charged state, the charge management unit 120 outputs a signal from the uncharged signal to the charged signal and outputs the signal.
S12, triggering a third timing unit 250 to perform timing;
the child lock control circuit 200 further includes a third timing unit 250, where an input end of the third timing unit 250 is electrically connected to the state detection unit, in this embodiment, the charging management unit 120, and when the third timing unit 250 obtains information that the electronic cigarette enters the charging state, for example, when an output signal of the state detection unit changes from a low level signal to a high level signal, the third timing unit 250 starts timing. When the third timing unit 250 acquires that the e-cigarette enters the uncharged state, for example, the output signal of the state detection unit changes from the high level signal to the low level signal, the third timing unit 250 stops timing and sets zero, that is, the third timing unit 250 resets. In the present embodiment, the third timing unit 250 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 state detecting unit changes from an uncharged signal to a charged signal, the third timing unit 250 is triggered to start timing.
S13, judging whether the duration of the electronic cigarette in the first state is greater than or equal to a third preset duration;
the child lock control circuit 200 further includes a third duration determining unit 260, where the third duration determining unit 260 is electrically connected to the third timing unit 250, the third duration determining unit 260 is configured to determine whether the duration of the electronic cigarette in the first state is greater than or equal to a third preset duration, when the third duration determining unit 260 determines that the timing of the third timing unit 250 is greater than or equal to the third preset duration, at this time, the duration of the first state is greater than or equal to the third preset duration, and the third duration determining unit 260 outputs a trigger valid signal. In general, the false trigger signal duration will be very short and will be less than 10ms, in this embodiment, the third preset duration is generally greater than or equal to 10ms and less than or equal to 100ms, and the third preset duration is, for example, 10ms, 20ms, 30ms, 40ms, 50ms, 60ms, 70ms, 80ms, 90ms, 100ms, etc. In this embodiment, the third duration determining unit 260 and the third timing unit 250 may be implemented in one unit module, for example, a timer, or may be implemented in two or more unit modules.
S14, if the judgment result is yes, outputting a trigger effective signal;
when the third duration determining unit 260 determines that the third timing unit 250 counts a time greater than or equal to the third preset duration, that is, the time in the charging state is greater than or equal to the third preset duration, the third duration determining unit 260 outputs the trigger valid signal to the following circuit, so that the following circuit is triggered to operate conveniently. In this embodiment, the trigger valid signal is, for example, a high level signal or a low level signal, and may be set according to the user's requirement.
In this embodiment, if the third duration determining unit 260 determines that the determination result is no, that is, the third duration determining unit 260 determines that the timing duration of the third timing unit 250 is less than the third preset duration, the third duration determining unit 260 does not output the trigger valid signal, for example, outputs the trigger invalid signal, and the trigger invalid signal does not trigger the following circuits to work. 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 time counting unit 250 stops counting time and the time duration is set to zero, and at the same time, the third time duration judging unit 260 still outputs the trigger invalidation signal.
S15, the first timing unit 210 receives the trigger effective signal and triggers to start timing;
s16, receiving the trigger effective signal and triggering counting;
the child lock control circuit 200 includes a first counting unit 220 and a first timing unit 210, where the first timing unit 210 and the first counting unit 220 are electrically connected to a third duration judging unit 260, and when the first timing unit 210 receives a trigger valid signal, the first timing unit 210 is changed from an untimed state to a timing state, and the first timing unit 210 starts timing from 0; when the first counting unit 220 receives the trigger valid signal, the first counting unit 220 starts counting and counts this time as well, that is, the first counting unit 220 counts 1 at this time.
In this embodiment, when the first timer unit 210 starts to count, the first timer unit 210 does not restart counting again after receiving the trigger valid signal, the first timer unit 210 continues counting all the time, the first timer unit 210 stops counting only after the first timer unit 210 receives the stop counting signal, the first timer unit 210 sets zero the duration of the previous counting, if the signals are not received, the first timer unit 210 continues counting, after which the first timer unit 210 does not count any more if the first timer unit 210 receives the trigger valid signal again after the first timer unit 210 stops counting and the first timer unit 210 sets zero. In this embodiment, after the first counting unit 220 receives the trigger valid again, the first counting unit 220 performs the accumulated count, and the first counting unit 220 performs the count again based on the original count 1, and the count number of the first counting unit 220 is 2, for example.
In addition, the first timing unit 210 may not trigger to start timing by receiving the trigger valid signal, and in other embodiments of the present application, the first timing unit 210 is electrically connected to the state detection unit, the first timing unit 210 obtains information that the electronic cigarette enters the first state, and the first timing unit 210 also performs timing, that is, the first timing unit 210 and the third timing unit 250 perform timing at about the same time. In the present embodiment, the first timing unit 210 clocks by the edge signal trigger, and the third timing unit 250 clocks by the level signal or the edge signal trigger.
S17, judging whether the number of counts in the first preset time period is larger than or equal to the first preset number, wherein the first preset number is larger than or equal to 2;
the child lock control circuit 200 further includes a first timing and counting determining unit 230, where the first timing and counting determining unit 230 is electrically connected to the first counting unit 220 and the first timing unit 210, and when the determination result of the first timing and counting determining unit 230 is yes, that is, the timing duration of the first timing unit 210 is within a first preset duration (including the first preset duration), and the count of the first counting unit 220 is greater than or equal to the first preset number, the first timing and counting determining unit 230 outputs a locking signal or an unlocking signal, which is illustrated by taking the locking signal as an example in this embodiment. In this embodiment, the first preset duration is generally less than or equal to 5s, so as to facilitate preventing false triggering of charging, 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 is greater than or equal to 2, for example, 2, 3, 4, 5, 6, etc., preferably 3, and the first preset number is generally less than or equal to 6 times, so as to facilitate the user operation.
In this embodiment, the first timing count determining unit 230 is electrically connected to the first timing unit 210 and the first counting unit 220 in real time, and when the first timing count determining unit 230 obtains that the first counting unit 220 reaches the first preset number and the first timing unit 210 does not reach the first preset duration, the first timing count determining unit 230 immediately outputs the locking signal, or the first timing count determining unit 230 waits for the first timing unit 210 to reach the first preset duration and then outputs the locking signal. In other embodiments of the present application, the first timing count determining unit 230 is connected to the first timing unit 210 and the first counting unit 220, when the first timing unit 210 reaches the first preset duration, the first timing unit 210 outputs a signal to the first timing count determining unit 230, the first timing count determining unit 230 obtains the count of the first counting unit 220 at this time, and then determines whether the count number is greater than or equal to the first preset number, if so, a locking signal is output, and if not, the original signal output is maintained.
And S18, if the judgment result is yes, controlling the electronic cigarette to enter a locking state or an unlocking state.
The child lock control circuit 200 further includes a child lock control unit 240, where the child lock control unit 240 is electrically connected to the first timing count determining unit 230. If the judgment result of the first timing count judgment unit 230 is yes, that is, the number of counts in the first preset time period is greater than or equal to the first preset number, the first timing count judgment unit 230 outputs a locking signal to the child lock control unit 240, the child lock control unit 240 controls the electronic cigarette to enter a locking state, the power MOS tube M remains disconnected in the locking state, in this embodiment, the child lock control unit 240 continuously outputs a high level signal to the power MOS tube M, and the power MOS tube M remains disconnected and turned off. In this embodiment, the child lock control unit 240 includes a trigger and a switch control unit, where the trigger is used to hold a locking signal and an unlocking signal, the trigger is, for example, an SR trigger, and the switch control unit is electrically connected to the trigger and the suction and blowing detection unit 150, the switch control unit 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 unit includes a nand gate, the locking signal keeps the output of the trigger as a low level signal, so that the output of the trigger is kept as a high level signal after passing through the nand gate, the power MOS transistor M is kept off, the unlocking signal keeps the output of the trigger as a high level signal, so that the output of the nand gate is controlled by the suction and blowing detection unit 150, and when the suction and blowing detection unit 150 determines that the user sucks the electronic cigarette, the switch control unit controls the power MOS transistor M to be continuously turned on or turned on intermittently.
In this embodiment, the state of the electronic cigarette is divided into a locked state and an unlocked state, where the locked state corresponds to the child lock protection function, when the electronic cigarette is in the locked state, the child lock control unit 240 continues to control the power MOS tube M to keep off, so that the heating element 130 is not heated, and further, the tobacco tar is not atomized for the user to suck, that is, no smoke occurs even if the user sucks the electronic cigarette. The unlocking state corresponds to unlocking the child lock protection function, when a user sucks the electronic cigarette, the child lock control unit 240 controls the power MOS tube M to be continuously or intermittently conducted, and intermittent conduction means that the child lock control unit 240 outputs square wave signals in a PWM mode and a PFM mode, and the duty ratio of the square wave signals is adjusted to be used for controlling output power.
In addition, in other embodiments of the present application, if the result of the determination by the first timing count determining unit 230 is yes, that is, the number of counts in the first preset time period is greater than or equal to the first preset number, the first timing count determining unit 230 outputs an unlock signal to the child lock control unit 240, the child lock control unit 240 controls the electronic cigarette to enter an unlock state, and when the electronic cigarette is in the unlock state, the power MOS tube M is continuously turned on or intermittently turned on, and when the electronic cigarette is in the suction state, the child lock control unit 240 continuously outputs a low level signal or intermittently outputs a low level signal to the power MOS tube M, and the power MOS tube M is continuously turned on or intermittently turned on.
In this embodiment, through judging the duration of the first state, the situation that the electronic cigarette is erroneously brought into the locking state or the unlocking state due to environmental change, temperature change, abnormal electronic cigarette and the like can be prevented, and trouble caused to the use of the user can be prevented, for example, the user can find that the electric quantity of the electronic cigarette is lower in the use process of the unlocking state, the charging interface 160 is connected through the charger to charge the electronic cigarette, the user can still need to continue to use the electronic cigarette at the moment, the situation that the user charges the electronic cigarette to bring the electronic cigarette into the locking state and the user cannot use the electronic cigarette is avoided, the use experience of the user is improved, and the stability of the electronic cigarette is improved. Also, the trigger valid signal is received by the first timing unit 210 and triggers the start of timing; receiving the trigger effective signal and triggering counting; judging whether the counting number is larger than or equal to the first preset number in the first preset time period; if the judgment result is yes, controlling the electronic cigarette to enter a locking state or an unlocking state. According to the embodiment, the first state is counted and also is timed, and only if the counted number is greater than or equal to the first preset number in the first preset time, the electronic cigarette can change the locking state or the unlocking state, so that the difficulty of locking or unlocking is improved, and the use safety of the electronic cigarette is improved. In addition, the third duration determining unit 260 is used in combination with the count, so as to further prevent the electronic cigarette from being triggered by mistake.
In the present embodiment, after step S14, further includes:
acquiring information of the electronic cigarette entering a non-first state from the first state;
triggering the fourth timing unit 281 to start timing and lock the third timing unit 250;
judging whether the timing duration of the fourth timing unit 281 is greater than or equal to a fourth preset duration;
if the determination results are yes, the lock on the third time counting unit 250 is released.
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 this 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 state detecting unit and the third time length determining unit 260, the fourth time length determining unit 282 is electrically connected to the fourth timing unit 281 and the third time length determining unit 250, and the third time length determining unit 250 is also electrically connected to the state detecting unit and the third time length determining unit 260. When the third duration determining unit 260 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 250 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 250 is locked, that is, enters the locked state, the third timing unit 250 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 250 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 time 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 time 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 unlocking signal to the third timing unit 250, the third timing unit 250 is unlocked, the third timing unit 250 is in an unlocked state, and thereafter the third timing unit 250 acquires information that the electronic cigarette enters the first state, and the third timing unit 250 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 250 may count again effectively, that is, after outputting the trigger valid signal, the third timing unit 250 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 addition, in other embodiments of the present application, after step S14, the method further includes:
acquiring information of the electronic cigarette entering a non-first state from the first state;
triggering the fourth timing unit 281 to start timing and lock the count;
judging whether the timing duration of the fourth timing unit 281 is greater than or equal to a fourth preset duration;
if the determination results are yes, the third timer unit 250 is reset, and the lock on the count is released.
This embodiment also prevents the signal corresponding to the first state from jittering, resulting in miscounting. Specifically, in this embodiment, referring to fig. 4, 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 state detecting unit and the third time length determining unit 260, the fourth time length determining unit 282 is electrically connected to the fourth timing unit 281, the third timing unit 250 and the first counting unit, and the first counting unit is also electrically connected to the state detecting unit and the third time length determining unit 260. When the third duration determining unit 260 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 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 is locked, namely enters the locking state, the first counting unit does not count and increase even if receiving the trigger valid signal after being locked, namely the first counting unit keeps the original count value in the locking state, the count value is not increased, and only the first counting unit in the unlocking state after being unlocked receives the trigger valid signal and counts and increases one. 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 resets, 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 250, the timing of the third timing unit 250 is stopped and reset, that is, resets, while the fourth time length determining unit outputs an unlock signal to the first counting unit, the first counting unit is unlocked, the first counting unit enters the unlocked state, after which the first counting unit acquires a trigger valid signal again, and the first counting unit 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, please refer to fig. 2 and fig. 3 in combination, the child lock control method further includes:
acquiring information of the electronic cigarette entering a non-first state from the first state;
the third timer unit 250 stops the timer and the timer is set to zero.
When the electronic cigarette is changed from the charging state to the non-charging state, that is, the electronic cigarette is changed from the first state to the non-first state, the state detection unit knows that the electronic cigarette is changed from the first state to the non-first state, the state detection unit sends an uncharged signal to the third timing unit 250, the third timing unit 250 locks the uncharged signal to obtain information that the electronic cigarette is changed from the first state to the non-first state, the third timing unit 250 stops timing, and the timing duration of the third timing unit 250 is set to zero. In this embodiment, the third timing unit 250 knows that the e-cigarette is changed from the uncharged state to the charged state through the rising edge, and knows that the e-cigarette is changed from the charged state to the uncharged state through the falling edge, or vice versa, which is beneficial to accurate start and timing of timing.
In this embodiment, the child lock control method further includes: if the result of the judgment that whether the duration of the electronic cigarette in the first state is greater than or equal to the third preset duration is yes, the third timing unit 250 stops timing and the timing is set to zero.
If the result of the determination by the third duration determining unit 260 is yes, the third timing unit 250 is still reset, that is, the third timing unit 250 stops timing at this time, and the timing duration is set to zero, the first timing unit 210 resumes the initial state, so that the subsequent charging signal is convenient to count again, and even if the first state is maintained, since no edge signal arrives, the third timing unit 250 will not start counting, and only the electronic cigarette is changed from the first state to the non-first state and then to the first state, the first timing unit 210 will start counting again. In the present embodiment, the first timing determining unit completes the determination before the first timing unit 210 resets.
In this embodiment, the child lock control method further includes: the trigger valid signal is again acquired and the count is incremented by 1.
Specifically, after the first counting unit 220 triggers counting and the first counting unit 210 triggers counting, the first counting unit 210 and the first counting unit 220 do not stop working, when the user pulls out the charger connector and then the charging management unit 120 recognizes that the electronic cigarette is changed from the charging state to the uncharged state, the third counting unit 250 stops counting and the time duration is set to zero, after that, when the user inserts the charger connector again to charge, the third counting unit 250 starts to count again, and the charging duration exceeds the third preset duration, the third duration judging unit 260 outputs a trigger effective signal again, the first counting unit 210 and the first counting unit 220 receive the trigger effective signal again, the first counting unit 220 adds 1 on the basis of original counting, for example, the count value of the original first counting unit 220 is 1, and the count value of the first counting unit 220 is added 1, namely, the count value becomes 2 after the user inserts the charger connector again to charge; the first timing unit 210 keeps working, that is, the first timing unit 210 keeps timing as long as the first timing unit 210 does not receive the signal of stopping timing or resetting after the first time of receiving the trigger effective signal and being triggered to timing.
In this embodiment, the child lock control method further includes: if the timing time of the first timing unit 210 is greater than or equal to the first preset time, the counting is stopped and the first timing unit 210 stops timing, and the counting and counting are set to zero.
Whether the judgment result of the first timing count judgment unit 230 is yes or no, as long as the timing duration of the first timing unit 210 reaches the first preset duration, the first timing unit 210 resets, meanwhile, the first timing unit 210 sends a signal to the first counting unit 220, the first counting unit 220 resets, that is, the first timing unit 210 stops timing, the first counting unit 220 stops counting, the timing duration is set to zero, the number of counts is set to zero, the first timing unit 210 and the first counting unit 220 recover to an initial state, and then the trigger valid signal is received again to restart timing and counting. In the present embodiment, the first timing count determining unit 230 completes the determination before the first timing unit 210 and the first counting unit 220 are reset.
Optionally, the child lock control method further includes: if the time length is smaller than the first preset time length and the count number reaches the first preset number, stopping counting and timing, and setting the count number and the time length to zero.
If the first timing count determining unit 230 obtains that the number counted by the first counting unit 220 reaches the first preset number, and the timing duration of the first timing unit 210 is less than the first preset duration, the first timing count determining unit 230 outputs a signal to the first timing unit 210 and the first counting unit 220, and the first timing unit 210 and the first counting unit 220 are reset, where the signal may be the same as the locking signal or different signals.
In this embodiment, the child lock control method further includes: acquiring information of the electronic cigarette entering a locking state; the unlocking unit starts to operate.
In this embodiment, the child lock control circuit 200 includes a locking unit and an unlocking unit, the locking unit includes a first timing unit 210, a first counting unit 220, and a first timing count determining unit 230, the unlocking unit may be set with reference to the locking unit, for example, the unlocking unit includes a second timing unit, a second counting unit, and a second timing count determining unit, a specific action of the second timing unit may refer to the first timing unit 210, a specific action of the second counting unit may refer to the first counting unit 220, a specific action of the second timing count determining unit may refer to the first timing count determining unit 230, and the second timing count determining unit is used for outputting an unlocking signal. In addition, in other embodiments of the present application, the unlocking unit includes a first timer unit 210, a first counter unit 220, and a first timer count determination unit 230, and the locking unit may be set with reference to the unlocking unit, for example, the locking unit includes a second timer unit, a second counter unit, and a second timer count determination unit, the specific action of the second timer unit may refer to the first timer unit 210, the specific action of the second counter unit may refer to the first counter unit 220, the specific action of the second timer count determination unit may refer to the first timer count determination unit 230, and the second timer count determination unit may be used for outputting the locking signal, or the second counter unit may not be set, where the second timer count determination unit is the second duration determination unit. In this embodiment, when the electronic cigarette is in the unlocked state, the unlocking unit stops working. The unlocking unit is electrically connected with the child lock control unit 240, and when the unlocking unit obtains the information that the electronic cigarette enters the locking state, the unlocking unit resumes working, and after receiving the trigger signal, the first timing unit 210 starts timing, and the first counting unit 220 starts counting. The electronic cigarette is convenient to unlock and enter the unlocking state after being arranged, so that the electronic cigarette is convenient for a user to use normally, and children are prevented from using the electronic cigarette.
In this embodiment, the child lock control method further includes: acquiring information of the electronic cigarette entering an unlocking state; the unlocking unit stops working.
The unlocking unit comprises a second timing unit, a second counting unit and a second timing counting judging unit, when the electronic cigarette is in an unlocking state, the unlocking unit is triggered to stop working, in the embodiment, the unlocking unit stops working, the second timing unit and the second counting unit maintain an initial state, the second timing counting judging unit can work or not work, and when the electronic cigarette is normally in the unlocking state and normally used, a user normally sucks the electronic cigarette, or blows, charges or the like, the second timing unit and the second counting unit do not perform timing and counting, so that the following conditions can be prevented: the second timing unit and the second counting unit receive the trigger signal to perform timing and counting when the user charges or inhales and blows normally, when the electronic cigarette enters the locked state, the second timing unit may still be timing, while the count value of the second counting unit remains, so that when the child lock control circuit 200 receives less than a second preset number of state transitions in the locked state, the child lock control circuit may unlock, the second preset number of actions refers to the first preset number, the second preset number is for example 2 times, 3 times, 4 times, 5 times, 6 times, and the like, and the second timing unit outputs an unlock signal, which may cause logic errors, to cause trouble to the use of the user, for example, in the unlocked state before locking, the second timing unit is triggered to start timing, the second counting unit counts to be 1, after entering the locked state, and when the child lock control circuit 200 acquires the number of times that the electronic cigarette is converted from the un-smoked state to the smoked state (for example, the unlock is performed for two times in the second preset duration is described as being 1 time), the second preset number is satisfied, and the second timing judging unit outputs the unlock signal, so that the electronic cigarette is confused, and the electronic cigarette is in the unlocked state, which is in the state, and the expected operation of the user is caused by the user. According to the embodiment, the unlocking unit does not work when the electronic cigarette is in the unlocking state, so that the trouble can be avoided, and the energy consumption can be reduced.
In addition, in other embodiments of the present application, the unlocking unit may be operated all the time, that is, whether in the unlocked state or in the locked state, and in order to prevent the above situation, the child lock control method further includes: acquiring information of the electronic cigarette entering a locking state; triggering the unlocking unit to reset. Therefore, the unlocking unit acquires the information that the electronic cigarette enters the locking state, the second timing unit and the second counting unit reset to stop timing and counting, the timing and counting are set to zero and return to the initial state, and the original timing and counting are cleared.
Corresponding to the child lock control method of the electronic cigarette in the above embodiment, fig. 3 shows a block diagram of the child lock control circuit 200 of the electronic cigarette and related element connection provided in the embodiment of the present application, and for convenience of explanation, only the portion related to the embodiment of the present application is shown.
Referring to fig. 1 and 3 in combination, the child lock control circuit 200 includes:
the state detection unit is used for detecting the state of the electronic cigarette, wherein the state of the electronic cigarette comprises a first state and a non-first state;
the third timing unit 250 is electrically connected with the state detection unit, and the third timing unit 250 triggers to start timing when acquiring the information of the electronic cigarette entering the first state;
A third duration determining unit 260, electrically connected to the third timing unit 250, configured to determine whether the duration of the electronic cigarette in the first state is greater than or equal to a third preset duration, where the third duration determining unit 260 outputs a trigger valid signal if the determination result of the third duration determining unit 260 is yes;
a first counting unit 220 electrically connected to the third duration judging unit 260, and configured to trigger counting when receiving the trigger valid signal;
a first timing count determining unit 230 electrically connected to the first counting unit 220, for determining whether the count number of the first counting unit 220 is greater than or equal to a first preset number within a first preset time period;
the child lock control unit 240 is electrically connected to the first timing count determining unit 230, and is configured to control the electronic cigarette to enter the locked state or the unlocked state if the determination result of the first timing count determining unit 230 is yes.
In this embodiment, the child lock control circuit 200 further includes a first timing unit 210, where the first timing unit 210 is electrically connected to the third duration determining unit 260, and the first timing unit 210 receives the trigger valid signal and triggers to start timing.
In other embodiments of the present application, the child lock control circuit 200 further includes a first timing unit 210, where the first timing unit 210 is electrically connected to the state detection unit, and the first timing unit 210 is configured to acquire information that the electronic cigarette enters the first state, and trigger the electronic cigarette to start timing.
In this embodiment, the child lock control circuit 200 further includes a fourth timing unit 281 and a fourth time length judging unit 282, where the fourth timing unit 281 is configured to obtain a trigger valid signal, and is configured to obtain information that the electronic cigarette enters a non-first state from a first state, and trigger to start timing; the third timing unit 250 is configured to obtain a trigger valid signal, and is configured to obtain information that the electronic cigarette enters a non-first state from the first state, and lock the electronic cigarette; the fourth time length determining unit 282 is configured to determine whether the time length of the fourth time counting unit 281 is greater than or equal to a fourth preset time length, and if the determination result of the fourth time length determining unit 282 is yes, unlock the third time counting unit 250.
In other embodiments of the present application, the lock control circuit 200 further includes a fourth timing unit 281 and a fourth time length determining unit 282, where the fourth timing unit 281 is configured to obtain a trigger valid signal, and is configured to obtain information that the electronic cigarette enters a non-first state from the first state, and trigger to start timing; the first counting unit 220 is configured to obtain a trigger valid signal, and is configured to obtain information that the electronic cigarette enters a non-first state from the first state, and perform count locking; the fourth time length determining unit 282 is configured to determine whether the time length of the fourth time length determining unit 281 is greater than or equal to a fourth preset time length, and if the determination result of the fourth time length determining unit 282 is yes, reset the third time length determining unit 250, and unlock the count of the first counting unit 220.
In the present embodiment, the two units of the third time counting unit 250 and the third duration judging unit 260 may be implemented by a conventional timer, that is, although they are functionally divided into two units as described above, they may be implemented by one circuit module, which is also within the scope of the present application. In the present embodiment, the three units of the first timer unit 210, the first counting unit 220, and the first timer count determining unit 230 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 two units of the fourth timing unit 281 and the fourth time length judgment unit 282 may be implemented by a conventional timer, that is, although the foregoing two units are functionally divided, it is actually possible to implement one circuit module, which is also within the scope of the present application.
In this embodiment, the third timing unit 250 is configured to obtain information that the electronic cigarette enters a non-first state from the first state; the third timer unit 250 stops the timer and the timer is set to zero.
And if the third duration determination is yes, the third timing unit 250 stops timing and sets the timing to zero.
In this embodiment, the first counting unit 220 is further configured to acquire the trigger valid signal again, and count by 1.
In this embodiment, if the timing time of the first timing unit 210 is greater than or equal to the first preset time, the counting is stopped and the first timing unit 210 stops counting, and the counting and counting are set to zero. Optionally, the first timing count determining unit 230 is configured to stop counting and timing if the timing duration is less than the first preset duration and the count number reaches the first preset number, and the count number and the timing duration are all set to zero.
In this embodiment, the child lock control circuit 200 includes an unlocking unit, where the unlocking unit is used to obtain information that the electronic cigarette enters a locked state; the unlocking unit starts to operate or resets.
In this embodiment, the unlocking unit is configured to obtain information that the electronic cigarette enters an unlocking state, and the unlocking unit stops working.
It will be apparent to those skilled in the art 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 functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. 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.
Fig. 5 is a schematic diagram of a child lock control device 300 according to an embodiment of the application. As shown in fig. 5, the child lock control device 300 of this embodiment includes: at least one processor 320 (only one is shown in fig. 5), a memory 310 and a computer program stored in the memory 310 and executable on the processor 320, which processor 320 implements the steps of the child lock control method embodiments described above when executing the computer program. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the child lock control apparatus 300 and is not limiting of the child lock control apparatus 300, and may include more or fewer components than shown, or may combine certain components, or may include different components, such as input-output devices, network access devices, etc. The processor 320 may be a central processing unit (Central Processing Unit, CPU), the processor 320 may also be other general purpose processors 320, digital signal processors 320 (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor 320 may be a microprocessor 320 or the processor 320 may be any conventional processor 320 or the like.
The memory 310 may be an internal storage unit of the child lock control device 300 in some embodiments, such as a hard disk or a memory of the child lock control device 300. The memory 310 may also be an external storage device of the child lock control apparatus 300 in other embodiments, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the child lock control apparatus 300. Further, the memory 310 may also include both an internal memory unit and an external memory device of the child lock control device 300. The memory 310 is used to store an operating system, application programs, boot loader (BootLoader), data, and other programs, such as program code for the computer program. The memory 310 may also be used to temporarily store data that has been output or is to be output. The child lock control device 300 is, for example, an electronic cigarette.
The embodiment of the present application further provides a storage medium, where a computer program is stored, where the computer program, when executed by the processor 320, may implement the steps in the above-mentioned embodiments of the child lock control method.
Embodiments of the present application provide a computer program product enabling a terminal to carry out the steps of the above-described child lock control method embodiments when the computer program product is run on the terminal.
The embodiment of the application also provides an electronic cigarette, please continue to refer to fig. 1 and 3, the electronic cigarette comprises the child lock control circuit 200, the electronic cigarette further comprises a battery 110, a power MOS tube M and a heating element 130, the heating element 130 and the power MOS tube M are connected in series to form a heating branch, and two ends of the heating branch are correspondingly electrically connected with the positive electrode and the negative electrode of the battery 110; the control end of the power MOS tube M is electrically connected with the child lock control circuit 200. In the present embodiment, the state detection unit of the child lock control circuit 200 is the charge management unit 120. The present application is not limited thereto, and in other embodiments of the present application, the state detecting unit may be a puff detecting unit 150, a cartridge detecting unit, or the like, wherein the puff detecting unit 150 is electrically connected to the airflow sensor 140.
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.

Claims (10)

1. The child lock control method of the electronic cigarette is characterized by comprising the following steps of:
acquiring information of the electronic cigarette entering a first state;
triggering a third timing unit to perform timing;
judging whether the duration of the electronic cigarette in the first state is greater than or equal to a third preset duration;
if the judgment result is yes, outputting a trigger effective signal;
receiving the trigger effective signal and triggering counting;
judging whether the number of counts 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, controlling the electronic cigarette to enter a locking state or an unlocking state.
2. The child lock control method according to claim 1, wherein,
if the judgment result is yes, outputting a trigger effective signal further comprises: the first timing unit receives the trigger effective signal and triggers to start timing; or alternatively;
before the step of judging whether the duration of the electronic cigarette in the first state is greater than or equal to the third preset duration, the method further comprises the following steps: triggering the first timing unit to start timing.
3. The child lock control method according to claim 1, wherein after outputting the trigger valid signal if the determination result is yes in the step, further comprising:
acquiring information of the electronic cigarette entering a non-first state from the first state;
triggering a fourth timing unit to start timing and locking the third timing unit;
judging whether the timing duration of the fourth timing unit is greater than or equal to a fourth preset duration;
if the judgment results are yes, unlocking the third time counting unit.
4. The child lock control method according to claim 1, wherein after outputting the trigger valid signal if the determination result is yes in the step, further comprising:
Acquiring information of the electronic cigarette entering a non-first state from the first state;
triggering a fourth timing unit to start timing and locking the count;
judging whether the timing duration of the fourth timing unit is greater than or equal to a fourth preset duration;
if the judgment results are yes, resetting the third timing unit, and unlocking the counting.
5. The child lock control method according to any one of claims 1-4, further comprising: acquiring information of the electronic cigarette entering a non-first state from the first state; the third timing unit stops timing and the timing is set to zero; or,
further comprises: if the judging result of judging whether the duration of the electronic cigarette in the first state is greater than or equal to the third preset duration is yes, the third timing unit stops timing and the timing is set to zero.
6. The child lock control method according to any one of claims 1-4, wherein the first state is an inhalation state, a blowing state, a cartridge insertion state, or a charging state; and/or the number of the groups of groups,
the third timing duration ranges from 10ms to 100ms; and/or the number of the groups of groups,
the range of the first preset duration is 1s-5s; and/or the number of the groups of groups,
the first preset number ranges from 2 to 6; and/or the number of the groups of groups,
The third timing unit starts timing triggered by an edge signal or a level signal.
7. A child lock control circuit of an electronic cigarette, comprising:
the state detection unit is used for detecting the state of the electronic cigarette, wherein the state of the electronic cigarette comprises a first state and a non-first state;
the third timing unit is electrically connected with the state detection unit, and starts timing when the third timing unit receives a signal that the electronic cigarette is in the first state;
the third time length judging unit is electrically connected with the third time counting unit and is used for outputting a triggering effective signal when judging that the continuous time length of the electronic cigarette in the first state is greater than or equal to a third preset time length;
the first counting unit is electrically connected with the third duration judging unit and counts when receiving the trigger effective signal;
the first timing counting judgment unit is electrically connected with the first counting unit and is used for judging that the counting number of the first counting unit is larger than or equal to the first preset number in the first preset time period and outputting a child lock control signal;
and the child lock control unit is electrically connected with the first timing and counting judging unit and is used for receiving the child lock control signal so as to enable the electronic cigarette to enter a locking state or an unlocking state.
8. The child lock control circuit of claim 7, wherein the status detection unit is a puff detection unit, a cartridge detection unit, or a charge management unit.
9. A child lock control device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the child lock control method of an electronic cigarette as claimed in any one of claims 1 to 6.
10. An electronic cigarette, comprising:
a child lock control circuit according to claim 7 or 8;
the power MOS tube is connected with the child lock control circuit in series, and the child lock control circuit is connected with the child lock control circuit.
CN202210892553.7A 2022-07-27 2022-07-27 Child lock control method, child lock control circuit, child lock control device and electronic cigarette Pending CN117223904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210892553.7A CN117223904A (en) 2022-07-27 2022-07-27 Child lock control method, child lock control circuit, child lock control device and electronic cigarette

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210892553.7A CN117223904A (en) 2022-07-27 2022-07-27 Child lock control method, child lock control circuit, child lock control device and electronic cigarette

Publications (1)

Publication Number Publication Date
CN117223904A true CN117223904A (en) 2023-12-15

Family

ID=89089929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210892553.7A Pending CN117223904A (en) 2022-07-27 2022-07-27 Child lock control method, child lock control circuit, child lock control device and electronic cigarette

Country Status (1)

Country Link
CN (1) CN117223904A (en)

Similar Documents

Publication Publication Date Title
CN115363256A (en) Child lock control circuit and method and electronic cigarette
CN210005908U (en) Electronic cigarette plug detection control mechanism and electronic cigarette
CN107832595A (en) A kind of locking means and relevant device
CN114401468A (en) Wireless earphone assembly
CN117223904A (en) Child lock control method, child lock control circuit, child lock control device and electronic cigarette
CN104184479A (en) De-jittering button detection method capable of avoiding omission of events
CN104536428B (en) Multimedia remote control
CN114422898A (en) Wireless earphone assembly
CN117223903A (en) Child lock control method, child lock control circuit, child lock control device and electronic cigarette
CN117223905A (en) Child lock control method, child lock control circuit, child lock control device and electronic cigarette
CN106919857B (en) Chip, and starting protection device and method of chip
CN115956709A (en) Child lock control circuit and method and electronic cigarette
CN113193631B (en) Power supply control device, power supply control method, storage medium, and electronic device
CN114325481B (en) Power-off duration detection method and device, electronic equipment and storage medium
CN106776086A (en) Chip initiation method and its chip initiation system
TWI717108B (en) A method for dynamically switching an electronic cigarette system
WO2024082449A1 (en) Child safety lock control method and child safety lock control circuit, device, and electronic cigarette
CN108600050A (en) Order transmission method, device, computer equipment and readable storage medium storing program for executing
JPH10132872A (en) Low-voltage detection circuit
CN116564295A (en) Equipment control method and device, storage medium and electronic device
WO2023134449A1 (en) Wireless earbud assembly, battery protection circuit, battery assembly, electronic apparatus and electronic assembly
CN219845066U (en) Electronic cigarette circuit, electronic cigarette circuit system with child lock and control circuit of electronic cigarette circuit system
CN106557138A (en) Servo-drive system and random start device
CN108460858A (en) A kind of intelligent game timekeeping system
CN217825283U (en) Bluetooth chip reset circuit and Bluetooth headset

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination