Bidirectional verification module, communication verification module, equipment and verification method
By designing a two-way verification module in electronic devices, using signal authentication and polarity conversion technology, the problem of low connection efficiency between detachable components and the body is solved, efficient two-way authentication and stable power supply between devices are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411285858.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-03
AI Technical Summary
The connection between the removable parts and the body in existing electronic devices is inefficient and has troublesome use, resulting in poor user experience.
Design a two-way verification module, including a control unit, a sending unit, a receiving unit and a polarity conversion unit, through signal authentication and polarity conversion, ensure the correct signal flow when the two-way verification module is connected to the communication verification module, and realize the two-way between devices. Certified and efficient connection.
It improves the connection efficiency of the detachable components and the body, improves the user experience, ensures that the equipment can communicate and power normally under the front and back plugging, and avoids equipment damage caused by connection errors.
Smart Images

Figure CN119071000A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of electronic devices, and in particular, to a two-way verification module, a communication verification module, a device, and a verification method. Background Art
[0002] With the development of electronic equipment technology, the application of detachable electronic equipment is becoming more and more widespread. For example, the electronic equipment is divided into two parts: the main body and the detachable parts. When in use, the detachable parts can be connected to the main body, and the contacts on the main body and the detachable parts are in contact with each other, so as to realize the communication and control between the main body and the detachable parts. The detachable parts can be used as consumables of the electronic equipment. After the detachable parts are used, they can be removed and replaced with new detachable parts, so as to increase the number of times the main body can be reused.
[0003] In order to ensure the correct connection and use of the detachable parts, the connection direction of the detachable parts and the main body is generally pre-set, that is, the detachable parts need to be positively connected to the main body to ensure that the contacts on the main body and the detachable parts are correctly connected. The connection efficiency between the detachable parts and the main body is low, and the use of the equipment is more troublesome. Summary of the invention
[0004] The embodiments of the present application provide a two-way verification module, a communication verification module, a device and a verification method to solve the technical problems in the related art of low connection efficiency between the detachable parts and the main body and inconvenient use of the equipment, effectively improve the connection efficiency between the detachable parts and the main body, and enhance the user experience.
[0005] In a first aspect, an embodiment of the present application provides a two-way verification module, including a first control unit, a first sending unit, a first receiving unit and a polarity conversion unit, wherein:
[0006] The first control unit is connected to a signal input end of the first sending unit and a signal output end of the first receiving unit;
[0007] The output side of the polarity conversion unit is connected to the first sending unit and the first receiving unit, the first connection end of the input side of the polarity conversion unit is connected to the first contact of the bidirectional verification module, and the second connection end of the input side of the polarity conversion unit is connected to the second contact of the bidirectional verification module;
[0008] The two-way verification module is used to connect to the communication verification module, and when connected to the communication verification module, the first contact and the second contact are connected to the third contact and the fourth contact of the communication verification module, or the first contact and the second contact are connected to the fourth contact and the third contact of the communication verification module;
[0009] The first control unit is used to send a first authentication signal to the first contact through the first sending unit, and the first authentication signal is used for the communication verification module to perform communication verification, and to receive a second authentication signal from the first contact through the first receiving unit, and the second authentication signal is used for the first control unit to perform communication verification.
[0010] In the embodiment of the present application, a two-way verification module is connected to a communication verification module, a first authentication signal is sent to a first contact through a first sending unit, the first authentication signal is used for the communication verification module to perform communication verification, and a second authentication signal is received from the first contact through a first receiving unit, the second authentication signal is used for the first control unit to perform communication verification, wherein the polarity conversion unit can maintain the polarity direction from the input side to the output side, and can realize the correct flow direction of the signal when the two-way verification module is reversely connected to the communication verification module, thereby improving the connection efficiency between the two-way verification module and the communication verification module, and improving the user experience, and can send the first authentication signal to the first contact through the first sending unit, and receive the second authentication signal from the first contact through the first receiving unit, and perform communication verification based on the second authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0011] In a second aspect, an embodiment of the present application provides a two-way authentication method, which is applied to a first control unit in a two-way authentication module as described in any one of the first aspects, including:
[0012] receiving a second authentication signal from the first contact through the first receiving unit, and performing communication verification based on the second authentication signal;
[0013] A first authentication signal is sent to the first contact through the first sending unit, for the communication verification module to perform communication verification.
[0014] The embodiment of the present application connects a two-way verification module to a communication verification module, sends a first authentication signal to a first contact through a first sending unit for the communication verification module to perform communication verification, receives a second authentication signal from the first contact through a first receiving unit, and performs communication verification based on the second authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0015] In a third aspect, an embodiment of the present application provides a communication verification module, including a second control unit, a second sending unit, and a second receiving unit, wherein:
[0016] The second control unit is connected to the signal input end of the second sending unit and the signal output end of the second receiving unit, and the signal output end of the second sending unit and the signal input end of the second receiving unit are connected to the third contact of the communication verification module;
[0017] The communication verification module is used to connect to the two-way verification module, and when connected to the two-way verification module, the third contact and the fourth contact of the communication verification module are connected to the first contact and the second contact of the two-way verification module, or the third contact and the fourth contact are connected to the second contact and the first contact of the two-way verification module;
[0018] The second control unit is used to send a second authentication signal to the third contact through the second sending unit for the two-way verification module to perform communication verification, and to receive a first authentication signal from the third contact through the second receiving unit and perform communication verification based on the first authentication signal.
[0019] The embodiment of the present application connects the two-way verification module through the communication verification module, sends the second authentication signal to the third contact through the second sending unit, and is used for the two-way verification module to perform communication verification, and receives the first authentication signal from the third contact through the second receiving unit, and performs communication verification based on the first authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0020] In a fourth aspect, an embodiment of the present application provides a two-way verification method, which is applied to a second control unit in a communication verification module as described in any one of the third aspects, including:
[0021] Sending a second authentication signal to the third contact through the second sending unit, for the two-way verification module to perform communication verification;
[0022] A first authentication signal is received from the third contact through the second receiving unit, and communication verification is performed based on the first authentication signal.
[0023] In the embodiment of the present application, the second sending unit sends a second authentication signal to the third contact, which is used for the two-way verification module to perform communication verification, and the second receiving unit receives a first authentication signal from the third contact, and performs communication verification based on the first authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0024] In a fifth aspect, an embodiment of the present application provides a two-way verification device, comprising a two-way verification module as described in any one of the first aspect and a communication verification module as described in any one of the third aspect.
[0025] In the embodiment of the present application, a two-way verification module is connected to a communication verification module, a first authentication signal is sent to a first contact through a first sending unit, the first authentication signal is used for the communication verification module to perform communication verification, and a second authentication signal is received from the first contact through a first receiving unit, the second authentication signal is used for the first control unit to perform communication verification, wherein the polarity conversion unit can maintain the polarity direction from the input side to the output side, and can realize the correct flow direction of the signal when the two-way verification module is reversely connected to the communication verification module, thereby improving the connection efficiency between the two-way verification module and the communication verification module, and improving the user experience. The two-way verification module can also be connected through the communication verification module, and a second authentication signal is sent to a third contact through a second sending unit for the two-way verification module to perform communication verification, and a first authentication signal is received from the third contact through a second receiving unit, and communication verification is performed based on the first authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0026] In a sixth aspect, an embodiment of the present application provides a two-way authentication method, which is applied to the two-way authentication device as described in the fifth aspect, and is characterized by comprising:
[0027] The second control unit sends a second authentication signal to the third contact through the second sending unit;
[0028] The second control unit receives the first authentication signal from the third contact through the second receiving unit, and performs communication verification based on the first authentication signal;
[0029] The first control unit receives a second authentication signal from the first contact through the first receiving unit, wherein the second authentication signal is used for the first control unit to perform communication verification;
[0030] The first control unit sends a first authentication signal to the first contact through the first sending unit.
[0031] In the embodiment of the present application, the second control unit sends a second authentication signal to the third contact through the second sending unit, and receives a first authentication signal from the third contact through the second receiving unit, and performs communication verification based on the first authentication signal, and receives the second authentication signal from the first contact through the first control unit through the first receiving unit, and the second authentication signal is used for the first control unit to perform communication verification, and the first control unit sends the first authentication signal to the first contact through the first sending unit, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the principle of a two-way verification module provided in an embodiment of the present application;
[0033] Figure 2 It is a schematic diagram of the principle of another two-way verification module provided in an embodiment of the present application;
[0034] Figure 3 is a circuit diagram of a bidirectional verification module provided in an embodiment of the present application;
[0035] Figure 4 It is a flowchart of a two-way authentication method provided in an embodiment of the present application;
[0036] Figure 5 It is a schematic diagram of the principle of a communication verification module provided in an embodiment of the present application;
[0037] Figure 6 It is a schematic diagram of another communication verification module provided in an embodiment of the present application;
[0038] Figure 7 is a circuit diagram of a communication verification module provided in an embodiment of the present application;
[0039] Figure 8 It is a flow chart of a communication verification method provided in an embodiment of the present application;
[0040] Fig. 9 It is a schematic diagram of the principle of a two-way authentication device provided in an embodiment of the present application;
[0041] Fig.10 It is a schematic diagram of the circuit principle of a bidirectional verification device provided in an embodiment of the present application;
[0042] Fig.11 It is a flowchart of a two-way verification method provided in an embodiment of the present application.
[0043] Description of the drawings: 11. First control unit; 12. First sending unit; 121. First switching element; 13. First receiving unit; 131. First resistor; 132. Second resistor; 133. Second switching element; 14. Polarity conversion unit; 141. Rectifier bridge; 15. Energy storage unit; 16. Functional unit; 21. Second control unit; 22. Second sending unit; 221. Third switching element; 23. Second receiving unit; 231. Sampling element; 232. Amplifier; 233. Comparator; 24. Detection unit; 241. Third resistor; 25. Sensing unit. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the sake of ease of description, only the parts related to the present application are shown in the accompanying drawings, rather than all the contents.
[0045] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "connected", "connected", and "fixed" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral body; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, and the like.
[0046] Figure 1 A schematic diagram of the principle of a two-way verification module provided in an embodiment of the present application is given, such as Figure 1 As shown, the bidirectional verification module provided in the present application includes a first control unit 11 , a first sending unit 12 , a first receiving unit 13 and a polarity conversion unit 14 .
[0047] Among them, the first sending unit 12 and the first receiving unit 13 are both configured with a signal input terminal and a signal output terminal, and the first control unit 11 provided in the present application is respectively connected to the signal input terminal of the first sending unit 12 and the signal output terminal of the first receiving unit 13. Optionally, the control unit (including the first control unit and the second control unit) provided in this solution can be built based on a microcontroller (such as an MCU).
[0048] The bidirectional verification module provided by the present solution can be used to connect to the communication verification module, and the bidirectional verification module is configured with a first contact and a second contact, and the communication verification module is configured with a third contact and a fourth contact. When the bidirectional verification module is connected to the communication verification module, the first contact and the second contact on the bidirectional verification module are connected to the third contact and the fourth contact on the communication verification module, or the first contact and the second contact on the bidirectional verification module are connected to the fourth contact and the third contact of the communication verification module.
[0049] The polarity conversion unit 14 provided in this solution is configured with an output side and an output side, and the output side and the output side are both configured with a first connection end and a second connection end. Among them, the output side of the polarity conversion unit 14 is connected to the first sending unit 12 and the first receiving unit 13. For example, the first connection end of the output side of the polarity conversion unit 14 is simultaneously connected to the signal output end of the first sending unit 12 and the signal input end of the first receiving unit 13, and the second connection end of the output side of the polarity conversion unit 14 is grounded.
[0050] Further, a first connection end on the input side of the polarity conversion unit 14 is connected to a first contact of the bidirectional verification module, and a second connection end on the input side of the polarity conversion unit 14 is connected to a second contact of the bidirectional verification module.
[0051] The polarity conversion unit 14 provided by the present solution can be used to maintain the polarity direction from the input side to the output side, wherein the potential of the first connection end on the input side of the polarity conversion unit 14 is close to or the same as the potential of the first connection end on the output side, and the potential of the second connection end on the input side is close to or the same as the potential of the second connection end on the output side. For example, when the bidirectional verification module is connected to the communication verification module in a positive connection manner, the first connection end of the bidirectional verification module is connected to the first connection end of the communication verification module, and the second connection end of the bidirectional verification module is connected to the second connection end of the communication verification module. At this time, the first connection end of the bidirectional verification module, the first connection end of the communication verification module, the first connection end on the input side of the polarity conversion unit 14, and the first connection end on the output side of the polarity conversion unit 14 have close to or the same potentials, and the second connection end of the bidirectional verification module, the second connection end of the communication verification module, the second connection end on the input side of the polarity conversion unit 14, and the second connection end on the output side of the polarity conversion unit 14 have close to or the same potentials. When the two-way verification module is connected to the communication verification module in a reverse connection, the first connection end of the two-way verification module is connected to the second connection end of the communication verification module, and the second connection end of the two-way verification module is connected to the first connection end of the communication verification module. At this time, the first connection end of the two-way verification module, the second connection end of the communication verification module, the first connection end on the input side of the polarity conversion unit 14, and the first connection end on the output side of the polarity conversion unit 14 have close or identical potentials, and the second connection end of the two-way verification module, the first connection end of the communication verification module, the second connection end on the input side of the polarity conversion unit 14, and the second connection end on the output side of the polarity conversion unit 14 have close or identical potentials. At this time, in the case of positive connection and reverse connection of the two-way verification module and the communication verification module, the potential of the third contact in the communication verification module and the first connection end on the output side of the polarity conversion unit 14 can be kept close or identical, and the potential of the fourth contact in the communication verification module and the second connection end on the output side of the polarity conversion unit 14 can be kept close or identical, so that normal communication and operation of the two-way verification module and the communication verification module can be achieved in the case of positive connection and reverse connection.
[0052] The first control unit 11 provided in this solution can be used to send a first authentication signal to the first contact through the first sending unit 12, and the first authentication signal can be used for the communication verification module to perform communication verification. The first control unit 11 can also be used to receive a second authentication signal from the first contact through the first receiving unit 13, and the second authentication signal is used for the first control unit to perform communication verification.
[0053] For example, when the communication verification module uses the received first authentication signal to perform communication verification, it may be to match the first authentication signal with the preset first verification information. When the first authentication signal successfully matches the preset first verification information, it is considered that the two-way verification module has passed the communication verification, and the two-way verification module can be normally controlled and control instructions can be sent to the two-way verification module. When the two-way verification module uses the received second authentication signal to perform communication verification, it may be to match the second authentication signal with the preset second verification information. When the second authentication signal successfully matches the preset second verification information, it is considered that the communication verification module has passed the communication verification, and the control instructions of the communication verification module can be normally accepted and executed, or when it is determined that the communication verification module has passed the communication verification, feedback information or the first authentication signal is sent to the communication verification module.
[0054] In one possible embodiment, Figure 2 As shown in the schematic diagram of the principle of another bidirectional verification module provided, on the basis of the above-mentioned bidirectional verification module, the bidirectional verification module provided by this scheme also includes a functional unit 16, and the functional unit 16 is used to execute the set function. Optionally, the functional unit 16 can be connected to the input side or output side of the polarity conversion unit 14 (for example, the two ends of the functional unit 16 are respectively connected to the first connection end and the second connection end of the input side or the output side of the polarity conversion unit 14, and the communication verification module can supply power to the functional unit 16 through the third contact and the fourth contact), and can also be connected to the first control unit 11 (for example, based on the control instruction sent by the first control unit 11 to perform the corresponding function). Optionally, a fourth switch element (which can be a normally open switch element or a normally closed switch element) can also be connected to the functional unit 16, the control end of the fourth switch element is connected to the first control unit 11, and the first connection end and the second connection end of the fourth switch element are connected to the power supply circuit of the functional unit 16, for example, the first connection end of the fourth switch element is connected to the first contact, and the second connection end is connected to the second contact, and the first control unit 11 can control the on and off of the power supply circuit of the functional unit 16 through the control end of the fourth switch element. For example, when the communication verification module passes the communication verification, the power supply circuit of the functional unit 16 can be connected through the fourth switch element to enable the functional unit 16 to work normally. When the communication verification module fails the communication verification, the power supply circuit of the functional unit 16 can be disconnected through the fourth switch element to ensure the safety of the equipment.
[0055] As described above, by connecting the two-way verification module to the communication verification module, a first authentication signal is sent to the first contact through the first sending unit 12, and the first authentication signal is used for the communication verification module to perform communication verification, and a second authentication signal is received from the first contact through the first receiving unit 13, and the second authentication signal is used for the first control unit to perform communication verification, wherein the polarity conversion unit 14 can maintain the polarity direction from the input side to the output side, and can realize the correct flow of the signal when the two-way verification module is reversely connected to the communication verification module, thereby improving the connection efficiency between the two-way verification module and the communication verification module, and improving the user experience, and can send the first authentication signal to the first contact through the first sending unit 12, and receive the second authentication signal from the first contact through the first receiving unit 13, and perform communication verification based on the second authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0056] Figure 3 is a circuit diagram of a bidirectional verification module provided in an embodiment of the present application. The bidirectional verification module provided in this embodiment can be further configured on the basis of the bidirectional verification module provided in the above embodiment. Figure 3 The first sending unit 12 provided in the embodiment of the present application includes a first switch element 121, and the first switch element 121 is configured with a control end, a first connection end and a second connection end. The connection between the first connection end and the second connection end can be disconnected by controlling the control end.
[0057] Optionally, the switch element provided in the present application (including the first switch element, the second switch element, the third switch element and the fourth switch element) can be a normally open or normally closed switch element. For example, a normally closed switch element is used, and when a control signal is not sent to the control end of the switch element, the first connection end and the second connection end of the switch element are disconnected. In one embodiment, the switch element provided in this solution may include a triode (such as an NPN-type triode, a PNP-type triode), a MOS tube (such as an NMOS tube, a PMOS tube, etc.), a micro switch, etc. Among them, when a triode is used to build a switch element, the base, collector and emitter of the triode can be used as the control end, the first connection end and the second connection end of the switch element, respectively. When a MOS tube is used to build a switch element, the gate, drain and source of the MOS tube can be used as the control end, the first connection end and the second connection end of the switch element, respectively.
[0058] Among them, the control end of the first switching element 121 is connected to the first control unit 11 (the control end of the first switching element 121 can be connected to an IO port of the first control unit 11 via a resistor, such as the IO11 port in the figure, and the IO11 port serves as a signal sending port of the first control unit 11), the first connection end of the first switching element 121 is connected to the output side of the polarity conversion unit 14 (for example, the first connection end of the first switching element 121 is connected to the first connection port on the output side of the polarity conversion unit 14 via a resistor), and the second connection end of the first switching element 121 is grounded.
[0059] In one embodiment, when the first control unit 11 sends the first authentication signal to the first contact through the first sending unit 12, the first control unit 11 can control the on and off of the first switch element 121 according to the change of the signal in the preset first authentication information (for example, the change of 0 and 1) (for example, sending a square wave signal with different duty cycles and frequencies to the control end of the first switch element 121 according to the first authentication information). At this time, the on and off of the first switch element 121 will cause the change of the potential of the first contact, and the change of the potential corresponds to the change of the signal in the first authentication information, thereby realizing the output of the first authentication signal. This solution realizes the sending of the first authentication signal through the first switch element 121, accurately and efficiently realizes the communication verification of the two-way verification module to the communication verification module, and effectively improves the verification effect between devices.
[0060] In one embodiment, the first receiving unit 13 provided by the present solution includes a first resistor 131 and a second resistor 132, the first connection end of the first resistor 131 is connected to the output side of the polarity conversion unit 14 (the first connection end of the first resistor 131 is connected to the first connection end of the output side of the polarity conversion unit 14), the second connection end of the first resistor 131 is connected to the first control unit 11 and the first connection end of the second resistor 132, and the second connection end of the second resistor 132 is grounded. For example, the IO12 port of the first control unit 11 is connected to the second connection end of the first resistor 131, and the IO12 port will serve as the signal receiving port of the first control unit 11.
[0061] Among them, when the first control unit 11 receives different signals (for example, the potential of the first connection terminal on the input side of the polarity conversion unit 14 changes), the voltage division formed by the second resistor 132 is also different. When the communication verification module sends a second authentication signal to the bidirectional verification module, the communication verification module provides different voltage signals to the first connection terminal on the input side of the polarity conversion unit 14 based on the signal change of the second authentication signal, so that the first connection terminal on the input side of the polarity conversion unit 14 undergoes a potential change corresponding to the signal change of the second authentication signal, and the second authentication signal can be detected based on the voltage change detected at the first connection terminal of the second resistor 132.
[0062] In one embodiment, after detecting the voltage at the first connection end of the second resistor 132, the first control unit 11 can convert the voltage sampling value into a corresponding digital signal through a mode conversion module, and determine the second authentication signal based on the digital signal, or compare the voltage sampling value with a set voltage reference through a comparator, and determine the second authentication signal based on the voltage comparison result.
[0063] This solution detects the second authentication signal through voltage division detection of the first resistor 131 and the second resistor 132, accurately and efficiently realizes communication verification of the communication verification module to the bidirectional verification module, and effectively improves the verification effect between devices.
[0064] In a possible embodiment, the first receiving unit 13 provided by the present solution also includes a second switching element 133, the control end of the second switching element 133 is connected to the first control unit 11 (for example, the IO13 port of the first control unit 11 is connected to the control end of the second switching element 133), the first connection end of the second switching element 133 is connected to the second connection end of the second resistor 132, and the second connection end of the second switching element 133 is grounded.
[0065] In one embodiment, the on and off of the bidirectional verification module receiving the second authentication signal can be realized by controlling the on and off of the second switch element 133. For example, when it is necessary to turn on the function of the bidirectional verification module receiving the second authentication signal, the second switch element 133 is controlled to be turned on, and at this time, the voltage of the first connection end of the second resistor 132 will change synchronously with the voltage change of the first connection end on the input side of the polarity conversion unit 14, and when the bidirectional verification module needs to send the first authentication signal, complete the reception of the second authentication signal, or complete the communication verification, the second switch element 133 can be controlled to be turned off, reducing the influence of the first resistor 131 and the second resistor 132 on the sending of the first authentication signal or other functions of the bidirectional verification module.
[0066] In a possible embodiment, the polarity conversion unit 14 provided by the present solution includes a rectifier bridge 141, wherein the rectifier bridge 141 can be constructed by 4 diodes (a full bridge circuit composed of 4 diodes). The rectifier bridge 141 provided by the present solution is configured with an input side and an output side, wherein the input side is configured with a first connection end (e.g., point a1 in the figure) and a second connection end (e.g., point a2 in the figure), and the output side is configured with a first connection end (e.g., point b1 in the figure) and a second connection end (e.g., point b2 in the figure).
[0067] Among them, the output side of the rectifier bridge 141 is connected to the first sending unit 12 and the first receiving unit 13 (for example, the first connection end of the output side of the rectifier bridge 141 is connected to the first connection end of the first switching element 121, the second connection end of the output side of the rectifier bridge 141 is connected to the second connection end of the second resistor 132, or the second connection end of the second switching element 133, or the second connection end of the output side of the rectifier bridge 141 is grounded), the first connection end of the input side of the rectifier bridge 141 is connected to the first contact of the bidirectional verification module, and the second connection end of the input side of the rectifier bridge 141 is connected to the second contact of the bidirectional verification module.
[0068] Optionally, a capacitor can be connected in parallel on the output side of the polarity conversion unit 14, with the first connection end of the capacitor connected to the first connection end on the output side of the rectifier bridge 141, and the second connection end of the capacitor connected to the second connection end on the output side of the rectifier bridge 141, so that the output side of the polarity conversion unit 14 is filtered and stabilized through the capacitor.
[0069] In the case of forward connection and reverse connection of the bidirectional verification module and the communication verification module, the potential of the third contact in the communication verification module and the first connection end on the output side of the rectifier bridge 141 can be kept close to or the same, and the potential of the fourth contact and the second connection end on the output side of the rectifier bridge 141 can be kept close to or the same, thereby maintaining the consistency of the polarity direction from the input side to the output side of the polarity conversion unit 14. This solution achieves the consistency of the polarity direction from the input side to the output side of the polarity conversion unit 14 through the rectifier bridge 141, realizes the correct flow of the signal when the bidirectional verification module is reversely connected to the communication verification module, improves the connection efficiency of the bidirectional verification module and the communication verification module, and enhances the user experience.
[0070] In a possible embodiment, the bidirectional verification module provided by the present solution further includes an energy storage unit 15, the energy storage unit 15 is connected to the first control unit 11 and the polarity conversion unit 14, the energy storage unit 15 is used to store electrical energy, and to provide power to the first control unit 11 and the polarity conversion unit 14. For example, the energy storage unit 15 can be a capacitor, the first connection end of the capacitor is connected to the power supply end (VDD port) of the first control unit 11, and the second connection end of the capacitor is connected to the second connection port on the output side of the polarity conversion unit 14. The present solution stores electrical energy through the energy storage unit 15, which can be used to power the communication verification process when the bidirectional verification module is connected to the communication verification module.
[0071] In a possible embodiment, the two-way verification module can also be powered by the communication verification module (for example, a power control unit for powering the two-way verification module is provided in the communication verification module). When the two-way verification module is connected to the communication verification module, the communication verification module supplies power to the two-way verification module through the third contact and the fourth contact, thereby powering the two-way verification module during the communication verification process. Optionally, a power supply unit can also be provided in the two-way verification module, and the power supply unit can be used to power various electrical devices in the two-way verification module.
[0072] In one embodiment, the two-way verification module and communication verification module provided by the present solution can be respectively configured in the cartridge and the cigarette rod of the electronic cigarette, the medical atomizer sheet and the medical atomizer body of the medical atomizer, the humidifying atomizer sheet and the humidifier body of the humidifier, the toner / powder box and the printer body of the printer, etc.
[0073] For example, when the two-way verification module and the communication verification module are respectively configured in the cartridge and the rod of the electronic cigarette, two contacts are provided in the cartridge and the rod. When the cartridge is installed on the rod, the contacts in the cartridge and the rod are in contact, so as to realize the communication between the cartridge and the rod and the power supply from the rod to the cartridge. In the existing electronic cigarettes, the connection direction of the rod and the cartridge is generally fixed, that is, the cartridge and the rod need to be connected in a positive connection to realize the communication between the cartridge and the rod and the power supply from the rod to the cartridge. The user needs to align the cartridge in the positive direction and insert the cartridge into the rod to use the electronic cigarette normally, otherwise the electronic cigarette cannot be used normally or even damaged. This solution sets a polarity conversion unit 14 in the cartridge, so that normal communication and power supply can be maintained when the cartridge and the rod are inserted forward or backward, so as to realize the forward and reverse insertion of the cartridge and the rod and two-way authentication. Optionally, the functional unit provided by the present solution may be an atomizer (such as a resistance wire, a heating wire, an electric coil, etc.) for heating the oil in the cigarette cartridge. When the cigarette cartridge passes the communication verification, the cigarette rod may supply power to the cigarette cartridge through the contacts to enable the atomizer to heat the oil when it detects that the user is using an electronic cigarette.
[0074] When the two-way verification module and the communication verification module are respectively configured in the medical atomizer sheet and the medical atomizer body of the medical nebulizer, two contacts are provided in the medical atomizer sheet and the medical nebulizer body. When the medical atomizer sheet is installed on the medical nebulizer body, the contacts in the medical atomizer sheet and the medical nebulizer body are in contact, so as to realize the communication between the medical atomizer sheet and the medical nebulizer body and the power supply from the medical nebulizer body to the medical atomizer sheet. In the existing medical nebulizers, the connection direction of the medical nebulizer body and the medical atomizer sheet is generally fixed, that is, the medical atomizer sheet and the medical nebulizer body need to be connected in a positive connection to realize the communication between the medical atomizer sheet and the medical nebulizer body and the power supply from the medical nebulizer body to the medical atomizer sheet. The user needs to insert the medical atomizer sheet into the medical nebulizer body in the positive connection direction to use the medical nebulizer normally, otherwise the medical nebulizer cannot be used normally or even damaged. This solution sets a polarity conversion unit 14 in the medical atomizer sheet, so that the medical atomizer sheet and the medical atomizer body can maintain normal communication and power supply when they are inserted forward and reverse, and realize the forward and reverse insertion and two-way authentication of the medical atomizer sheet and the medical atomizer body. Optionally, the functional unit provided by this solution can be an atomizer generator (such as an ultrasonic generator) for atomizing the liquid medicine in the medical atomizer sheet. When the medical atomizer sheet passes the communication verification, the medical atomizer body can supply power to the medical atomizer sheet through the contacts when the atomization function is enabled so that the atomizer generator atomizes the liquid medicine.
[0075] When the two-way verification module and the communication verification module are respectively configured in the humidification atomizer sheet and the humidifier body of the humidifier, two contacts are provided in the humidification atomizer sheet and the humidifier body. When the humidification atomizer sheet is installed on the humidifier body, the contacts in the humidification atomizer sheet and the humidifier body are in contact, so as to realize the communication between the humidification atomizer sheet and the humidifier body and the power supply from the humidifier body to the humidification atomizer sheet. In the existing humidifiers, the connection direction of the humidifier body and the humidification atomizer sheet is generally fixed, that is, the humidification atomizer sheet and the humidifier body need to be connected in a positive connection to realize the communication between the humidification atomizer sheet and the humidifier body and the power supply from the humidifier body to the humidification atomizer sheet. The user needs to insert the humidification atomizer sheet into the humidifier body in the positive connection direction to use the humidifier normally, otherwise the humidifier cannot be used normally or even damaged. This solution sets a polarity conversion unit 14 in the humidifying atomizer sheet, so that the humidifying atomizer sheet and the humidifier body can maintain normal communication and power supply when they are inserted forward and reverse, and realize the forward and reverse insertion and two-way authentication of the humidifying atomizer sheet and the humidifier body. Optionally, the functional unit provided by this solution can be an atomizer generator (such as an ultrasonic generator) for atomizing the liquid (such as aromatherapy essential oils, water, etc.) in the humidifying atomizer sheet. When the humidifying atomizer sheet passes the communication verification, the humidifier body can supply power to the humidifying atomizer sheet through the contacts when the humidification function is enabled so that the atomizer generator atomizes the liquid.
[0076] When the two-way verification module and the communication verification module are respectively configured in the toner / powder box and the printer body of the printer, two contacts are set in the toner / powder box and the printer body. When the toner / powder box is installed on the printer body, the contacts in the toner / powder box and the printer body are in contact, so as to realize the communication between the toner / powder box and the printer body and the power supply from the printer body to the toner / powder box. In the existing printers, the connection direction of the printer body and the toner / powder box is generally fixed, that is, the toner / powder box and the printer body need to be connected in a positive connection to realize the communication between the toner / powder box and the printer body and the power supply from the printer body to the toner / powder box. The user needs to insert the toner / powder box into the printer body in the positive connection direction to use the printer normally, otherwise the printer cannot be used normally or even damaged. This scheme sets a polarity conversion unit 14 in the toner / powder box, so that the toner / powder box and the printer body can maintain normal communication and power supply when the toner / powder box and the printer body are inserted forward and reverse, so as to realize the forward and reverse insertion of the toner / powder box and the printer body and two-way authentication. Optionally, the functional unit provided by the present solution may be a powder discharge module for controlling the discharge of toner / powder cartridge. When the toner / powder cartridge passes communication verification, the printer body may supply power to the toner / powder cartridge through contacts to enable the powder discharge module to operate when the printing function is enabled.
[0077] In the above, by connecting the bidirectional verification module to the communication verification module, the first authentication signal is sent to the first contact through the first sending unit 12, and the first authentication signal is used for the communication verification module to perform communication verification, and the second authentication signal is received from the first contact through the first receiving unit 13, and the second authentication signal is used for the first control unit to perform communication verification, wherein the polarity conversion unit 14 can maintain the polarity direction from the input side to the output side, and can realize the correct flow direction of the signal when the bidirectional verification module is reversely connected to the communication verification module, improve the connection efficiency of the bidirectional verification module and the communication verification module, and improve the user experience, and can send the first authentication signal to the first contact through the first sending unit 12, and receive the second authentication signal from the first contact through the first receiving unit 13, and perform communication verification based on the second authentication signal, effectively realize bidirectional authentication between devices, and effectively improve the verification effect between devices. And the first authentication signal is sent through the first switch element 121, and the second authentication signal is detected through the voltage division detection of the first resistor 131 and the second resistor 132, accurately and efficiently realize the communication verification between the bidirectional verification module and the communication verification module, and effectively improve the verification effect between devices.
[0078] Figure 4 A schematic flow chart of a bidirectional verification method provided in an embodiment of the present application is given. The bidirectional verification method provided in this solution can be applied to the first control unit in the bidirectional verification module provided in any of the above embodiments. Figure 4, the two-way verification method includes:
[0079] S110: Receive a second authentication signal from the first contact through the first receiving unit, and perform communication verification based on the second authentication signal.
[0080] S120: Sending a first authentication signal to the first contact through a first sending unit for the communication verification module to perform communication verification.
[0081] Exemplarily, after the two-way verification module is connected to the communication verification module, the first control unit can receive the second authentication signal from the first contact through the first receiving unit, and perform communication verification based on the second authentication signal. For example, the first control unit matches the second authentication signal with the preset second verification information. When the second authentication signal successfully matches the preset second verification information, it is considered that the communication verification module has passed the communication verification and can normally accept and execute the control instructions of the communication verification module.
[0082] In one embodiment, after the two-way verification module is connected to the communication verification module, the first control unit sends a first authentication signal to the first contact through the first sending unit, and after the communication verification module receives the first authentication signal from the first contact, it performs communication verification based on the first authentication signal. For example, the first control unit matches the first authentication signal with the preset first verification information. When the first authentication signal successfully matches the preset first verification information, it is considered that the two-way verification module has passed the communication verification, and the two-way verification module can be normally controlled and control instructions can be sent to the two-way verification module.
[0083] In one embodiment, the present scheme receives a second authentication signal from a first contact through a first receiving unit, and performs communication verification based on the second authentication signal. This may be performed before the first authentication signal is sent to the first contact through the first sending unit, or after the first authentication signal is sent to the first contact through the first sending unit.
[0084] In a possible embodiment, the first receiving unit includes a second switch element, and the bidirectional verification method provided by the present solution further includes: sending a closing control signal to the control end of the second switch element to control the second switch element to close before receiving the second authentication signal from the first contact through the first receiving unit. Correspondingly, the bidirectional verification method provided by the present solution further includes: sending a shutoff control signal to the control end of the second switch element to control the second switch element to shut off after performing communication verification based on the second authentication signal.
[0085] Exemplarily, when it is necessary to receive the second authentication signal sent by the communication verification module for communication verification, the first control unit sends a start signal (e.g., a high-level signal) to the control end of the second switching element to control the conduction of the second switching element. At this time, the voltage at the first connection end of the second resistor will change synchronously with the voltage change of the first connection end on the input side of the polarity conversion unit. The first control unit can detect the second authentication signal based on the detected voltage change of the first connection end of the second resistor.
[0086] After completing the communication verification based on the second authentication signal, the first control unit sends a shutdown signal (such as a low-level signal) to the control end of the second switch element to control the second switch element to close, thereby reducing the influence of the first resistor and the second resistor on the sending of the first authentication signal or the normal implementation of other functions of the two-way verification module.
[0087] In a possible embodiment, the first sending unit includes a first switching element. The bidirectional verification method provided by the present scheme sends a first authentication signal to the first contact through the first sending unit, which may be: based on preset first authentication information, a first control signal is sent to the control end of the first switching element to control the on and off of the first switching element, so as to send the first authentication signal to the first contact through the on and off of the first switching element.
[0088] Exemplarily, first authentication information is recorded in the first control unit or in a storage unit connected to the first control unit. When the first control unit sends a first authentication signal to the first contact through the first sending unit, the first control unit sends a first control signal to the control end of the first switching element according to the first authentication information to control the on and off of the first switching element.
[0089] For example, when the first authentication information is recorded by a combination of 0 and 1, a control signal (a high-level signal or a low-level signal) is sent to the control end of the first switch element according to the 0 and 1 recorded in the first authentication information, so that the on-off change of the first switch element is synchronized with the change of 0 and 1 in the first authentication information, thereby sending the first authentication signal to the first contact through the on-off of the first switch element. At this time, the potential of the first contact also changes synchronously, and the corresponding first authentication signal can be determined according to the change of the potential of the first contact. This solution implements the sending of the first authentication signal through the first switch element, accurately and efficiently realizes the communication verification of the two-way verification module to the communication verification module, and effectively improves the verification effect between devices.
[0090] As described above, by connecting the two-way verification module to the communication verification module, sending a first authentication signal to the first contact through the first sending unit for the communication verification module to perform communication verification, and receiving a second authentication signal from the first contact through the first receiving unit, and performing communication verification based on the second authentication signal, two-way authentication between devices is effectively achieved, and the verification effect between devices is effectively improved. At the same time, the polarity conversion unit configured in the two-way verification module can maintain the polarity direction from the input side to the output side, and can achieve the correct flow of the signal when the two-way verification module is reversely connected to the communication verification module. Whether the two-way verification module is inserted forward or backward, communication verification can be performed normally, effectively improving the connection efficiency between the two-way verification module and the communication verification module, and improving the user experience.
[0091] Figure 5 A schematic diagram of the principle of a communication verification module provided in an embodiment of the present application is given, such as Figure 5 As shown, the communication verification module provided by the present application includes a second control unit 21, a second sending unit 22 and a second receiving unit 23.
[0092] The second control unit 21 is connected to the signal input end of the second sending unit 22 and the signal output end of the second receiving unit 23, and the signal output end of the second sending unit 22 and the signal input end of the second receiving unit 23 are connected to the third contact of the communication verification module;
[0093] The communication verification module is used to connect a bidirectional verification module (such as the bidirectional verification module provided by any of the above embodiments), and when the communication verification module is connected to the bidirectional verification module, the third contact and the fourth contact of the communication verification module are connected to the first contact and the second contact in the bidirectional verification module (in the case of positive connection), or the third contact and the fourth contact are connected to the second contact and the first contact in the bidirectional verification module (in the case of reverse connection).
[0094] The second control unit 21 provided in this solution can be used to send a second authentication signal to the third contact through the second sending unit 22, so that the two-way verification module performs communication verification based on the received second authentication signal. The second control unit 21 provided in this solution can also be used to receive a first authentication signal from the third contact through the second receiving unit 23, and perform communication verification based on the first authentication signal.
[0095] For example, when the communication verification module performs communication verification based on the first authentication signal, it may be to match the first authentication signal with the preset first verification information. When the first authentication signal successfully matches the preset first verification information, it is considered that the two-way verification module has passed the communication verification, and the two-way verification module can be normally controlled and control instructions can be sent to the two-way verification module. When the two-way verification module performs communication verification based on the received second authentication signal, it may be to match the second authentication signal with the preset second verification information. When the second authentication signal successfully matches the preset second verification information, it is considered that the communication verification module has passed the communication verification, and the control instructions of the communication verification module can be normally accepted and executed, or when it is determined that the communication verification module has passed the communication verification, feedback information or the first authentication signal is sent to the communication verification module.
[0096] In one possible embodiment, Figure 6 As shown in the principle schematic diagram of another communication verification module provided, on the basis of the above communication verification module, the communication verification module provided by this scheme also includes a detection unit 24, wherein the detection input end of the detection unit 24 is connected to the third contact of the communication verification module, and the detection output end of the detection unit 24 is connected to the second control unit 21. The detection unit 24 provided by this scheme can be used to detect the access of the two-way verification module and send an access detection signal to the second control unit 21. The second control unit 21 can determine whether to access the two-way verification module according to the access detection signal, and when the two-way verification module is detected to be accessed, a second authentication signal can be sent to the two-way verification module, or a first authentication signal sent by the two-way verification module can be received. This scheme detects the access of the two-way verification module through the detection unit 24, and when the two-way verification module is detected to be accessed, a second authentication signal can be sent to the two-way verification module or a first authentication signal can be received from the two-way verification module, so as to accurately determine the timing of communication verification and improve the efficiency of communication verification between devices.
[0097] In one embodiment, the communication verification module provided by the present solution further includes a power module, which can be used to supply power to various electrical devices in the communication verification module and can also supply power to a connected bidirectional verification module through a third contact and a fourth contact.
[0098] In one embodiment, the communication verification module provided by the present solution further includes a sensing unit 25, which may be a proximity sensor, an infrared sensor, a switch, a microphone, etc. The sensing unit 25 is connected to the second control unit 21, and the sensing unit 25 is used to detect the use of the communication verification module (for example, to detect whether the user is using the communication verification module) and send the use detection result to the second control unit 21. Optionally, when it is detected that the user is using the communication verification module, the power supply to the two-way verification module may be controlled to start the functional modules in the two-way verification module and implement the corresponding functions.
[0099] In the above, the two-way verification module is connected through the communication verification module, and the second authentication signal is sent to the third contact through the second sending unit 22, which is used for the two-way verification module to perform communication verification, and the first authentication signal is received from the third contact through the second receiving unit 23, and communication verification is performed based on the first authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0100] Based on the above embodiments, Figure 7 A circuit diagram of a communication verification module provided in an embodiment of the present application is given. On the basis of the communication verification module provided in the above embodiment, the second sending unit 22 provided in this solution includes a third switch element 221. Among them, the control end of the third switch element 221 is connected to the second control unit 21 (the control end of the third switch element 221 is connected to the IO port of the second control unit 21 via a resistor, such as the IO22 port in the figure), the first connection end of the third switch element 221 is connected to the power supply (VCC in the figure, which can be provided by the power supply module configured in the communication verification module), and the second connection end of the third switch element 221 is connected to the third contact of the communication verification module.
[0101] Exemplarily, when the second control unit 21 sends the second authentication signal to the third contact through the second sending unit 22, it can control the on and off of the third switch element 221 according to the change of the signal in the preset second authentication information (for example, the change of 0 and 1) (for example, sending a square wave signal with different duty cycles and frequencies to the control end of the third switch element 221 according to the second authentication information). At this time, the on and off of the third switch element 221 will cause the change of the potential of the third contact, and the change of the potential corresponds to the change of the signal in the second authentication information, thereby realizing the output of the second authentication signal. This solution realizes the sending of the second authentication signal through the third switch element 221, accurately and efficiently realizes the communication verification of the communication verification module to the two-way verification module, and effectively improves the verification effect between devices.
[0102] In a possible embodiment, the second receiving unit 23 provided by the present solution includes a sampling element 231, an amplifier 232 and a comparator 233, the input end of the sampling element 231 is connected to the third contact of the communication verification module, the output end of the sampling element 231 is connected to the input end of the amplifier 232, the output end of the amplifier 232 is connected to the input end of the comparator 233, and the output end of the comparator 233 is connected to the second control unit 21 (for example, the output end of the comparator 233 is connected to the IO23 port of the second control unit 21).
[0103] Among them, the sampling element 231 can sample the voltage of the third contact and send corresponding sampling information to the input end of the amplifier 232. The amplifier 232 can be used to amplify the sampling information and send the amplified sampling information to the comparator 233. The comparator 233 can compare the amplified sampling information with a preset reference voltage and send the comparison result of the amplified sampling information and the reference voltage to the second control unit 21. The second control unit 21 can determine the corresponding second authentication signal according to the comparison result.
[0104] In one embodiment, the amplifier 232 provided in this solution can be implemented based on a single-stage amplifier circuit or a multi-stage (for example, two-stage) amplifier circuit, and the sampled information is subjected to multi-stage amplification processing to improve the detection accuracy of the second authentication information.
[0105] In one embodiment, the sampling element 231 provided by the present solution can be a capacitor, and the two ends of the capacitor serve as the input end and the output end of the sampling element 231 respectively. When the bidirectional verification module sends the first authentication signal through the first sending unit, the potential of the first contact in the bidirectional verification module changes corresponding to the first authentication information, and the generated potential difference is coupled to the amplifier 232 through the sampling element 231 for amplification, and is compared with the reference voltage through the comparator 233 and the comparison result is sent to the second control unit 21, so as to realize the reception and decoding of the first authentication signal. The present solution realizes the reception of the second authentication signal through the sampling element 231, the amplifier 232 and the comparator 233, accurately and efficiently realizes the communication verification of the bidirectional verification module to the communication verification module, and effectively improves the verification effect between devices.
[0106] In one embodiment, the detection unit 24 provided by the present solution includes a third resistor 241, a first connection end and a second connection end of the third resistor 241 are respectively connected to two connection ends of the second control unit 21 (for example, the first connection end of the third resistor 241 is connected to the IO21 port of the second control unit 21, and the second connection end of the third resistor 241 is simultaneously connected to the third contact and the IO24 port of the second control unit 21), and the second connection end of the third resistor 241 is also connected to the third contact of the communication verification module. At this time, the first connection end of the third resistor 241 can be used as the control end of the detection unit 24 to connect the second control unit 21, and the second connection end of the third resistor 241 can be used as the detection input end and the detection output end of the detection unit 24 to connect the third contact and the second control unit 21 respectively.
[0107] Among them, when the second control unit 21 uses the detection unit 24 to detect the access of the bidirectional verification module, it outputs a preset voltage and / or current signal to the first connection end of the third resistor 241 to start the detection unit 24, and at the same time, the port in the second control unit 21 connected to the output end of the detection unit 24 (the second connection end of the third resistor 241) detects the voltage and / or current signal.
[0108] When the bidirectional verification module is not connected to the bidirectional verification module, the voltage and / or current signal detected by the port connected to the output end of the detection unit 24 in the second control unit 21 is close to (the difference between the voltage and / or current is within the set range) or consistent with the voltage and / or current signal output to the first connection end of the third resistor 241, and when the bidirectional verification module is connected to the bidirectional verification module, the third resistor 241 and the electrical devices in the bidirectional verification module are turned on (for example, the third resistor 241 and the functional unit in the bidirectional verification module). Due to the existence of the resistance of these electrical devices, a certain voltage and / or current signal can be detected at the third contact, and the existence of these electrical devices can be detected. Based on this, based on the voltage and / or current signal corresponding to the port when the communication verification module is connected to the bidirectional verification module, it can be determined whether the communication verification module has access to the bidirectional verification module according to the voltage and / or current signal detected by the port connected to the output end of the detection unit 24 in the second control unit 21. Similarly, it can also be determined whether the corresponding electrical device (for example, the functional unit) is short-circuited according to the voltage and / or current signal detected by the port connected to the output end of the detection unit 24 in the second control unit 21.
[0109] For example, the ADC (analog-to-digital conversion) port (IO24 port) of the second control unit 21 can be used as a port connected to the second connection end of the third resistor 241, and after a certain voltage is output from the IO21 port to start the detection unit 24, it is determined whether the bidirectional verification module is connected to the communication verification module according to the voltage and / or current signal detected by the IO24 port. For example, when the voltage and / or current detected by the IO24 port is greater than the preset voltage threshold and / or current threshold, it is considered that the bidirectional verification module is not connected to the communication verification module, and when the voltage and / or current detected by the IO24 port is less than the preset voltage threshold and / or current threshold, it is considered that the bidirectional verification module is connected to the communication verification module. Optionally, the IO (analog-to-digital conversion) port (IO24 port) of the second control unit 21 can also be used as a port connected to the second connection end of the third resistor 241, and after a certain voltage is output from the IO21 port to start the detection unit 24, it is determined whether the bidirectional verification module is connected to the communication verification module according to the logic signal or AD value detected by the IO24 port. When the IO24 port receives a high-level signal or samples a specified voltage and / or current (AD value), it is considered that the bidirectional verification module is not connected to the communication verification module; when the IO24 port receives a low-level signal or samples a smaller voltage and / or current (AD value), it is considered that the bidirectional verification module is connected to the communication verification module, and it is also possible to determine whether there is a short circuit or other phenomena through the voltage and / or current (AD value) sampled by the IO24 port. In one embodiment, when it is detected that the bidirectional verification module is connected to the communication verification module, the detection unit 24 can be turned off and the communication verification process can be entered, or the detection unit 24 can be kept on and the communication verification process can be entered.
[0110] In one embodiment, the two-way verification module and communication verification module provided by this solution can be a cartridge and a cigarette rod in an electronic cigarette. The cartridge can be detachably installed on the cigarette rod. Two contacts are provided in the cartridge and the cigarette rod. When the cartridge is installed on the cigarette rod, the contacts in the cartridge and the cigarette rod are in contact, so as to realize the communication between the cartridge and the cigarette rod and the power supply from the cigarette rod to the cartridge. This solution sets a sensor unit 25 (such as a microphone) in the cigarette rod. When a user uses the electronic cigarette (for example, when the user inserts the cartridge into the cigarette rod and smokes, the microphone can detect the change of airflow or air pressure), after the sensor unit 25 detects the user's use, the second control unit 21 enters the communication verification process. Alternatively, when the sensor unit 25 detects the user's use, it supplies power to the cartridge so that the cartridge enters the communication verification process.
[0111] In the above, the two-way verification module is connected through the communication verification module, and the second authentication signal is sent to the third contact through the second sending unit 22, which is used for the two-way verification module to perform communication verification, and the first authentication signal is received from the third contact through the second receiving unit 23, and communication verification is performed based on the first authentication signal, so as to effectively realize the two-way authentication between devices and effectively improve the verification effect between devices. At the same time, the second authentication signal is sent through the third switch element 221, and the communication verification of the communication verification module to the two-way verification module is accurately and efficiently realized, which effectively improves the verification effect between devices.
[0112] Figure 8 A flow chart of a communication verification method provided in an embodiment of the present application is given. The communication verification method provided in this solution can be applied to the second control unit in the communication verification module provided in any of the above embodiments. Figure 8 , the communication verification method comprises:
[0113] S210: Sending a second authentication signal to the third contact through the second sending unit for the two-way verification module to perform communication verification.
[0114] S220: Receive a first authentication signal from the third contact through the second receiving unit, and perform communication verification based on the first authentication signal.
[0115] Exemplarily, after the two-way verification module is connected to the communication verification module, the second control unit may send a second authentication signal to the third contact through the second sending unit, so that the two-way verification module performs communication verification based on the received second authentication signal. For example, the second control unit matches the second authentication signal with the preset second verification information. When the second authentication signal matches the preset second verification information successfully, it is considered that the communication verification module has passed the communication verification and can normally accept and execute the control instructions of the communication verification module, or when it is determined that the communication verification module has passed the communication verification, feedback information or the first authentication signal is sent to the communication verification module.
[0116] In one embodiment, after the two-way verification module is connected to the communication verification module, the second control unit may also receive the first authentication signal from the third contact through the second receiving unit, and perform communication verification based on the first authentication signal. For example, the second control unit matches the first authentication signal with the preset first verification information. When the first authentication signal matches the preset first verification information successfully, it is considered that the two-way verification module has passed the communication verification, and the two-way verification module can be normally controlled and control instructions can be sent to the two-way verification module.
[0117] In one embodiment, the present scheme receives a first authentication signal from a third contact through a second receiving unit, and performs communication verification based on the first authentication signal. This may be performed before or after the second authentication signal is sent to the third contact through the second sending unit.
[0118] In a possible embodiment, the second sending unit provided by the present solution includes a third switching element. The two-way verification method provided by the present solution sends a second authentication signal to the third contact through the second sending unit. It can be based on preset second authentication information to send a second control signal to the control end of the third switching element, which is used to control the on and off of the third switching element, so as to send the second authentication signal to the first contact through the on and off of the third switching element.
[0119] Exemplarily, when the second control unit sends the second authentication signal to the third contact through the second sending unit, it can control the on and off of the third switch element according to the change of the signal in the preset second authentication information (for example, the change of 0 and 1) (for example, sending a square wave signal with different duty cycle and frequency to the control end of the third switch element according to the second authentication information). At this time, the on and off of the third switch element will cause the change of the potential of the third contact, and the change of the potential corresponds to the change of the signal in the second authentication information, thereby realizing the output of the second authentication signal. This solution realizes the sending of the second authentication signal through the third switch element, accurately and efficiently realizes the communication verification of the communication verification module to the two-way verification module, and effectively improves the verification effect between devices.
[0120] In one possible embodiment, the communication verification module provided by the present solution includes a detection unit. Based on this, the two-way verification method provided by the present solution may also include, before sending the second authentication signal to the third contact through the second sending unit: sending a detection start signal to the detection unit, for the detection unit to detect the access of the two-way verification module in response to the detection start signal, and sending an access detection signal to the second control unit.
[0121] Exemplarily, before performing communication verification (sending a second authentication signal to the third contact through the second sending unit for the two-way verification module to perform communication verification; and / or receiving a first authentication signal from the third contact through the second receiving unit, and performing communication verification based on the first authentication signal), the second control unit may send a detection start signal to the detection unit to start the detection unit to detect the access of the two-way verification module, and receive an access detection signal output by the detection unit. When the access detection signal indicates that the two-way verification module is not accessed, communication verification is not required, and when the access detection signal indicates that the two-way verification module is accessed, communication verification may be performed, that is, sending a second authentication signal to the third contact through the second sending unit for the two-way verification module to perform communication verification; and / or receiving a first authentication signal from the third contact through the second receiving unit, and performing communication verification based on the first authentication signal.
[0122] For example, when the detection unit is a third resistor, before performing communication verification, the second control unit outputs a preset voltage and / or current signal to the first connection end of the third resistor to start the detection unit, and at the same time, the port connected to the output end of the detection unit (the second connection end of the third resistor) in the second control unit detects the voltage and / or current signal. When the voltage and / or current signal detected by the port connected to the output end of the detection unit in the second control unit is close to (the difference between the voltage and / or current is within the set range) or consistent with the voltage and / or current signal output to the first connection end of the third resistor, it can be determined that the two-way verification module is not connected to the two-way verification module. When the voltage and / or current signal detected by the port connected to the output end of the detection unit in the second control unit is less than the voltage and / or current signal output to the first connection end of the third resistor, or less than the set voltage and / or current amplitude, it can be determined that the two-way verification module is connected to the two-way verification module. This scheme detects the access of the two-way verification module by the detection unit, and when the two-way verification module is detected, a second authentication signal can be sent to the two-way verification module or a first authentication signal sent by the two-way verification module can be received, accurately determining the timing of communication verification, and improving the communication verification efficiency between devices.
[0123] In the above, the second authentication signal is sent to the third contact through the second sending unit, which is used for the two-way verification module to perform communication verification, and the first authentication signal is received from the third contact through the second receiving unit, and communication verification is performed based on the first authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0124] Fig. 9 A schematic diagram of the principle of a two-way authentication device provided in an embodiment of the present application is given, such as Fig. 9As shown, the two-way verification device provided by the present application includes a two-way verification module as provided in any of the above embodiments and a communication verification module as provided in any of the above embodiments, wherein when the two-way verification module is connected to the communication verification module, the first contact and the second contact in the two-way verification module are respectively connected to the third contact and the fourth contact in the communication verification module, or to the fourth contact or the third contact in the communication verification module.
[0125] Fig.10 A schematic diagram of the circuit principle of a bidirectional verification device provided in an embodiment of the present application is given, such as Fig.10 As shown, the first sending unit 12 provided in this scheme includes a first switching element 121, the control end of the first switching element 121 is connected to the first control unit 11, the first connection end of the first switching element 121 is connected to the output side of the polarity conversion unit 14, and the second connection end of the first switching element 121 is grounded.
[0126] The first receiving unit 13 includes a first resistor 131 and a second resistor 132. The first connection end of the first resistor 131 is connected to the output side of the polarity conversion unit 14, the second connection end of the first resistor 131 is connected to the first control unit 11 and the first connection end of the second resistor 132, and the second connection end of the second resistor 132 is grounded.
[0127] The first receiving unit 13 further includes a second switch element 133, a control end of the second switch element 133 is connected to the first control unit 11, a first connection end of the second switch element 133 is connected to a second connection end of the second resistor 132, and a second connection end of the second switch element 133 is grounded. The polarity conversion unit 14 includes a rectifier bridge 141, an output side of the rectifier bridge 141 is connected to the first sending unit 12 and the first receiving unit 13, a first connection end of the input side of the rectifier bridge 141 is connected to a first contact of the bidirectional verification module, and a second connection end of the input side of the rectifier bridge 141 is connected to a second contact of the bidirectional verification module.
[0128] The bidirectional verification module also includes an energy storage unit 15, which is connected to the first control unit 11 and the polarity conversion unit 14. The energy storage unit 15 is used to store electrical energy and provide power for the first control unit 11 and the polarity conversion unit 14. The specific settings of the bidirectional verification module and the communication verification module provided by this solution can refer to the above embodiments, and this solution will not be repeated.
[0129] As described above, by connecting the two-way verification module to the communication verification module, a first authentication signal is sent to the first contact through the first sending unit 12, and the first authentication signal is used for the communication verification module to perform communication verification, and a second authentication signal is received from the first contact through the first receiving unit 13, and the second authentication signal is used for the first control unit to perform communication verification, wherein the polarity conversion unit 14 can maintain the polarity direction from the input side to the output side, and can realize the correct flow direction of the signal when the two-way verification module is reversely connected to the communication verification module, thereby improving the connection efficiency between the two-way verification module and the communication verification module, and improving the user experience, and the two-way verification module can also be connected through the communication verification module, and the second authentication signal is sent to the third contact through the second sending unit 22 for the two-way verification module to perform communication verification, and the first authentication signal is received from the third contact through the second receiving unit 23, and communication verification is performed based on the first authentication signal, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices. In addition, the sending of the first authentication signal is realized through the first switching element 121, and the detection of the second authentication signal is realized through the voltage division detection of the first resistor 131 and the second resistor 132. The sending of the second authentication signal is also realized through the third switching element 221, so that the communication verification of the communication verification module to the two-way verification module is accurately and efficiently realized, and the verification effect between devices is effectively improved.
[0130] Fig.11 A flow chart of a bidirectional authentication method provided in an embodiment of the present application is provided. The bidirectional authentication method provided in this solution can be applied to a bidirectional authentication device provided in any of the above embodiments. The bidirectional authentication method provided in this solution includes:
[0131] S310: The second control unit sends a second authentication signal to the third contact through the second sending unit.
[0132] S320: The second control unit receives the first authentication signal from the third contact through the second receiving unit, and performs communication verification based on the first authentication signal.
[0133] S330: The first control unit receives a second authentication signal from the first contact through the first receiving unit, and performs communication verification based on the second authentication signal.
[0134] S340: The first control unit sends a first authentication signal to the first contact through the first sending unit.
[0135] In one embodiment, after the two-way verification module is connected to the communication verification module, the second control unit may send a second authentication signal to the third contact through the second sending unit, so that the two-way verification module performs communication verification based on the received second authentication signal. For example, the second control unit matches the second authentication signal with the preset second verification information. When the second authentication signal matches the preset second verification information successfully, it is considered that the communication verification module has passed the communication verification and can normally accept and execute the control instructions of the communication verification module, or when it is determined that the communication verification module has passed the communication verification, feedback information or the first authentication signal is sent to the communication verification module.
[0136] In one embodiment, after the two-way verification module is connected to the communication verification module, the second control unit may also receive the first authentication signal from the third contact through the second receiving unit, and perform communication verification based on the first authentication signal. For example, the second control unit matches the first authentication signal with the preset first verification information. When the first authentication signal matches the preset first verification information successfully, it is considered that the two-way verification module has passed the communication verification, and the two-way verification module can be normally controlled and control instructions can be sent to the two-way verification module.
[0137] After the two-way verification module is connected to the communication verification module, the first control unit can receive the second authentication signal from the first contact through the first receiving unit, and perform communication verification based on the second authentication signal. For example, the first control unit matches the second authentication signal with the preset second verification information. When the second authentication signal successfully matches the preset second verification information, it is considered that the communication verification module has passed the communication verification and can normally accept and execute the control instructions of the communication verification module.
[0138] In one embodiment, after the two-way verification module is connected to the communication verification module, the first control unit sends a first authentication signal to the first contact through the first sending unit, and after the communication verification module receives the first authentication signal from the first contact, it performs communication verification based on the first authentication signal. For example, the first control unit matches the first authentication signal with the preset first verification information. When the first authentication signal successfully matches the preset first verification information, it is considered that the two-way verification module has passed the communication verification, and the two-way verification module can be normally controlled and control instructions can be sent to the two-way verification module.
[0139] In the above, the second control unit sends the second authentication signal to the third contact through the second sending unit, and receives the first authentication signal from the third contact through the second receiving unit, and performs communication verification based on the first authentication signal, and the first control unit receives the second authentication signal from the first contact through the first receiving unit, and performs communication verification based on the second authentication signal, and the first control unit sends the first authentication signal to the first contact through the first sending unit, thereby effectively realizing two-way authentication between devices and effectively improving the verification effect between devices.
[0140] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments provided herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A two-way verification module, characterized in that: It includes a first control unit, a first sending unit, a first receiving unit and a polarity conversion unit, wherein: The first control unit is connected to a signal input end of the first sending unit and a signal output end of the first receiving unit; The output side of the polarity conversion unit is connected to the first sending unit and the first receiving unit, the first connection end of the input side of the polarity conversion unit is connected to the first contact of the bidirectional verification module, the second connection end of the input side of the polarity conversion unit is connected to the second contact of the bidirectional verification module, and the polarity conversion unit is used to maintain the polarity direction from the input side to the output side; The two-way verification module is used to connect to the communication verification module, and when connected to the communication verification module, the first contact and the second contact are connected to the third contact and the fourth contact of the communication verification module, or the first contact and the second contact are connected to the fourth contact and the third contact of the communication verification module; The first control unit is used to send a first authentication signal to the first contact through the first sending unit, and the first authentication signal is used for the communication verification module to perform communication verification, and to receive a second authentication signal from the first contact through the first receiving unit, and the second authentication signal is used for the first control unit to perform communication verification.
2. The two-way verification module according to claim 1, characterized in that: The first sending unit includes a first switch element, a control end of the first switch element is connected to the first control unit, a first connection end of the first switch element is connected to the output side of the polarity conversion unit, and a second connection end of the first switch element is grounded.
3. The two-way verification module according to claim 1, characterized in that: The first receiving unit includes a first resistor and a second resistor, the first connection end of the first resistor is connected to the output side of the polarity conversion unit, the second connection end of the first resistor is connected to the first control unit and the first connection end of the second resistor, and the second connection end of the second resistor is grounded.
4. The two-way verification module according to claim 3, characterized in that: The first receiving unit further includes a second switch element, a control end of the second switch element is connected to the first control unit, a first connection end of the second switch element is connected to a second connection end of the second resistor, and a second connection end of the second switch element is grounded.
5. The two-way verification module according to claim 1, characterized in that: The polarity conversion unit includes a rectifier bridge, the output side of the rectifier bridge is connected to the first sending unit and the first receiving unit, the first connection end of the input side of the rectifier bridge is connected to the first contact of the bidirectional verification module, and the second connection end of the input side of the rectifier bridge is connected to the second contact of the bidirectional verification module.
6. The two-way verification module according to claim 1, characterized in that: It also includes an energy storage unit, which is connected to the first control unit and the polarity conversion unit. The energy storage unit is used to store electrical energy and provide power for the first control unit and the polarity conversion unit.
7. A two-way authentication method, applied to the first control unit in the two-way authentication module according to any one of claims 1 to 6, characterized in that: include: receiving a second authentication signal from the first contact through the first receiving unit, and performing communication verification based on the second authentication signal; A first authentication signal is sent to the first contact through the first sending unit, for the communication verification module to perform communication verification.
8. The two-way authentication method according to claim 7, characterized in that: The first receiving unit includes a second switch element, and before the first receiving unit receives the second authentication signal from the first contact, further includes: Sending a closing control signal to the control terminal of the second switch element, so as to control the second switch element to close; After performing communication verification based on the second authentication signal, the method further includes: A shutoff control signal is sent to the control end of the second switch element to control the second switch element to shut down.
9. The two-way authentication method according to claim 7, characterized in that: The first sending unit includes a first switch element, and sending the first authentication signal to the first contact through the first sending unit includes: Based on the preset first authentication information, a first control signal is sent to the control end of the first switch element to control the on and off of the first switch element, so as to send the first authentication signal to the first contact through the on and off of the first switch element.
10. A communication verification module, characterized in that: It includes a second control unit, a second sending unit and a second receiving unit, wherein: The second control unit is connected to the signal input end of the second sending unit and the signal output end of the second receiving unit, and the signal output end of the second sending unit and the signal input end of the second receiving unit are connected to the third contact of the communication verification module; The communication verification module is used to connect to the two-way verification module, and when connected to the two-way verification module, the third contact and the fourth contact of the communication verification module are connected to the first contact and the second contact of the two-way verification module, or the third contact and the fourth contact are connected to the second contact and the first contact of the two-way verification module; The second control unit is used to send a second authentication signal to the third contact through the second sending unit for the two-way verification module to perform communication verification, and to receive a first authentication signal from the third contact through the second receiving unit and perform communication verification based on the first authentication signal.
11. The communication verification module according to claim 10, characterized in that: The second sending unit includes a third switch element, a control end of the third switch element is connected to the second control unit, a first connection end of the third switch element is connected to a power source, and a second connection end of the third switch element is connected to a third contact of the communication verification module.
12. The communication verification module according to claim 10, characterized in that: The second receiving unit includes a sampling element, an amplifier and a comparator, the input end of the sampling element is connected to the third contact of the communication verification module, the output end of the sampling element is connected to the input end of the amplifier, the output end of the amplifier is connected to the input end of the comparator, and the output end of the comparator is connected to the second control unit.
13. The communication verification module according to claim 10, characterized in that: It also includes a detection unit, a detection input end of the detection unit is connected to the third contact of the communication verification module, and a detection output end of the detection unit is connected to the second control unit. The detection unit is used to detect the access of the two-way verification module and send an access detection signal to the second control unit.
14. The communication verification module according to claim 13, characterized in that: The detection unit includes a third resistor, a first connection end and a second connection end of the third resistor are respectively connected to two connection ends of the second control unit, and the second connection end of the third resistor is also connected to a third contact of the communication verification module.
15. A two-way verification method, applied to the second control unit in the communication verification module according to any one of claims 10 to 14, characterized in that: include: Sending a second authentication signal to the third contact through the second sending unit, for the two-way verification module to perform communication verification; A first authentication signal is received from the third contact through the second receiving unit, and communication verification is performed based on the first authentication signal.
16. The two-way authentication method according to claim 15, characterized in that: The second sending unit includes a third switch element, and sending the second authentication signal to the third contact through the second sending unit includes: Based on the preset second authentication information, a second control signal is sent to the control end of the third switch element to control the on and off of the third switch element, so as to send the second authentication signal to the first contact through the on and off of the third switch element.
17. The two-way authentication method according to claim 15, characterized in that: The communication verification module includes a detection unit, and before the second sending unit sends the second authentication signal to the third contact, further includes: A detection start signal is sent to the detection unit, so that the detection unit detects access to the two-way authentication module in response to the detection start signal, and sends an access detection signal to the second control unit.
18. A two-way authentication device, characterized in that: It comprises the two-way verification module as described in any one of claims 1-6 and the communication verification module as described in any one of claims 10-14.
19. A two-way authentication method, applied to the two-way authentication device as claimed in claim 18, characterized in that: include: The second control unit sends a second authentication signal to the third contact through the second sending unit; The second control unit receives the first authentication signal from the third contact through the second receiving unit, and performs communication verification based on the first authentication signal; The first control unit receives a second authentication signal from the first contact through the first receiving unit, wherein the second authentication signal is used for the first control unit to perform communication verification; The first control unit sends a first authentication signal to the first contact through the first sending unit.
