Electronic atomization device, control method thereof and aerial fog generating device
By using a hash algorithm to calculate and compare the hash values of the control program in the controller of the electronic atomization device, the problem that the control program is prone to tampering is solved, ensuring that the device only runs safe and effective programs, and avoids the device crash or damage.
Patent Information
- Application Number
- CN202311481485.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2025-05-09
AI Technical Summary
Among the existing electronic atomization devices, software safety start technology is relatively scarce, which leads to the control program being easily illegally tampered with, which leads to the equipment being crashed or damaged, making it difficult to ensure the operation of safe and effective control programs.
The hash algorithm is used to calculate the hash value of the control program and store the original hash value in the controller. After the initialization is completed by running the startup program, the hash value of the current control program is obtained and the stored original hash value is compared. If it does not match, it will prevent the jump to the running control program to prevent the tampered control program from running.
It effectively avoids equipment crashes or damage caused by the control program being tampered with, and ensures that the electronic atomization device only operates safe and effective control programs.
Smart Images

Figure CN119949577A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of atomization technology, and in particular to an electronic atomization device and a control method thereof, and an aerosol generating device. Background Art
[0002] In the related technology, the software security startup technology of electronic atomization devices is relatively scarce, and the simple accumulation and verification technology cannot avoid the risk of illegal tampering of the control program. When the control program is illegally tampered with or destroyed, it will cause the device to freeze or be damaged, making it difficult to ensure that the electronic atomization device always runs a safe and effective control program. Summary of the invention
[0003] The present application mainly provides an electronic atomization device and a control method thereof, and an aerosol generating device, so as to solve the problem in the related art that it is difficult to ensure the safe and effective control program of the electronic atomization device.
[0004] In order to solve the above technical problems, a technical solution adopted by the present application is to provide an electronic atomization device, comprising:
[0005] A liquid storage chamber, used for storing a liquid matrix;
[0006] A heating body, used for heating the liquid matrix to generate an aerosol;
[0007] A controller storing an executable startup program, an executable control program, and a first hash value obtained by calculating the control program through a hash algorithm; the controller is configured to initialize the electronic atomization device by running the startup program, and to control the heating body to heat the liquid matrix by running the control program;
[0008] The controller is also configured to:
[0009] After running the startup program to complete the initialization, the current control program is acquired, and the acquired control program is calculated by the hash algorithm to obtain a second hash value;
[0010] The second hash value is compared with the first hash value, and whether the control program has been tampered with is determined according to the comparison result; and when it is determined that the control program has been tampered with, the jump from running the startup program to running the control program is prevented.
[0011] In some embodiments, the memory of the controller includes a boot program area and an application program area; the boot program area stores the executable boot program; the application program area stores the executable control program and the first hash value.
[0012] In some embodiments, the controller is configured to: after running the startup program to complete the initialization, obtain the current control program from the application program area.
[0013] In some embodiments, the controller is configured to run the startup procedure in response to the electronic atomization device being powered on.
[0014] In some embodiments, the controller is configured to: determine that the control program has been tampered with based on the second hash value being different from the first hash value, and / or determine that the control program has not been tampered with based on the second hash value being the same as the first hash value.
[0015] In some embodiments, the hash algorithm is a one-way algorithm;
[0016] And / or, the hash algorithm cannot reversely calculate the control program through the first hash value.
[0017] In some embodiments, the first hash value is a read-only data type;
[0018] And / or, the first hash value can only be read but cannot be deleted or changed.
[0019] In some embodiments, when the same hash algorithm is used for calculation, the input data of the hash algorithm is the same, and the output data obtained by calculation is also the same; the input data of the hash algorithm is different, and the output data obtained by calculation is also different;
[0020] After the control program is tampered with, the second hash value calculated by the hash algorithm is different from the first hash value stored in the controller.
[0021] In some embodiments, the first hash value and the second hash value calculated by the control program using the same hash algorithm have the same byte length.
[0022] In order to solve the above technical problems, another technical solution adopted by the present application is: to provide a control method of an electronic atomization device, the electronic atomization device comprising:
[0023] A liquid storage chamber, used for storing a liquid matrix;
[0024] A heating body, used for heating the liquid matrix to generate an aerosol;
[0025] A controller, wherein the memory of the controller includes a startup program area and an application program area; the startup program area stores an executable startup program; the application program area stores an executable control program and a first hash value obtained by calculating the control program through a hash algorithm; the controller is configured to initialize the electronic atomization device by running the startup program, and to control the heating body to heat the liquid matrix by running the control program;
[0026] The method comprises:
[0027] Controlling the controller to run the startup program to complete the initialization, and obtaining the current control program from the application program area, and calculating the obtained control program through the hash algorithm to obtain a second hash value;
[0028] The second hash value is compared with the first hash value, and whether the control program has been tampered with is determined according to the comparison result; and when it is determined that the control program has been tampered with, the controller is prevented from jumping from running the startup program to running the control program.
[0029] In order to solve the above technical problems, another technical solution adopted by the present application is: to provide an aerosol generating device, which is configured to heat an aerosol generating product to generate an aerosol; comprising:
[0030] a receiving chamber for removably receiving an aerosol-generating article;
[0031] a heating body, used to heat the aerosol generating product received in the receiving cavity;
[0032] A controller storing an executable startup program, an executable control program, and a first hash value obtained by calculating the control program through a hash algorithm; the controller is configured to initialize the aerosol generating device by running the startup program, and to control the heating body to heat the aerosol generating product according to a predetermined heating curve by running the control program;
[0033] The controller is also configured to:
[0034] After running the startup program to complete the initialization, the current control program is acquired, and the acquired control program is calculated by the hash algorithm to obtain a second hash value;
[0035] The second hash value is compared with the first hash value, and whether the control program has been tampered with is determined according to the comparison result; and when it is determined that the control program has been tampered with, the jump from running the startup program to running the control program is prevented.
[0036] The beneficial effects of the present application are: different from the prior art, the present application discloses an electronic atomization device and its control method, and an aerosol generating device. The electronic atomization device includes: a liquid storage chamber for storing a liquid matrix; a heating body for heating a liquid matrix to generate an aerosol; a controller storing an executable startup program, an executable control program, and a first hash value obtained by calculating the control program through a hash algorithm; the controller is configured to initialize the electronic atomization device by running the startup program, and can control the heating body to heat the liquid matrix by running the control program; the controller is also configured to: after the startup program is initialized, the current control program is obtained, and the obtained control program is calculated by a hash algorithm to obtain a second hash value; the second hash value is compared with the first hash value, and it is determined whether the control program has been tampered with according to the comparison result; and when it is determined that the control program has been tampered with, it is prevented from jumping from running the startup program to running the control program. Through the above settings, it can be avoided that the control program is still running when it is tampered with, ensuring that the electronic atomization device only runs safe and effective control programs, and avoiding device crashes or damage. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0038] Figure 1 It is a structural schematic diagram of an embodiment of the electronic atomization device provided by the present application;
[0039] Figure 2 It is a flow chart of the control method of the electronic atomization device provided by the present application;
[0040] Figure 3 It is a structural schematic diagram of an embodiment of an aerosol generating device provided in the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0042] The terms "first", "second", "third" in the embodiments of the present application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0044] See also Figure 1 , Figure 1 It is a structural schematic diagram of an embodiment of the electronic atomization device provided in the present application.
[0045] See also Figure 1 , the present application provides an electronic atomization device 300, including several components arranged in an external body or housing (which may be referred to as a housing). The overall design of the external body or housing may vary, and the type or configuration of the external body that may define the overall size and shape of the electronic atomization device 300 may vary. Typically, the elongated body may be formed by a single integral housing, or the elongated housing may be formed by two or more separable bodies. For example, the electronic atomization device 300 may have a control body at one end, the control body having a housing containing one or more reusable components (e.g., a battery such as a rechargeable battery and / or a rechargeable supercapacitor, and various electronic devices for controlling the operation of the product), and an external body or housing for suction at the other end. In some examples, the housing may be formed of a metal or alloy such as stainless steel or aluminum. Other suitable materials include various plastics (e.g., polycarbonate, polypropylene, etc.), metal-plating over plastic, ceramics, and the like.
[0046] Furthermore, if Figure 1As shown, the electronic atomization device 300 includes an atomizer 100 that stores a liquid matrix and atomizes the liquid matrix to generate an aerosol, and a power supply mechanism 200 that supplies power to the atomizer 100 .
[0047] In some embodiments, Figure 1 As shown, the power supply mechanism 200 includes a receiving cavity 270 disposed at one end along the length direction and used to receive at least a portion of the atomizer 100, and a second electrical contact 230 at least partially exposed on the surface of the receiving cavity 270, which is used to form an electrical connection with the atomizer 100 when at least a portion of the atomizer 100 is received and accommodated in the power supply mechanism 200, thereby supplying power to the atomizer 100. The atomizer 100 is provided with a first electrical contact 21, and when at least a portion of the atomizer 100 is received in the receiving cavity 270, the atomizer 100 contacts the second electrical contact 230 through the first electrical contact 21, thereby establishing a conductive connection with the power supply mechanism 200.
[0048] A sealing member 260 is provided in the power supply mechanism 200, and the sealing member 260 divides at least a portion of the internal space of the power supply mechanism 200 to form the above-mentioned accommodation chamber 270. Figure 1 In the illustrated embodiment, the seal 260 is configured to extend along the cross-sectional direction of the power mechanism 200 and is preferably made of a flexible material such as silicone, thereby preventing the liquid matrix that infiltrates from the atomizer 100 into the accommodating chamber 270 from flowing toward the controller 220, the sensor 250 and other components inside the power mechanism 200.
[0049] exist Figure 1 In the illustrated embodiment, the power supply mechanism 200 further includes a battery cell 210 for power supply at the other end away from the accommodating chamber 270 in the length direction; and a controller 220 disposed between the battery cell 210 and the accommodating chamber 270, the controller 220 being operable to guide current between the battery cell 210 and the second electrical contact 230. The power supply mechanism 200 includes a sensor 250 for sensing changes in the suction airflow generated in the atomizer 100 when the electronic atomization device 300 is used for inhalation, and then the controller 220 controls the battery cell 210 to output power to the atomizer 100 according to the sensing result of the sensor 250. Furthermore, in Figure 1 In the illustrated embodiment, the power supply mechanism 200 is provided with a charging interface 240 at the other end away from the accommodating cavity 270 for charging the battery cell 210 .
[0050] Specifically, the atomizer 100 of the electronic atomization device 300 includes a liquid storage chamber (not shown) and a heating body 40, the liquid storage chamber is used to store the liquid matrix, and the heating body 40 is used to heat the liquid matrix to generate an aerosol. Specifically, the heating body 40 may include a porous body (not shown) and a heating element (not shown) disposed on the surface of the porous body, the porous body has a plurality of micropores inside, and the porous body is connected to the liquid storage chamber fluid so that the liquid matrix in the liquid storage chamber can be absorbed by the porous body and heated by the heating element to generate an aerosol. The aerosol generated by the atomization of the liquid matrix by the heating body 40 flows to the mouthpiece position of the atomizer 100 via the atomization chamber (not shown), and is finally inhaled by the user.
[0051] The controller 220 of the electronic atomization device 300 stores an executable startup program, an executable control program, and a first hash value obtained by calculating the control program using a hash algorithm. The controller 220 is configured to initialize the electronic atomization device 300 by running the startup program, and to control the heating body 40 to heat the liquid substrate by running the control program.
[0052] In some embodiments, the startup program may include a boot loader program, and the electronic atomization device 300 may be initialized by running the boot loader program, wherein "initialization" refers to the process of assigning the variables or states of the software and hardware of the device to the original default values or default states, and preparing the unprepared so that it can enter the work at any time. Specifically, the boot loader program is a startup program, and the boot loader program is first executed when the controller 220 is started to complete the initialization of the electronic atomization device 300. The control program is the main control application.
[0053] Furthermore, the controller 220 is also configured to: after the startup program is initialized, obtain the current control program, and calculate the obtained control program through a hash algorithm to obtain a second hash value; compare the second hash value with the first hash value, and determine whether the control program has been tampered with according to the comparison result; and when it is determined that the control program has been tampered with, prevent the jump from running the startup program to running the control program. Through the above settings, it is possible to quickly determine whether the control program has been tampered with, and prevent the tampered control program from running, ensuring that the electronic atomization device 300 can only run safe and effective control programs that have not been tampered with, avoiding device freezes or damage.
[0054] Specifically, the hash value corresponding to the control program can be calculated by the hash algorithm. Among them, the first hash value is the hash value obtained by the hash algorithm of the original correct control program, that is, the control program that has not been tampered with is the first hash value obtained by the hash algorithm. After the startup program is run to complete the initialization, the current control program is obtained and the obtained control program can be used to calculate the second hash value using the same hash algorithm. By comparing the first hash value with the second hash value, it can be determined whether the control program has been tampered with.
[0055] In some embodiments, the memory of the controller 220 includes a boot program area and an application program area, wherein the boot program area stores an executable boot program, and the application program area stores an executable control program and a first hash value obtained by the control program through a hash algorithm. In some embodiments, the controller 220 is configured to run the boot program in response to the electronic atomization device 300 being powered on. Among them, "power on" refers to the process from the power supply being turned on to the system being stable and able to work, also known as the power-on time. In other words, the controller 220 runs the boot program to complete the initialization of the electronic atomization device 300 after the electronic atomization device 300 is powered on. In some embodiments, after the boot program is run to complete the initialization, the controller 220 obtains the current control program from the application program area to calculate the second hash value corresponding to the current control program. That is, when the electronic atomization device 300 is powered on, the boot program is first run, and then the boot program jumps to the application program area to facilitate the subsequent running of the application.
[0056] Specifically, the purpose of the hash algorithm is to verify whether the original data has been tampered with. When the same hash algorithm is used for calculation, if the input data is the same, the output value, that is, the hash value, must be the same. The hash algorithm is extremely sensitive to the input data. Even if the original input data is only modified a little bit, the calculated hash value will change greatly. In addition, the hash algorithm has the characteristic of anti-collision. It is difficult to find two pieces of input data with different contents so that the calculated hash values are the same. That is, for any two different input data, the possibility of the calculated hash values being the same is extremely small. For a given input data, it is extremely difficult to find another input data with the same hash value.
[0057] That is to say, if the control program has not been tampered with, the second hash value obtained by calculating the current control program through the hash algorithm must be the same as the first hash value calculated by the hash algorithm for the original control program stored in the controller 220; on the contrary, if the control program is changed, the second hash value calculated by the hash algorithm is different from the first hash value. That is, if the current second hash value calculated is the same as the stored first hash value, it means that the currently acquired control program has not been tampered with; if the current second hash value calculated is different from the stored first hash value, it means that the currently acquired control program has been tampered with. Therefore, in some embodiments, the above-mentioned comparison of the second hash value with the first hash value and determining whether the control program has been tampered with according to the comparison result includes: when the second hash value is different from the first hash value, it is determined that the control program has been tampered with; and / or, when the second hash value is the same as the first hash value, it is determined that the control program has not been tampered with. That is to say, the controller 220 is configured to: determine that the control program has been tampered with based on the second hash value being different from the first hash value, and / or determine that the control program has not been tampered with based on the second hash value being the same as the first hash value. By comparing whether the first hash value is the same as the second hash value, it is possible to accurately determine whether the control program has been tampered with. At the same time, the forward calculation speed of the hash algorithm is extremely fast, and the hash value can be quickly calculated within limited time and resources, that is, the second hash value can be quickly calculated, and then it can be quickly determined whether the control program has been tampered with, which is conducive to improving work efficiency.
[0058] It can be understood that by setting the controller 220 specifically in the above manner, after initialization is completed, the current control program is obtained and the second hash value is calculated by the hash algorithm. By comparing the second hash value with the first hash value, it is determined whether the control program has been tampered with. The hash algorithm can be used to effectively determine whether the control program has been tampered with, with high accuracy and fast speed, thus avoiding misjudgment. Moreover, when it is determined that the control program has been tampered with, it is prevented from jumping from running the startup program to running the control program, that is, the control program is not run, thus avoiding the problem of the device freezing or being damaged due to the continued running of the control program after the control program has been tampered with. The controller 220 can only control the operation of a legal, safe and effective control program, that is, a control program that has not been tampered with, thus solving the problem in the related art that it is difficult to ensure that the electronic atomization device 300 runs a safe and effective control program.
[0059] The hash algorithm is a software algorithm derived from a one-way cryptographic system. It was originally used to perform an irreversible mapping from plaintext to ciphertext. It only has an encryption process but no decryption process. Inputting a string of plaintext characters into the hash algorithm can obtain a specific output value, but the input value cannot be inferred from the output value, that is, the encryption process is irreversible. This means that when the user inputs data A, the hash algorithm can output the result H(A), but it is not feasible to use H(A) to infer A. The user cannot invert the input plaintext through the output hash data. That is, the hash algorithm is a one-way algorithm, and / or, the hash algorithm can only calculate the first hash value through the control program, and cannot reversely calculate the control program through the first hash value, that is, the hash algorithm cannot be used to invert the correct original control program from the first hash value, avoiding the possibility of inverting the correct control program through the first hash value, which is conducive to preventing the control program from being tampered with.
[0060] In some embodiments, the first hash value is a read-only data type, and / or the first hash value can only be read but not deleted or changed. It can be understood that setting the first hash value to a read-only data type, and / or setting the first hash value to data that can only be read but not deleted or changed can prevent the first hash value from being deleted or changed, resulting in the inability to compare with the second hash value or the inaccurate comparison result with the second hash value, and then resulting in the inability to determine whether the control program has been tampered with or the inaccurate judgment result of whether the control program has been tampered with, thereby avoiding the occurrence of misjudgment, and furthermore, it is more conducive to ensuring that the electronic atomization device 300 can only run safe and effective control programs, preventing the tampered control program from running, and improving the performance of the electronic atomization device 300.
[0061] The hash algorithm may include MD (Message Digest), i.e., a message digest algorithm, or SHA (Secure Hash Algorithm), i.e., a secure hash algorithm. Specifically, any one of MD2, MD4, MD5, RipeMD-160, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and SHA-3 hash algorithms may be used to calculate the first hash value and the second hash value corresponding to the control program. For the same hash algorithm, regardless of the length of the input data, the byte length of the hash value outputted by the same hash algorithm is a fixed value. Therefore, the byte lengths of the first hash value and the second hash value calculated using the same hash algorithm are the same, which makes it easier to compare the first hash value with the second hash value. For example, the output value of MD5 is 128 bits and 16 bytes in length, the output value of MD4 is 128 bits and 16 bytes in length, the output value of RipeMD-160 is 160 bits and 20 bytes in length, the output value of SHA-1 is 160 bits and 20 bytes in length, the output value of SHA-224 is 224 bits and 28 bytes in length, the output value of SHA-256 is 256 bits and 32 bytes in length, the output value of SHA-384 is 384 bits and 48 bytes in length, and the output value of SHA-512 is 512 bits and 64 bytes in length.
[0062] See also Figure 2 , Figure 2 It is a flow chart of the control method of the electronic atomization device provided in this application.
[0063] See also Figure 2 , the present application also provides a control method of an electronic atomization device 300, which is applied to the electronic atomization device 300, and the electronic atomization device 300 can be the electronic atomization device 300 in any of the embodiments described above. Specifically, the electronic atomization device 300 includes: a liquid storage chamber, a heating body 40 and a controller 220, the liquid storage chamber is used to store the liquid matrix, and the heating body 40 is used to heat the liquid matrix to generate an aerosol. The memory of the controller 220 includes a startup program area and an application program area, wherein the startup program area stores an executable startup program, the application program area stores an executable control program, and a first hash value obtained by calculating the control program through a hash algorithm, and the controller 220 is configured to initialize the electronic atomization device 300 by running the startup program, and can control the heating body 40 to heat the liquid matrix by running the control program. The specific structure of the electronic atomization device 300 can be compared with Figure 1 The structure of the electronic atomization device 300 shown is the same and will not be described again here.
[0064] Specifically, the control method of the electronic atomization device 300 includes:
[0065] S1: Control the controller to run the startup program to complete initialization, obtain the current control program from the application program area, and calculate the obtained control program through a hash algorithm to obtain a second hash value.
[0066] Specifically, in response to the electronic atomization device 300 being powered on, the controller 220 is controlled to run the startup program stored in the startup program area to complete the initialization of the electronic atomization device 300, so that the electronic atomization device 300 can enter work at any time. After the controller 220 runs the startup program to complete the initialization, the controller 220 is controlled to obtain the current control program from the application program area, and then the hash algorithm is used to calculate the obtained current control program to obtain a second hash value corresponding to the current control program.
[0067] Among them, when the second hash value is obtained by calculating the hash algorithm for the acquired current control program, the hash algorithm used is the same as the hash algorithm used to calculate the first hash value for the control program stored in the application area of the controller 220, and the byte length of the calculated first hash value is the same as the byte length of the second hash value. Specifically, any one of MD2, MD4, MD5, RipeMD-160, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and SHA-3 can be used to calculate the hash value corresponding to the control program. This application does not limit this, as long as the hash algorithm used to calculate the first hash value is the same as the hash algorithm used to calculate the second hash value.
[0068] Among them, the hash algorithm is a one-way algorithm. The hash algorithm can only calculate the first hash value through the control program, and cannot reversely calculate the control program through the first hash value. That is, the hash algorithm cannot be used to reversely deduce the correct original control program from the first hash value, which is helpful to prevent the control program from being tampered with.
[0069] S2: comparing the second hash value with the first hash value, and determining whether the control program has been tampered with according to the comparison result; and when it is determined that the control program has been tampered with, preventing the controller from jumping from running the startup program to running the control program.
[0070] Specifically, after the second hash value corresponding to the acquired control program is calculated by the hash algorithm, the second hash value is compared with the first hash value stored in the application program area of the controller 220 to determine whether the control program has been tampered with according to the comparison result.
[0071] In some embodiments, comparing the second hash value with the first hash value and determining whether the control program has been tampered with according to the comparison result specifically includes:
[0072] When the second hash value is different from the first hash value, it is determined that the control program has been tampered with; when the second hash value is the same as the first hash value, it is determined that the control program has not been tampered with.
[0073] Specifically, since the purpose of the hash algorithm is to verify whether the original data has been tampered with, when the same hash algorithm is used for calculation, if the input data is the same, the output value, i.e., the hash value, must be the same, and the hash algorithm is extremely sensitive to the input data. Even if the original input data is only modified a little bit, the calculated hash value will change greatly. Moreover, the hash algorithm has the characteristic of anti-collision. It is difficult to find two pieces of input data with different contents so that the hash values calculated by them are the same. That is, for any two different input data, the possibility of the calculated hash values being the same is extremely small. For a given input data, it is extremely difficult to find another input data with the same hash value. At the same time, the first hash value is a read-only data type. The first hash value can only be read but cannot be deleted or changed, which is conducive to improving the accuracy of the judgment result and preventing misjudgment.
[0074] Therefore, if the control program has not been tampered with, the second hash value obtained by calculating the current control program through the hash algorithm must be the same as the first hash value calculated by the hash algorithm for the original control program stored in the controller 220; on the contrary, if the control program is changed, the second hash value calculated by the hash algorithm is different from the first hash value. That is, if the current second hash value calculated is the same as the stored first hash value, it means that the currently acquired control program has not been tampered with; if the current second hash value calculated is different from the stored first hash value, it means that the currently acquired control program has been tampered with. By comparing whether the first hash value is the same as the second hash value, it is possible to accurately determine whether the control program has been tampered with. The judgment method is relatively simple and the judgment result is highly accurate. At the same time, the forward calculation speed of the hash algorithm is extremely fast, and the hash value can be quickly calculated within a limited time and resources, that is, the second hash value can be quickly calculated, and then the control program can be quickly determined whether it has been tampered with, which is conducive to improving work efficiency.
[0075] Further, when it is determined that the control program has been tampered with, the controller 220 is prevented from jumping from running the startup program to running the control program. That is, after comparing the first hash value with the second hash value and determining that the control program has been tampered with, the controller 220 is prevented from jumping from the startup program area to the application program area to run the control program. The controller 220 still runs the startup program, that is, the tampered control program is prevented from running, preventing the electronic atomization device 300 from freezing or being damaged. When it is determined that the control program has not been tampered with, the controller 220 is controlled to jump from running the startup program to running the control program, and the control program runs normally to control the heating body 40 to heat the liquid substrate.
[0076] Through the above-mentioned control method, it is possible to determine whether the control program has been tampered with, and when it is determined that the control program has been tampered with, the control program is not run. The controller 220 can only run the control program that has not been tampered with to control the heating body 40 to heat the liquid matrix, thereby preventing the problem of the electronic atomization device 300 freezing or being damaged due to the control program still being run when it has been tampered with, and improving the performance of the electronic atomization device 300.
[0077] See also Figure 3 , Figure 3 It is a structural schematic diagram of an embodiment of an aerosol generating device provided in the present application.
[0078] See also Figure 3 The present application also provides an aerosol generating device 400, which is configured to heat an aerosol generating article 1000 to generate an aerosol. The aerosol generating device 400 includes a receiving cavity (not shown), a heating body 40 and a controller 220, the receiving cavity is used to removably receive the aerosol generating article 1000, and the heating body 40 is used to heat the aerosol generating article 1000 received in the receiving cavity.
[0079] For details, see Figure 3 As shown, the aerosol generating device 400 includes a receiving chamber, a heating body 40, a battery cell 210 and a controller 220. The receiving chamber has an opening 41. In use, the aerosol generating article 1000 can be removably received in the receiving chamber through the opening 41 of the receiving chamber. In some embodiments, the heating body 40 at least partially extends in the receiving chamber. When the aerosol generating article 1000 is received in the receiving chamber, the heating body 40 is inserted into the aerosol generating article 1000 for heating, so that the aerosol generating article 1000 releases a plurality of volatile compounds, and these volatile compounds are formed only by heating treatment. The battery cell 210 is used to supply power, and the controller 220 is used to guide current between the battery cell 210 and the heating body 40.
[0080] In a preferred embodiment, the DC supply voltage provided by the battery cell 210 is in the range of about 2.5V to about 9.0V, and the ampere of the DC current provided by the battery cell 210 is in the range of about 2.5A to about 20A.
[0081] In a preferred embodiment, the heating body 40 is generally in the shape of a pin, a needle, a rod, a bar, a column, a sheet or a plate, which is advantageous for insertion into the aerosol generating article 1000; at the same time, the heating body 40 can have a length of approximately 12 to 20 mm and an outer diameter of approximately 2 to 4 mm.
[0082] Further, in an optional embodiment, the aerosol generating article 1000 preferably uses a tobacco-containing material that releases volatile compounds from a substrate when heated; or it can also be a non-tobacco material that can be heated and is suitable for electric heating to produce smoke.
[0083] The aerosol generating article 1000 preferably uses a solid matrix and may include one or more of powders, particles, shredded strips, ribbons or flakes of one or more of herb leaves, tobacco leaves, homogenized tobacco, and expanded tobacco; alternatively, the solid matrix may contain additional tobacco or non-tobacco volatile flavor compounds to be released when the matrix is heated.
[0084] In some embodiments, the heating body 40 may generally include a resistive heating element and an auxiliary substrate for assisting the fixation and preparation of the resistive heating element. For example, in some embodiments, the resistive heating element is in the shape or form of a spiral coil. Alternatively, in some other embodiments, the resistive heating element is in the form of a conductive track bonded to a substrate. Alternatively, in some other embodiments, the resistive heating element is in the shape of a thin sheet. Alternatively, in some other embodiments, the heating body 40 is an electromagnetic induction heater that can be penetrated by a changing magnetic field to generate heat. Alternatively, in some other embodiments, the heating body 40 is an infrared heater that generates aerosol by radiating infrared rays to the aerosol generating article 1000 to heat the aerosol generating article 1000.
[0085] In some embodiments, the memory of the controller 220 includes a startup program area and an application program area, the startup program area stores an executable startup program, the application program area stores an executable control program, and a first hash value obtained by calculating the control program through a hash algorithm, and the controller 220 is configured to initialize the aerosol generating device 400 by running the startup program, and to control the heating body 40 to heat the aerosol generating product 1000 according to a predetermined heating curve by running the control program. Specifically, the controller 220 runs the startup program to initialize the aerosol generating device 400 in response to the aerosol generating device 400 being powered on, so that the aerosol generating device 400 can enter operation at any time.
[0086] Specifically, when the control program is run to control the heating body 40 to heat the aerosol generating product 1000 according to a predetermined heating curve, the predetermined heating curve can refer to any heating curve in the Chinese invention patent application document with application number 201910725000.0, application date 2019.08.07, and application publication number CN112335940A to achieve the same technical effect, which will not be repeated here.
[0087] Furthermore, the controller 220 is also configured to: after the running startup program completes initialization, obtain the current control program, and obtain a second hash value by calculating the obtained control program through a hash algorithm; compare the second hash value with the first hash value, and determine whether the control program has been tampered with according to the comparison result, and when it is determined that the control program has been tampered with, prevent the jump from the running startup program to the running control program. Specifically, in some embodiments, after the running startup program completes initialization, the controller 220 obtains the current control program from the application program area. That is, after the running startup program completes initialization, the controller 220 first obtains the current control program from the application program area and determines whether the control program has been tampered with, and further decides whether to run the control program based on the judgment result.
[0088] Specifically, the purpose of the hash algorithm is to verify whether the original data has been tampered with. When the same hash algorithm is used for calculation, if the input data is the same, the output value, i.e., the hash value, must be the same, and the hash algorithm is extremely sensitive to the input data. Even if the original input data is only modified a little bit, the calculated hash value will change greatly. In other words, if the control program has not been tampered with, the second hash value calculated by the hash algorithm for the current control program must be the same as the first hash value calculated by the hash algorithm for the original control program stored in the controller 220; on the contrary, if the control program is changed, the second hash value calculated by the hash algorithm is different from the first hash value. That is, if the current second hash value calculated is the same as the stored first hash value, it means that the currently acquired control program has not been tampered with; if the current second hash value calculated is different from the stored first hash value, it means that the currently acquired control program has been tampered with.
[0089] Therefore, in some embodiments, the above-mentioned comparison of the second hash value with the first hash value and the specific content of determining whether the control program has been tampered with according to the comparison result include: when the second hash value is different from the first hash value, it is determined that the control program has been tampered with; and / or, when the second hash value is the same as the first hash value, it is determined that the control program has not been tampered with. That is, the controller 220 is configured to: determine that the control program has been tampered with based on the second hash value being different from the first hash value, and / or, determine that the control program has not been tampered with based on the second hash value being the same as the first hash value. By comparing whether the first hash value is the same as the second hash value, it is possible to accurately determine whether the control program has been tampered with. At the same time, the forward calculation speed of the hash algorithm is extremely fast, and the hash value can be quickly calculated within a limited time and resources, that is, the second hash value can be quickly calculated, and then it can be quickly determined whether the control program has been tampered with, which is conducive to improving work efficiency.
[0090] By setting the controller 220 specifically as described above, after initialization is completed, the current control program is obtained and a second hash value is calculated using a hash algorithm. By comparing the second hash value with the first hash value, it is determined whether the control program has been tampered with. The hash algorithm can be used to effectively determine whether the control program has been tampered with, with high accuracy and high speed, thereby avoiding misjudgment. Moreover, when it is determined that the control program has been tampered with, the jump from running the startup program to running the control program is prevented, that is, the control program is not run when it has been tampered with, thereby avoiding the problem of the device freezing or being damaged due to the continued running of the control program after the control program has been tampered with. The controller 220 can only control the operation of a legal, safe and effective control program, that is, a control program that has not been tampered with, so as to control the heating body 40 to heat the aerosol generating product 1000 according to a predetermined heating curve by running the control program, thereby meeting user needs and improving user experience.
[0091] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An electronic atomization device, characterized in that: include: A liquid storage chamber, used for storing a liquid matrix; A heating body, used for heating the liquid matrix to generate an aerosol; A controller storing an executable startup program, an executable control program, and a first hash value obtained by calculating the control program through a hash algorithm; The controller is configured to initialize the electronic atomization device by running the startup program, and to control the heating body to heat the liquid substrate by running the control program; The controller is also configured to: After running the startup program to complete the initialization, the current control program is acquired, and the acquired control program is calculated by the hash algorithm to obtain a second hash value; comparing the second hash value with the first hash value, and determining whether the control program has been tampered with according to the comparison result; And when it is determined that the control program has been tampered with, the jump from running the startup program to running the control program is prevented.
2. The electronic atomization device according to claim 1, characterized in that: The memory of the controller includes a boot program area and an application program area; the boot program area stores the executable boot program; the application program area stores the executable control program and the first hash value.
3. The electronic atomization device according to claim 2, characterized in that: The controller is configured to: after running the startup program to complete the initialization, obtain the current control program from the application program area.
4. The electronic atomization device according to claim 1, characterized in that: The controller is configured to run the startup program in response to the electronic atomization device being powered on.
5. The electronic atomization device according to claim 1, characterized in that: The controller is configured to: determine that the control program has been tampered with based on the second hash value being different from the first hash value, and / or determine that the control program has not been tampered with based on the second hash value being the same as the first hash value.
6. The electronic atomization device according to claim 1, characterized in that: The hash algorithm is a one-way algorithm; And / or, the hash algorithm cannot reversely calculate the control program through the first hash value.
7. The electronic atomization device according to claim 1, characterized in that: The first hash value is a read-only data type; And / or, the first hash value can only be read but cannot be deleted or changed.
8. The electronic atomization device according to claim 1, characterized in that: The first hash value and the second hash value calculated by the control program using the same hash algorithm have the same byte length.
9. A control method for an electronic atomization device, the electronic atomization device comprising: A liquid storage chamber, used for storing a liquid matrix; A heating body, used for heating the liquid matrix to generate an aerosol; A controller, wherein the memory of the controller includes a boot program area and an application program area; The startup program area stores an executable startup program; the application program area stores an executable control program and a first hash value obtained by calculating the control program through a hash algorithm; The controller is configured to initialize the electronic atomization device by running the startup program, and to control the heating body to heat the liquid substrate by running the control program; Characterized in that the method comprises: Controlling the controller to run the startup program to complete the initialization, and obtaining the current control program from the application program area, and calculating the obtained control program through the hash algorithm to obtain a second hash value; The second hash value is compared with the first hash value, and whether the control program has been tampered with is determined according to the comparison result; and when it is determined that the control program has been tampered with, the controller is prevented from jumping from running the startup program to running the control program.
10. An aerosol generating device, configured to heat an aerosol generating article to generate an aerosol; characterized in that: include: a receiving chamber for removably receiving an aerosol-generating article; a heating body, used to heat the aerosol generating product received in the receiving cavity; A controller storing an executable startup program, an executable control program, and a first hash value obtained by calculating the control program through a hash algorithm; The controller is configured to initialize the aerosol generating device by running the startup program, and to control the heating body to heat the aerosol generating product according to a predetermined heating curve by running the control program; The controller is also configured to: After running the startup program to complete the initialization, the current control program is acquired, and the acquired control program is calculated by the hash algorithm to obtain a second hash value; comparing the second hash value with the first hash value, and determining whether the control program has been tampered with according to the comparison result; And when it is determined that the control program has been tampered with, the jump from running the startup program to running the control program is prevented.
Citation Information
Patent Citations
Aerosol-generating system, smokable material, and aerosol-generating device
CN112335940A
Cited By
Aerosol-generating device and power supply body for aerosol-generating device
CN224483046U