Two-wire authentication data communication circuit for electronic cigarettes
By designing a two-wire authentication data communication circuit in the electronic cigarette, using alternating electromagnetic field coupling and Manchester encoding, the problem of insufficient encryption authentication function and difficulty in data transmission of existing electronic cigarettes is solved, and two-way communication between the cigarette rod and the cigarette cartridge is realized. Authentication and data signal transmission enhance the protection and communication stability of e-cigarettes.
Patent Information
- Application Number
- CN202011290690.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-18
AI Technical Summary
The encryption authentication function of existing e-cigarettes is insufficient and cannot effectively protect the interests of manufacturers and users. Moreover, due to the small resistance of the heating wire, the single-wire protocol is difficult to be directly applied to the e-cigarette authentication circuit, resulting in difficulty in data transmission.
Design a two-wire authentication data communication circuit for electronic cigarettes. Through the cooperation of the electronic cigarette control chip and the cartridge encryption chip, the data signal transmission is realized by alternating electromagnetic field coupling. Manchester encoding and operational amplifier circuits are used for modulation. The current signal It is amplified by a power amplifier and flows through the transmitting coil to generate an alternating electromagnetic field, which is decoded by the receiving module at the cigarette rod end to obtain the data signal.
It realizes two-way authentication and data signal transmission between the cigarette rod and the cigarette cartridge, enhances the protection of the electronic cigarette, has a simple communication method and low cost, is suitable for the certification of electronic cigarettes and other consumables, and has good adaptability and stability.
Smart Images

Figure CN112273739B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic cigarettes, and in particular to a two-wire authentication data communication circuit for electronic cigarettes. Background Art
[0002] Electronic cigarettes are electronic products that imitate cigarettes. They can give people a kind of smoke, taste and feeling similar to that produced by actual smoking. They can not only satisfy people who have the habit of smoking, but also reduce the impact of harmful substances in cigarettes on the body of smokers. At present, most electronic cigarettes on the market do not have encryption and authentication functions. Some electronic cigarettes with encryption functions use a storage chip in the electronic cigarette cartridge to encrypt and identify through the password in the storage chip. Although this method realizes the recognition of the cartridge by the electronic cigarette rod, it does not realize the recognition of the cigarette rod by the electronic cigarette cartridge. It is a weak protection and cannot well protect the interests of manufacturers and users. The existing electronic cigarette smoking device and cartridge adopt a two-wire connection method, using VCC and ground to connect to the heating wire on the cartridge. The resistance of the heating wire is about 1 ohm, which can heat and atomize the smoke oil. Due to the requirements of tobacco compliance and anti-counterfeiting, it is necessary to add an encryption chip to the cartridge to authenticate the cartridge and record relevant parameters. Considering the cost, a low-cost communication method is required between the cigarette rod and the cartridge.
[0003] The line that uses a single data line for communication is called single-wire communication. There are currently many different single-wire protocol standards. For example, the SWP standard formulated by ETSI (European Telecommunications Standards Institute) specifies the communication interface between the SIM card and the NFC chip. SWP (Single Wire Protocol) realizes full-duplex communication on a single line. The communication direction is UICC (Universal Integrated Chip Card) and CLF (Contactless Front End). S1 is a voltage signal. The SIM card detects the high and low levels of the S1 signal through a voltmeter and adopts level width modulation; the S2 signal is a current signal and adopts load modulation. The S2 signal must be valid when the S1 signal is at a high level. When the S1 signal is at a high level, a triode inside it is turned on, and the S2 signal can be transmitted. The S1 signal and the S2 signal are superimposed together to realize full-duplex communication on a single line. Among them, the ground line and the data line, the data line also provides power to the slave, and the host and the slave can be converted under certain conditions) The single bus (1-Wire Bus) technology was first proposed by Dallas. When the host writes, there are two write time slots in the single bus communication protocol: write 0 and write 1. The host uses the write 1 time slot to write 1 to the slave, and the write 0 time slot to write 0 to the slave. All write time slots must be at least 60us, and there must be at least 1us recovery time between two independent write time slots. Both write time slots start with the host pulling down the data bus. The way to generate a 1 time slot: after the host pulls down the bus, it must release the bus within 15us, and the bus is pulled to a high level by the pull-up resistor; the way to generate a write 0 time slot is that after the host pulls down, it only needs to maintain a low level during the entire time slot (at least 60us). During the period of 15 to 60us after the start of the write time slot, the single bus device samples the total level state. If the sampled value is high during this period, logic 1 is written to the device; if it is 0, logic 0 is written. The black solid line in the figure represents the system host pulling down the bus, and the black dotted line represents the pull-up resistor pulling the bus high. The read timing is similar, and the slave is used to pull down the operation.
[0004] The above single-wire protocol is relatively mature, but the above solution cannot be directly applied to the electronic cigarette authentication circuit. Because the resistance of the heating wire is very small, about 1 ohm, it is difficult for the encryption chip to directly transmit data from the cartridge end. One possible solution is to control a MOS tube in the encryption chip and turn off the heating wire during authentication. If an external MOS is used, the cost will increase. If a built-in MOS is used, there will be a large current path in the chip, which will have an adverse effect on the stability of the chip. Summary of the invention
[0005] The main purpose of the present invention is to provide a two-wire authentication data communication circuit for electronic cigarettes with a simple communication method.
[0006] To achieve the above-mentioned purpose, the two-wire authentication data communication circuit for electronic cigarettes proposed in the present invention includes an electronic cigarette control chip and a cartridge encryption chip, wherein the electronic cigarette control chip is arranged at the electronic cigarette rod end, and the cartridge encryption chip is arranged at the electronic cigarette cartridge end, and the electronic cigarette control chip and the cartridge encryption chip are communicatively connected to realize data signal transmission between the electronic cigarette rod end and the cartridge end.
[0007] Furthermore, the electronic cigarette control chip includes: a microcontroller and a cigarette rod receiving circuit, wherein the microcontroller is connected to the cigarette rod receiving circuit.
[0008] Furthermore, after the encryption chip receives the data signal transmitted by the microcontroller through the power line, it shapes and extracts the data signal, and sends the shaped and extracted data signal to the encryption circuit on the encryption chip for encryption calculation and data reading to obtain the data signal stream to be sent.
[0009] Furthermore, the encryption chip performs Manchester encoding on the data signal stream to be sent to obtain the required current signal waveform, and modulates the current signal waveform through the waveform generation and operational amplifier circuit in the encryption chip to obtain a current signal. The current signal is amplified by a power amplifier and flows through the transmitting coil of the encryption chip, thereby generating an alternating electromagnetic field.
[0010] Furthermore, the cigarette rod receiving circuit includes a comparison circuit, an amplification circuit, a low-pass filter circuit and a receiving module, and the receiving module, the comparison circuit, the amplification circuit, the low-pass filter circuit and the microcontroller are communicatively connected.
[0011] Furthermore, the alternating electromagnetic field is coupled to the receiving module to obtain a voltage signal.
[0012] Furthermore, the receiving module passes the received voltage signal through a low-pass filter circuit to filter out high-frequency voltage signals from the voltage signal.
[0013] Furthermore, the amplifier circuit is used to amplify the voltage signal with high frequency filtered out.
[0014] Furthermore, the comparison circuit is used to perform threshold determination on the amplified voltage signal, and the voltage signal is subjected to low-pass filtering, amplification and threshold determination to obtain a data signal provided by the encryption chip.
[0015] Furthermore, the frequency of the alternating electromagnetic field is 10K, 15K, 20K, 25K, and 30K.
[0016] The technical solution of the present invention uses the above-mentioned two-wire authentication data communication circuit for electronic cigarettes. By setting the electronic cigarette control chip at the electronic cigarette rod end and the cigarette cartridge encryption chip at the electronic cigarette cartridge end, the electronic cigarette control chip and the cigarette cartridge encryption chip cooperate to realize data signal transmission between the electronic cigarette rod end and the electronic cigarette cartridge end, thereby realizing authentication of the cigarette cartridge and enhancing protection of the electronic cigarette; the circuit communication method is simple, the configuration is convenient and flexible, and it can be adapted to electronic cigarette cartridge authentication, printer consumables, etc., and has good adaptability, practicality, stability and reliability, and the circuit inside the chip is simple and mature, and the cost is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0018] Figure 1 It is a connection diagram of the electronic cigarette control chip and the cigarette cartridge encryption chip in the two-wire authentication data communication circuit for the electronic cigarette of the present invention;
[0019] Figure 2 This is a data signal transmission model diagram of the electronic cigarette cartridge end based on alternating electromagnetic field coupling in the two-wire authentication data communication circuit for electronic cigarettes of the present invention;
[0020] Figure 3 The waveform diagram of the current signal at the cartridge end of the electronic cigarette and the waveform diagram of the voltage signal at the rod end of the electronic cigarette at a rate of 20K in the two-wire authentication data communication circuit of the electronic cigarette of the present invention.
[0021] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0024] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0025] The present invention provides a two-wire authentication data communication circuit for an electronic cigarette.
[0026] In the embodiment of the present invention, Figure 1-2 The two-wire authentication data communication circuit for electronic cigarettes is composed of an electronic cigarette control chip 100 and a cartridge encryption chip 200, wherein the electronic cigarette control chip 100 is arranged at the end of the electronic cigarette rod, and the cartridge encryption chip 200 is arranged at the end of the electronic cigarette cartridge. The electronic cigarette control chip 100 and the cartridge encryption chip 200 are communicatively connected to realize data signal transmission between the electronic cigarette rod end and the cartridge end.
[0027] In this embodiment, the electronic cigarette control chip 100 includes: a microcontroller and a cigarette rod receiving circuit, wherein the microcontroller is connected to the cigarette rod receiving circuit.
[0028] Specifically, after the cartridge encryption chip completes security functions such as key initialization, random number generation, data MAC generation, authentication reading and writing, the encryption chip receives the data signal transmitted by the microcontroller through the power line, shapes and extracts the data signal, and sends the shaped and extracted data signal to the encryption circuit on the encryption chip for encryption calculation and data reading to obtain the data signal stream to be sent. The electronic cigarette rod end transmits the data signal to the electronic cigarette cartridge end, and directly transmits it using a single-wire protocol. When the electronic cigarette cartridge end transmits the data signal to the electronic cigarette rod end, it is because the encryption chip at the electronic cigarette cartridge end generates a changing current signal on the transmitting coil, generating a spatial alternating electromagnetic field, and the antenna at the receiving end of the rod senses the corresponding voltage signal. After filtering, amplifying, shaping, judging, and other operations on this voltage signal, the corresponding data signal can be decoded. This enables data signal interaction between the electronic cigarette cartridge end and the electronic cigarette rod end.
[0029] Specifically, the encryption chip performs Manchester encoding on the data signal stream to be sent to obtain the required current signal waveform, and the current signal waveform is modulated by the waveform generation and operational amplifier circuit in the encryption chip to obtain a current signal, which is amplified by a power amplifier and flows through the transmitting coil of the encryption chip to generate an alternating electromagnetic field. It should be noted that a heating load such as a heating wire is also provided in the electronic cigarette cartridge end, and the heating load is connected to the power supply terminal A and the B terminal. When the cartridge encryption chip 200 and the cigarette rod control chip realize two-way authentication, the power supply terminal A and the B terminal are turned on to start heating the heating load.
[0030] In this embodiment, the cigarette rod receiving circuit includes a comparison circuit, an amplifier circuit, a low-pass filter circuit and a receiving module, and the receiving module, the comparison circuit, the amplifier circuit, the low-pass filter circuit and the microcontroller are communicatively connected.
[0031] In this embodiment, the alternating electromagnetic field is coupled to the receiving module to obtain a voltage signal.
[0032] In this embodiment, the receiving module passes the received voltage signal through a low-pass filter circuit to filter out the high-frequency voltage signal. The amplifier circuit is used to amplify the voltage signal after filtering out the high frequency. The comparison circuit is used to perform threshold judgment on the amplified voltage signal, and the voltage signal is low-pass filtered, amplified and threshold judged to obtain the data signal given by the encryption chip. Since the magnetic permeability μ of the air is very small, the voltage signal sensed by the electronic cigarette rod is very weak. It is about tens of microvolts in size. After the voltage signal is low-pass filtered, amplified and threshold judged, the data signal given by the encryption chip is obtained. The above circuit can be completed with discrete devices, and can also be completed with an MCU with an integrated operational amplifier and an ADC of suitable accuracy.
[0033] In this embodiment, the frequency of the alternating electromagnetic field is 10K, 15K, 20K, 25K, or 30K.
[0034] The data signal transmission process is as follows:
[0035] (1) The cartridge encryption chip 200 performs Manchester encoding on the data stream to be sent to obtain the required current signal waveform. The current signal waveform can be transmitted by baseband or modulated by a high-frequency carrier, and the carrier frequency can be from 1M to 20M; when a high-frequency carrier is selected, 100% modulation or 10% modulation can be selected, or baseband transmission can be directly used, and the rate uses 10K, 15K, 20K, 25K, 30K return-to-zero code or Manchester encoding. The above communication method has a suitable transmission speed, is stable and reliable, and the circuit inside the chip is simple and mature, and the cost is low.
[0036] (2) The modulated current signal is amplified by the power amplifier in the amplifier circuit and flows through the transmitting coil, thereby generating an alternating electromagnetic field;
[0037] (3) The alternating electromagnetic field is coupled to the receiving module at the end of the cigarette rod, where the receiving module is a receiving antenna. The receiving antenna induces a voltage signal. The voltage signal received by the receiving antenna is filtered out by a low-pass filter in a low-pass filter circuit to remove the higher frequency signal, and then amplified and decoded to obtain the data signal given by the encryption chip.
[0038] The data signal transmission coding and waveform design are as follows:
[0039] Take the case of a 20K communication rate and a circular coil as the transmitting antenna of the cartridge. The transmitting end current of the cartridge is I, the number of antenna turns is M, R is the circular radius of the antenna, and Y is the distance from the center of the coil along the vertical direction of the antenna. In actual communication, and when the 20K rate is applied, the communication distance X is much smaller than the wavelength of the 20KHz alternating electromagnetic field, so the approximate formula for the magnetic field strength H at the transmitter end of the cartridge is:
[0040]
[0041] The area of the coil at the receiving end of the cigarette rod is S. Because the area of the circuit board inside the cigarette rod is very small and the number of turns is large, it can be approximately assumed that the H value at each point is the same when passing through the receiving coil. When the coil at the receiving end of the cigarette rod is parallel to the coil at the transmitting end, the magnetic flux Φ value at the cigarette rod end is as follows:
[0042] Φ≈μHS (2)
[0043] When the number of turns of the cigarette rod coil is N, the induced voltage V induced on the receiving antenna is:
[0044]
[0045] From the above formula, we can know that when the positions of the cigarette cartridge and cigarette rod are fixed, and the coil area and number of turns are constant, K is a constant. Therefore, the induced voltage at the cigarette rod antenna end is proportional to the differential of the current at the cigarette cartridge antenna transmitting end.
[0046] When the signal at the receiving end of the cigarette rod is a high-low level binary coded signal, the current waveform at the sending end can be the integral form corresponding to the induced voltage. Without loss of generality, Figure 3 As shown, the current i of the antenna at the sending end of the cigarette cartridge is Figure 3 When the triangle wave is shown, the coil at the end of the cigarette rod will generate an induced voltage corresponding to the Manchester code stream. Through the above communication method, the data at the cigarette cartridge end can be transmitted to the cigarette rod end at a rate of 20Kb / s.
[0047] Among them, when the electronic cigarette rod and the cigarette cartridge are fixed, the communication distance is constant. At this time, the number of turns of the transmitting coil, the area of the receiving antenna at the rod, the number of turns of the receiving antenna at the rod, etc. can be adjusted according to formula (3) to achieve the optimal signal transmission effect.
[0048] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A two-wire authentication data communication circuit for electronic cigarettes, characterized in that: It includes an electronic cigarette control chip and a cartridge encryption chip, wherein the electronic cigarette control chip is arranged at the end of the electronic cigarette rod, the cartridge encryption chip is arranged at the end of the electronic cigarette cartridge, and the electronic cigarette control chip and the cartridge encryption chip are communicatively connected to realize data signal transmission between the electronic cigarette rod end and the cartridge end; The electronic cigarette control chip includes: a microcontroller and a cigarette rod receiving circuit, wherein the microcontroller is connected to the cigarette rod receiving circuit; After receiving the data signal transmitted by the microcontroller through the power line, the encryption chip shapes and extracts the data signal, and sends the shaped and extracted data signal to the encryption circuit on the encryption chip for encryption calculation and data reading to obtain a data signal stream to be sent; The encryption chip performs Manchester encoding on the data signal stream to be transmitted to obtain a required current signal waveform, and the current signal waveform is modulated by the waveform generation and operational amplifier circuit in the encryption chip to obtain a current signal, the current signal is amplified by a power amplifier, and flows through the transmitting coil of the encryption chip, thereby generating an alternating electromagnetic field; The cigarette rod receiving circuit induces the alternating electromagnetic field to generate a voltage signal, thereby realizing data signal interaction between the electronic cigarette cartridge end and the electronic cigarette rod end.
2. The two-wire authentication data communication circuit for an electronic cigarette according to claim 1, characterized in that: The cigarette rod receiving circuit includes a comparison circuit, an amplification circuit, a low-pass filter circuit and a receiving module. The receiving module, the comparison circuit, the amplification circuit, the low-pass filter circuit are communicatively connected with the microcontroller.
3. The two-wire authentication data communication circuit for an electronic cigarette according to claim 2, characterized in that: The alternating electromagnetic field is coupled to the receiving module to obtain a voltage signal.
4. The two-wire authentication data communication circuit for an electronic cigarette according to claim 3, characterized in that: The receiving module passes the received voltage signal through the low-pass filter circuit to filter out the high-frequency voltage signal.
5. The two-wire authentication data communication circuit for an electronic cigarette according to claim 4, characterized in that: The amplifier circuit is used to amplify the voltage signal with high frequency filtered out.
6. The two-wire authentication data communication circuit for an electronic cigarette according to claim 5, characterized in that: The comparison circuit is used to perform threshold determination on the amplified voltage signal; after low-pass filtering, amplification and threshold determination of the voltage signal, a data signal given by the encryption chip is obtained.
7. The two-wire authentication data communication circuit for an electronic cigarette according to claim 6, characterized in that: The frequency adopted by the alternating electromagnetic field is 10K, 15K, 20K, 25K, 30K.
