Electronic cigarette, control method and device of electronic cigarette, and identification method of trigger signal of electronic cigarette
Through the two-wire microphone head and cyclic data processing method, the trigger signal of the electronic cigarette head action is identified, which solves the problem of inaccurate electronic cigarette control in the existing electronic cigarette control, improves the recognition accuracy and reduces the cost.
Patent Information
- Application Number
- CN202411070701.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-12
AI Technical Summary
The control of existing electronic cigarettes is inaccurate, which mainly leads to errors in the output signal of the data cable due to environmental interference, which in turn affects the accurate identification of the electronic cigarette head movement.
采用两线咪头和循环获取的检测数据处理方法,通过第一环境值和第二环境值判断电子烟咪头是否动作,并根据变化结果识别触发信号,降低线路干扰,提高识别准确性。
Accurate identification and control of the electronic cigarette head movement is achieved, cost reduction and avoiding inaccurate control problems caused by environmental interference.
Smart Images

Figure CN118923947A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic cigarettes, and in particular to an electronic cigarette and a control method and device thereof, and a method for identifying a trigger signal thereof. Background Art
[0002] Electronic cigarettes are becoming increasingly popular, and electronic cigarette mics provide a healthier and more fashionable smoking alternative to traditional cigarettes. Electronic cigarette mics heat the e-liquid to produce steam to simulate the smoking experience of traditional tobacco cigarettes.
[0003] Electronic cigarettes usually use capacitive microphones. Capacitive microphones are sensors that convert air pressure into capacitance changes. After sensing the user's inhalation, they trigger the battery to work and convert the electrical energy provided by the battery into heat energy. At the same time, the resistor inside the microphone is heated, heating the e-liquid in the microphone, causing the e-liquid to produce steam, which is then inhaled into the user's mouth.
[0004] At present, electronic cigarettes generally use 3-wire microphones, which are power line, data line and ground line respectively; and the high / low level or frequency signal output by the electronic cigarette data line is detected to determine whether smoking is in progress. If the data line is disturbed by the environment, it may cause an error in the output signal of the data line. Then, the error signal based on the output may lead to incorrect analysis and judgment, and then lead to inaccurate control of the electronic cigarette. Summary of the invention
[0005] In view of this, the embodiments of the present application provide an electronic cigarette and a control method and device thereof, and a trigger signal recognition method thereof, which can effectively solve the problem of inaccurate control of the current electronic cigarette.
[0006] In a first aspect, an embodiment of the present application provides a method for identifying an electronic cigarette trigger signal, the identification method comprising:
[0007] Circularly acquiring detection data of the electronic cigarette microphone; the detection data includes first capacitance sensing data output by the electronic cigarette microphone when in a first connection state and second capacitance sensing data output by the electronic cigarette microphone when in a second connection state;
[0008] Processing the detection data acquired cyclically to obtain a first environmental value of the electronic cigarette microphone in the first connection state and a second environmental value of the electronic cigarette microphone in the second connection state;
[0009] Determine whether the electronic cigarette microphone is in operation according to the first environmental value, the second environmental value and the latest detection data;
[0010] Based on the first environmental value and the second environmental value, the detection data corresponding to the action of the electronic cigarette microphone is processed to obtain a change result;
[0011] The trigger signal of the electronic cigarette microphone action is identified according to the change result.
[0012] In some embodiments, judging whether the electronic cigarette microphone is in operation according to the first environmental value, the second environmental value and the latest detection data in the cycle includes:
[0013] Processing the first capacitive sensing data and the first environmental value in the latest detection data to obtain a first difference absolute value;
[0014] Processing the second capacitive sensing data and the second environmental value in the latest detection data to obtain a second difference absolute value;
[0015] If the absolute value of the first difference is greater than a first set value and / or the absolute value of the second difference is greater than a second set value, it is determined that the electronic cigarette microphone is in action.
[0016] In some embodiments, processing the first capacitive sensing data in the cyclically acquired detection data to obtain the first environmental value includes:
[0017] Acquire a set number of first capacitive sensing data in a current time period as a group of sensing data, and process the group of capacitive sensing data to obtain a first initial environment value;
[0018] The set number of first capacitance sensing data in the next time period is recirculated and obtained as another set of sensing data, the another set of sensing data is processed to obtain a first intermediate environment value, and the first initial environment value is updated based on the first intermediate environment value. When it is determined that the electronic cigarette microphone is in action, the updating is stopped to obtain the first environment value.
[0019] In some embodiments, the change result includes the change type, the reference change amount and the relative change amount of the detection data; the change result is obtained by processing the detection data corresponding to the action of the electronic cigarette microphone head based on the first environmental value and the second environmental value, including:
[0020] performing difference processing on first capacitance sensing data corresponding to the operation of the electronic cigarette microphone based on the first environment value to obtain a first difference value, and performing difference processing on second capacitance sensing data corresponding to the operation of the electronic cigarette microphone based on the second environment value to obtain a second difference value;
[0021] Performing positive and negative judgment on the first difference and the second difference respectively to obtain the change type of the detection data;
[0022] Compare the absolute value of the first difference and the absolute value of the second difference with different set thresholds respectively to obtain a reference change amount of the detection data;
[0023] The first capacitance sensing data and the second capacitance sensing data in the detection data corresponding to the action of the electronic cigarette microphone are subjected to difference processing to obtain a relative change amount of the detection data.
[0024] In some embodiments, the identifying the trigger signal of the electronic cigarette microphone action according to the change result includes:
[0025] According to the change type and the reference change amount of the detection data, identifying that the trigger signal of the action of the electronic cigarette microphone is blowing;
[0026] According to the change type, the reference change amount and the relative change amount of the detection data, it is identified that the trigger signal of the action of the electronic cigarette microphone is an interference signal or an inhalation.
[0027] In some embodiments, the electronic cigarette includes a controller and a two-wire microphone;
[0028] The first connection state is: the negative pin of the two-wire microphone is set to be input suspended, and the positive pin of the two-wire microphone is connected to the analog interface of the controller;
[0029] The second connection state is: the negative pin of the two-wire microphone is set to output a low level state, and the positive pin of the two-wire microphone is connected to the analog interface of the controller;
[0030] The controller is used to read the first capacitive sensing data output by the two-wire microphone in the first connection state and the second capacitive sensing data output in the second connection state through the analog interface.
[0031] In a second aspect, an embodiment of the present application provides a method for controlling an electronic cigarette, comprising:
[0032] The above-mentioned electronic cigarette trigger signal recognition method is used to recognize the trigger signal of the electronic cigarette microphone action to obtain a recognition result;
[0033] The electronic cigarette is controlled according to the recognition result.
[0034] In a third aspect, an embodiment of the present application provides an electronic cigarette control device, comprising:
[0035] An identification unit is configured to use the above-mentioned electronic cigarette trigger signal identification method to identify the trigger signal of the electronic cigarette microphone action and obtain an identification result;
[0036] A control unit is configured to control the electronic cigarette according to the recognition result.
[0037] In a fourth aspect, an embodiment of the present application provides an electronic cigarette, wherein the electronic cigarette includes a microphone and a controller;
[0038] The microphone outputs first capacitive sensing data in a first connection state, and outputs second capacitive sensing data in a second connection state;
[0039] The controller input end is connected to the output end of the microphone, and the controller is used to cyclically acquire the first capacitance sensing data and the second capacitance sensing data, and process all the cyclically acquired first capacitance sensing data and the second capacitance sensing data to identify the trigger signal of the microphone to obtain an identification result; and control the electronic cigarette according to the identification result.
[0040] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed on a processor, implements the above-mentioned method for identifying an electronic cigarette trigger signal or the above-mentioned method for controlling an electronic cigarette.
[0041] The embodiments of the present application have the following beneficial effects:
[0042] The electronic cigarette trigger signal recognition method proposed in the present application obtains detection data of the microphone in a loop, processes the detection data of the microphone in a loop to obtain a first environment value and a second environment value in different connection states, updates the first environment value and the second environment value until the microphone is actuated, and processes the detection data corresponding to the action of the microphone according to the updated first environment value and the second environment value to obtain a more accurate processing result, and accurately recognizes the trigger signal of the action of the electronic cigarette microphone according to the accurate processing result. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A flow chart showing a method for identifying an electronic cigarette trigger signal in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the principle structure of an electronic cigarette in an embodiment of the present application is shown;
[0046] Figure 3 A flow chart showing the processing of detection data corresponding to the action of the microphone in the embodiment of the present application is shown;
[0047] Figure 4 A schematic diagram of a process of controlling an electronic cigarette in an embodiment of the present application is shown;
[0048] Figure 5 A schematic diagram of the structure of the electronic cigarette control device in the embodiment of the present application is shown. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0050] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0051] Hereinafter, the terms "including", "having" and their cognates used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0052] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0053] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0054] Electronic cigarettes are electronic products that imitate cigarettes. The overall working principle of the electronic cigarette with a microphone switch is: the user inhales - the airflow sensor (microphone) responds - the control circuit is triggered - the atomizer starts working - steam is generated. Although the three-wire microphone switch is easy to use, the three-wire microphone is often installed in reverse during actual use, which will lead to a complex circuit structure and cumbersome lines inside the electronic cigarette, and the price of the three-wire microphone is relatively expensive, resulting in a high cost of using the three-wire microphone. Therefore, this application proposes to use a two-wire microphone, and an ordinary capacitive microphone, which can effectively reduce the cost of the electronic cigarette. In addition, the existing judgment is only made through a single output signal, resulting in inaccurate recognition of the trigger signal for the microphone to act; therefore, this application first determines the environmental value based on the processing results of multiple sets of data obtained in a cycle, and determines whether the electronic cigarette microphone is in action based on the environmental value, and then accurately identifies the trigger signal for the microphone to act based on the processing of multiple sets of data, thereby being able to more accurately control the electronic cigarette.
[0055] The following describes the method for identifying the action of the electronic cigarette microphone in conjunction with some specific embodiments.
[0056] Figure 1 A flow chart of a method for identifying the action of an electronic cigarette microphone head according to an embodiment of the present application is shown. Exemplarily, the method for identifying the action of an electronic cigarette microphone head includes the following steps:
[0057] S100, cyclically acquiring detection data of the electronic cigarette microphone; the detection data includes first capacitance sensing data of the electronic cigarette microphone in a first connection state and second capacitance sensing data of the electronic cigarette microphone in a second connection state.
[0058] In this application, the electronic cigarette uses a two-wire microphone, which is lower in cost than a three-wire microphone. Figure 2 As shown, the electronic cigarette includes a two-wire microphone, a controller, a power supply and a response unit; the power supply provides working power for the controller, the analog interface of the controller is connected to the positive pole of the two-wire microphone, and the IO interface of the controller is connected to the negative pole of the two-wire microphone, which is used to control the state of the two-wire microphone; the output end of the controller is connected to the response unit, and the controller controls the response unit to respond or be in sleep mode according to the processing of the capacitive sensing data output by the positive pole of the two-wire microphone. Among them, the connection line of the two-wire microphone is as thin as possible to reduce the interference of the line to the signal. Compared with the three-wire microphone, the two-wire microphone used in this application is much cheaper, and it can also meet the various functions of the three-wire microphone, which can effectively reduce the cost of the electronic cigarette.
[0059] In the present application, when acquiring the detection data of the electronic cigarette microphone, the negative pin of the electronic cigarette microphone is controlled to be in different states. Therefore, the electronic cigarette microphone has two connection states, namely, the first connection state is: the negative pin of the two-wire microphone is set to be input and suspended, and the positive pin of the two-wire microphone is connected to the analog interface of the controller; the second connection state is: the negative pin of the two-wire microphone is set to output a low level, and the positive pin of the two-wire microphone is connected to the analog interface of the controller; the analog interface of the controller reads the first capacitance sensing data and the second capacitance sensing data of the two-wire microphone in different connection states.
[0060] In one embodiment, the controller first controls the negative pin of the two-wire microphone to be set to input suspension. At this time, the first capacitance sensing data output by the positive pin of the two-wire microphone is obtained through the analog interface of the main control chip; then the negative pin of the two-wire microphone is controlled to be set to output low level and used as a ground wire. At this time, the second capacitance sensing data output by the positive pin of the two-wire microphone is obtained through the analog interface of the main control chip. Then the two-wire microphone is controlled to switch cyclically between the first connection state and the second connection state, and the first capacitance sensing data of the two-wire microphone in the first connection state (the negative pin is input suspension) and the second capacitance sensing data in the second connection state (the negative output is low level) are cyclically obtained. Exemplarily, the first capacitance sensing data and the second capacitance sensing data corresponding to the first cycle are first obtained; then the first capacitance sensing data and the second capacitance sensing data corresponding to the second cycle are obtained; the first capacitance sensing data and the second capacitance sensing data corresponding to the third cycle are obtained; ...
[0061] S200, processing the detection data acquired in a loop to obtain a first environment value and a second environment value; and processing the latest detection data according to the first environment value and the second environment value to determine whether the electronic cigarette microphone is in operation.
[0062] The process of judging whether the electronic cigarette microphone is in action based on the latest detection data according to the first environment and the second environment value in the present application includes: performing difference processing on the first capacitance sensing data in the latest detection data and the first environment value to obtain a first difference absolute value; performing difference processing on the second capacitance sensing data in the latest detection data and the second environment value to obtain a second difference absolute value; if the first difference absolute value is greater than the first set value and / or the second difference absolute value is less than the second set value, it is judged that the electronic cigarette microphone is in action, otherwise the electronic cigarette microphone is not in action.
[0063] Specifically, if the absolute value of the difference between the current first capacitance sensing data and the first environment value is greater than or equal to the first set value, and / or the absolute value of the difference between the current second capacitance sensing data and the second environment value is greater than or equal to the second set value, it indicates that the current first capacitance sensing data and / or the second capacitance sensing data has a mutation, that is, the current latest detection data has a mutation, then, it is judged that the two-wire microphone has actuated; if the absolute value of the difference between the current first capacitance sensing data and the first environment value is less than the first set value, and the absolute value of the difference between the current second capacitance sensing data and the second environment value is less than the second set value, it indicates that the current first capacitance sensing data and the second capacitance sensing data have not a mutation, that is, the current latest detection data has not a mutation, then, it is judged that the two-wire microphone has not actuated.
[0064] Exemplarily, if the current first capacitance sensing data is greater than the first environment value or the current first capacitance sensing data is less than the first environment value, and the absolute value of the difference exceeds the first set value, and the current second capacitance sensing data is greater than the second environment value or the current second capacitance sensing data is less than the second environment value, and the absolute value of the difference exceeds the second set value, it is determined that the current latest detection data has a mutation. In this example, the first set value and the second set value are both 10. As other implementation methods, the first set value and the second set value are both 11, or the first set value is 10, the second set value is 11, etc. This application does not limit the specific data of the first set value and the second set value.
[0065] In the present application, the first capacitance sensing data in all the detection data before the electronic cigarette microphone is actuated is processed to obtain the first environment value, and the second sensing data is processed to obtain the second environment value; that is, the first environment value and the second environment value are updated according to the detection data acquired in a cycle until the latest detection data suddenly changes, that is, the electronic cigarette microphone is actuated, and the update processing of the first environment value and the second environment value is stopped.
[0066] In one embodiment, all first capacitance sensing data before the electronic cigarette microphone is activated are processed to obtain a first environment value;
[0067] First, obtain the first group of first capacitance sensing data corresponding to the set number, and process the first group of capacitance sensing data to obtain the first initial environment value; exemplarily describe, the set number is 10, the maximum value and the minimum value of the 10 first capacitance sensing data of the first group are deleted, and then the remaining 8 first capacitance sensing data are averaged to obtain the first initial environment value. As other implementation methods, the remaining 8 first capacitance sensing data can also be averaged to obtain the first initial environment value, or the 10 first capacitance sensing data can be averaged to obtain the first initial environment value. In addition, in this example, the set number is 10, and as other implementation methods, the set number can also be 11 or 12, etc.
[0068] Recycle and obtain another set of first capacitance sensing data corresponding to the set number, process another set of sensing data to obtain the first intermediate environment value, and update the first initial environment value based on the first intermediate environment value, and obtain the final first environment value after cyclic update. Exemplarily, another set of 10 first capacitance sensing data is obtained, and then the maximum and minimum values of the 10 first capacitance sensing data are deleted, and then the remaining 8 first capacitance sensing data are averaged to obtain the first intermediate environment value; the first intermediate environment value and the first initial environment value are processed by a first-order filtering algorithm to smooth the first initial environment value and the first intermediate environment value, and the first initial environment value is updated by the first intermediate environment value, and the update is cyclically processed in sequence to finally obtain the first environment value before the electronic cigarette microphone is activated; it should be noted that if the number of all first capacitance sensing data before the electronic cigarette microphone is activated is 24, then the first set of first capacitance sensing data formed by 1-10 is processed to obtain the first initial capacitance environment value, and the first set of first capacitance sensing data formed by 2-20 is processed to obtain the first intermediate environment value, and the 21st-24th first capacitance sensing data are no longer processed.
[0069] The method process of processing the second capacitance sensing data before the electronic cigarette microphone is actuated to obtain the second environment value in the present application is similar to the method process of obtaining the first environment value. To avoid highly repeated content, the detailed description is omitted. Therefore, the present application also obtains the second environment value before the microphone is actuated.
[0070] S300, based on the first environment value and the second environment value, the detection data corresponding to the action of the electronic cigarette microphone is processed to obtain a change result.
[0071] This application processes the detection data corresponding to the action of the electronic cigarette microphone to obtain the change result based on the first environment value and the second environment value, such as Figure 3 As shown, including:
[0072] S310, processing first capacitance sensing data corresponding to the operation of the electronic cigarette microphone based on the first environment value to obtain a first difference value, and processing second capacitance sensing data corresponding to the operation of the electronic cigarette microphone based on the second environment value to obtain a second difference value.
[0073] S320, performing positive and negative judgment on the first difference and the second difference respectively to obtain a change type of the detection data.
[0074] In some embodiments, when the first difference and the second difference are both positive values, the change type of the detection data is increase; when the first difference and the second difference are both negative values, the change type of the detection data is decrease. Therefore, the change type of the detection data of the present application includes increase and decrease.
[0075] S330, comparing the absolute value of the first difference and the absolute value of the second difference with different set thresholds respectively to obtain a reference variation of the detection data.
[0076] In some embodiments, if the absolute value of the first difference is less than the first threshold, it means that the change of the first capacitance sensing data in the detection data is small; if the absolute value of the second difference is less than the second threshold, it means that the change of the second capacitance sensing data in the detection data is small; if the absolute value of the first difference is greater than the first threshold, it means that the change of the first capacitance sensing data in the detection is large. Therefore, when the absolute value of the first difference is less than the first threshold and the absolute value of the second difference is less than the second threshold, the baseline change of the detection data is small; when the absolute value of the first difference is greater than the third threshold, the baseline change of the detection data is large. Therefore, the baseline change of the present application includes small and large.
[0077] In this example, the first threshold, the second threshold and the third threshold may be the same, all 10; as other implementations, the first threshold and the second threshold are both 10, and the third threshold is 15, or the first threshold is 13, the second threshold is 10, the third threshold is 12, etc. This application does not limit the specific values of the first threshold, the second threshold and the third threshold.
[0078] S340, processing the first capacitance sensing data and the second capacitance sensing data in the detection data corresponding to the operation of the electronic cigarette microphone to obtain a relative change amount of the detection data.
[0079] In some embodiments, the first capacitance sensing data and the second capacitance sensing data are subjected to difference processing to obtain a relative difference; when the relative difference is greater than the first reference value, it indicates that the relative change of the detection data is large, and when the relative difference is less than the second reference value, it indicates that the relative change of the detection data is small. Therefore, the relative change includes small and large.
[0080] In this example, the first reference value and the second reference value may be the same, both being 10; as other implementations, the first reference value and the second reference value are both 12, or the first reference value is 10 and the second reference value is 13, etc. This application does not limit the specific values of the first reference value and the second reference value.
[0081] S400: Identify the trigger signal of the electronic cigarette microphone action according to the change result.
[0082] In some embodiments, the trigger signal of the electronic cigarette microphone action is identified and judged according to the change type and the reference change amount of the detection data, or the change type, the reference change amount and the relative change amount of the detection data.
[0083] When the change type of the detection data is a decrease and the baseline change amount is large, it is determined that the trigger signal of the electronic cigarette microphone action is blowing;
[0084] When the change type of the detection data is an increase, the baseline change is small, and the relative change is small, it is determined that the trigger signal of the electronic cigarette microphone action is an interference signal, such as a human body touching the microphone line, or an external interference signal causing a trigger signal to be generated;
[0085] When the change type of the detection data is increase, the baseline change amount is large, and the relative change amount is large, it is determined that the trigger signal of the electronic cigarette microphone action is inhalation.
[0086] The present application first determines the first environment value and the second environment value based on the detection data before the electronic cigarette microphone is actuated, and then analyzes the detection data during the actuation based on the first environment value and the second environment value, and accurately identifies the trigger signal of the electronic cigarette microphone actuation through the change type, baseline change amount and relative change amount of the detection data.
[0087] Figure 4 A flow chart of a control method of an electronic cigarette according to an embodiment of the present application is shown. Exemplarily, the control method includes:
[0088] S500, identifying the trigger signal of the electronic cigarette microphone action to obtain an identification result;
[0089] S600: Control the electronic cigarette according to the recognition result.
[0090] It can be understood that the identification process of the trigger signal of the electronic cigarette microphone action in this embodiment is the same as the identification method of the electronic cigarette trigger signal in the above embodiment, that is, the options in the above embodiment are also applicable to this embodiment, so they will not be repeated here.
[0091] Figure 5 A schematic diagram of the structure of the electronic cigarette control device of an embodiment of the present application is shown. Exemplarily, the electronic cigarette control device includes:
[0092] The recognition unit is configured to recognize the trigger signal of the electronic cigarette microphone head action and obtain a recognition result; the recognition result is a blowing, inhaling or interference signal;
[0093] The control unit is configured to control the electronic cigarette according to the recognition result.
[0094] It can be understood that the device of this embodiment corresponds to the method for identifying the electronic cigarette trigger signal of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0095] The present application also provides an electronic cigarette, which includes a microphone and a controller;
[0096] The microphone outputs first capacitive sensing data in the first connection state, and outputs second capacitive sensing data in the second connection state;
[0097] The controller input end is connected to the output end of the microphone, and the controller is used to cyclically acquire the first capacitance sensing data and the second capacitance sensing data, and process all the cyclically acquired first capacitance sensing data and the second capacitance sensing data to identify the trigger signal of the microphone to obtain a recognition result; the recognition result is blowing, inhaling or interference signal; and the electronic cigarette is controlled according to the recognition result.
[0098] Exemplarily, the controller includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program, thereby causing the controller to execute the above-mentioned method for identifying the electronic cigarette trigger signal.
[0099] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0100] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0101] The present application also provides a computer-readable storage medium storing a computer program, which, when executed on a processor, implements the above-mentioned method for identifying the action of the electronic cigarette microphone or the above-mentioned method for controlling the electronic cigarette. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0102] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0104] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
[0105] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for identifying an electronic cigarette trigger signal, characterized in that: The identification method comprises: Circularly acquiring detection data of the electronic cigarette microphone; the detection data includes first capacitance sensing data output by the electronic cigarette microphone when in a first connection state and second capacitance sensing data output by the electronic cigarette microphone when in a second connection state; Processing the detection data acquired cyclically to obtain a first environmental value of the electronic cigarette microphone in the first connection state and a second environmental value of the electronic cigarette microphone in the second connection state; Determine whether the electronic cigarette microphone is in operation according to the first environmental value, the second environmental value and the latest detection data; Based on the first environmental value and the second environmental value, the detection data corresponding to the action of the electronic cigarette microphone is processed to obtain a change result; The trigger signal of the electronic cigarette microphone action is identified according to the change result.
2. The method for identifying an electronic cigarette trigger signal according to claim 1, characterized in that: The determining whether the electronic cigarette microphone is in operation according to the first environmental value, the second environmental value and the latest detection data in the cycle includes: Processing the first capacitive sensing data and the first environmental value in the latest detection data to obtain a first difference absolute value; Processing the second capacitive sensing data and the second environmental value in the latest detection data to obtain a second difference absolute value; If the absolute value of the first difference is greater than a first set value and / or the absolute value of the second difference is greater than a second set value, it is determined that the electronic cigarette microphone is in action.
3. The method for identifying an electronic cigarette trigger signal according to claim 1, characterized in that: Processing the first capacitive sensing data in the cyclically acquired detection data to obtain the first environmental value includes: Acquire a set number of first capacitive sensing data in a current time period as a group of sensing data, and process the group of capacitive sensing data to obtain a first initial environment value; The set number of first capacitance sensing data in the next time period is recirculated and obtained as another set of sensing data, the another set of sensing data is processed to obtain a first intermediate environment value, and the first initial environment value is updated based on the first intermediate environment value. When it is determined that the electronic cigarette microphone is in action, the updating is stopped to obtain the first environment value.
4. The method for identifying an electronic cigarette trigger signal according to claim 1, characterized in that: The change result includes the change type, the reference change amount and the relative change amount of the detection data; the change result is obtained by processing the detection data corresponding to the action of the electronic cigarette microphone head based on the first environmental value and the second environmental value, including: performing difference processing on first capacitance sensing data corresponding to the operation of the electronic cigarette microphone based on the first environment value to obtain a first difference value, and performing difference processing on second capacitance sensing data corresponding to the operation of the electronic cigarette microphone based on the second environment value to obtain a second difference value; Performing positive and negative judgment on the first difference and the second difference respectively to obtain the change type of the detection data; Compare the absolute value of the first difference and the absolute value of the second difference with different set thresholds respectively to obtain a reference change amount of the detection data; The first capacitance sensing data and the second capacitance sensing data in the detection data corresponding to the action of the electronic cigarette microphone are subjected to difference processing to obtain a relative change amount of the detection data.
5. The method for identifying an electronic cigarette trigger signal according to claim 4, characterized in that: The identifying the trigger signal of the electronic cigarette microphone action according to the change result includes: According to the change type and the reference change amount of the detection data, identifying that the trigger signal of the action of the electronic cigarette microphone is blowing; According to the change type, the reference change amount and the relative change amount of the detection data, it is identified that the trigger signal of the action of the electronic cigarette microphone is an interference signal or an inhalation.
6. The method for identifying an electronic cigarette trigger signal according to any one of claims 1 to 5, characterized in that: The electronic cigarette includes a controller and a two-wire microphone; The first connection state is: the negative pin of the two-wire microphone is set to be input suspended, and the positive pin of the two-wire microphone is connected to the analog interface of the controller; The second connection state is: the negative pin of the two-wire microphone is set to output a low level state, and the positive pin of the two-wire microphone is connected to the analog interface of the controller; The controller is used to read the first capacitive sensing data output by the two-wire microphone in the first connection state and the second capacitive sensing data output in the second connection state through the analog interface.
7. A method for controlling an electronic cigarette, characterized in that: include: Using the electronic cigarette trigger signal recognition method according to any one of claims 1 to 6, the trigger signal of the electronic cigarette microphone action is recognized to obtain a recognition result; The electronic cigarette is controlled according to the recognition result.
8. An electronic cigarette control device, characterized in that: include: An identification unit, configured to use the electronic cigarette trigger signal identification method according to any one of claims 1 to 6 to identify the trigger signal of the electronic cigarette microphone action to obtain an identification result; A control unit is configured to control the electronic cigarette according to the recognition result.
9. An electronic cigarette, characterized in that: The electronic cigarette includes a microphone and a controller; The microphone outputs first capacitive sensing data in a first connection state, and outputs second capacitive sensing data in a second connection state; The controller input end is connected to the output end of the microphone, and the controller is used to cyclically acquire the first capacitance sensing data and the second capacitance sensing data, and process all the cyclically acquired first capacitance sensing data and the second capacitance sensing data to identify the trigger signal of the microphone to obtain an identification result; and control the electronic cigarette according to the identification result.
10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed on a processor, implements the method for identifying an electronic cigarette trigger signal according to any one of claims 1 to 6 or the method for controlling an electronic cigarette according to claim 7.
