Software updating method and device of aerosol generator and medium
By automatically comparing versions and times between aerosol generators of the same model, software updates can be achieved in an offline environment, solving the problem of users being unable to update in a timely manner and improving update efficiency and user experience.
Patent Information
- Application Number
- CN202510744759.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-10-17
AI Technical Summary
Users cannot connect the aerosol generator to the backend server for software updates anytime and anywhere, making it difficult to experience new features or fix patches in a timely manner, reducing usage flexibility and satisfaction.
By establishing a communication connection between aerosol generators of the same model, the software versions and startup times are compared. If the difference is less than a threshold and the new version is newer, the software package is automatically transmitted for upgrading, thus achieving updates in a network-free environment.
The software update efficiency and usage flexibility of the aerosol generator are improved, and the user experience is improved.
Smart Images

Figure CN120803487A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of aerosol generators, and in particular to a method, device, and medium for updating software of an aerosol generator. Background Art
[0002] An aerosol generator (also known as an electronic atomization device) is a portable device that uses electrical energy to heat the aerosol-generating matrix to produce inhalable aerosols. Its core function is to convert liquid substances into tiny particle suspensions for users to inhale through oral inhalation.
[0003] In related technologies, aerosol generators implement functional control through built-in software programs and rely on the network to download software updates from a backend server to expand functionality or optimize performance. However, in actual use, it has been found that users are often unable to connect the aerosol generator to the backend server at any time and anywhere (for example, in an environment without an Internet connection). This makes it difficult to experience new features or fix patches in a timely manner, reducing the flexibility and satisfaction of using the aerosol generator.
[0004] In summary, the problems existing in related technologies need to be solved urgently. Summary of the Invention
[0005] The purpose of this application is to solve one of the technical problems existing in the related art to at least a certain extent.
[0006] To this end, an object of embodiments of the present application is to provide a method, device, and medium for updating software of an aerosol generator.
[0007] In order to achieve the above technical objectives, the technical solutions adopted in the embodiments of the present application include:
[0008] In one aspect, an embodiment of the present application provides a method for updating software of an aerosol generator, which is applied to a first aerosol generator, and the method includes:
[0009] In response to a user's startup operation, the device is turned on and a communication connection is established with a second aerosol generator; wherein the first aerosol generator and the second aerosol generator are of the same model;
[0010] Determining a first version of the software program of the first aerosol generator and a first time point of the current startup of the first aerosol generator, and obtaining a second version of the software program of the second aerosol generator and a second time point of the current startup of the second aerosol generator;
[0011] Calculating a time difference between the second time point and the first time point;
[0012] If the time difference value is less than or equal to a first preset threshold, and the second version is a newer program version relative to the first version, a software program package transmitted by the second aerosol generator is received, and a software program of the first aerosol generator is updated and upgraded according to the software program package.
[0013] In addition, the software updating method of the aerosol generator according to the above-mentioned embodiments of the present application can further have the following additional technical features:
[0014] Further, in an embodiment of the present application, the starting and establishing the communication connection with the second aerosol generator in response to the starting operation of the user comprises:
[0015] In response to the key operation of the power-on key, a continuous key pressing time corresponding to the key operation is detected.
[0016] If the continuous key pressing time is less than or equal to a second preset threshold, the starting and establishing the communication connection with the second aerosol generator through the connection pairing of the communication module and the second aerosol generator.
[0017] Further, in an embodiment of the present application, the communication module is a Bluetooth module; and the connection pairing through the communication module and the second aerosol generator comprises:
[0018] Inquiring the model information of the first aerosol generator;
[0019] According to the model information, determining an encryption method used by the Bluetooth module;
[0020] Based on the encryption method, searching and pairing the electronic devices in the vicinity through the Bluetooth module, and determining the electronic device successfully paired as the second aerosol generator.
[0021] Further, in an embodiment of the present application, the method further comprises:
[0022] If the time difference value is less than or equal to the first preset threshold, and the first version is a newer program version relative to the second version, a software program package is sent to the second aerosol generator, so that the second aerosol generator updates and upgrades the software program of the second aerosol generator according to the software program package.
[0023] Further, in an embodiment of the present application, the sending of the software program package to the second aerosol generator comprises:
[0024] The software programs of the first version and the second version are compared through a differential algorithm to determine a difference patch file.
[0025] sending the difference patch file to the second aerosol generator as the software package.
[0026] Further, in an embodiment of the present application, the newer program version is determined by the following steps:
[0027] determining a first release time corresponding to the first version and a second release time corresponding to the second version;
[0028] if the first release time is later than the second release time, determining the first version as the newer program version; or if the first release time is earlier than the second release time, determining the second version as the newer program version.
[0029] Further, in an embodiment of the present application, the method further comprises:
[0030] detecting a connection state between the second aerosol generator when receiving the software package transmitted by the second aerosol generator;
[0031] if the connection state is abnormal, stopping receiving the software package transmitted by the second aerosol generator, deleting the data received from the second aerosol generator, and returning to execute the step of establishing the communication connection between the first aerosol generator and the second aerosol generator.
[0032] In another aspect, an embodiment of the present application provides a software updating device of an aerosol generator, applied to a first aerosol generator, the device comprising:
[0033] an establishing unit, configured to start up and establish a communication connection between the first aerosol generator and a second aerosol generator in response to a start operation of a user; wherein the first aerosol generator and the second aerosol generator are of the same model;
[0034] a processing unit, configured to determine a first version of a software program of the first aerosol generator and a first time point of the current start of the first aerosol generator, and inquire a second version of a software program of the second aerosol generator and a second time point of the current start of the second aerosol generator;
[0035] a calculating unit, configured to calculate a time difference value between the second time point and the first time point;
[0036] The execution unit is configured to receive the software program package transmitted by the second aerosol generator and update the software program of the first aerosol generator according to the software program package if the time difference is less than or equal to the first preset threshold and the second version is a newer program version relative to the first version.
[0037] In another aspect, the embodiments of the present application provide an aerosol generator, comprising:
[0038] at least one processor;
[0039] at least one memory configured to store at least one program;
[0040] The at least one program, when executed by the at least one processor, causes the at least one processor to implement the software updating method of the aerosol generator.
[0041] In another aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a processor executable program, and the processor executable program, when executed by a processor, is configured to implement the software updating method of the aerosol generator.
[0042] The advantages and beneficial effects of the present application will be partially given in the following description, partially will become obvious from the following description, or will be learned by the practice of the present application:
[0043] The software updating method, device and medium of the aerosol generator disclosed by the embodiments of the present application are applied to a first aerosol generator, and in response to a starting operation of a user, the first aerosol generator is started and a communication connection with a second aerosol generator is established; wherein the first aerosol generator and the second aerosol generator are of the same model; a first version of a software program of the first aerosol generator and a first time point of this time starting of the first aerosol generator are determined, and a second version of a software program of the second aerosol generator and a second time point of this time starting of the second aerosol generator are inquired; a time difference between the second time point and the first time point is calculated; if the time difference is less than or equal to a first preset threshold and the second version is a newer program version relative to the first version, a software program package transmitted by the second aerosol generator is received, and the software program of the first aerosol generator is updated and upgraded according to the software program package. The method can obtain a software program package from the second aerosol generator which is of the same model as the first aerosol generator and has a newer version of the software program, so as to update and upgrade the software program of the first aerosol generator. The function or patch can be updated in time in a network-free environment, the software updating efficiency and the use flexibility of the aerosol generator can be improved, and the use experience of the user can be improved. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following introduces the drawings of the related technical solutions in the embodiments of the present application or the prior art. It should be understood that the drawings in the following introduction are only for the convenience of clearly describing some of the embodiments of the technical solutions of the present application, and for those skilled in the art, other drawings can be obtained without creative labor on the premise that there is no conflict.
[0045] Figure 1 An implementation environment schematic diagram of a software updating method of an aerosol generator provided in the embodiments of the present application;
[0046] Figure 2 A flow schematic diagram of a software updating method of an aerosol generator provided in the embodiments of the present application;
[0047] Figure 3 A flow schematic diagram of starting of a first aerosol generator provided in the embodiments of the present application;
[0048] Figure 4 A flow schematic diagram of connection pairing of a first aerosol generator and a second aerosol generator provided in the embodiments of the present application;
[0049] Figure 5 A flow schematic diagram of sending a software program package to a second aerosol generator provided in the embodiments of the present application;
[0050] Figure 6 A structure schematic diagram of an aerosol generator provided in the embodiments of the present application. DETAILED DESCRIPTION
[0051] The present application will be further described below in conjunction with the drawings of the specification and specific embodiments. The described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0052] In the following description, "some embodiments" are related to a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.
[0054] An aerosol generator (also known as an electronic atomization device) is a portable device that generates an inhalable aerosol by heating an aerosol generating substrate with electric energy. The core function of the aerosol generator is to convert a liquid substance into a suspension of fine particles for a user to intake through oral inhalation.
[0055] In the related art, an aerosol generator realizes function control through an internal software program and relies on a network to download an updated software program from a background server to realize function expansion or performance optimization. However, in actual application, it is found that a user cannot connect the aerosol generator to the background server at any time and in any place (for example, in a network-free environment), which makes it difficult to experience new functions or repair patches in a timely manner, and reduces the flexibility and satisfaction of the aerosol generator.
[0056] Therefore, in the embodiments of the present application, a software updating method of an aerosol generator is provided, which is applied to a first aerosol generator, and in response to a start operation of a user, a communication connection between the first aerosol generator and a second aerosol generator is established after starting up; wherein the first aerosol generator and the second aerosol generator are of the same model; a first version of a software program of the first aerosol generator and a first time point of this start of the first aerosol generator are determined, and a second version of a software program of the second aerosol generator and a second time point of this start of the second aerosol generator are inquired; a time difference between the second time point and the first time point is calculated; if the time difference is less than or equal to a first preset threshold value, and the second version is a newer program version relative to the first version, a software program package transmitted by the second aerosol generator is received, and the software program of the first aerosol generator is updated and upgraded according to the software program package. The method can obtain a software program package from the second aerosol generator which is of the same model as the first aerosol generator and has a newer version of the software program, to realize updating and upgrading of the software program of the first aerosol generator, and can update functions or repair patches in a timely manner in a network-free environment, which can improve the software updating efficiency and flexibility of the aerosol generator, and further improve the user experience.
[0057] Please refer to Figure 1 , Figure 1 is an implementation environment schematic diagram of a software updating method of an aerosol generator provided by the embodiments of the present application. The main body of the implementation environment mainly includes a first aerosol generator 110 and a second aerosol generator 120, the first aerosol generator 110 and the second aerosol generator 120 are of the same model, and the two can realize communication connection based on an internally set communication module. The software updating method of the aerosol generator provided in the embodiments of the present application can be executed on the side of the first aerosol generator 110, or on the side of the second aerosol generator 120, and the method can also be extended to other aerosol generators accordingly, which is not limited by the present application.
[0058] In the embodiments of the present application, the communication module arranged inside the first aerosol generator 110 and the second aerosol generator 120 can be a Bluetooth module, a ZigBee module, an NFC (Near Field Communication) module, an infrared module, or an ultra-wideband module, etc., and the present application does not make any limitation in this regard.
[0059] Of course, it can be understood that the implementation environment shown in Figure 1 is only some optional application scenarios of the software updating method of the aerosol generator provided in the embodiments of the present application, and the actual application is not fixed to the software updating method of the aerosol generator shown in Figure 1 .
[0060] In the following, in combination with the foregoing introduction of the implementation environment, the software updating method of the aerosol generator provided in the embodiments of the present application is introduced and described.
[0061] Please refer to Figure 2 , Figure 2 is a schematic diagram of the software updating method of the aerosol generator provided in the embodiments of the present application, Figure 2 The software updating method of the aerosol generator shown in the foregoing first aerosol generator 110 can be applied, and the software updating method of the aerosol generator includes but is not limited to:
[0062] Step 210, in response to the starting operation of the user, starting and establishing a communication connection with the second aerosol generator; wherein the first aerosol generator and the second aerosol generator are of the same model;
[0063] Step 220, determining the first version of the software program of the first aerosol generator and the first time point of the current start of the first aerosol generator, and inquiring to obtain the second version of the software program of the second aerosol generator and the second time point of the current start of the second aerosol generator;
[0064] Step 230, calculating the time difference between the second time point and the first time point;
[0065] Step 240, if the time difference is less than or equal to the first preset threshold value, and the second version is a newer program version relative to the first version, receiving the software program package transmitted by the second aerosol generator, and updating and upgrading the software program of the first aerosol generator according to the software program package.
[0066] In the software updating application of the traditional aerosol generator, the aerosol generator downloads the relevant software package from the background server through the network, and then installs the update. This implementation requires the aerosol generator to be in a network environment, and generally requires the user to perform relevant operations in the front-end interface of the aerosol generator to trigger the update task. This implementation depends on a stable and reliable network environment, and requires the user to be familiar with the relevant operation process. In actual application, the aerosol generator may be in a network-free environment, making it difficult to experience new functions or repair patches in a timely manner. In addition, the user triggers the update task by performing operations in the front-end interface, which is relatively cumbersome and the user experience is generally poor.
[0067] In the embodiments of the present application, a software updating method for an aerosol generator is provided. The method can obtain a software package from a second aerosol generator of the same model as the first aerosol generator and with a newer version of the software program, to update and upgrade the software program of the first aerosol generator. The method can update functions or repair patches in a network-free environment, improve the software updating efficiency and use flexibility of the aerosol generator, and thus improve the user experience.
[0068] In the embodiments of the present application, the updating program corresponding to the software updating method for the aerosol generator provided by the present application can be pre-configured in each aerosol generator. The updating program is used to update and upgrade the software program of the main body of the aerosol generator (i.e., the program responsible for implementing the related functions of the aerosol generator). When the user starts the aerosol generator each time, it will automatically determine whether the software updating condition is met. If the software updating condition is met, the corresponding business process will be executed. If the software updating condition is not met, the aerosol generator will be normally started for the user to use.
[0069] Specifically, for the software updating condition, the embodiments of the present application are set as follows: when two aerosol generators of the same model are started at the same time (or almost at the same time) and the distance between them is relatively close, and a communication connection can be established based on the built-in communication module, the updating program will automatically compare the versions of the software programs in the two aerosol generators. If the versions of the two software programs are inconsistent, the aerosol generator corresponding to the newer program version will automatically send the local software package to the other aerosol generator (i.e., the aerosol generator corresponding to the older program version) through the communication connection, so that the other aerosol generator can be updated and upgraded according to the received software package. In this way, the update and upgrade can be realized in a network-free environment without the need for the user to perform complex operations, which is conducive to improving the software updating efficiency of the aerosol generator and improving the user experience.
[0070] The following will be described in combination withFigure 2 Taking the software updating method of the aerosol generator provided in the embodiments of the present application as an example, the method is introduced and described.
[0071] In the embodiments of the present application, for the first aerosol generator, when the user initiates a start operation, the first aerosol generator will start up and search whether there is another aerosol generator of the same model in the vicinity, and record these other aerosol generators as second aerosol generators. If the first aerosol generator searches for the second aerosol generator, a communication connection will be established with the second aerosol generator. Here, the first aerosol generator and the second aerosol generator of the same model establish a communication connection, the purpose of which is to realize the updating of the software program. It is easy to understand that for the aerosol generator, it will generally have different models, and the functions that can be supported by the aerosol generators of different models are often different, and the software programs set therein will also differ. In the embodiments of the present application, the software program package is transmitted between the first aerosol generator and the second aerosol generator to realize the updating and upgrading of the software program, and therefore it is necessary to constrain the models of the first aerosol generator and the second aerosol generator to be the same, so as to avoid configuring incompatible software program packages to the aerosol generator, resulting in the problem that the aerosol generator cannot operate normally.
[0072] After the communication connection between the first aerosol generator and the second aerosol generator is established, the first aerosol generator can query and determine the version of the local software program, which is recorded as the first version in the embodiments of the present application. In addition, the first aerosol generator can also determine the version of the software program of the second aerosol generator in an inquiry manner, which is recorded as the second version in the embodiments of the present application. Exemplarily, the first aerosol generator can send an inquiry message to the second aerosol generator, and the second aerosol generator, after receiving the inquiry message, can query the version of the local software program (i.e., the second version) and feed back the corresponding result to the first aerosol generator.
[0073] In the embodiments of the present application, the version of the software program can be distinguished in multiple optional ways. For example, in some embodiments, the version of the software program can be distinguished by a version number, which can include characters and numbers, such as "v1.2.1" can represent a version number, "v1.2.2" can represent another version number, and the version of the software program corresponding to "v1.2.2" is a newer program version than "v1.2.1". In some embodiments, the version of the software program can be distinguished by the release date. For example, the release date of one version of the software program is 2024.05.01, and the release date of another version is 2024.06.01. At this time, the later the release date, the newer the version of the software program. For example, the version with the release date of 2024.06.01 is a newer program version than the version with the release date of 2024.05.01. When determining the first version and the second version, the first version and the second version can be recorded by the above-mentioned version number or release date. Of course, it can be understood that the way to distinguish the version of the software program is not limited to the above-mentioned examples, and the present application does not limit this.
[0074] In addition to determining the version-related information, in the embodiments of the present application, the first aerosol generator will also determine the time point of the current start of itself, denoted as the first time point, and will inquire the second aerosol generator about the time point of the local start of the second aerosol generator, denoted as the second time point. The acquisition method of the second time point is similar to the acquisition method of the second version, and both can be acquired together, which will not be repeated here. In the embodiments of the present application, the time counting granularity of the first time point and the second time point can be flexibly set according to the needs, such as counting in seconds or milliseconds.
[0075] As mentioned earlier, the simultaneous (or almost simultaneous) start of the two aerosol generators is one of the conditions for the preset software update, which can be denoted as the start time condition in the embodiments of the present application. The reason for setting this start time condition is that for any aerosol generator, the user searches for other aerosol generators of the same model in the vicinity after starting, and there is a certain probability of searching for aerosol generators used by other users, and it is likely that the user and other users do not have the intention to cooperate for software update. In this case, if the subsequent software update task is normally executed, it is likely to interfere with the use of the aerosol generator of other users and bring an undesirable experience. Therefore, in the embodiments of the present application, the start time condition is set as one of the conditions for judging whether to perform software update.
[0076] It is easy to understand that in the embodiments of the present application, when actually performing software updating based on the two aerosol generators, the users corresponding to the two aerosol generators are likely to be the same user or associated users (such as colleagues or friends), when the users corresponding to the two aerosol generators are the same user, the user can start the two aerosol generators together, thereby triggering the corresponding software updating task; and when the users corresponding to the two aerosol generators are not the same user, the two users can agree to start their respective aerosol generators together, thereby triggering the corresponding software updating task. In this way, by judging whether the start time of the two aerosol generators meets the start time condition, the actual software updating demand can be easily distinguished.
[0077] In the embodiments of the present application, after the first time point and the second time point are determined, it can be compared whether they are close enough to determine whether the first aerosol generator and the second aerosol generator are started at the same time (or almost at the same time) (that is, meeting the start time condition), thereby determining whether to perform the subsequent software updating task. It can be understood that if the first time point and the second time point are close, such as only 1 second apart, then it can be considered that they belong to the case of almost starting at the same time, meeting the start time condition, and the subsequent software updating task can be continued. In contrast, if the first time point and the second time point are greatly deviated, such as 3 minutes apart, then it can be considered that the start time condition is not met, and the currently connected second aerosol generator is likely to be other aerosol generators unrelated to the first aerosol generator, in order not to interfere with the normal use of the second aerosol generator by other users, the subsequent software updating task will not be performed.
[0078] Specifically, in the embodiments of the present application, a comparison threshold can be preset, denoted as a first preset threshold, the size of the first preset threshold can be flexibly set according to actual needs, such as 3 seconds or 5 seconds, etc. For the first time point and the second time point, the time difference value can be calculated. If the calculated time difference value is less than or equal to the first preset threshold, it can be considered that the first aerosol generator and the second aerosol generator meet the start time condition; in contrast, if the calculated time difference value is greater than the first preset threshold, it can be considered that the first aerosol generator and the second aerosol generator do not meet the start time condition.
[0079] In the embodiments of the present application, in addition to the start time condition, it is also necessary to determine whether the software update of the first aerosol generator is supported based on the first version and the second version. It can be understood that if the second version is a newer program version relative to the first version, since the models of the first aerosol generator and the second aerosol generator are the same, the first aerosol generator can be currently updated and upgraded based on the data related to the software program in the second aerosol generator. At this time, the second aerosol generator will automatically transmit the local software program package, and the first aerosol generator receiving the software program package can update and upgrade the software program itself. If the second version and the first version are the same program version, it means that the data of the software program in the first aerosol generator and the second aerosol generator are consistent, and the first aerosol generator cannot be updated and upgraded (or it is possible that the first aerosol generator and the second aerosol generator are both the latest version and do not need to be updated and upgraded), at this time, the current update and upgrade task can be ended. In some embodiments, when it is determined that the second version and the first version are the same program version, a prompt information can be output to the user, prompting that the versions of the software programs of the two aerosol generators are the same, please replace other aerosol generator or do not need to continue upgrading.
[0080] It can be understood that the software update method of the aerosol generator provided in the embodiments of the present application is applied to the first aerosol generator, and in response to the start operation of the user, the communication connection with the second aerosol generator is established after starting up; wherein the models of the first aerosol generator and the second aerosol generator are the same; the first version of the software program of the first aerosol generator and the first time point of the current start of the first aerosol generator are determined, and the second version of the software program of the second aerosol generator and the second time point of the current start of the second aerosol generator are inquired; the time difference between the second time point and the first time point is calculated; if the time difference is less than or equal to the first preset threshold value, and the second version is a newer program version relative to the first version, the software program package transmitted by the second aerosol generator is received, and the software program of the first aerosol generator is updated and upgraded according to the software program package. The method can obtain the software program package from the second aerosol generator which has the same model as the first aerosol generator and has a newer version of the software program, to realize the update and upgrade of the software program of the first aerosol generator, and the function can be updated or the patch can be repaired in time in the environment without network, which can improve the software update efficiency and use flexibility of the aerosol generator, and further improve the use experience of the user.
[0081] In embodiments of the present application, when a user activates the first aerosol generator, there are various ways to implement the activation operation. For example, in some embodiments, the first aerosol generator may be configured with a voice function, allowing the user to trigger the first aerosol generator to start up through voice interaction, such as speaking a designated startup phrase to the first aerosol generator. In some embodiments, the first aerosol generator may be provided with relevant buttons, such as a power button. When the user presses the power button, the first aerosol generator may be triggered to start up in response to the key operation.
[0082] Specifically, in some embodiments, referring to Figure 3 In response to a user's startup operation, the device is turned on and a communication connection is established with the second aerosol generator, including:
[0083] In response to a key operation on a power button, detecting a continuous key press duration corresponding to the key operation;
[0084] If the duration of the continuous key press is less than or equal to the second preset threshold, the device is turned on and paired with the second aerosol generator through the communication module to establish a communication connection with the second aerosol generator.
[0085] In embodiments of the present application, for applications where a user triggers the first aerosol generator to start by pressing a power button, there is a risk of accidental user activation. For example, if the first aerosol generator is placed in a user's pocket or backpack, and the power button is pressed due to pressure, then normal activation of the first aerosol generator could result in wasted power and a negative user experience. Therefore, in embodiments of the present application, for applications where a power button is used to activate the device, upon receiving a key press, the power button can detect the duration of the continuous press corresponding to the key press. It is readily understood that in normal user scenarios, the user will release the power button quickly after pressing it, making it easier to perform other actions. However, if the power button is pressed due to pressure, it may remain pressed for an extended period of time (e.g., one minute). In embodiments of the present application, to distinguish between the two different scenarios as much as possible, a time threshold, referred to as the second preset threshold, can be set. This threshold can be flexibly set, for example, to 2 seconds or 3 seconds, and is not limited in this application.
[0086] For each key operation corresponding to the power-on key, the corresponding continuous key duration is detected and counted. If the continuous key duration corresponding to the key operation is less than or equal to the second preset threshold, for example, the continuous key duration corresponding to a certain key operation is 0.5 seconds, which is less than the second preset threshold of 2 seconds, it indicates that the key operation is probably triggered by a person and can normally start up. In contrast, if the continuous key duration corresponding to the key operation is greater than the second preset threshold, for example, the continuous key duration corresponding to a certain key operation is 20 seconds, which is greater than the second preset threshold of 2 seconds, it indicates that the key operation is probably not triggered by a person but is a mis-touch. In this case, the first aerosol generator can not start up and remain in a sleep standby state.
[0087] Behind the first aerosol generator, a built-in communication module can be used to connect and pair with the second aerosol generator to establish a communication connection between the first aerosol generator and the second aerosol generator.
[0088] Specifically, in some embodiments, the communication module adopts a Bluetooth module; refer to Figure 4 The connection and pairing between the communication module and the second aerosol generator include:
[0089] Inquiring the model information of the first aerosol generator;
[0090] According to the model information, determining the encryption method used by the Bluetooth module;
[0091] Based on the encryption method, searching and pairing with the electronic devices nearby through the Bluetooth module, and determining the paired electronic device as the second aerosol generator.
[0092] In the embodiments of the present application, the communication module configured in the first aerosol generator can be a Bluetooth module, which has the characteristics of low power consumption, short distance (about 10 meters), suitable for point-to-point connection and fast transmission speed. In the embodiments of the present application, the communication modules in aerosol generators of the same model use the same encryption method, and the communication modules in aerosol generators of different models use different encryption methods. In this way, it can be ensured that only aerosol generators of the same model can be connected and paired.
[0093] Specifically, for the first aerosol generator, it can inquire the model information of itself, and then determine the encryption method used by the Bluetooth module according to the model information, search and pair with the electronic devices nearby based on the encryption method, and thus realize the communication connection with the second aerosol generator.
[0094] It should be noted that, in the embodiments of the present application, the communication module arranged in the aerosol generator generally adopts a communication module supporting short-distance communication, such as a Bluetooth module, and the communication distance of the Bluetooth module is about 10 meters. Therefore, in order to facilitate the communication connection between the first aerosol generator and the second aerosol generator, the user can place the first aerosol generator and the second aerosol generator together as much as possible when performing software updating, for example, the distance between the two is less than or equal to 50 cm. In this way, the stability of the communication connection between the two aerosol generators can be improved, and the data can be transmitted conveniently, efficiently and accurately.
[0095] Specifically, in some embodiments, the method further comprises:
[0096] If the time difference value is less than or equal to the first preset threshold value, and the first version is a newer program version relative to the second version, a software program package is sent to the second aerosol generator to update and upgrade the software program of the second aerosol generator according to the software program package.
[0097] In the embodiments of the present application, if the time difference value corresponding to the first aerosol generator and the second aerosol generator is less than or equal to the first preset threshold value, that is, the time condition is met, and the first version is a newer program version relative to the second version, it indicates that the current first aerosol generator has been updated to a newer program version, and the second aerosol generator uses an older program version. At this time, the first aerosol generator can send a software program package to the second aerosol generator, so that the second aerosol generator can be updated and upgraded according to the software program package.
[0098] In the embodiments of the present application, if the first aerosol generator has been updated to a newer program version, a software program package needs to be sent to the second aerosol generator, and in some embodiments, all program data related to the function of the local aerosol generator can be packaged as a software program package and sent to the second aerosol generator.
[0099] Specifically, in some embodiments, with reference to Figure 5 The software program package is sent to the second aerosol generator, comprising:
[0100] The software programs of the first version and the second version are compared by a differential algorithm to determine a difference patch file;
[0101] The difference patch file is sent to the second aerosol generator as a software program package.
[0102] In the embodiments of the present application, when the first aerosol generator sends the software package to the second aerosol generator, a lightweight patch file can also be selected to be sent, thereby reducing the amount of data to be transmitted and improving the updating efficiency of the second aerosol generator. Of course, the same implementation can also be applied to the case where the second aerosol generator sends the software package to the first aerosol generator, and the present application does not limit this.
[0103] Specifically, in the embodiments of the present application, taking the case where the first aerosol generator sends the software package to the second aerosol generator as an example, when it is determined that the first version is a newer program version relative to the second version, the software programs of the first version and the second version can be compared through a differential algorithm, only the difference between the two is extracted, and a lightweight patch file is generated, which is referred to as a difference patch file. Then, the first aerosol generator can send the difference patch file to the second aerosol generator as a software package for updating and upgrading.
[0104] For the second aerosol generator, after receiving the difference patch file, the data in the difference patch file can be applied to the current software program of the second version through a built-in differential merging tool, thereby realizing the rapid updating of the software program.
[0105] It can be understood that in the embodiments of the present application, the difference patch file (rather than the complete program package) is sent to the second aerosol generator for updating and upgrading, which can reduce the amount of data to be transmitted, save traffic and storage space, and significantly reduce the dependence on communication stability.
[0106] Specifically, in some embodiments, the newer program version is determined through the following steps:
[0107] determining the first release time corresponding to the first version and the second release time corresponding to the second version;
[0108] If the first release time is later than the second release time, the first version is determined to be the newer program version; or if the first release time is earlier than the second release time, the second version is determined to be the newer program version.
[0109] In determining which of the first version and the second version is the newer program version, in some embodiments, the release time corresponding to the software program can be determined, i.e., the first release time corresponding to the first version and the second release time corresponding to the second version, which is generally recorded in the version information and stored in the associated information of the software program. In the embodiments of the present application, after obtaining the first release time and the second release time, the two can be compared: if it is determined that the first release time is later than the second release time, the first version can be determined as the newer program version; in contrast, if it is determined that the first release time is earlier than the second release time, the second version can be determined as the newer program version.
[0110] Specifically, in some embodiments, the method further comprises:
[0111] In receiving the software program package transmitted by the second aerosol generator, the connection state between the second aerosol generator is detected;
[0112] If the connection state is abnormal, the reception of the software program package transmitted by the second aerosol generator is stopped, the data received from the second aerosol generator is deleted, and the step of establishing the communication connection with the second aerosol generator is returned to be executed again.
[0113] In the embodiments of the present application, the first aerosol generator can detect the connection state between the second aerosol generator when receiving the software program package transmitted by the second aerosol generator. For example, the software program package transmitted by the second aerosol generator can be transmitted in batches, and each time a part of data is transmitted. After receiving the transmitted data, the first aerosol generator can feed back the corresponding response to the second aerosol generator. In this way, the second aerosol generator can read back the sent data to determine whether there is a loss in the data transmission process. If the second aerosol generator determines that there is a data loss problem, it can inform the first aerosol generator that there is an abnormal connection state. At this time, the first aerosol generator will stop receiving the software program package transmitted by the second aerosol generator, and delete the data received from the second aerosol generator. Then, the first aerosol generator can re-establish the communication connection with the second aerosol generator and execute the corresponding program update task again.
[0114] In contrast, if there is no connection state abnormality in the entire software program package transmission process, the first aerosol generator can update and upgrade the local software program according to the data received from the second aerosol generator, i.e., the software program package.
[0115] Referring to Figure 6 In the embodiments of the present application, a software updating device of an aerosol generator is also provided, comprising:
[0116] The establishing unit 610 is configured to, in response to a starting operation of a user, start up and establish a communication connection with the second aerosol generator; wherein the first aerosol generator and the second aerosol generator are of the same model;
[0117] The processing unit 620 is configured to determine a first version of a software program of the first aerosol generator and a first time point of a current start-up of the first aerosol generator, and inquire a second version of a software program of the second aerosol generator and a second time point of a current start-up of the second aerosol generator;
[0118] The calculating unit 630 is configured to calculate a time difference between the second time point and the first time point;
[0119] The executing unit 640 is configured to, if the time difference is less than or equal to a first preset threshold value and the second version is a newer program version relative to the first version, receive the software program package transmitted by the second aerosol generator, and update and upgrade the software program of the first aerosol generator according to the software program package.
[0120] It can be understood that the contents in the above method embodiments are applicable to the present device embodiments, the present device embodiments specifically implement the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.
[0121] In the embodiments of the present application, an aerosol generator is also provided, which comprises:
[0122] at least one processor;
[0123] at least one memory configured to store at least one program;
[0124] When the at least one program is executed by the at least one processor, the at least one processor is caused to implement the above-mentioned software updating method of the aerosol generator.
[0125] Similarly, the contents in the above method embodiments are applicable to the present aerosol generator embodiments, the present aerosol generator embodiments specifically implement the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.
[0126] The embodiments of the present application also provide a computer readable storage medium, wherein a processor executable program is stored, and the processor executable program is used to execute the above-mentioned software updating method of the aerosol generator when executed by a processor.
[0127] Similarly, the contents in the method embodiments described above are applicable to the computer readable storage medium embodiments, the computer readable storage medium embodiments specifically implement the functions same as those of the method embodiments described above, and achieve the beneficial effects same as those of the method embodiments described above.
[0128] The computer program product or computer program of the embodiment of the present application also discloses a computer program product or computer program including computer instructions stored in the computer readable storage medium described above; the aerosol generator in the foregoing embodiment can read the computer instructions from the computer readable storage medium described above, and the processor executes the computer instructions, so that the computer device executes the software updating method of the aerosol generator described above.
[0129] Similarly, the contents in the method embodiments described above are applicable to the computer program product or computer program embodiments, the computer program product or computer program embodiments specifically implement the functions same as those of the method embodiments described above, and achieve the beneficial effects same as those of the method embodiments described above.
[0130] In some alternative embodiments, the functions / operations mentioned in the block diagram can not occur in the order mentioned in the operation diagram. For example, depending on the functions / operations involved, two blocks shown in succession can actually be executed substantially simultaneously or the blocks can sometimes be executed in reverse order. In addition, the embodiments presented and described in the flowcharts of the present application are provided by way of example, with the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operations and logical flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of a larger operation are independently executed.
[0131] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and / or features can be integrated in a single physical device and / or software module, or one or more functions and / or features can be implemented in separate physical devices or software modules. It can also be understood that a detailed discussion of the actual implementation of each module is unnecessary for an understanding of the present application. Rather, given the properties, functions and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be within the routine skill of the engineer, given the teachings of the present application. Thus, the present application, as set forth in the claims, is capable of being realized without undue experimentation by one skilled in the art using the ordinary skills and techniques of the art. It can also be understood that the disclosed specific concepts are merely illustrative and are not intended to limit the scope of the present application, which is defined by the full scope of the appended claims and their equivalents.
[0132] If the functions are implemented in software, the functions can be stored in or implemented as one or more computer-readable storage media, such as computer-readable storage medium 1020. Computer-readable storage media can include computer-readable storage medium 1020, volatile memory, non-volatile memory, ROM, RAM, EPROM, EEPROM, flash memory, or any memory storage devices, etc. In some embodiments, computer-readable storage medium 1020 can be computer-readable storage medium 1020.
[0133] The logic and / or steps represented in the flowcharts and / or otherwise described herein, for example, can be embodied in non-transitory computer-readable storage medium 1020, which can be executed by processing circuitry 1010 using any computer-readable storage medium. In some embodiments, the logic and / or steps represented in the flowcharts and / or otherwise described herein, for example, can be executed by processing circuitry 1010 using any computer-readable storage medium.
[0134] More specific examples (a non-exhaustive list) of the computer-readable storage medium include the following: an electrical connection having one or more wires (electrical connections), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium can even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via an optical scanner, then compiled, interpreted, or otherwise processed, and stored in a computer memory in a form that is readable by a computer.
[0135] It should be understood that portions of the application can be realized with hardware, software, firmware or a combination thereof. In the foregoing description, multiple steps or methods can be realized as software or firmware to be executed by a suitable instruction executing system. For example, if realized with hardware, and as in another embodiment, any one or a combination of the following technologies known in the art can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), and the like.
[0136] In the above description of the present specification, the description of the terms "one embodiment", "another embodiment", or "certain embodiments" or the like means that the specific features, structures, materials or characteristics described in connection with the embodiments or examples are included in at least one embodiment or example of the present application. In the present specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Also, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0137] Although the embodiments of the present application have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations can be made thereto without departing from the principles and spirit of the present application, the scope of which is defined by the claims and their equivalents.
[0138] The above is a specific description of the preferred embodiments of the present application, but the present application is not limited to the embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present application, and these equivalent modifications or substitutions are included in the scope defined by the claims of the present application.
Claims
1. A software update method for an aerosol generator, characterized in that: Applied to a first aerosol generator, the method comprises: In response to a user's startup operation, the device is turned on and a communication connection is established with a second aerosol generator; wherein the first aerosol generator and the second aerosol generator are of the same model; Determining a first version of the software program of the first aerosol generator and a first time point of the current startup of the first aerosol generator, and obtaining a second version of the software program of the second aerosol generator and a second time point of the current startup of the second aerosol generator; Calculating a time difference between the second time point and the first time point; If the time difference is less than or equal to a first preset threshold, and the second version is a newer program version than the first version, the software program package transmitted by the second aerosol generator is received, and the software program of the first aerosol generator is updated and upgraded according to the software program package.
2. The software update method of an aerosol generator according to claim 1, characterized in that: The method of starting up and establishing a communication connection with the second aerosol generator in response to a user's start-up operation includes: In response to a key operation on the power button, detecting a continuous key press duration corresponding to the key operation; If the duration of the continuous key press is less than or equal to a second preset threshold, the device is turned on and paired with the second aerosol generator through the communication module to establish a communication connection with the second aerosol generator.
3. The software update method of an aerosol generator according to claim 2, characterized in that: The communication module adopts a Bluetooth module; The connecting and pairing with the second aerosol generator through the communication module includes: querying the model information of the first aerosol generator; Determining an encryption method used by the Bluetooth module according to the model information; Based on the encryption method, the Bluetooth module is used to search and pair nearby electronic devices, and the successfully paired electronic device is determined as the second aerosol generator.
4. The software update method of an aerosol generator according to claim 1, characterized in that: The method further comprises: If the time difference is less than or equal to the first preset threshold, and the first version is a newer program version than the second version, a software program package is sent to the second aerosol generator so that the second aerosol generator updates and upgrades the software program of the second aerosol generator according to the software program package.
5. The software update method of an aerosol generator according to claim 4, characterized in that: The sending of the software package to the second aerosol generator comprises: Comparing the first version and the second version of the software program using a differential algorithm to determine a differential patch file; The difference patch file is sent to the second aerosol generator as the software program package.
6. A method for updating software of an aerosol generator according to any one of claims 1 or 4, characterized in that: The newer program version is determined by the following steps: Determining a first release time corresponding to the first version and a second release time corresponding to the second version; If the first release time is later than the second release time, the first version is determined as the newer program version; or if the first release time is earlier than the second release time, the second version is determined as the newer program version.
7. The method for updating software of an aerosol generator according to claim 1, characterized in that: The method further comprises: upon receiving the software program package transmitted by the second aerosol generator, detecting a connection status with the second aerosol generator; If the connection status is abnormal, stop receiving the software program package transmitted by the second aerosol generator, delete the data received from the second aerosol generator, and return to re-execute the step of establishing the communication connection with the second aerosol generator.
8. A software updating device for an aerosol generator, characterized in that: Applied to a first aerosol generator, the device comprises: an establishing unit, configured to start up and establish a communication connection with a second aerosol generator in response to a user's starting operation; wherein the first aerosol generator and the second aerosol generator are of the same model; a processing unit, configured to determine a first version of a software program of the first aerosol generator and a first time point at which the first aerosol generator is currently started, and to obtain a second version of a software program of the second aerosol generator and a second time point at which the second aerosol generator is currently started; a calculation unit, configured to calculate a time difference between the second time point and the first time point; an execution unit, configured to receive a software program package transmitted by the second aerosol generator if the time difference is less than or equal to a first preset threshold and the second version is a newer program version than the first version, and update the software program of the first aerosol generator according to the software program package.
9. An aerosol generator, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the software updating method for an aerosol generator according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to implement the software updating method of an aerosol generator according to any one of claims 1 to 7 when executed by the processor.