An electronic cigarette cartridge authentication system and method
By certifying the cartridges before replacing e-cigarettes, and utilizing Bluetooth communication and encrypted message parsing technology, the problem of substandard cartridges entering the market has been solved, and the matching installation of cartridges and e-cigarettes has been achieved, protecting the health of e-cigarettes and users.
Patent Information
- Application Number
- CN202211686479.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-12-26
AI Technical Summary
Most e-cigarettes on the market lack encryption and authentication functions, leading to the influx of substandard cartridges into the market, affecting the lifespan of e-cigarettes and users' health.
Before replacing the e-cigarette cartridge, the device communicates with the e-cigarette via Bluetooth to obtain the verification ciphertext. The analysis module then parses the ciphertext to determine if the cartridge meets the replacement requirements, and performs the installation if it does.
Ensure that the specifications of each replacement cartridge are compatible with the e-cigarette body, avoid using inferior cartridges, and protect the health of the e-cigarette body and the user.
Smart Images

Figure CN115802349B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent electronic cigarettes, and particularly relates to an electronic cigarette cartridge authentication system and method. BACKGROUND
[0002] With the development of technology, the experience of electronic cigarettes is far superior to traditional cigarettes, which makes the market of electronic cigarettes huge, and can give a person a smoke, taste and feeling similar to the actual smoking, which can not only meet the people with smoking habits, but also reduce the harmful substances in cigarettes to the body of the smoker. At present, most of the electronic cigarettes on the market do not have encryption authentication function, and as long as the specifications of the electronic cigarette cartridges are the same, they can be installed on the electronic cigarettes for use, which leads to the inflow of many inferior cartridges into the market. Excessive use of inferior cartridges by users not only accelerates the damage speed of electronic cigarettes, but also affects the health of users, so how to avoid and prevent inferior electronic cigarette cartridges has become a problem to be solved.
[0003] Therefore, the present application provides an electronic cigarette cartridge authentication system and method. SUMMARY
[0004] The present application provides an electronic cigarette cartridge authentication system, which authenticates the replaced cartridge before replacing the electronic cigarette cartridge, selects the cartridge meeting the standard for installation and use, and achieves the purpose of protecting the electronic cigarette and protecting the health of the user.
[0005] The present application provides an electronic cigarette cartridge authentication system, which includes:
[0006] A Bluetooth module is configured to communicate and connect the to-be-installed electronic cigarette cartridge and the electronic cigarette body when the electronic cigarette cartridge is replaced;
[0007] A collection module is configured to obtain the verification ciphertext emitted by the to-be-installed electronic cigarette cartridge based on the communication connection;
[0008] An analysis module is configured to analyze the verification ciphertext and determine whether the to-be-installed electronic cigarette cartridge meets the replacement condition according to the analysis result;
[0009] An execution module is configured to install the to-be-installed electronic cigarette cartridge on the electronic cigarette body when the to-be-installed electronic cigarette cartridge meets the replacement condition.
[0010] In an implementable manner,
[0011] The Bluetooth module includes:
[0012] A Bluetooth selection unit is configured to obtain a plurality of to-be-connected devices within a specified area range, and obtain a target Bluetooth identifier belonging to the to-be-installed electronic cigarette cartridge according to the Bluetooth identifier of each to-be-connected device;
[0013] The Bluetooth docking unit is used for acquiring a target connection instruction corresponding to the target Bluetooth identifier to perform Bluetooth connection.
[0014] In an implementable manner,
[0015] The collection module comprises:
[0016] The collection unit is configured to acquire a plurality of pieces of plaintext data emitted by the to-be-installed electronic cigarette cartridge.
[0017] The extraction unit is configured to respectively analyze each piece of plaintext data to obtain a data feature corresponding to each piece of plaintext data, and extract target plaintext data belonging to a target data feature.
[0018] The adjustment unit is configured to adjust a data format of the target plaintext data into a preset format to obtain a verification ciphertext.
[0019] In an implementable manner,
[0020] The analysis module comprises:
[0021] The analysis unit is configured to analyze the verification ciphertext to obtain a ciphertext string.
[0022] The processing unit is configured to initialize the ciphertext string to obtain a public key ciphertext string and a private key ciphertext string, establish a public key index for the public key ciphertext string, establish a private key index for the private key ciphertext string, and find a verification method corresponding to the public key index in a preset index table.
[0023] The verification unit is configured to establish a verification model according to the verification method, input the private key index into the verification model to perform first verification, judge whether the first verification passes according to a first verification result, and when the first verification passes, input the private key ciphertext string into the verification model to perform second verification to obtain a second verification result, and when the second verification result is consistent with a verification result corresponding to the verification method, determine that the to-be-installed electronic cigarette cartridge meets a replacement condition.
[0024] In an implementable manner,
[0025] The execution module comprises:
[0026] The first execution unit is configured to generate a docking instruction when the to-be-installed electronic cigarette cartridge meets the replacement condition.
[0027] The second execution unit is configured to, based on the docking instruction, regard the electronic cigarette body as a first docking object, regard the to-be-installed cigarette cartridge as a second docking object, dock the first docking object and the second docking object, and obtain a docking finished product.
[0028] A third execution unit is configured to control the docked finished product to perform a preset detection procedure to obtain a detection result, and determine that the to-be-installed electronic cigarette cartridge is installed on the electronic cigarette body when the detection result is consistent with a preset result.
[0029] Conversely, the reinstallation instruction is generated and transmitted to the specified terminal for display.
[0030] In an implementable manner,
[0031] Further comprising:
[0032] An intelligent display module is configured to acquire a first historical record of user use of an electronic cigarette and a second historical record of user replacement of an electronic cigarette cartridge, analyze and display a remaining oil amount of the electronic cigarette according to the first historical record and the second historical record.
[0033] In an implementable manner,
[0034] The processing unit comprises:
[0035] A first processing component is configured to input the ciphertext string into a separator character screening model for character screening to obtain a plurality of separator characters contained in the ciphertext string and separator character distribution information in the ciphertext string.
[0036] A second processing component is configured to divide the ciphertext string into a plurality of substrings according to the separator character distribution information, analyze each substring respectively, and obtain character features corresponding to each character in the same substring.
[0037] A third processing component is configured to compare a plurality of character features corresponding to the same substring with preset character features, judge a string attribute of each substring according to a comparison result, and divide the substring into a public key ciphertext string and a private key ciphertext string according to the string attribute.
[0038] The present application provides an electronic cigarette cartridge authentication method, comprising:
[0039] Step 1: when replacing an electronic cigarette cartridge, a to-be-installed electronic cigarette cartridge is communicatively connected with an electronic cigarette body.
[0040] Step 2: based on the communication connection, verification ciphertext emitted by the to-be-installed electronic cigarette cartridge is acquired.
[0041] Step 3: the verification ciphertext is analyzed, and whether the to-be-installed electronic cigarette cartridge meets replacement conditions is judged according to an analysis result.
[0042] Step 4: when the to-be-installed electronic cigarette cartridge meets the replacement conditions, the to-be-installed electronic cigarette cartridge is installed on the electronic cigarette body.
[0043] In an implementable mode,
[0044] Step 3 comprises:
[0045] Step 31: parsing the verification ciphertext to obtain a ciphertext string;
[0046] Step 32: initializing the ciphertext string to obtain a public key ciphertext string and a private key ciphertext string, establishing a public key index for the public key ciphertext string, establishing a private key index for the private key ciphertext string, and searching for a verification method corresponding to the public key index in a preset index table;
[0047] Step 33: establishing a verification model according to the verification method, inputting the private key index into the verification model for first verification, judging whether the first verification passes according to a first verification result, and inputting the private key ciphertext string into the verification model for second verification when the first verification is qualified, obtaining a second verification result, and determining that the to-be-installed electronic cigarette meets the replacement condition when the second verification result is consistent with a verification result corresponding to the verification method.
[0048] In an implementable mode,
[0049] Step 32 comprises:
[0050] Step 321: inputting the ciphertext string into a separator character screening model for character screening to obtain a plurality of separator characters contained in the ciphertext string and obtain separator character distribution information in the ciphertext string;
[0051] Step 322: dividing the ciphertext string into a plurality of substring according to the separator character distribution information, parsing each substring respectively to obtain a character feature corresponding to each character in the same substring;
[0052] Step 323: comparing a plurality of character features corresponding to the same substring with preset character features, judging a string attribute of each substring according to a comparison result, and dividing the substring into a public key ciphertext string and a private key ciphertext string according to the string attribute.
[0053] The beneficial effects that can be achieved by the present application are as follows: in order to ensure that the user uses the electronic cigarette cartridge that meets the use condition, the to-be-installed electronic cigarette cartridge is first connected with the electronic cigarette body through Bluetooth means before the user replaces the electronic cigarette cartridge, so that the verification ciphertext issued by the to-be-installed electronic cigarette cartridge can be obtained, whether the to-be-installed electronic cigarette cartridge meets the replacement condition can be distinguished by analyzing the verification ciphertext, and then the to-be-installed electronic cigarette cartridge is installed on the electronic cigarette body when the to-be-installed electronic cigarette cartridge meets the replacement condition, so that the replacement of the electronic cigarette cartridge is completed. In this way, not only can the specification of the electronic cigarette cartridge replaced each time be ensured to be compatible with the electronic cigarette body, but also the use of substandard electronic cigarette cartridges by the user can be avoided, not only the electronic cigarette body can be prevented from being damaged, but also the user can be protected, and the health of the user can be protected from the harm of substandard tobacco oil.
[0054] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the description, or can be learned by practice of the present application. The objects and other advantages of the present application can be realized and attained by the structure particularly pointed out in the written description and claims, and the appended drawings.
[0055] The technical solutions of the present application will be further described in detail below with the help of the drawings and examples. BRIEF DESCRIPTION OF DRAWINGS
[0056] The accompanying drawings are included to provide a further understanding of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the present application, and do not constitute a limitation on the present application. In the drawings:
[0057] Figure 1 It is a composition schematic diagram of an electronic cigarette cartridge authentication system in an embodiment of the present application.
[0058] Figure 2 It is a composition schematic diagram of an analysis module of an electronic cigarette cartridge authentication system in an embodiment of the present application.
[0059] Figure 3 It is a working flow schematic diagram of an electronic cigarette cartridge authentication method in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The preferred embodiments of the present application will be described below in combination with the drawings, and it should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and do not limit the present application.
[0061] Embodiment 1
[0062] The present embodiment provides an electronic cigarette cartridge authentication system, as shown in Figure 1 , comprising:
[0063] A Bluetooth module is configured to connect the electronic cigarette cartridge to be installed and the electronic cigarette body in communication when the electronic cigarette cartridge is replaced.
[0064] A collection module is configured to acquire the verification ciphertext sent by the electronic cigarette cartridge to be installed based on the communication connection.
[0065] An analysis module is configured to analyze the verification ciphertext and determine whether the electronic cigarette cartridge to be installed meets the replacement condition according to the analysis result.
[0066] An execution module is configured to install the electronic cigarette cartridge to be installed on the electronic cigarette body when the electronic cigarette cartridge to be installed meets the replacement condition.
[0067] In this example, the communication connection means that the electronic cigarette cartridge to be installed and the electronic cigarette body are connected through Bluetooth.
[0068] In this example, the verification ciphertext means the ciphertext sent by the electronic cigarette cartridge to be installed to the electronic cigarette body for verifying the information of the electronic cigarette cartridge to be installed.
[0069] In this example, the replacement condition means that the appearance specification and the tobacco oil component of the electronic cigarette cartridge to be installed are matched with the electronic cigarette body.
[0070] The working principle and beneficial effects of the above technical solution are as follows: In order to ensure that the user uses the electronic cigarette cartridge that meets the use condition, the electronic cigarette cartridge to be installed and the electronic cigarette body are connected in communication through Bluetooth before the user replaces the electronic cigarette cartridge. Thus, the verification ciphertext sent by the electronic cigarette cartridge to be installed can be acquired. Whether the electronic cigarette cartridge to be installed meets the replacement condition can be determined by analyzing the verification ciphertext. Then, the electronic cigarette cartridge to be installed is installed on the electronic cigarette body when the electronic cigarette cartridge to be installed meets the replacement condition. Thus, the replacement of the electronic cigarette cartridge is completed. In this way, the specification of the electronic cigarette cartridge replaced each time can be matched with the electronic cigarette body. The selection of the qualified electronic cigarette cartridge can avoid the use of the inferior electronic cigarette cartridge by the user. The damage to the electronic cigarette body can be avoided. The user can be protected. The inferior tobacco oil can be prevented from harming the health of the user.
[0071] Embodiment 2
[0072] Based on the embodiment 1, the electronic cigarette cartridge authentication system comprises:
[0073] A Bluetooth selection unit is configured to acquire a plurality of to-be-connected devices within a specified area range, acquire the target Bluetooth identifier belonging to the electronic cigarette cartridge to be installed according to the Bluetooth identifier of each to-be-connected device.
[0074] A Bluetooth docking unit is configured to acquire the target connection instruction corresponding to the target Bluetooth identifier to perform Bluetooth connection.
[0075] In this example, the current state includes a standby state, a use state, and an oil shortage state, and the oil shortage state represents two cases of the electronic cigarette cartridge being detached from the electronic cigarette body or the electronic cigarette cartridge being out of oil;
[0076] In this example, the to-be-connected device represents all devices having a Bluetooth connection function and within the connection range of the electronic cigarette body.
[0077] In this example, the Bluetooth identifier represents the Bluetooth name of different to-be-connected devices.
[0078] The working principle and beneficial effects of the above technical solution are as follows: in order to realize cartridge verification, the to-be-replaced electronic cigarette cartridge and the electronic cigarette body are first connected by Bluetooth when the cartridge is replaced, the to-be-replaced electronic cigarette cartridge is screened from a plurality of to-be-connected devices, and then the to-be-replaced electronic cigarette cartridge is connected with the electronic cigarette body, thereby laying a foundation for subsequent verification.
[0079] Embodiment 3
[0080] Based on embodiment 1, the electronic cigarette cartridge authentication system comprises a collection module.
[0081] A collection unit is configured to acquire a plurality of plaintext data emitted by the to-be-installed electronic cigarette cartridge.
[0082] An extraction unit is configured to analyze each plaintext data respectively to obtain a data feature corresponding to each plaintext data, and extract a target plaintext data belonging to a target data feature.
[0083] An adjustment unit is configured to adjust the data format of the target plaintext data to a preset format to obtain a verification ciphertext.
[0084] In this example, the plaintext data represents all data contained in the to-be-installed electronic cigarette cartridge.
[0085] In this example, the target data feature represents a data feature corresponding to the verification ciphertext.
[0086] In this example, the preset format is a string format.
[0087] The working principle and beneficial effects of the above technical solution are as follows: in order to effectively obtain the verification ciphertext, a plurality of plaintext data emitted by the to-be-installed electronic cigarette cartridge is first acquired, then the target plaintext data belonging to the ciphertext is screened according to the data feature of the plaintext data, and then the target plaintext data is converted into a preset format, so that the verification ciphertext of the to-be-installed cartridge can be obtained, and thus the ciphertext verification work can be performed.
[0088] Embodiment 4
[0089] Based on embodiment 1, the electronic cigarette cartridge authentication system comprises an analysis module as shown in Figure 2 The analysis module comprises:
[0090] a parsing unit configured to parse the verification ciphertext to obtain a ciphertext string;
[0091] a processing unit configured to initialize the ciphertext string to obtain a public key ciphertext string and a private key ciphertext string, establish a public key index for the public key ciphertext string, establish a private key index for the private key ciphertext string, and find a verification method corresponding to the public key index in a preset index table;
[0092] a verification unit configured to establish a verification model according to the verification method, input the private key index into the verification model to perform first verification, judge whether the first verification passes according to a first verification result, and when the first verification passes, input the private key ciphertext string into the verification model to perform second verification to obtain a second verification result, and when the second verification result is consistent with a verification result corresponding to the verification method, determine that the to-be-installed electronic cigarette cartridge meets a replacement condition.
[0093] In this example, the ciphertext string is represented by one or more characters selected from numbers, letters and underscores, which are sorted.
[0094] In this example, the public key ciphertext string represents all characters constituting a verification public key.
[0095] In this example, the private key ciphertext string represents all characters constituting a verification private key.
[0096] In this example, the public key index represents a separate and physical storage structure for sorting public key characters in the public key ciphertext string.
[0097] In this example, the private key index represents a separate and physical storage structure for sorting private key characters in the private key ciphertext string.
[0098] In this example, the purposes of establishing the public key index and the private key index are to obtain character sorting structures corresponding to the public key ciphertext string and the private key ciphertext string through the establishment of the indexes.
[0099] In this example, the public key string contains appearance specification information of the to-be-installed electronic cigarette cartridge, and the private key string contains tobacco model information of the to-be-installed electronic cigarette cartridge.
[0100] In this example, the first verification represents verifying whether the appearance specification of the electronic cigarette cartridge matches the electronic cigarette body.
[0101] In this example, the second verification represents verifying whether the tobacco model in the electronic cigarette cartridge belongs to a preset model.
[0102] In this example, one verification method corresponds to one verification result.
[0103] The working principle and beneficial effects of the above technical solution are as follows: in order to verify whether the to-be-installed cigarette cartridge meets the use standard, the verification ciphertext is parsed to obtain a ciphertext string, so that the public key ciphertext string and the private key ciphertext string can be obtained in the ciphertext string, and an index is established for each of them, then a verification method is found in the index table, the public key ciphertext string is verified first, and the private key ciphertext string is input into it for the second verification after the first verification is passed, so as to judge whether the to-be-installed electronic cigarette cartridge meets the replacement condition, in this way, not only the appearance specification of the electronic cigarette can be verified to meet the use standard, but also the tobacco oil in the electronic cigarette can be verified to meet the use standard, thereby ensuring the health of the user.
[0104] Embodiment 5
[0105] On the basis of embodiment 1, the execution module comprises:
[0106] The first execution unit is configured to generate a docking instruction when the to-be-installed electronic cigarette cartridge meets the replacement condition.
[0107] The second execution unit is configured to, based on the docking instruction, regard the electronic cigarette body as a first docking object, regard the to-be-installed cigarette cartridge as a second docking object, dock the first docking object and the second docking object, and obtain a docking finished product.
[0108] The third execution unit is configured to control the docking finished product to execute a preset detection procedure, and obtain a detection result, and determine that the to-be-installed electronic cigarette cartridge is installed on the electronic cigarette body when the detection result is consistent with a preset result.
[0109] Conversely, a reinstallation instruction is generated and transmitted to a designated terminal for display.
[0110] In this example, the docking instruction represents an instruction for docking the to-be-installed electronic cigarette cartridge with the electronic cigarette body.
[0111] In this example, the preset detection procedure represents a procedure for detecting whether the newly-installed electronic cigarette cartridge can be normally atomized, and if so, it is determined that the detection result is consistent with the preset result.
[0112] The working principle and beneficial effects of the above technical solution are as follows: in order to realize cigarette cartridge installation, a docking instruction is first generated, then the docking objects are determined according to the docking instruction, the finished product after docking is detected, and it is determined whether reinstallation is needed according to the detection result and corresponding instructions are given, thereby achieving the purpose of fast and accurate installation.
[0113] Embodiment 6
[0114] On the basis of embodiment 1, the electronic cigarette cartridge authentication system further comprises:
[0115] The intelligent display module is used for obtaining a first historical record of user's use of the electronic cigarette and a second historical record of user's replacement of the electronic cigarette cartridge, analyzing and displaying a residual oil amount of the electronic cigarette according to the first historical record and the second historical record.
[0116] The working principle and beneficial effects of the above technical solution are as follows: the intelligent display module is arranged, so that the user can know the current residual oil amount through the intelligent display module, thereby providing a reference for the user.
[0117] Embodiment 7
[0118] On the basis of embodiment 4, the processing unit comprises:
[0119] The first processing component is configured to input the ciphertext string into a separator character screening model to screen characters, obtain a plurality of separator characters contained in the ciphertext string, and obtain separator character distribution information in the ciphertext string.
[0120] The second processing component is configured to divide the ciphertext string into a plurality of substring according to the separator character distribution information, analyze each substring respectively, and obtain a character feature corresponding to each character in the same substring.
[0121] The third processing component is configured to compare a plurality of character features corresponding to the same substring with preset character features, judge a string attribute of each substring according to a comparison result, and divide the substring into a public key ciphertext string and a private key ciphertext string according to the string attribute.
[0122] This example is a process of initializing the processing unit;
[0123] In this example, the character screening represents a process of obtaining separator characters in the ciphertext string.
[0124] In this example, the separator character distribution information represents a distribution of the separator characters in the ciphertext string.
[0125] In this example, the character feature includes a letter feature, a number feature and an underscore feature.
[0126] In this example, the string attribute is composed of characters with different features according to arrangement of the string.
[0127] The working principle and beneficial effects of the above technical solution are as follows: in order to distinguish the public key string and the private key string, first, the ciphertext string is divided into a plurality of substrings according to the distribution information of the segmentation character in the ciphertext string, then each substring is parsed to obtain the character feature corresponding to each character, thereby the string attribute corresponding to the two secret string can be obtained, so that the substring can be divided into the public key ciphertext string and the private key ciphertext string, which lays a foundation for subsequent verification.
[0128] Embodiment 8
[0129] The application provides an electronic cigarette cartridge authentication method, as shown in the figure, comprising: Figure 3
[0130] Step 1: when replacing the electronic cigarette cartridge, the electronic cigarette cartridge to be installed is connected in communication with the electronic cigarette body;
[0131] Step 2: based on the communication connection, the verification ciphertext sent by the electronic cigarette cartridge to be installed is obtained;
[0132] Step 3: the verification ciphertext is parsed, and whether the electronic cigarette cartridge to be installed meets the replacement condition is judged according to the parsing result;
[0133] Step 4: when the electronic cigarette cartridge to be installed meets the replacement condition, the electronic cigarette cartridge to be installed is installed on the electronic cigarette body.
[0134] In this example, the communication connection means that the electronic cigarette cartridge to be installed is connected with the electronic cigarette body through Bluetooth;
[0135] In this example, the verification ciphertext means the ciphertext sent by the electronic cigarette cartridge to be installed to the electronic cigarette body for verifying the information of the electronic cigarette cartridge to be installed;
[0136] In this example, the replacement condition means that the appearance specification and the tobacco oil composition of the electronic cigarette cartridge to be installed are matched with the electronic cigarette body.
[0137] The working principle and beneficial effects of the above technical solution are as follows: in order to ensure that the electronic cigarette cartridge replaced by the user meets the use condition, the electronic cigarette cartridge to be installed is connected in communication with the electronic cigarette body before the user replaces the electronic cigarette cartridge, then the verification ciphertext sent by the electronic cigarette cartridge to be installed is obtained, the legality of the electronic cigarette cartridge to be installed is judged according to the verification ciphertext, so that whether the cartridge meets the replacement condition can be distinguished, then the electronic cigarette cartridge to be installed is installed on the electronic cigarette body when it meets the replacement condition, thereby completing the replacement of the electronic cigarette cartridge. In this way, not only can the specification of the electronic cigarette cartridge replaced each time be matched with the electronic cigarette body, but also the user can select a qualified electronic cigarette cartridge, which can not only avoid damaging the electronic cigarette body, but also protect the user and avoid the harm of inferior tobacco oil to the user's health.
[0138] Embodiment 9
[0139] On the basis of Embodiment 8, the electronic cigarette cartridge authentication method, step 3 comprises:
[0140] Step 31: parsing the verification ciphertext to obtain a ciphertext string;
[0141] Step 32: initializing the ciphertext string to obtain a public key ciphertext string and a private key ciphertext string, establishing a public key index for the public key ciphertext string, establishing a private key index for the private key ciphertext string, and searching for a verification method corresponding to the public key index in a preset index table;
[0142] Step 33: establishing a verification model according to the verification method, inputting the private key index into the verification model to perform first verification, judging whether the first verification passes according to a first verification result, and inputting the private key ciphertext string into the verification model to perform second verification when the first verification passes, to obtain a second verification result, and determining that the electronic cigarette cartridge to be installed meets the replacement condition when the second verification result is consistent with a verification result corresponding to the verification method.
[0143] In this example, the ciphertext string is represented by one or more characters selected from the group consisting of numbers, letters, and underscores, which are sorted;
[0144] In this example, the public key ciphertext string represents all characters constituting a verification public key;
[0145] In this example, the private key ciphertext string represents all characters constituting a verification private key;
[0146] In this example, the public key index represents a separate, physical storage structure for sorting public key characters in the public key ciphertext string;
[0147] In this example, the private key index represents a separate, physical storage structure for sorting private key characters in the private key ciphertext string;
[0148] In this example, the purpose of establishing the public key index and the private key index is to obtain the character sorting structure corresponding to the public key ciphertext string and the private key ciphertext string through the establishment of the index;
[0149] In this example, the public key string contains appearance specification information of the electronic cigarette cartridge to be installed, and the private key string contains tobacco model information of the electronic cigarette cartridge to be installed;
[0150] In this example, the first verification indicates verification of whether the appearance specification of the electronic cigarette cartridge matches the electronic cigarette body;
[0151] In this example, the second verification indicates whether the type of tobacco oil in the electronic cigarette cartridge belongs to a preset type;
[0152] In this example, one verification method corresponds to one verification result.
[0153] The working principle and beneficial effects of the above technical solution are as follows: in order to verify whether the to-be-installed cartridge meets the use standard, the verification ciphertext is parsed to obtain a ciphertext string, so that the public key ciphertext string and the private key ciphertext string can be obtained in the ciphertext string, and an index is established for each of them, then a verification method is searched in the index table, the public key ciphertext string is verified first, and the private key ciphertext string is input into it for second verification after the first verification is passed, so as to judge whether the to-be-installed electronic cigarette cartridge meets the replacement condition, in this way, not only the appearance specification of the electronic cigarette can be verified to meet the use standard, but also the tobacco oil therein can be verified to meet the use standard, thereby ensuring the health of the user.
[0154] Embodiment 10
[0155] Based on embodiment 9, the electronic cigarette cartridge authentication method, step 32 comprises:
[0156] Step 321: input the ciphertext string into a separator character screening model for character screening to obtain a plurality of separator characters contained in the ciphertext string, and obtain separator character distribution information in the ciphertext string;
[0157] Step 322: according to the separator character distribution information, divide the ciphertext string into a plurality of substrings, parse each substring respectively to obtain character features corresponding to each character in the same substring;
[0158] Step 323: compare a plurality of character features corresponding to the same substring with preset character features, judge the string attribute of each substring according to the comparison result, and divide the substring into a public key ciphertext string and a private key ciphertext string according to the string attribute.
[0159] This example is the process of initialization processing in step 32;
[0160] In this example, character screening refers to the process of obtaining separator characters in the ciphertext string;
[0161] In this example, the separator character distribution information refers to the distribution of the separator characters in the ciphertext string.
[0162] In this example, the character features include letter features, number features, and underscore features.
[0163] In this example, the string attribute is composed of characters with different features according to the arrangement of the string.
[0164] The working principle and beneficial effects of the above technical solution are: in order to distinguish the public key string and the private key string, first, according to the distribution information of the split character in the ciphertext string, the ciphertext string is divided into several substrings, then each substring is parsed to obtain the character feature corresponding to each character, thereby the string attribute corresponding to the two secret string can be obtained, so that the substring can be divided into public key ciphertext string and private key ciphertext string, which lays the foundation for subsequent verification.
[0165] Embodiment 11
[0166] On the basis of embodiment 10, the electronic cigarette cartridge authentication method, step 321 comprises:
[0167] Step 3211: input the ciphertext string to the split character screening model;
[0168] Step 3212: in the split character screening model, the character attribute corresponding to each character is calculated by formula (1);
[0169]
[0170] Wherein, F i represents the character attribute corresponding to the i-th character in the ciphertext string, a represents the preset character split threshold, and its value range is [0.92, 1.22], theta represents the character weighting factor, and its value range is [0.3, 0.6], k i represents the i-th character in the ciphertext string, and k0 represents the preset split character sample;
[0171] Step 3213: according to the calculation result of formula (1), the character attribute corresponding to each character is obtained, the target attribute belonging to the split character is screened, and the character corresponding to the target attribute is obtained, which is recorded as the split character;
[0172] Step 3214: according to the distribution of the split character in the ciphertext string, the split character distribution information is obtained.
[0173] The working principle and beneficial effects of the above technical solution are: in order to realize string segmentation, the ciphertext string is input to the split character screening model for character screening, the character attribute corresponding to each character is analyzed by formula, so that the split character can be obtained, and finally the distribution information of the split character can be obtained, which lays the foundation for subsequent ciphertext verification.
[0174] It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application cover modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.
Claims
1. An electronic cigarette cartridge authentication system, characterized by, The application relates to an electronic cigarette and a method for replacing an electronic cigarette cartridge. The application comprises: A Bluetooth module for connecting a to-be-installed electronic cigarette cartridge with an electronic cigarette body when the electronic cigarette cartridge is replaced; A collection module for obtaining verification ciphertext emitted by the to-be-installed electronic cigarette cartridge based on the communication connection; An analysis module for analyzing the verification ciphertext and judging whether the to-be-installed electronic cigarette cartridge meets replacement conditions according to an analysis result; An execution module for installing the to-be-installed electronic cigarette cartridge on the electronic cigarette body when the to-be-installed electronic cigarette cartridge meets the replacement conditions; The analysis module comprises: An analysis unit for analyzing the verification ciphertext to obtain a ciphertext string; A processing unit for initializing the ciphertext string to obtain a public key ciphertext string and a private key ciphertext string, establishing a public key index for the public key ciphertext string, establishing a private key index for the private key ciphertext string, and searching for a verification method corresponding to the public key index in a preset index table; 2. The electronic cigarette cartridge authentication system of claim 1, wherein, A verification unit for establishing a verification model according to the verification method, inputting the private key index into the verification model for first verification, judging whether the first verification is passed according to a first verification result, inputting the private key ciphertext string into the verification model for second verification when the first verification is passed, and obtaining a second verification result, and determining that the to-be-installed electronic cigarette cartridge meets the replacement conditions when the second verification result is consistent with a verification result corresponding to the verification method. The Bluetooth module comprises: A Bluetooth selection unit for obtaining a plurality of to-be-connected devices within a specified area range, and obtaining a target Bluetooth identifier belonging to the to-be-installed electronic cigarette cartridge according to a Bluetooth identifier of each to-be-connected device; 3. The electronic cigarette cartridge authentication system of claim 1, wherein, A Bluetooth docking unit for obtaining a target connection instruction corresponding to the target Bluetooth identifier for Bluetooth connection. The collection module comprises: A collection unit for obtaining a plurality of plaintext data emitted by the to-be-installed electronic cigarette cartridge; An extraction unit for analyzing each plaintext data respectively to obtain data features corresponding to each plaintext data, and extracting target plaintext data belonging to target data features; 4. The electronic cigarette cartridge authentication system of claim 1, wherein, An adjustment unit for adjusting a data format of the target plaintext data into a preset format to obtain verification ciphertext. The execution module comprises: A first execution unit for generating a docking instruction when the to-be-installed electronic cigarette cartridge meets the replacement conditions; A second execution unit for regarding the electronic cigarette body as a first docking object, regarding the to-be-installed electronic cigarette cartridge as a second docking object, docking the first docking object with the second docking object based on the docking instruction, and obtaining a docking finished product; A third execution unit for controlling the docking finished product to execute a preset detection program to obtain a detection result, and determining that the to-be-installed electronic cigarette cartridge is installed on the electronic cigarette body when the detection result is consistent with a preset result; 5. The electronic cigarette cartridge authentication system of claim 1, wherein, Conversely, a reinstallation instruction is generated and transmitted to a specified terminal for display. Further comprising:
6. The electronic cigarette cartridge authentication system of claim 1, wherein, An intelligent display module for obtaining a first historical record of user use of an electronic cigarette and a second historical record of user replacement of an electronic cigarette cartridge, analyzing and displaying a remaining oil amount of the electronic cigarette according to the first historical record and the second historical record. The processing unit comprises: The first processing component is configured to input the ciphertext string into a separator character screening model for character screening to obtain a plurality of segmentation characters contained in the ciphertext string and obtain segmentation character distribution information in the ciphertext string. The second processing component is configured to divide the ciphertext string into a plurality of substrings according to the segmentation character distribution information, analyze each substring respectively, and obtain character features corresponding to each character in the same substring. The third processing component is configured to compare a plurality of character features corresponding to the same substring with preset character features, judge a string attribute of each substring according to a comparison result, and divide the substring into a public key ciphertext string and a private key ciphertext string according to the string attribute.
7. An electronic cigarette cartridge authentication method, characterized by, The method comprises the following steps: Step 1: when replacing an electronic cigarette cartridge, a to-be-installed electronic cigarette cartridge is connected in communication with an electronic cigarette body; Step 2: based on the communication connection, verification ciphertext issued by the to-be-installed electronic cigarette cartridge is acquired; Step 3: the verification ciphertext is analyzed, and whether the to-be-installed electronic cigarette cartridge meets replacement conditions is judged according to an analysis result; Step 4: when the to-be-installed electronic cigarette cartridge meets the replacement conditions, the to-be-installed electronic cigarette cartridge is installed on the electronic cigarette body; Step 3 comprises the following steps: Step 31: the verification ciphertext is analyzed to obtain a ciphertext string; Step 32: the ciphertext string is initialized to obtain a public key ciphertext string and a private key ciphertext string, a public key index is established for the public key ciphertext string, a private key index is established for the private key ciphertext string, a verification method corresponding to the public key index is searched in a preset index table; Step 33: a verification model is established according to the verification method, the private key index is input into the verification model for first verification, whether the first verification passes is judged according to a first verification result, and when the first verification is qualified, the private key ciphertext string is input into the verification model for second verification to obtain a second verification result, and when the second verification result is consistent with a verification result corresponding to the verification method, it is determined that the to-be-installed electronic cigarette cartridge meets the replacement conditions.
8. The electronic cigarette cartridge authentication method of claim 7, wherein, Step 32 comprises the following steps: Step 321: the ciphertext string is input into a separator character screening model for character screening to obtain a plurality of segmentation characters contained in the ciphertext string and obtain segmentation character distribution information in the ciphertext string; Step 322: the ciphertext string is divided into a plurality of substrings according to the segmentation character distribution information, each substring is analyzed respectively, and character features corresponding to each character in the same substring are obtained; Step 323: a plurality of character features corresponding to the same substring are compared with preset character features, a string attribute of each substring is judged according to a comparison result, and the substring is divided into a public key ciphertext string and a private key ciphertext string according to the string attribute.
Citation Information
Patent Citations
Data encryption method and device, and data decryption method and device
CN112003859A
Anti-counterfeiting chip, electronic atomizer and encryption identification method
CN112956753A
Electronic cigarette with display and reminding functions
CN209090073U