Cigarette cartridge state detection device and electronic cigarette device
By designing a cigarette cartridge state detection device in an electronic cigarette device, using the time allocation of periodic signals and sampling signals, effective detection of the cigarette cartridge state without increasing power consumption is achieved, and detection efficiency in the prior art is solved Low problem.
Patent Information
- Application Number
- CN202411528537.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-07
AI Technical Summary
It is difficult for existing electronic cigarette devices to achieve effective detection without increasing power consumption when detecting the state of the cigarette cartridge, resulting in low detection efficiency.
A smoke cartridge state detection device is designed, including a signal generation unit, a smoke cartridge detection unit and a signal processing unit. By generating periodic control signals and sampling signals, the opening time of the control signals and sampling signals is smaller than its closing time. The detection unit detects the state of the cartridge within the opening time of the control signal, and the signal processing unit processes and outputs the result within the opening time of the sampling signal.
It realizes effective detection of the existence status of the cigarette cartridge without increasing the power consumption of the electronic cigarette device, reduces the power consumption of the cigarette cartridge detection and improves the detection efficiency.
Smart Images

Figure CN119257315A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic cigarettes, and in particular to a cigarette cartridge state detection device and an electronic cigarette device. Background Art
[0002] As the market for electronic cigarette devices develops, more and more cartridge-changing products are available. To detect the status of the cartridge and the change of the status, electronic cigarette devices need to add a cartridge replacement display function, which will inevitably increase power consumption.
[0003] Therefore, how to effectively detect the presence status of the cigarette cartridge without increasing the power consumption of the electronic cigarette device has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] The present invention provides a cigarette cartridge state detection device and an electronic cigarette device, which solve the problem in the related art that the cigarette cartridge state cannot be detected without increasing power consumption.
[0005] As a first aspect of the present invention, a cartridge state detection device is provided, which includes: a signal generating unit, a cartridge detection unit and a signal processing unit, wherein the cartridge detection unit is electrically connected to the signal generating unit, the signal processing unit is electrically connected to the cartridge detection unit, and the cartridge detection unit can also be electrically connected to a cartridge in an electronic cigarette device; The signal generating unit is used to generate a periodic control signal and a sampling signal according to a system clock, wherein the on time length of the control signal is shorter than the off time length of the control signal, the on time length of the sampling signal is shorter than the off time length of the sampling signal, and the on time length of the control signal is longer than the on time length of the sampling signal; The cigarette cartridge detection unit is used to detect the existence state of the cigarette cartridge within the on time of the control signal and generate a cigarette cartridge state detection signal; The signal processing unit is used to perform signal processing on the cartridge status detection signal within the opening time of the sampling signal, and generate and output a cartridge status result signal.
[0006] Further, the on time length of the control signal is shorter than the off time length of the control signal, including: The range of the on time length of the control signal / (on time length of the control signal + off time length of the control signal) is 2 / 1024~16 / 1024; The on time length of the sampling signal is shorter than the off time length of the sampling signal, comprising: The range of the on time length of the sampling signal / (on time length of the sampling signal + off time length of the sampling signal) is 1 / 1024~8 / 1024.
[0007] Further, the signal generating unit comprises: a clock counting module, a signal generating module and a synchronization module, the signal generating module is electrically connected to the clock counting module, and the synchronization module is electrically connected to the signal generating module and the clock counting module respectively. The clock counting module is capable of periodically counting the system clock; The signal generating module is used to output a low-level control signal when the count value in each counting cycle reaches a first threshold value, and output a high-level control signal when the count value in the counting cycle reaches a second threshold value from the first threshold value; and output a low-level sampling signal when the count value in each counting cycle reaches a third threshold value; and output a high-level sampling signal when the count value in the counting cycle reaches a second threshold value from the third threshold value, wherein the second threshold value is the maximum value of the system clock count of each counting cycle, the difference between the second threshold value and the first threshold value is less than the first threshold value, the difference between the second threshold value and the third threshold value is less than the third threshold value, and the first threshold value is less than the third threshold value; The synchronization module is used to synchronously process the generated control signal and the sampling signal.
[0008] Further, when the counting width of the clock counting module is 10 bits, the clock counting module includes a first D flip-flop, a second D flip-flop, a third D flip-flop, a fourth D flip-flop, a fifth D flip-flop, a sixth D flip-flop, a seventh D flip-flop, an eighth D flip-flop, a ninth D flip-flop and a tenth D flip-flop, The clock end of the first D flip-flop is used to connect to the system clock, the QN end of the first D flip-flop is connected to the data input D end of the first D flip-flop, the QN end of the first D flip-flop is also connected to the clock end of the second D flip-flop, the QN end of the second D flip-flop is connected to the data input D end of the second D flip-flop, the QN end of the second D flip-flop is also connected to the clock end of the third D flip-flop, the QN end of the third D flip-flop is connected to the data input D end of the third D flip-flop, the QN end of the third D flip-flop is also connected to the clock end of the fourth D flip-flop, the QN end of the fourth D flip-flop is connected to the data input D end of the fourth D flip-flop, the QN end of the fourth D flip-flop is also connected to the clock end of the fifth D flip-flop, the QN end of the fifth D flip-flop is connected to the data input D end of the fifth D flip-flop, and the QN end of the fifth D flip-flop is also connected to the clock end of the sixth D flip-flop. The QN terminal of the sixth D flip-flop is connected to the data input D terminal of the sixth D flip-flop, the QN terminal of the sixth D flip-flop is also connected to the clock terminal of the seventh D flip-flop, the QN terminal of the seventh D flip-flop is connected to the data input D terminal of the seventh D flip-flop, the QN terminal of the seventh D flip-flop is also connected to the clock terminal of the eighth D flip-flop, the QN terminal of the eighth D flip-flop is connected to the data input D terminal of the eighth D flip-flop, the QN terminal of the eighth D flip-flop is also connected to the clock terminal of the ninth D flip-flop, the QN terminal of the ninth D flip-flop is connected to the data input D terminal of the ninth D flip-flop, the QN terminal of the ninth D flip-flop is also connected to the clock terminal of the tenth D flip-flop, the QN terminal of the tenth D flip-flop is connected to the data input D terminal of the tenth D flip-flop, the QN terminal of the first D flip-flop is also connected to the synchronization module, and the Q terminal of the second D flip-flop to the Q terminal of the tenth D flip-flop are all connected to the signal generation module; The signal generating module comprises a first AND gate, a second AND gate, a third AND gate, a fourth AND gate and a fifth AND gate, wherein three input terminals of the first AND gate are respectively connected to the Q terminal of the eighth D flip-flop, the Q terminal of the ninth D flip-flop and the Q terminal of the tenth D flip-flop, two input terminals of the second AND gate are respectively connected to the Q terminal of the sixth D flip-flop and the Q terminal of the seventh D flip-flop, three input terminals of the third AND gate are respectively connected to the Q terminal of the third D flip-flop, the Q terminal of the fourth D flip-flop and the Q terminal of the fifth D flip-flop, three input terminals of the fourth AND gate are respectively connected to the output terminal of the first AND gate, the output terminal of the second AND gate and the output terminal of the third AND gate, the output terminal of the fourth AND gate is connected to one input terminal of the fifth AND gate, the other input terminal of the fifth AND gate is connected to the Q terminal of the second D flip-flop, and the output terminal of the fifth AND gate is connected to the synchronization module; The synchronization module includes an eleventh D flip-flop and a twelfth D flip-flop, the clock end of the eleventh D flip-flop and the clock end of the twelfth D flip-flop are both connected to the QN end of the first D flip-flop, the data input D end of the eleventh D flip-flop is connected to the output end of the fourth AND gate, the Q end of the eleventh D flip-flop outputs a control signal, the data input D end of the twelfth D flip-flop is connected to the output end of the fifth AND gate, and the Q end of the twelfth D flip-flop outputs a sampling signal.
[0009] Furthermore, the cigarette cartridge detection unit includes: a control signal input module, a detection module, an initial state control module and a detection signal output module, wherein the detection module and the initial state control module are both connected to the control signal input module, and the detection signal output module is respectively connected to the detection module and the initial state control module. The control signal input module is used to connect to the output end of the signal generating unit and process the received control signal; The detection module is used for not conducting when the control signal is in the off time, and conducting when the control signal is in the on time; The initial state control module is used to conduct when the control signal is in the closing time, and not conduct when the control signal is in the opening time; The detection signal output module is used to output a first detection signal when the detection module is turned on, and to output a second detection signal when the initial control module is turned on, wherein the second detection signal is a high-level signal, the first detection signal is a high-level signal when the detection module detects the presence of a cigarette cartridge, and the first detection signal is a low-level signal when the detection module detects the absence of a cigarette cartridge.
[0010] Further, the control signal input module includes: a first inverter, the input end of the first inverter is connected to the output end of the signal generating unit, and the output end of the first inverter is respectively connected to the detection module and the initial state control module; The detection module comprises: a detection switch tube and a detection resistor, wherein the control end of the detection switch tube is connected to the output end of the first inverter, the first end of the detection switch tube is connected to the positive power supply end, the second end of the detection switch tube is connected to one end of the detection resistor, and the other end of the detection resistor is connected to the detection signal output module; The initial state control module comprises: an initial state switch tube and an initial state resistor, wherein the control end of the initial state switch tube is connected to the output end of the first inverter, the first end of the initial state switch tube is connected to one end of the initial state resistor, the second end of the initial state switch tube is connected to the signal ground, the other end of the initial state resistor is connected to the detection signal output module, and the other end of the initial state resistor and the other end of the detection resistor are both used to connect to the cigarette cartridge in the electronic cigarette device; The detection signal output module includes: a Schmitt trigger and a second inverter, the input end of the Schmitt trigger is respectively connected to the other end of the detection resistor and the other end of the initial state resistor, the output end of the Schmitt trigger is connected to the input end of the second inverter, and the output end of the second inverter is the output end of the detection signal output module.
[0011] Furthermore, the signal processing unit includes: a cartridge status output module, which is used to output a level signal representing the current cartridge status within the opening time of the sampling signal, and the current cartridge status at least includes whether the current cartridge exists or does not exist.
[0012] Furthermore, the signal processing unit further includes: a cartridge pulse signal processing module and a cartridge pulse signal output module, the cartridge pulse signal processing module is electrically connected to the cartridge state output module, the cartridge pulse signal output module is electrically connected to the cartridge pulse signal processing module, The cartridge pulse signal processing module is used to synchronously process the level signal representing the current cartridge state to obtain a synchronous level signal when the current cartridge state changes from existence to non-existence or from non-existence to existence; The cartridge pulse signal output module is used to output a synchronization level signal to obtain a pulse signal representing a current cartridge state change, wherein the current cartridge state change at least includes a change from the presence of a cartridge to the absence of a cartridge or a change from the absence of a cartridge to the presence of a cartridge.
[0013] Further, the cartridge state output module includes: a thirteenth D flip-flop, the clock end of the thirteenth D flip-flop is used to input a sampling signal, the data input D end of the thirteenth D flip-flop is connected to the output end of the cartridge detection unit, and the Q end of the thirteenth D flip-flop outputs a level signal representing the current cartridge state; The cigarette cartridge pulse signal processing module includes: a fourteenth D flip-flop, a third inverter, a fifteenth D flip-flop and a fourth inverter, the clock end of the fourteenth D flip-flop is used to connect the signal processing clock, the data input D end of the fourteenth D flip-flop is connected to the Q end of the thirteenth D flip-flop, the Q end of the fourteenth D flip-flop is connected to the input end of the third inverter, the output end of the third inverter is connected to the data input D end of the fifteenth D flip-flop, the clock end of the fifteenth D flip-flop is used to connect the signal processing clock, and the QN end of the fifteenth D flip-flop is connected to the input end of the fourth inverter; The cigarette cartridge pulse signal output module includes: a sixth AND gate and a seventh AND gate, the first input end of the sixth AND gate is connected to the Q end of the fourteenth D flip-flop, the second input end of the sixth AND gate is connected to the output end of the fourth inverter, the output end of the sixth AND gate is the output end of the cigarette cartridge pulse signal output module, the first input end of the seventh AND gate is connected to the QN end of the fifteenth D flip-flop, the second input end of the seventh AND gate is connected to the output end of the third inverter, and the output end of the seventh AND gate is the output end of the cigarette cartridge pulse signal output module.
[0014] As another aspect of the present invention, an electronic cigarette device is provided, which includes: an electronic cigarette body and the above-mentioned cartridge status detection device, wherein a cartridge is arranged on the electronic cigarette body, the cartridge is electrically connected to the cartridge status detection device, and the cartridge status detection device can detect the status of the cartridge on the electronic cigarette body.
[0015] In the cartridge status detection device provided by the present invention, the signal generating unit generates a periodic control signal and a sampling signal, and the on time of the control signal and the sampling signal are both shorter than their respective off time, and the cartridge detection unit realizes detection of the cartridge within the on time of the control signal, and the signal processing unit realizes processing and output of the cartridge detection signal within the on time of the sampling signal, thereby achieving the purpose of effectively detecting the existence status of the cartridge without increasing the power consumption of the electronic cigarette device. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0017] Figure 1 This is a structural block diagram of the cigarette cartridge detection device provided by the present invention.
[0018] Figure 2 This is a working principle diagram of the signal generating unit provided by the present invention.
[0019] Figure 3 This is a working principle diagram of the cigarette cartridge detection unit provided by the present invention.
[0020] Figure 4 This is a working principle diagram of the signal processing unit provided by the present invention.
[0021] Figure 5 Part of the signal timing diagram provided by the present invention. DETAILED DESCRIPTION
[0022] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] In this embodiment, a cigarette cartridge status detection device is provided. Figure 1 is a structural block diagram of a cigarette cartridge state detection device 100 according to an embodiment of the present invention. Figure 1 As shown, it includes: a signal generating unit 110, a smoke cartridge detection unit 120 and a signal processing unit 130, the smoke cartridge detection unit 120 is electrically connected to the signal generating unit 110, the signal processing unit 130 is electrically connected to the smoke cartridge detection unit 120, and the smoke cartridge detection unit 120 can also be electrically connected to the smoke cartridge in the electronic cigarette device; The signal generating unit 110 is used to generate a periodic control signal and a sampling signal according to a system clock, wherein the on time length of the control signal is shorter than the off time length of the control signal, the on time length of the sampling signal is shorter than the off time length of the sampling signal, and the on time length of the control signal is longer than the on time length of the sampling signal; The cigarette cartridge detection unit 120 is used to detect the existence state of the cigarette cartridge within the on time of the control signal and generate a cigarette cartridge state detection signal; The signal processing unit 130 is used to perform signal processing on the cartridge status detection signal within the opening time of the sampling signal, and generate and output a cartridge status result signal.
[0026] In an embodiment of the present invention, the signal generating unit 110 is capable of generating periodic control signals and sampling signals, and the on time lengths of the generated control signals and sampling signals are both shorter than their respective off time lengths. The cartridge detection unit 120 is capable of detecting the existence status of the cartridge within the on time of the control signal, and the signal processing unit 130 is capable of processing the cartridge status detection signal within the on time of the sampling signal to obtain a cartridge status result signal.
[0027] It should be understood that in order to detect the status of the cigarette cartridge, the embodiment of the present invention controls the cigarette cartridge detection and signal output through the generated control signal and sampling signal. Since the on time of the control signal and the sampling signal is less than the off time, and the cigarette cartridge detection only needs to be carried out during the on time to obtain the detection result, the power consumption of the cigarette cartridge detection can be effectively reduced by the control signal and the sampling signal.
[0028] Therefore, in the cartridge status detection device provided by the present invention, the signal generating unit generates a periodic control signal and a sampling signal, and the on time of the control signal and the sampling signal are both shorter than their respective off time, and the cartridge detection unit realizes detection of the cartridge within the on time of the control signal, and the signal processing unit realizes processing and output of the cartridge detection signal within the on time of the sampling signal, thereby achieving the purpose of effectively detecting the existence status of the cartridge without increasing the power consumption of the electronic cigarette device.
[0029] In an embodiment of the present invention, the on time length of the control signal is shorter than the off time length of the control signal, including: The range of the on time length of the control signal / (on time length of the control signal + off time length of the control signal) is 2 / 1024~16 / 1024; The on time length of the sampling signal is shorter than the off time length of the sampling signal, comprising: The range of the on time length of the sampling signal / (on time length of the sampling signal + off time length of the sampling signal) is 1 / 1024~8 / 1024.
[0030] It should be understood that in the embodiment of the present invention, in each cycle, by setting the on time length of the control signal to 2 / 1024~16 / 1024, and setting the on time length of the sampling signal to 1 / 1024~8 / 1024, the on time lengths of the control signal and the sampling signal are much shorter than their respective off time lengths, and the status detection of whether the cigarette cartridge exists can be completed within this on time, thereby more effectively reducing the power consumption required for cigarette cartridge detection.
[0031] Preferably, in an embodiment of the present invention, the optimal value of the on time length of the control signal / (on time length of the control signal + off time length of the control signal) can be specifically 4 / 1024, that is, the on time length of the control signal / the off time length of the control signal can be specifically 4 / 1020; the optimal value of the on time length of the sampling signal / (on time length of the sampling signal + off time length of the sampling signal) can be specifically 2 / 1024, that is, the on time length of the sampling signal / the off time length of the sampling signal can be specifically 2 / 1022.
[0032] It should be noted that, since the sampled cartridge status signal will be processed under the control of the sampling signal only after the cartridge status detection is realized under the control of the control signal, the opening time of the sampling signal will lag behind the opening time of the control signal.
[0033] In the embodiment of the present invention, Figure 2 As shown, the signal generating unit 110 includes: a clock counting module 111, a signal generating module 112 and a synchronization module 113, wherein the signal generating module 112 is electrically connected to the clock counting module 111, and the synchronization module 113 is electrically connected to the signal generating module 112 and the clock counting module 111 respectively. The clock counting module 111 can periodically count the system clock; The signal generating module 112 is used to output a low-level control signal when the count value in each counting cycle reaches a first threshold value, and output a high-level control signal when the count value in the counting cycle reaches a second threshold value from the first threshold value; and output a low-level sampling signal when the count value in each counting cycle reaches a third threshold value; and output a high-level sampling signal when the count value in the counting cycle reaches a second threshold value from the third threshold value, wherein the second threshold value is the maximum value of the system clock count of each counting cycle, the difference between the second threshold value and the first threshold value is less than the first threshold value, the difference between the second threshold value and the third threshold value is less than the third threshold value, and the first threshold value is less than the third threshold value; The synchronization module 113 is used to synchronize the generated control signal and the sampling signal.
[0034] In the embodiment of the present invention, when the signal generating unit 110 generates the control signal and the sampling signal, the system clock is periodically counted by the clock counting module 111, and the signal generating module 112 can determine the generation of the control signal according to the periodic counting value. For example, taking the counting width of the clock counting module as 10 bits, when the counting value in each counting cycle is between 0 and 1019, a low-level control signal is output, that is, the closing time length of the control signal is 1020 system clock cycles, and when the counting value is between 1020 and 1023, a high-level control signal is output, that is, the opening time length of the control signal is 4 system clock cycles. Similarly, when the counting value in each counting cycle is between 0 and 1021, a low-level sampling signal is output, that is, the closing time length of the sampling signal is 1022 system clock cycles, and when the counting value is between 1022 and 1023, a high-level sampling signal is output, that is, the opening time length of the sampling signal is 2 system clock cycles.
[0035] Specifically, Figure 2 As shown, when the counting width of the clock counting module is 10 bits, the clock counting module 111 includes a first D flip-flop D201, a second D flip-flop D202, a third D flip-flop D203, a fourth D flip-flop D204, a fifth D flip-flop D205, a sixth D flip-flop D206, a seventh D flip-flop D207, an eighth D flip-flop D208, a ninth D flip-flop D209 and a tenth D flip-flop D210. The clock end of the first D flip-flop D201 is used to connect to the system clock CLK_SYS, the QN end of the first D flip-flop D201 is connected to the data input D end of the first D flip-flop D201, the QN end of the first D flip-flop D201 is also connected to the clock end of the second D flip-flop D202, the QN end of the second D flip-flop D202 is connected to the data input D end of the second D flip-flop D202, the QN end of the second D flip-flop D202 is also connected to the clock end of the third D flip-flop D203, and the QN end of the third D flip-flop D203 is connected to the The data input D terminal of the third D flip-flop D203, the QN terminal of the third D flip-flop D203 is also connected to the clock terminal of the fourth D flip-flop D204, the QN terminal of the fourth D flip-flop D204 is connected to the data input D terminal of the fourth D flip-flop D204, the QN terminal of the fourth D flip-flop D204 is also connected to the clock terminal of the fifth D flip-flop D205, the QN terminal of the fifth D flip-flop D205 is connected to the data input D terminal of the fifth D flip-flop D205, and the QN terminal of the fifth D flip-flop D205 is also connected to the clock terminal of the sixth D flip-flop D206. The QN terminal of the sixth D flip-flop D206 is connected to the data input D terminal of the sixth D flip-flop D206, the QN terminal of the sixth D flip-flop D206 is also connected to the clock terminal of the seventh D flip-flop D207, the QN terminal of the seventh D flip-flop D207 is connected to the data input D terminal of the seventh D flip-flop D207, the QN terminal of the seventh D flip-flop D207 is also connected to the clock terminal of the eighth D flip-flop D208, the QN terminal of the eighth D flip-flop D208 is connected to the data input D terminal of the eighth D flip-flop D208, and the QN terminal of the eighth D flip-flop D208 is also connected to the clock terminal of the eighth D flip-flop D208. The clock terminal of the ninth D flip-flop D209 is connected to the QN terminal of the ninth D flip-flop D209, the QN terminal of the ninth D flip-flop D209 is connected to the data input D terminal of the ninth D flip-flop D209, the QN terminal of the ninth D flip-flop D209 is also connected to the clock terminal of the tenth D flip-flop D210, the QN terminal of the tenth D flip-flop D210 is connected to the data input D terminal of the tenth D flip-flop D210, the QN terminal of the first D flip-flop D201 is also connected to the synchronization module 113, and the Q terminal of the second D flip-flop D202 to the Q terminal of the tenth D flip-flop D210 are all connected to the signal generation module 112; The signal generating module 112 includes a first AND gate AND201, a second AND gate AND202, a third AND gate AND203, a fourth AND gate AND204 and a fifth AND gate AND205, wherein the three input terminals of the first AND gate AND201 are respectively connected to the Q terminal of the eighth D flip-flop D208, the Q terminal of the ninth D flip-flop D209 and the Q terminal of the tenth D flip-flop D210, the two input terminals of the second AND gate AND202 are respectively connected to the Q terminal of the sixth D flip-flop D206 and the Q terminal of the seventh D flip-flop D207, the three input terminals of the third AND gate AND203 are respectively connected to the Q terminal of the first D flip-flop D208, the Q terminal of the ninth D flip-flop D209 and the Q terminal of the tenth D flip-flop D210, The Q end of the third D flip-flop D203, the Q end of the fourth D flip-flop D204 and the Q end of the fifth D flip-flop D205, the three input ends of the fourth AND gate AND204 are respectively connected to the output end of the first AND gate AND201, the output end of the second AND gate AND202 and the output end of the third AND gate AND203, the output end of the fourth AND gate AND204 is connected to one input end of the fifth AND gate AND205, the other input end of the fifth AND gate AND205 is connected to the Q end of the second D flip-flop D202, and the output end of the fifth AND gate AND205 is connected to the synchronization module 113; The synchronization module 113 includes an eleventh D flip-flop D211 and a twelfth D flip-flop D212, the clock end of the eleventh D flip-flop D211 and the clock end of the twelfth D flip-flop D212 are both connected to the QN end of the first D flip-flop D201, the data input D end of the eleventh D flip-flop D211 is connected to the output end of the fourth AND gate AND204, the Q end of the eleventh D flip-flop D211 outputs a control signal CLK_CTRL, the data input D end of the twelfth D flip-flop D212 is connected to the output end of the fifth AND gate AND205, and the Q end of the twelfth D flip-flop D212 outputs a sampling signal CLK_SAMP.
[0036] Specifically, in the embodiment of the present invention, the signal generating unit 110 counts the system clock, the counter width is 10 bits, the counter starts counting from 0, counts to 1023 as the full value, and then repeats the cycle. When the value of the counter is between 0 and 1019, the output of the fourth AND gate AND204 is low level, and the time length is 1020 system clock cycles TSYS; when the value of the counter is between 1020 and 1023, the output of the fourth AND gate AND204 is high level, and the time length is 4*TSYS; when the value of the counter is between 0 and 1021, the output of the fifth AND gate AND205 is low level, and the time length is 1022 system clock cycles TSYS; when the value of the counter is between 1022 and 1023, the output of the fifth AND gate AND205 is high level, and the time length is 2*TSYS. In order to avoid the timing asynchronization problem of the asynchronous counter, the outputs of the fourth AND gate AND204 and the fifth AND gate AND205 are synchronized once by the eleventh D flip-flop D211 and the twelfth D flip-flop D212 in the synchronization module 113 using the clock signal after the system clock CLK_SYS is divided once and reversed, thereby obtaining the control signal CLK_CTRL and the sampling signal CLK_SAMP, and the time lengths of the high level and the low level are equal to the output of the fourth AND gate AND204 and the output of the fifth AND gate AND205.
[0037] like Figure 3 The figure shows the working principle diagram of the cigarette cartridge detection unit 120 provided by the embodiment of the present invention. Specifically, the cigarette cartridge detection unit 120 includes: a control signal input module 121, a detection module 122, an initial state control module 123 and a detection signal output module 124, wherein the detection module 122 and the initial state control module 123 are both connected to the control signal input module 121, and the detection signal output module 124 is respectively connected to the detection module 122 and the initial state control module 123. The control signal input module 121 is used to connect to the output end of the signal generating unit 110 and process the received control signal; The detection module 122 is used to be non-conductive when the control signal is in the off time, and conductive when the control signal is in the on time; The initial state control module 123 is used to conduct when the control signal is in the off time, and not conduct when the control signal is in the on time; The detection signal output module 124 is used to output a first detection signal when the detection module is turned on, and to output a second detection signal when the initial control module is turned on, wherein the second detection signal is a high-level signal, the first detection signal is a high-level signal when the detection module detects the presence of a cigarette cartridge, and the first detection signal is a low-level signal when the detection module detects the absence of a cigarette cartridge.
[0038] In an embodiment of the present invention, the control signal input module 121 can process the received control signal, and the detection module 122 and the initial control module 123 are turned on or off according to the processed control signal. The specific turning on or off depends on whether the control signal is in the on time or the off time. Finally, the detection signal output module 124 can output the first detection signal when the detection module is turned on, and output the second detection signal when the initial control module is turned on. It should be noted here that the second detection signal is a high-level signal, and the first detection signal is output as a high-level signal when the presence of the smoke cartridge is detected, and is output as a low-level signal when the absence of the smoke cartridge is detected.
[0039] Specifically, the control signal input module 121 includes: a first inverter INV301, the input end of the first inverter INV301 is connected to the output end of the signal generating unit 110, and the output end of the first inverter INV301 is respectively connected to the detection module 122 and the initial state control module 123; The detection module 122 includes: a detection switch tube P301 and a detection resistor R301, wherein the control end of the detection switch tube P301 is connected to the output end of the first inverter INV301, the first end of the detection switch tube P301 is connected to the positive power supply end, the second end of the detection switch tube P301 is connected to one end of the detection resistor R301, and the other end of the detection resistor R301 is connected to the detection signal output module 124; The initial state control module 123 includes: an initial state switch tube N301 and an initial state resistor R302, the control end of the initial state switch tube N301 is connected to the output end of the first inverter INV301, the first end of the initial state switch tube N301 is connected to one end of the initial state resistor R302, the second end of the initial state switch tube N301 is connected to the signal ground, the other end of the initial state resistor R302 is connected to the detection signal output module 124, and the other end of the initial state resistor R302 and the other end of the detection resistor R301 are both used to connect to the cigarette cartridge in the electronic cigarette device; The detection signal output module 124 includes: a Schmitt trigger SMIT301 and a second inverter INV302, the input end of the Schmitt trigger SMIT301 is respectively connected to the other end of the detection resistor R301 and the other end of the initial resistor R302, the output end of the Schmitt trigger SMIT301 is connected to the input end of the second inverter INV302, and the output end of the second inverter INV302 is the output end of the detection signal output module 124.
[0040] In the embodiment of the present invention, the detection switch tube P301 may be a P-type MOS tube, and the initial state switch tube N301 may be an N-type MOS tube. The input end of the first inverter INV301 is connected to the control signal CLK_CTRL, and the output end of the first inverter INV301 is coupled to the gate of the detection switch tube P301 and the gate of the initial state switch tube N301; the source of the detection switch tube P301 is connected to the positive power supply end, the drain of the detection switch tube P301 is connected to one end of the detection resistor R301, the other end of the detection resistor R301 is coupled to the input end of the Schmitt trigger SMIT301, and is also connected to one end of the initial state resistor R302, and is also coupled to one end of the external cigarette cartridge; the other end of the initial state resistor R302 is connected to the drain of the initial state switch tube N301, and the source of the initial state switch tube N301 is grounded; the output end of the Schmitt trigger SMIT301 is connected to the input end of the second inverter INV302, and the output end of the second inverter INV302 outputs the cigarette cartridge replacement detection digital signal LOAD_DET.
[0041] In the embodiment of the present invention, when the control signal CLK_CTRL is in the off period, i.e., the first 1020 system clock cycles TSYS, the output signal of the first inverter INV301 of the cigarette cartridge detection unit 120 is high level, the detection switch tube P301 is not turned on, the initial switch tube N301 is turned on, and the initial resistor R302 is connected to the ground.
[0042] If the cigarette cartridge does not exist at this time, the initial state switch tube N301 that is turned on will ground the initial state resistor R302 to provide a low potential for the input of the Schmitt trigger SMIT301, and then the cigarette cartridge replacement detection digital signal LOAD_DET output by the second inverter INV302 will be a high level signal; if the cigarette cartridge exists at this time, the cigarette cartridge and the initial state resistor R302 will be connected in parallel to provide a low potential for the input of the Schmitt trigger SMIT301, and then the cigarette cartridge replacement detection digital signal LOAD_DET output by the second inverter INV302 will be a high level signal.
[0043] When the control signal CLK_CTRL is on, i.e., in the last 4 system clock cycles TSYS, the output signal of the first inverter INV301 is low level, the initial switch tube N301 is off, the detection switch tube P301 is on, and the detection resistor R301 is connected to the detection loop. If the cigarette cartridge does not exist at this time, the detection resistor R301 is connected to the power supply through the detection switch tube P301, providing a high potential for the input of the Schmitt trigger SMIT301, and then the cigarette cartridge replacement detection digital signal LOAD_DET output by the second inverter INV302 is a low level signal; if the cigarette cartridge exists at this time, the detection resistor R301 is connected to the power supply through the detection switch tube P301, and forms a voltage divider circuit with the cigarette cartridge with one end connected to the ground. The resistance of the cigarette cartridge is 1Ω (the resistance of the cigarette cartridge is generally 0.6Ω to 1.2Ω), and the resistance of the detection resistor R301 is greater than 100kΩ, providing a low potential for the input of the Schmitt trigger SMIT301, and then the cigarette cartridge replacement detection digital signal LOAD_DET output by the second inverter INV302 is a high level signal.
[0044] It should be noted that, in an embodiment of the present invention, if the detection resistor R301 is 100kΩ, the battery supply voltage VBAT is 4.2V, the system clock cycle TSYS is 30uS, N is 1, and the cartridge detection cycle is 30.72mS, according to the average power consumption formula of the detection circuit: Isd =VBAT / R*(4*N*TSYS) / (1024*N*TSYS), it can be obtained that the average power consumption of the detection circuit is 0.164μA; if the detection resistor R301 is 1MΩ, the battery supply voltage VBAT is 4.2V, the system clock cycle is 30μS, N is 1, and the cartridge detection cycle is 30.72mS, according to the average power consumption formula of the detection circuit: Isd =VBAT / R*(4*N*TSYS) / (1024*N*TSYS), it can be obtained that the average power consumption of the detection circuit is 0.0164μA.
[0045] Since the standby power consumption of most electronic cigarettes on the market is currently between 3μA and 5μA, the cartridge status detection device provided in the embodiment of the present invention realizes cartridge replacement detection, and the standby power consumption increased by the realization of the cartridge replacement detection function is extremely low compared to the original main system.
[0046] In the embodiment of the present invention, Figure 4 As shown, the signal processing unit 130 includes: a cartridge status output module 131, which is used to output a level signal representing the current cartridge status within the opening time of the sampling signal, and the current cartridge status at least includes whether the current cartridge exists or does not exist.
[0047] In the embodiment of the present invention, the cartridge status output module 131 can obtain the level signal of the current cartridge status during the sampling signal on time, and output the cartridge status of the previous detection cycle during the sampling signal off time.
[0048] Here, the cartridge status output module 131 can specifically obtain the current cartridge status by outputting a level signal. When the cartridge status needs to be output in the form of a pulse signal, the signal processing unit 130 further includes: a cartridge pulse signal processing module 132 and a cartridge pulse signal output module 133. The cartridge pulse signal processing module 132 is electrically connected to the cartridge status output module 133, and the cartridge pulse signal output module 133 is electrically connected to the cartridge pulse signal processing module 132. The cartridge pulse signal processing module 132 is used to synchronously process the level signal representing the current cartridge state to obtain a synchronous level signal when the current cartridge state changes from existence to non-existence or from non-existence to existence; The cartridge pulse signal output module 133 is used to output the synchronization level signal to obtain a pulse signal representing the current cartridge state change, wherein the current cartridge state change at least includes a change from the existence of the cartridge to the absence of the cartridge or a change from the absence of the cartridge to the existence of the cartridge.
[0049] In an embodiment of the present invention, the cartridge pulse signal processing module 132 can process the level signal output by the cartridge status output module 131, that is, when the level signal representing the current cartridge status is converted from a high level to a low level, or from a low level to a high level, a synchronization level signal after synchronization processing is obtained; the cartridge pulse signal output module 133 can output the synchronization level signal to obtain a pulse signal that can represent the change in the current cartridge status.
[0050] Specifically, Figure 4 As shown, the cartridge state output module 131 includes: a thirteenth D flip-flop D401, the clock end of the thirteenth D flip-flop D401 is used to input the sampling signal CLK_SAMP, the data input D end of the thirteenth D flip-flop D401 is connected to the output end of the cartridge detection unit 120, and the Q end of the thirteenth D flip-flop D401 outputs a level signal LOAD_CHANGE representing the current cartridge state; The cigarette cartridge pulse signal processing module 132 includes: a fourteenth D flip-flop D402, a third inverter INV401, a fifteenth D flip-flop D403 and a fourth inverter INV402, the clock end of the fourteenth D flip-flop D402 is used to connect the signal processing clock CLK_PRO, the data input D end of the fourteenth D flip-flop D402 is connected to the Q end of the thirteenth D flip-flop D401, the Q end of the fourteenth D flip-flop D402 is connected to the input end of the third inverter INV401, the output end of the third inverter INV401 is connected to the data input D end of the fifteenth D flip-flop D403, the clock end of the fifteenth D flip-flop D403 is used to connect the signal processing clock CLK_PRO, and the QN end of the fifteenth D flip-flop D403 is connected to the input end of the fourth inverter INV402; The cigarette cartridge pulse signal output module 133 includes: a sixth AND gate AND401 and a seventh AND gate AND402, the first input end of the sixth AND gate AND401 is connected to the Q end of the fourteenth D flip-flop D402, the second input end of the sixth AND gate AND401 is connected to the output end of the fourth inverter INV402, the output end of the sixth AND gate AND401 is the output end of the cigarette cartridge pulse signal output module, the first input end of the seventh AND gate AND402 is connected to the QN end of the fifteenth D flip-flop D403, the second input end of the seventh AND gate AND402 is connected to the output end of the third inverter INV401, and the output end of the seventh AND gate AND402 is the output end of the cigarette cartridge pulse signal output module 133.
[0051] In the embodiment of the present invention, the clock terminal of the thirteenth D flip-flop D401 is connected to the sampling signal CLK_SAMP, and the data input D terminal of the thirteenth D flip-flop D401 is connected to the cartridge replacement detection digital signal (i.e., the high and low level switching signal of the upper and lower cartridges) LOAD_DET; the clock terminal of the fourteenth D flip-flop D402 is connected to the signal processing clock CLK_PRO, and the data input D terminal of the fourteenth D flip-flop D402 is connected to the Q output of the thirteenth D flip-flop D401, i.e., the cartridge replacement output signal LOAD_CHANGE; the input terminal of the third inverter INV401 is connected to the Q of the fourteenth D flip-flop D402. The output is SYN_P1; the clock end of the fifteenth D flip-flop D403 is connected to the signal processing clock CLK_PRO, and the input end of the fourth inverter INV402 is connected to the QN output of the fifteenth D flip-flop D403, namely SYN_P2; the input end of the sixth AND gate AND401 is coupled to the Q output of the fourteenth D flip-flop D402 and the output end of the fourth inverter INV402, and outputs the upper cigarette cartridge pulse signal LOAD_ON; the input end of the seventh AND gate AND402 is coupled to the QN output of the fifteenth D flip-flop D403 and the output end of the third inverter INV401, and outputs the lower cigarette cartridge pulse signal LOAD_OFF.
[0052] When the sampling signal CLK_SAMP of the signal processing unit 130 is in the off period, i.e., the first 1022 system clock cycles TSYS, the thirteenth D flip-flop D401 has no clock signal, and its Q output LOAD_CHANGE maintains the state of the cartridge in the previous detection cycle. If the cartridge does not exist before, the cartridge replacement signal LOAD_DET output by the cartridge detection unit sampled by the previous sampling signal is low, and the output of the thirteenth D flip-flop D401 remains low; if the cartridge exists before, the cartridge replacement detection digital signal LOAD_DET output by the cartridge detection unit sampled by the previous sampling signal is high, and the output of the thirteenth D flip-flop D401 remains high.
[0053] When the sampling signal CLK_SAMP is turned on, i.e., after the last two system clock cycles TSYS, the signal processing unit 130 has a clock signal in the thirteenth D flip-flop D401, which is the sampling signal CLK_SAMP, and its Q output LOAD_CHANGE is the current state of the cartridge. If the cartridge does not exist at this time, the cartridge replacement detection digital signal LOAD_DET output by the cartridge detection unit sampled by the sampling signal is low, and the output of the thirteenth D flip-flop D401 is low; if the cartridge exists at this time, the cartridge replacement detection digital signal LOAD_DET output by the cartridge detection unit sampled by the sampling signal is high, and the output of the thirteenth D flip-flop D401 is high.
[0054] If the cigarette cartridge changes from non-existence to existence, that is, the upper cigarette cartridge, the cigarette cartridge replacement detection digital signal LOAD_DET obtained by sampling the sampling signal CLK_SAMP will change from low level to high level after a detection cycle; if the cigarette cartridge changes from existence to non-existence, that is, the lower cigarette cartridge, the cigarette cartridge replacement detection digital signal LOAD_DET obtained by sampling the sampling signal CLK_SAMP will change from high level to low level after a detection cycle.
[0055] The foregoing description uses high and low level switching to indicate cartridge replacement. Considering that the main system may also need to use a pulse signal, the following is an example of using a pulse signal to indicate cartridge replacement.
[0056] If the cigarette cartridge changes from non-existent to existing, that is, the cigarette cartridge is loaded, the Q output LOAD_CHANGE of the thirteenth D flip-flop D401 changes from a low level to a high level, and the fourteenth D flip-flop D402 synchronizes the cigarette cartridge replacement signal LOAD_CHANGE once with the signal processing clock CLK_PRO to obtain the synchronized signal SYN_P1, which is inverted by the third inverter INV401 to obtain SYN_N1, which is synchronized again by the fifteenth D flip-flop D403 to obtain the twice synchronized signal SYN_P2, which is inverted by the fourth inverter INV402 to obtain SYN_N2. The output SYN_P2 of the fifteenth D flip-flop D403 and the output SYN_N1 of the first inverter INV401 are low level, which coincides with the length of one cycle of the signal processing clock CLK_PRO. The high and low levels are completely opposite for the rest of the time. The signal LOAD_OFF obtained after passing through the seventh AND gate AND402 is low level; the output SYN_P1 of the fourteenth D flip-flop D402 and the output SYN_N2 of the fourth inverter INV402 are high level, which coincides with the length of one cycle of the signal processing clock CLK_PRO. The high and low levels are completely opposite for the rest of the time. After passing through the sixth AND gate AND401, a pulse signal LOAD_ON with a high level time of one cycle of the signal processing clock CLK_PRO is obtained, indicating that the cigarette cartridge is loaded.
[0057] If the cigarette cartridge changes from existing to non-existing, that is, the cigarette cartridge is removed, the Q output LOAD_CHANGE of the thirteenth D flip-flop D401 changes from a high level to a low level, and the fourteenth D flip-flop D402 synchronizes the cigarette cartridge replacement signal LOAD_CHANGE once with the signal processing clock CLK_PRO to obtain the synchronized signal SYN_P1, which is inverted by the third inverter INV401 to obtain SYN_N1, which is synchronized again by the fifteenth D flip-flop D403 to obtain a twice synchronized signal SYN_P2, which is inverted by the fourth inverter INV402 to obtain SYN_N2. The output SYN_P1 of the fifteenth D flip-flop D402 and the output SYN_N2 of the fourth inverter INV402 are low levels that coincide with the length of a signal processing clock CLK_PRO cycle, and the high and low levels are completely opposite for the rest of the time. After passing through the sixth AND gate AND401, the signal LOAD_ON is low; the output SYN_P2 of the fifteenth D flip-flop D403 and the output SYN_N1 of the third inverter INV401 are low levels that coincide with the length of a signal processing clock CLK_PRO cycle, and the high and low levels are completely opposite for the rest of the time. After passing through the seventh AND gate AND402, a pulse signal LOAD_OFF with a high level time of a signal processing clock CLK_PRO cycle is obtained, indicating the release of the cigarette cartridge.
[0058] Combine the following Figure 5 The partial signal timing diagram shown describes in detail the specific implementation process of the cigarette cartridge status detection provided by the embodiment of the present invention.
[0059] If the cigarette cartridge changes from non-existent to existing, i.e., the cigarette cartridge is loaded, the cigarette cartridge detection unit, when the control signal CLK_CTRL is on, i.e., after the last 4 system clock cycles TSYS, the initial switch tube N301 is not turned on, the detection switch tube P301 is turned on, and the detection resistor R301 is connected to the detection loop. The input of the Schmitt trigger SMIT301 changes from the detection resistor R301 connected to the power supply through the detection switch tube P301 to provide a high potential, to the detection resistor R301 connected to the power supply through the detection switch tube P301 and the cigarette cartridge voltage division to provide a low potential, and the cigarette cartridge replacement detection digital signal LOAD_DET changes from a low pulse signal to a high level signal.
[0060] When the sampling signal CLK_SAMP is on, that is, during the last two system clock cycles TSYS, the signal processing unit obtains the cartridge replacement detection digital signal LOAD_DET sampled by the sampling signal CLK_SAMP after a detection cycle, and the Q output LOAD_CHANGE of the thirteenth D flip-flop D401 changes from a low level to a high level, indicating that a cartridge is loaded; the logic implementation of the combination of the fourteenth D flip-flop D402 and the fifteenth D flip-flop D403, the third inverter INV401, the fourth inverter INV402, the sixth AND gate AND401 and the seventh AND gate AND402 processes the cartridge replacement signal LOAD_CHANGE to obtain a signal LOAD_OFF of a low level, and LOAD_ON of a pulse signal with a high level time of one CLK_PRO cycle length, which also indicates that a cartridge is loaded.
[0061] If the cigarette cartridge changes from existing to not existing, that is, the cigarette cartridge is removed, the cigarette cartridge detection unit is in the on period when the control signal CLK_CTRL is on, that is, the last 4 system clock cycles TSYS, the initial switch tube N301 is not turned on, the detection switch tube P301 is turned on, the detection resistor R301 is connected to the detection circuit, and the input of the Schmitt trigger SMIT301 changes from the detection resistor R301 connected to the power supply and the cigarette cartridge voltage divider through the detection switch tube P301 to provide a low potential, to the detection resistor R301 connected to the power supply through the detection switch tube P301 to provide a high potential, and the cigarette cartridge replacement detection digital signal LOAD_DET changes from a high level signal to a low pulse signal.
[0062] When the sampling signal CLK_SAMP is on, that is, during the last two system clock cycles TSYS, the signal processing unit obtains the cartridge replacement detection digital signal LOAD_DET sampled by the sampling signal CLK_SAMP after a detection cycle, and the Q output LOAD_CHANGE of the thirteenth D flip-flop D401 changes from a high level to a low level, indicating the next cartridge; the logic implementation of the fourteenth D flip-flop D402 and the fifteenth D flip-flop D403, the third inverter INV401 and the fourth inverter INV402, and the sixth AND gate AND401 and the seventh AND gate AND402 processes the cartridge replacement signal LOAD_CHANGE to obtain a signal LOAD_ON of a low level, and LOAD_OFF of a pulse signal with a high level time of one CLK_PRO cycle length, which also indicates the next cartridge.
[0063] In summary, the cartridge status detection device provided by the present invention converts the cartridge replacement signal into a digital signal through periodic short-time detection of the cartridge replacement action, obtains a stable sampling result through the sampling signal, and converts it into the high and low level or pulse signal required by the main system, thereby achieving the effect of cartridge replacement detection and greatly reducing the required power consumption, thereby improving the market competitiveness of the electronic cigarette device.
[0064] As another embodiment of the present invention, an electronic cigarette device is provided, which includes: an electronic cigarette body and the above-mentioned cartridge status detection device, wherein a cartridge is arranged on the electronic cigarette body, the cartridge is electrically connected to the cartridge status detection device, and the cartridge status detection device can detect the status of the cartridge on the electronic cigarette body.
[0065] The electronic cigarette device provided by the present invention, due to the adoption of the aforementioned cartridge state detection device, can generate periodic control signals and sampling signals through the signal generating unit, and the on time of the control signal and the sampling signal are both less than their respective off time, and the cartridge detection unit is used to detect the cartridge within the on time of the control signal, and the signal processing unit is used to process and output the cartridge detection signal within the on time of the sampling signal, thereby achieving the purpose of effectively detecting the existence state of the cartridge without increasing the power consumption of the electronic cigarette device. Therefore, the electronic cigarette device provided by the present invention adopts the aforementioned cartridge state detection device, realizes the detection of the cartridge state without increasing the power consumption, and improves the market competitiveness.
[0066] The working principle of the specific cartridge status detection process of the electronic cigarette device provided by the present invention can be referred to the description of the cartridge status detection device in the previous text, and will not be repeated here.
[0067] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A cigarette cartridge status detection device, characterized in that: include: A signal generating unit, a cartridge detecting unit and a signal processing unit, wherein the cartridge detecting unit is electrically connected to the signal generating unit, the signal processing unit is electrically connected to the cartridge detecting unit, and the cartridge detecting unit can also be electrically connected to a cartridge in the electronic cigarette device; The signal generating unit is used to generate a periodic control signal and a sampling signal according to a system clock, wherein the on time length of the control signal is shorter than the off time length of the control signal, the on time length of the sampling signal is shorter than the off time length of the sampling signal, and the on time length of the control signal is longer than the on time length of the sampling signal; The cigarette cartridge detection unit is used to detect the existence state of the cigarette cartridge within the on time of the control signal and generate a cigarette cartridge state detection signal; The signal processing unit is used to perform signal processing on the cartridge status detection signal within the opening time of the sampling signal, and generate and output a cartridge status result signal.
2. The cigarette cartridge status detection device according to claim 1, characterized in that: The on time length of the control signal is shorter than the off time length of the control signal, comprising: The range of the on time length of the control signal / (on time length of the control signal + off time length of the control signal) is 2 / 1024~16 / 1024; The on time length of the sampling signal is shorter than the off time length of the sampling signal, comprising: The range of the on time length of the sampling signal / (on time length of the sampling signal + off time length of the sampling signal) is 1 / 1024~8 / 1024.
3. The cigarette cartridge status detection device according to claim 1 or 2, characterized in that: The signal generating unit comprises: a clock counting module, a signal generating module and a synchronization module, wherein the signal generating module is electrically connected to the clock counting module, and the synchronization module is electrically connected to the signal generating module and the clock counting module respectively. The clock counting module is capable of periodically counting the system clock; The signal generating module is used to output a low-level control signal when the count value in each counting cycle reaches a first threshold value, and output a high-level control signal when the count value in the counting cycle reaches a second threshold value from the first threshold value; and output a low-level sampling signal when the count value in each counting cycle reaches a third threshold value; and output a high-level sampling signal when the count value in the counting cycle reaches a second threshold value from the third threshold value, wherein the second threshold value is the maximum value of the system clock count of each counting cycle, the difference between the second threshold value and the first threshold value is less than the first threshold value, the difference between the second threshold value and the third threshold value is less than the third threshold value, and the first threshold value is less than the third threshold value; The synchronization module is used to synchronously process the generated control signal and the sampling signal.
4. The cigarette cartridge status detection device according to claim 3, characterized in that: When the counting width of the clock counting module is 10 bits, the clock counting module includes a first D flip-flop, a second D flip-flop, a third D flip-flop, a fourth D flip-flop, a fifth D flip-flop, a sixth D flip-flop, a seventh D flip-flop, an eighth D flip-flop, a ninth D flip-flop and a tenth D flip-flop, The clock end of the first D flip-flop is used to connect to the system clock, the QN end of the first D flip-flop is connected to the data input D end of the first D flip-flop, the QN end of the first D flip-flop is also connected to the clock end of the second D flip-flop, the QN end of the second D flip-flop is connected to the data input D end of the second D flip-flop, the QN end of the second D flip-flop is also connected to the clock end of the third D flip-flop, the QN end of the third D flip-flop is connected to the data input D end of the third D flip-flop, the QN end of the third D flip-flop is also connected to the clock end of the fourth D flip-flop, the QN end of the fourth D flip-flop is connected to the data input D end of the fourth D flip-flop, the QN end of the fourth D flip-flop is also connected to the clock end of the fifth D flip-flop, the QN end of the fifth D flip-flop is connected to the data input D end of the fifth D flip-flop, and the QN end of the fifth D flip-flop is also connected to the clock end of the sixth D flip-flop. The QN terminal of the sixth D flip-flop is connected to the data input D terminal of the sixth D flip-flop, the QN terminal of the sixth D flip-flop is also connected to the clock terminal of the seventh D flip-flop, the QN terminal of the seventh D flip-flop is connected to the data input D terminal of the seventh D flip-flop, the QN terminal of the seventh D flip-flop is also connected to the clock terminal of the eighth D flip-flop, the QN terminal of the eighth D flip-flop is connected to the data input D terminal of the eighth D flip-flop, the QN terminal of the eighth D flip-flop is also connected to the clock terminal of the ninth D flip-flop, the QN terminal of the ninth D flip-flop is connected to the data input D terminal of the ninth D flip-flop, the QN terminal of the ninth D flip-flop is also connected to the clock terminal of the tenth D flip-flop, the QN terminal of the tenth D flip-flop is connected to the data input D terminal of the tenth D flip-flop, the QN terminal of the first D flip-flop is also connected to the synchronization module, and the Q terminal of the second D flip-flop to the Q terminal of the tenth D flip-flop are all connected to the signal generation module; The signal generating module comprises a first AND gate, a second AND gate, a third AND gate, a fourth AND gate and a fifth AND gate, wherein three input terminals of the first AND gate are respectively connected to the Q terminal of the eighth D flip-flop, the Q terminal of the ninth D flip-flop and the Q terminal of the tenth D flip-flop, two input terminals of the second AND gate are respectively connected to the Q terminal of the sixth D flip-flop and the Q terminal of the seventh D flip-flop, three input terminals of the third AND gate are respectively connected to the Q terminal of the third D flip-flop, the Q terminal of the fourth D flip-flop and the Q terminal of the fifth D flip-flop, three input terminals of the fourth AND gate are respectively connected to the output terminal of the first AND gate, the output terminal of the second AND gate and the output terminal of the third AND gate, the output terminal of the fourth AND gate is connected to one input terminal of the fifth AND gate, the other input terminal of the fifth AND gate is connected to the Q terminal of the second D flip-flop, and the output terminal of the fifth AND gate is connected to the synchronization module; The synchronization module includes an eleventh D flip-flop and a twelfth D flip-flop, the clock end of the eleventh D flip-flop and the clock end of the twelfth D flip-flop are both connected to the QN end of the first D flip-flop, the data input D end of the eleventh D flip-flop is connected to the output end of the fourth AND gate, the Q end of the eleventh D flip-flop outputs a control signal, the data input D end of the twelfth D flip-flop is connected to the output end of the fifth AND gate, and the Q end of the twelfth D flip-flop outputs a sampling signal.
5. The cigarette cartridge status detection device according to claim 1 or 2, characterized in that: The cigarette cartridge detection unit comprises: a control signal input module, a detection module, an initial state control module and a detection signal output module, wherein the detection module and the initial state control module are both connected to the control signal input module, and the detection signal output module is respectively connected to the detection module and the initial state control module. The control signal input module is used to connect to the output end of the signal generating unit and process the received control signal; The detection module is used for not conducting when the control signal is in the off time, and conducting when the control signal is in the on time; The initial state control module is used to conduct when the control signal is in the closing time, and not conduct when the control signal is in the opening time; The detection signal output module is used to output a first detection signal when the detection module is turned on, and to output a second detection signal when the initial control module is turned on, wherein the second detection signal is a high-level signal, the first detection signal is a high-level signal when the detection module detects the presence of a cigarette cartridge, and the first detection signal is a low-level signal when the detection module detects the absence of a cigarette cartridge.
6. The cigarette cartridge status detection device according to claim 5, characterized in that: The control signal input module comprises: a first inverter, the input end of the first inverter is connected to the output end of the signal generating unit, and the output end of the first inverter is respectively connected to the detection module and the initial state control module; The detection module comprises: a detection switch tube and a detection resistor, wherein the control end of the detection switch tube is connected to the output end of the first inverter, the first end of the detection switch tube is connected to the positive power supply end, the second end of the detection switch tube is connected to one end of the detection resistor, and the other end of the detection resistor is connected to the detection signal output module; The initial state control module comprises: an initial state switch tube and an initial state resistor, wherein the control end of the initial state switch tube is connected to the output end of the first inverter, the first end of the initial state switch tube is connected to one end of the initial state resistor, the second end of the initial state switch tube is connected to the signal ground, the other end of the initial state resistor is connected to the detection signal output module, and the other end of the initial state resistor and the other end of the detection resistor are both used to connect to the cigarette cartridge in the electronic cigarette device; The detection signal output module includes: a Schmitt trigger and a second inverter, the input end of the Schmitt trigger is respectively connected to the other end of the detection resistor and the other end of the initial state resistor, the output end of the Schmitt trigger is connected to the input end of the second inverter, and the output end of the second inverter is the output end of the detection signal output module.
7. The cigarette cartridge status detection device according to claim 1 or 2, characterized in that: The signal processing unit includes: a cartridge status output module, which is used to output a level signal representing the current cartridge status within the opening time of the sampling signal, and the current cartridge status at least includes whether the current cartridge exists or does not exist.
8. The cigarette cartridge status detection device according to claim 7, characterized in that: The signal processing unit further includes: a cartridge pulse signal processing module and a cartridge pulse signal output module, wherein the cartridge pulse signal processing module is electrically connected to the cartridge state output module, and the cartridge pulse signal output module is electrically connected to the cartridge pulse signal processing module. The cartridge pulse signal processing module is used to synchronously process the level signal representing the current cartridge state to obtain a synchronous level signal when the current cartridge state changes from existence to non-existence or from non-existence to existence; The cartridge pulse signal output module is used to output a synchronization level signal to obtain a pulse signal representing a current cartridge state change, wherein the current cartridge state change at least includes a change from the presence of a cartridge to the absence of a cartridge or a change from the absence of a cartridge to the presence of a cartridge.
9. The cigarette cartridge status detection device according to claim 8, characterized in that: The cartridge state output module comprises: a thirteenth D flip-flop, the clock end of the thirteenth D flip-flop is used to input a sampling signal, the data input D end of the thirteenth D flip-flop is connected to the output end of the cartridge detection unit, and the Q end of the thirteenth D flip-flop outputs a level signal representing the current cartridge state; The cigarette cartridge pulse signal processing module includes: a fourteenth D flip-flop, a third inverter, a fifteenth D flip-flop and a fourth inverter, the clock end of the fourteenth D flip-flop is used to connect the signal processing clock, the data input D end of the fourteenth D flip-flop is connected to the Q end of the thirteenth D flip-flop, the Q end of the fourteenth D flip-flop is connected to the input end of the third inverter, the output end of the third inverter is connected to the data input D end of the fifteenth D flip-flop, the clock end of the fifteenth D flip-flop is used to connect the signal processing clock, and the QN end of the fifteenth D flip-flop is connected to the input end of the fourth inverter; The cigarette cartridge pulse signal output module includes: a sixth AND gate and a seventh AND gate, the first input end of the sixth AND gate is connected to the Q end of the fourteenth D flip-flop, the second input end of the sixth AND gate is connected to the output end of the fourth inverter, the output end of the sixth AND gate is the output end of the cigarette cartridge pulse signal output module, the first input end of the seventh AND gate is connected to the QN end of the fifteenth D flip-flop, the second input end of the seventh AND gate is connected to the output end of the third inverter, and the output end of the seventh AND gate is the output end of the cigarette cartridge pulse signal output module.
10. An electronic cigarette device, characterized in that: include: An electronic cigarette body and a cartridge state detection device as described in any one of claims 1 to 9, wherein a cartridge is arranged on the electronic cigarette body, the cartridge is electrically connected to the cartridge state detection device, and the cartridge state detection device can detect the state of the cartridge on the electronic cigarette body.