CN114281279B - Misplug prevention protection circuit, misplug prevention method and electronic equipment - Google Patents

Misplug prevention protection circuit, misplug prevention method and electronic equipment Download PDF

Info

Publication number
CN114281279B
CN114281279B CN202111631150.9A CN202111631150A CN114281279B CN 114281279 B CN114281279 B CN 114281279B CN 202111631150 A CN202111631150 A CN 202111631150A CN 114281279 B CN114281279 B CN 114281279B
Authority
CN
China
Prior art keywords
main board
working
level signal
control main
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111631150.9A
Other languages
Chinese (zh)
Other versions
CN114281279A (en
Inventor
朱玉祥
林喆
王晓光
杨保利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sunmi Technology Group Co Ltd
Citaq Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Citaq Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Sunmi Technology Group Co Ltd, Citaq Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202111631150.9A priority Critical patent/CN114281279B/en
Publication of CN114281279A publication Critical patent/CN114281279A/en
Application granted granted Critical
Publication of CN114281279B publication Critical patent/CN114281279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an anti-misplug protection circuit, a method and electronic equipment, wherein the circuit comprises the following components: the voltage division component is connected between the working main board end and the control main board end, the working main board end and the control main board end are correspondingly connected through a plurality of pins, and is used for inputting a first level signal to a first working signal pin of the control main board end when the pins between the working main board end and the control main board end are normally connected, and inputting a second level signal to the first working signal pin when the pins between the working main board end and the control main board end are abnormally connected; when the control main board end receives a first level signal through a first working signal pin, the power output end of the control main board is conducted; when the control main board end receives the second level signal through the first working signal pin, the power supply output end is cut off. The invention can avoid the influence of reverse insertion, offset insertion or false touch on the machine between the printer board and the control main board.

Description

Misplug prevention protection circuit, misplug prevention method and electronic equipment
Technical Field
The invention relates to the technical field of intelligent sales terminals, in particular to an anti-misplug protection circuit, an anti-misplug protection method and electronic equipment applied to an intelligent sales terminal.
Background
At present in intelligent sales terminal field, adopt the desk-top cash registering machine of the built-in detachable printer of installation as receipts silver-colored equipment generally, printer board and control mainboard are installed respectively in the inside different regions of receipts silver-colored equipment, and printer board passes through the electron line with the mainboard and is connected, controls the printing of printer board realization receipts silver-colored equipment receipt through the control mainboard.
However, in the existing cashier device, if a reverse plug exists between the printer board and the control main board, when the plug is deviated or the main board is touched by mistake, the main board power supply can be input to the printer board, so that the electronic material of the printer board is damaged and the power supply pins are corroded electrochemically, and the service life of the cashier device is greatly influenced.
In order to solve the technical problems that when the reverse plug exists between the printer board and the control main board, the misplug causes machine damage and influences the service life of the cashing equipment, the technical problem that the misplug prevention protection circuit is needed at present, the reverse plug exists between the printer board and the control main board, the influence of the misplug or the misplug on the machine is avoided, the production yield is improved, the maintenance cost is saved, and the service life of the machine is prolonged.
Disclosure of Invention
In order to solve the technical problems that when reverse insertion exists between a printer board and a control main board, when the insertion is deviated or the error touch exists, the misoperation leads to machine damage and influences the service life of cashing equipment, the invention provides an anti-misplug protection circuit, an anti-misplug protection method and electronic equipment, and the specific technical scheme is as follows:
the invention provides an anti-misplug protection circuit, which comprises:
the voltage division component is connected between a working main board end and a control main board end, the working main board end and the control main board end are correspondingly connected through a plurality of pins, and is used for inputting a first level signal to a first working signal pin of the control main board end when the pins between the working main board end and the control main board end are normally connected, and inputting a second level signal to the first working signal pin when the pins between the working main board end and the control main board end are abnormally connected;
when the control main board end receives the first level signal through the first working signal pin, the power output end of the control main board is conducted;
and when the control main board end receives the second level signal through the first working signal pin, the power output end is cut off.
According to the misplug prevention protection circuit provided by the invention, the voltage division component is connected between the working main board end and the control main board end, two level signals are respectively output through the voltage division component when the working main board end and the control main board end are normally connected and abnormally connected, the connection state between the two boards is judged, the working current output condition of the power supply output end is further controlled, the influence of misplug or misplug on a machine is avoided, the production yield is improved, the maintenance cost is saved, and the working life of the machine is prolonged.
In some embodiments, the voltage divider assembly comprises:
a voltage dividing power supply;
the first pin of the pull-up resistor is connected with the voltage division power supply, and the second pin of the pull-up resistor is connected between the first working signal pin of the control main board end and the control main board end;
the first pin of the pull-down resistor is grounded, the second pin of the pull-down resistor is connected between the second working signal pin of the working main board end and the working main board end, and the second working signal pin of the working main board end is connected with the first working signal pin of the control main board end.
According to the misplug prevention protection circuit, the judgment of the connection state between the two boards is realized through the voltage division component consisting of the voltage division power supply, the pull-up resistor and the pull-down resistor, a complex test structure is not needed, whether the reverse plug exists between the printer board and the control main board or not can be judged through the level condition after the voltage division of the two resistors, the misplug prevention protection circuit is deviated in plug or is touched by mistake, and the practicability of the misplug prevention protection circuit is improved.
In some embodiments, a power signal end of the control main board end is connected with the power output end of the control main board end through a first MOS tube and a second MOS tube respectively;
when the first working signal pin detects the first level signal, the control main board end controls the power signal end to output a third level signal, and the third level signal is conducted to the power output end through the first MOS tube and the second MOS tube;
when the first working signal pin detects the second level signal, the control main board end controls the power supply signal end to output a fourth level signal, and the fourth level signal cuts off the power supply output end through the first MOS tube and the second MOS tube.
After the first level signal and the second level signal are respectively converted into the third level signal and the fourth level signal through the power signal end, the third level signal and the fourth level signal are led into a circuit formed by the first MOS tube and the second MOS tube, the on-state and the off-state of the power output end are controlled, the working state of the working main board end is controlled according to the level signal output by the voltage dividing assembly, the influence of misplug on a machine is avoided, and the operation safety of the intelligent sales terminal is improved.
In some embodiments, the power signal end is connected to the gate of the first MOS transistor, the source of the first MOS transistor is grounded, the drain of the first MOS transistor is connected to the gate of the second MOS transistor, the source of the second MOS transistor is connected to the power source, and the drain of the second MOS transistor is connected to the power output end of the control main board.
In some embodiments, the first level signal and the third level signal are low level signals, and the second level signal and the fourth level signal are high level signals.
In some embodiments, when the detection duration of the first level signal detected by the control main board end is longer than a preset duration, the power supply output end is turned on;
and the control main board end cuts off the power supply output end when the first working signal pin detects the second level signal or the detection duration of the first level signal is not longer than the preset duration.
The misplug prevention protection circuit provided by the invention sets the preset time, and controls the power supply end to output the working current when the duration of the first level signal detected is longer than the preset duration, so that the transient change of the level signal is prevented from influencing the misplug prevention protection effect of the circuit, and the safety and the accuracy of the misplug prevention protection circuit are improved.
According to another aspect of the present invention, the present invention further provides an anti-misplug protection method, in which a working motherboard end and a control motherboard end are correspondingly connected through a plurality of pins, including the steps of:
the voltage division component is controlled to be connected between the working main board end and the control main board end, when pins between the working main board end and the control main board end are normally connected, a first level signal is input to a first working signal pin of the control main board end, and when pins between the working main board end and the control main board end are abnormally connected, a second level signal is input to the first working signal pin;
when the first level signal is received through the first working signal pin, a power output end of the control main board is conducted;
and when the second level signal is received through the first working signal pin, the power supply output end is cut off.
In some embodiments, a power signal end of the control main board end is connected with the power output end of the control main board end through a first MOS tube and a second MOS tube respectively;
when the first level signal is received through the first working signal pin, the power output end of the control main board is conducted, and the method specifically comprises the following steps:
outputting a third level signal through the power supply signal end when the first working signal pin receives the first level signal, wherein the third level signal is used for conducting the power supply output end through the first MOS tube and the second MOS tube;
when the second level signal is received through the first working signal pin, the power supply output end is cut off, and the method specifically comprises the following steps:
and outputting a fourth level signal through the power supply signal end when the first working signal pin receives the second level signal, wherein the fourth level signal cuts off the power supply output end through the first MOS tube and the second MOS tube.
In some embodiments, after the second level signal is input to the first working signal pin, the method further includes:
when the detection duration of the first level signal is longer than the preset duration, the power supply output end is conducted;
and when the second level signal is detected or the detection duration of the first level signal is detected to be not longer than the preset duration, the power supply output end is cut off.
According to another aspect of the present invention, the present invention further provides an electronic device, including a working motherboard, a control motherboard, and the misplug protection circuit described above.
The invention provides an anti-misplug protection circuit, an anti-misplug protection method and electronic equipment, which at least comprise the following technical effects:
(1) The voltage dividing component is connected between the working main board end and the control main board end, two level signals are respectively output through the voltage dividing component when the working main board end and the control main board end are normally connected and abnormally connected, the connection state between the two boards is judged, the working current output condition of the power supply output end is further controlled, the influence of reverse insertion, offset insertion or error contact on a machine is avoided between the printer board and the control main board, the production yield is improved, the maintenance cost is saved, and the working life of the machine is prolonged;
(2) The judgment of the connection state between the two boards is realized through the voltage division component consisting of the voltage division power supply, the pull-up resistor and the pull-down resistor, a complex test structure is not needed, whether the reverse plug exists between the printer board and the control main board or not can be judged through the level condition after the voltage division of the two resistors, the plug bias or the false touch is realized, and the practicability of the misplug prevention protection circuit is improved;
(3) After the power supply signal end converts the first level signal and the second level signal into the third level signal and the fourth level signal respectively, the third level signal and the fourth level signal are led into a circuit formed by the first MOS tube and the second MOS tube, the on-state and the off-state of the power supply output end are controlled, the working state of the working main board end is controlled according to the level signal output by the voltage dividing assembly, the influence of misplug on a machine is avoided, and the operation safety of the intelligent sales terminal is improved;
(4) The preset time is set, the power supply end is controlled to output working current when the duration of the first level signal is detected to be longer than the preset duration, the influence of the instantaneous change of the level signal on the misplug prevention protection effect of the circuit is avoided, and the safety and the accuracy of the misplug prevention protection circuit are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an exemplary diagram of a motherboard end of an anti-misplug protection circuit according to the present invention;
FIG. 2 is a diagram illustrating a control motherboard terminal in an anti-misplug protection circuit according to the present invention;
FIG. 3 is an exemplary diagram of an anti-misplug protection circuit according to the present invention;
FIG. 4 is an exemplary diagram of a voltage divider assembly in an anti-misinsertion protection circuit according to the present invention;
FIG. 5 is a flow chart of an anti-misplug protection method of the present invention;
FIG. 6 is a flow chart of a misplug protection method of the present invention;
FIG. 7 is another flow chart of an anti-misplug protection method of the present invention;
fig. 8 is an exemplary diagram of an electronic device of the present invention.
Reference numerals in the drawings: the circuit comprises a working main board end-10, a control main board end-20, a voltage dividing component-30, a voltage dividing power supply-31, a pull-up resistor-32, a pull-down resistor-33, an electronic device-100 and an anti-misplug protection circuit-110.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
For the sake of simplicity of the drawing, the parts relevant to the present invention are shown only schematically in the figures, which do not represent the actual structure thereof as a product. Additionally, in order to facilitate a concise understanding of the drawings, components having the same structure or function in some of the drawings are depicted schematically only one of them, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In addition, in the description of the present application, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will explain the specific embodiments of the present invention with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the invention, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
In one embodiment of the present invention, as shown in fig. 1, 2 and 3, the present invention provides an anti-misplug protection circuit, which includes a voltage divider 30.
The voltage dividing assembly 30 is connected between the working motherboard end 10 and the control motherboard end 20, and pins of the working motherboard end 10 and the control motherboard end 20 are correspondingly connected through a plurality of pins, so as to input a first level signal to a first working signal pin of the control motherboard end 20 when the working motherboard end 10 and the control motherboard end 20 are normally connected, and input a second level signal to a first working signal pin of the control motherboard end 20 when the working motherboard end 10 and a pin before the control motherboard end 20 are abnormally connected.
When the control main board 20 receives the first level signal through the first working signal pin, the power output end of the control main board 20 is turned on, and when the control main board 20 receives the second level signal through the first working signal pin, the power output end is turned off.
Specifically, the working motherboard end 10 and the control motherboard end 20 are connected by inserting pins and power strip, when the pins and power strip between the working motherboard end 10 and the control motherboard end 20 are inserted positively, the normal connection of pins between the working motherboard end 10 and the control motherboard end 20 is judged, and when the pins and power strip between the working motherboard end 10 and the control motherboard end 20 are inserted reversely or misplaced, the abnormal connection of pins between the working motherboard end 10 and the control motherboard end 20 is judged.
Fig. 2 is a schematic diagram of the working motherboard end 10, fig. 3 is a schematic diagram of the control motherboard end 20, and the pins of the working motherboard end 10 and the pins of the control motherboard end 20 in fig. 2 and 3 are correspondingly connected.
In this embodiment, the voltage dividing assembly 30 is connected between the working motherboard end 10 and the control motherboard end 20, so that the voltage dividing assembly 30 outputs two level signals when two normal and abnormal connection modes exist between the working motherboard end 10 and the control motherboard end 20, and further controls the power output end of the control motherboard end 20 to output or not to output corresponding working current through software logic preset in the CPU of the control motherboard end 20.
The embodiment can be applied to the technical field of intelligent sales terminals, is mainly applied to desk-top cash registers of built-in detachable printers or electronic terminals of other built-in small-sized working equipment, is connected between a working main board and a control main board in the electronic equipment through electronic wires, and can cause direct input of a power supply of the control main board to the working main board when the situation of opposite plug or error touch exists between the working main board and the control main board, so that damage to electronic material parts of the working main board and electrochemical corrosion of power supply pins are caused, and the service life of the electronic equipment is greatly influenced.
In one embodiment, as shown in fig. 2, 3 and 4, in the misplug prevention protection circuit provided in this embodiment, the voltage dividing component 30 includes a voltage dividing power supply 31, a pull-up resistor 32 and a pull-down resistor 33.
The first pin of the pull-up resistor 32 is connected to the voltage division power supply 31, and the second pin of the pull-up resistor 32 is connected between the first working signal pin of the control main board terminal 20 and the control main board terminal 20.
The first pin of the pull-down resistor 33 is grounded, and the second pin of the pull-down resistor 33 is connected between the second working signal pin of the working main board end 10 and the working main board end 10, and the second working signal pin of the working main board end 10 is connected with the first working signal pin of the control main board end 20.
In one embodiment, the voltage division power supply 31 connected between the first operation signal pin of the control main board terminal 20 and the control main board terminal 20 is set to 3.3V, the connected pull-up resistor 32 is set to 100K, and the pull-down resistor 33 connected between the second operation signal pin of the operation main board terminal 10 and the operation main board terminal 10 is set to 10K. After the voltage division power supply 31 divides the voltage through the pull-up resistor 32 and the pull-down resistor 33, if the working main board terminal 10 and the control main board terminal 20 are normally connected, the voltage at both ends of the pull-down resistor 33 is 0.3V, and the voltage signals of the second working signal pin of the working main board terminal 10 and the first working signal pin of the control main board terminal 20 are also 0.3V low level. If the working motherboard end 10 and the control motherboard end 20 are abnormally connected, signals between the working motherboard end 10 and the control motherboard end 20 are not conducted, and a voltage signal of a first working signal pin of the control motherboard end 20 is 3.3V high level. When the control main board end 20 detects that the voltage signal of the first working signal pin is at a low level of 0.3V, the connection between the working main board end 10 and the control main board end 20 is judged to be normal, and when the control main board end 20 detects that the voltage signal of the first working signal pin is at a high level of 3.3V, the connection between the working main board end 10 and the control main board end 20 is judged to be abnormal.
In one embodiment, the pull-up resistor 32 and the voltage dividing power supply 31 may also be disposed between the second operation signal pin of the operation main board terminal 10 and the operation main board terminal 10, and the pull-down resistor 33 is disposed between the first operation signal pin of the control main board terminal 20 and the control main board terminal 20.
In one embodiment, the power signal end of the control main board 20 is connected to the power output end of the control main board 20 through the first MOS transistor and the second MOS transistor, respectively.
When the first working signal pin detects the first level signal, the control main board 20 controls the power signal end to output a third level signal, and the third level signal conducts the power output end through the first MOS tube and the second MOS tube.
When the first working signal pin detects the second level signal, the control main board 20 controls the power signal end to output a fourth level signal, and the fourth level signal cuts off the power output end through the first MOS tube and the second MOS tube.
As shown in fig. 3, the third level signal and the fourth level signal are on signals output by the power signal terminal, and the control main board terminal 20 outputs the third level signal and the fourth level signal at the power signal terminal 24V-EN according to the first level signal and the second level signal received by the first working signal pin DETECT-PRT, respectively, and the third level signal and the fourth level signal pass through the first MOS transistor Q2800 and the second MOS transistor Q2801, so as to realize on and off of the power output terminal PRINTER-24V.
In one embodiment, as shown in fig. 3, the power signal terminal 24V-EN is connected to the gate of the first MOS transistor Q2800, the source of the first MOS transistor Q2800 is grounded, the drain of the first MOS transistor Q2800 is connected to the gate of the second MOS transistor Q2801, the source of the second MOS transistor Q2801 is connected to the DC-24V power supply, and the drain of the second MOS transistor Q2801 is connected to the power output terminal PRINTER-24V of the control main board terminal 20. The first level signal received by the first working signal pin DETECT-PRT is a low level signal, the second level signal is a high level signal, the third level signal output by the power signal terminal 24V-EN is a high level signal, and the fourth level signal is a low level signal.
When the first working signal pin DETECT-PRT receives a low level signal, the control logic of the CPU in the main board terminal 20 controls the power supply signal terminal 24V-EN to output a high level signal, the high level signal is connected with the gate of the first MOS transistor Q2800, the first MOS transistor Q2800 is turned on, the gate of the second MOS transistor Q2801 is provided with a high level signal, the second MOS transistor Q2801 is turned on, the second MOS transistor Q2801 outputs a high level signal, and then the power supply output terminal PRINTER-24V is controlled to be turned on.
When the first working signal pin DETECT-PRT receives a high level signal, the control logic of the CPU in the main board terminal 20 controls the power signal terminal 24V-EN to output a low level signal, the low level signal is connected with the gate of the first MOS transistor Q2800, the first MOS transistor Q2800 is cut off, the gate of the second MOS transistor Q2801 is provided with a low level signal, the low level signal cuts off the second MOS transistor Q2801, the second MOS transistor Q2801 outputs a low level signal, and then the power output terminal PRINTER-24V is controlled to cut off.
In an embodiment, the control logic of the CPU in the control main board 20 of the misplug protection circuit provided by the present invention may further be configured to switch on the power output terminal when the control main board 20 detects that the detection duration of the first level signal detected by the first working signal pin is longer than the preset duration.
And when the first working signal pin detects the second level signal or the detection duration of the first level signal is not longer than the preset duration, the control main board end 20 cuts off the power supply output end.
Specifically, the preset time may be set to 2S, 3S, 5S, and so on, taking 3S as an example, the control main board 20 controls the power output terminal to output the operating current only when the first level signal lasting 3S or more is detected, and does not output the operating current when the second level signal is detected or the first level signal is detected for 3S or less.
In one embodiment, the pins of the working main board end 10 and the pins of the control main board end 20 of the intelligent sales terminal are correspondingly connected, a voltage division component 30 is connected between the working main board end 10 and the control main board end 20, the voltage division component 30 comprises a voltage division power supply 31, a pull-up resistor 32 and a pull-down resistor 33, one end of the pull-up resistor 32 is connected between the voltage division power supply 31, the other end of the pull-up resistor is connected between the first working signal pin of the control main board end 20 and the control main board end 20, one end of the pull-down resistor 33 is grounded, the other end of the pull-down resistor 33 is connected between the second working signal pin of the working main board end 10 and the working main board end 10, the second working signal pin of the working main board end 10 is connected with the first working signal pin of the control main board end 20, the voltage division power supply 31 is set to 3.3V, the connected pull-up resistor 32 is set to 100K, and the pull-down resistor 33 is set to 10K. After the voltage division power supply 31 divides the voltage through the pull-up resistor 32 and the pull-down resistor 33, if the working main board terminal 10 and the control main board terminal 20 are normally connected, the voltage at both ends of the pull-down resistor 33 is 0.3V, and the voltage signals of the second working signal pin of the working main board terminal 10 and the first working signal pin of the control main board terminal 20 are also 0.3V low level. If the working motherboard end 10 and the control motherboard end 20 are abnormally connected, signals between the working motherboard end 10 and the control motherboard end 20 are not conducted, and a voltage signal of a first working signal pin of the control motherboard end 20 is 3.3V high level.
A first MOS tube Q2800 and a second MOS tube Q2801 are connected between a power supply signal end 24V-EN and a power supply output end PRINTER-24V of the control main board end 20. The power signal end 24V-EN is connected with the grid electrode of the first MOS tube Q2800, the source electrode of the first MOS tube Q2800 is grounded, the drain electrode of the first MOS tube Q2800 is connected with the grid electrode of the second MOS tube Q2801, the source electrode of the second MOS tube Q2801 is connected with a DC-24V power supply, and the drain electrode of the second MOS tube Q2801 is connected with the power output end PRINTER-24V of the control main board end 20. When the first working signal pin DETECT-PRT of the control main board terminal 20 receives the 0.3V low level signal, the control power signal terminal 24V-EN outputs a high level signal, and the high level signal turns on the first MOS transistor Q2800 and the second MOS transistor Q2801, so that the pin-24V outputs a high level, and the power is supplied, so that the working main board terminal 10 works normally. When the first working signal pin DETECT-PRT of the control main board terminal 20 receives the 3.3V high level signal, the control power signal terminal 24V-EN outputs a low level signal, the low level signal cuts off the first MOS transistor Q2800 and the second MOS transistor Q2801, so that the pin-24V outputs a low level, the power supply does not supply power, and the working main board terminal 10 stops working.
According to the embodiment, the voltage dividing component is connected between the working main board end and the control main board end, two level signals are respectively output through the voltage dividing component when the working main board end is connected with the control main board end normally and when the working main board end is connected abnormally, the voltage dividing component consisting of the voltage dividing power supply, the pull-up resistor and the pull-down resistor is used for judging the connection state between the two boards, a complex test structure is not needed, whether reverse plug exists between the printer board and the control main board or not can be judged through the level condition after the voltage division of the two resistors, plug-in offset or error contact is avoided, the practicability of the error plug-in protection circuit is improved, the working current output condition of the power supply output end is further controlled, the influence of the reverse plug-in offset or error contact on a machine is avoided, the maintenance cost is saved, the service life of the machine is prolonged, meanwhile, the power supply end is controlled to output the working current when the time length of detecting the first level signal is longer than the preset time length, the instantaneous change of the level signal is avoided, the error plug-in protection effect of the circuit is avoided, and the safety and the accuracy of the error plug-in protection circuit are improved.
In one embodiment, as shown in fig. 5, according to another aspect of the present invention, the present invention further provides an anti-misplug protection method applied to a working motherboard terminal and a control motherboard terminal, where pins of the working motherboard terminal and pins of the control motherboard terminal are correspondingly connected, including the steps of:
s100, controlling a voltage dividing component connected between a working main board end and a control main board end, inputting a first level signal to a first working signal pin of the control main board end when pins between the working main board end and the control main board end are normally connected, and inputting a second level signal to the first working signal pin when the pins between the working main board end and the control main board end are abnormally connected.
And S200, when receiving a first level signal through a first working signal pin, switching on a power output end of the control main board.
S300, when receiving the second level signal through the first working signal pin, the power supply output end is cut off.
According to the embodiment, the voltage dividing component is connected between the working main board end and the control main board end, so that when two normal and abnormal connection modes exist between the working main board end and the control main board end, two level signals are respectively output, and the power output end of the control main board end is controlled to output or not output corresponding working current through software logic preset in the CPU of the control main board end.
The embodiment can be applied to the technical field of intelligent sales terminals, and is mainly applied to desk-top cash registers of built-in detachable printers or electronic terminals of other built-in small-sized working equipment, in the electronic equipment, a working main board and a control main board are connected through an electronic wire, once reverse plug exists between the working main board and the control main board, when the situation of plug-in deviation or error touch exists, a power supply of the control main board can be directly input to the working main board, so that damage to electronic material parts of the printer boards and electrochemical corrosion to power supply pins are caused, the service life of the cashing equipment is greatly influenced, and therefore the embodiment discloses the misplug-preventing protection circuit.
In one embodiment, as shown in fig. 6, a power signal terminal of the control main board terminal is connected to a power output terminal of the control main board terminal through a first MOS transistor and a second MOS transistor, respectively.
Step S200, when receiving the first level signal through the first working signal pin, turns on the power output end of the control motherboard, and specifically includes:
s210 outputs a third level signal when the first level signal is received by the first working signal pin through the power signal end.
Specifically, the third level signal is used for switching on the power supply output end through the first MOS tube and the second MOS tube.
Step S300, when receiving the second level signal through the first working signal pin, cuts off the power output end, and specifically includes:
s310, outputting a fourth level signal when the first working signal pin receives the second level signal through the power signal end.
Specifically, the fourth level signal cuts off the power supply output end through the first MOS tube and the second MOS tube.
In one embodiment, the power signal end of the control main board end is connected with the power output end of the control main board end through the first MOS tube and the second MOS tube respectively.
When the control main board end detects a first level signal at the first working signal pin, the control power supply signal end outputs a third level signal, and the third level signal conducts the power supply output end through the first MOS tube and the second MOS tube.
When the control main board end detects the second level signal at the first working signal pin, the control power supply signal end outputs a fourth level signal, and the fourth level signal cuts off the power supply output end through the first MOS tube and the second MOS tube.
As shown in fig. 3, the third level signal and the fourth level signal are on signals output by the power signal terminal, and the control main board terminal outputs the third level signal and the fourth level signal at the power signal terminal 24V-EN according to the first level signal and the second level signal received by the first working signal pin DETECT-PRT, respectively, and the third level signal and the fourth level signal pass through the first MOS transistor Q2800 and the second MOS transistor Q2801, so as to realize on and off of the power output terminal pin-24V.
According to the misplug prevention protection method provided by the embodiment, after the first level signal and the second level signal are respectively converted into the third level signal and the fourth level signal through the power signal end, the third level signal and the fourth level signal are led into a circuit formed by the first MOS tube and the second MOS tube, the starting and the stopping states of the power output end are controlled, the working state of the working main board end is controlled according to the level signal output by the voltage dividing assembly, the influence of misplug on a machine is avoided, and the operation safety of the intelligent sales terminal is improved.
In one embodiment, as shown in fig. 7, step S100, after controlling the voltage divider connected between the working motherboard terminal and the control motherboard terminal to input the first level signal to the first working signal pin of the control motherboard terminal when the working motherboard terminal and the control motherboard terminal are normally connected, and inputting the second level signal to the first working signal pin of the control motherboard terminal when the working motherboard terminal and the control motherboard terminal are abnormally connected, further includes:
s220, when the detection duration of the first level signal is detected to be longer than the preset duration, the power supply output end is conducted.
And S320, when the second level signal is detected or the first level signal is detected, the detection duration is not longer than the preset duration, and the power supply output end is cut off.
Specifically, the preset time may be set to 2S, 3S, 5S, and so on, taking 3S as an example, the control main board end only controls the power output end to output the working current when detecting the first level signal lasting more than 3S, and does not output the working current when detecting the second level signal or detecting the first level signal for less than or equal to 3S.
In one embodiment, as shown in fig. 8, according to another aspect of the present invention, the present invention further provides an electronic device 100, including a working motherboard terminal 10, a control motherboard terminal 20, and an anti-misplug protection circuit 110 provided in the above circuit embodiment, where pins of the working motherboard terminal 10 and pins of the control motherboard terminal 20 are correspondingly connected, and the anti-misplug protection circuit 110 is connected between the working motherboard terminal 10 and the control motherboard terminal 20.
The electronic device 100 in this embodiment is applied in the technical field of intelligent sales terminals, and is mainly applied to a desk type cash register with a detachable printer built-in or electronic terminals with other built-in small-sized working devices, in which a working main board and a control main board are connected through an electronic wire, once a situation of reverse plug exists between the working main board and the control main board, when the plug is deviated or the control main board is touched by mistake, a power supply of the control main board is directly input to the working main board, so that damage to an electronic material part of the printer board and electrochemical corrosion to a power supply pin are caused, and the service life of a cashing device is greatly influenced.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the parts of a certain embodiment that are not described or depicted in detail may be referred to in the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed anti-misplug protection circuit, method and electronic device may be implemented in other manners. For example, the above-described embodiments of an anti-misinsertion protection circuit, method, and electronic device are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the communications links shown or discussed may be through some interface, device or unit communications link or integrated circuit, whether electrical, mechanical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
It should be noted that the foregoing is only a preferred embodiment of the present invention, and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (9)

1. An anti-misplug protection circuit, comprising:
the voltage division component is connected between a working main board end and a control main board end, the working main board end and the control main board end are correspondingly connected through a plurality of pins, and is used for inputting a first level signal to a first working signal pin of the control main board end when the pins between the working main board end and the control main board end are normally connected, and inputting a second level signal to the first working signal pin when the pins between the working main board end and the control main board end are abnormally connected;
when the control main board end receives the first level signal through the first working signal pin, the power output end of the control main board is conducted;
when the control main board end receives the second level signal through the first working signal pin, the power supply output end is cut off;
the voltage dividing assembly includes:
a voltage dividing power supply;
the first pin of the pull-up resistor is connected with the voltage division power supply, and the second pin of the pull-up resistor is connected between the first working signal pin of the control main board end and the control main board end;
the first pin of the pull-down resistor is grounded, the second pin of the pull-down resistor is connected between the second working signal pin of the working main board end and the working main board end, and the second working signal pin of the working main board end is connected with the first working signal pin of the control main board end.
2. The misplug prevention protection circuit as set forth in claim 1, wherein,
the power supply signal end of the control main board end is connected with the power supply output end of the control main board end through a first MOS tube and a second MOS tube respectively;
when the first working signal pin detects the first level signal, the control main board end controls the power signal end to output a third level signal, and the third level signal is conducted to the power output end through the first MOS tube and the second MOS tube;
when the first working signal pin detects the second level signal, the control main board end controls the power supply signal end to output a fourth level signal, and the fourth level signal cuts off the power supply output end through the first MOS tube and the second MOS tube.
3. An anti-misplug protection circuit as set forth in claim 2, wherein,
the power supply signal end is connected with the grid electrode of the first MOS tube, the source electrode of the first MOS tube is grounded, the drain electrode of the first MOS tube is connected with the grid electrode of the second MOS tube, the source electrode of the second MOS tube is connected with a power supply, and the drain electrode of the second MOS tube is connected with the power supply output end of the control main board end.
4. An anti-misplug protection circuit as set forth in claim 2, wherein,
the first level signal and the third level signal are low level signals, and the second level signal and the fourth level signal are high level signals.
5. An anti-misplug protection circuit as set forth in any one of claims 1-4, wherein,
when the control main board end detects that the detection duration of the first level signal is longer than the preset duration, the power supply output end is conducted;
and the control main board end cuts off the power supply output end when the first working signal pin detects the second level signal or the detection duration of the first level signal is not longer than the preset duration.
6. The misplug prevention protection method is characterized in that a working main board end and a control main board end are correspondingly connected through a plurality of pins, and comprises the following steps:
the voltage division component is controlled to be connected between the working main board end and the control main board end, when pins between the working main board end and the control main board end are normally connected, a first level signal is input to a first working signal pin of the control main board end, and when pins between the working main board end and the control main board end are abnormally connected, a second level signal is input to the first working signal pin;
when the first level signal is received through the first working signal pin, a power output end of the control main board is conducted;
when the second level signal is received through the first working signal pin, the power supply output end is cut off;
the voltage dividing assembly includes:
a voltage dividing power supply;
the first pin of the pull-up resistor is connected with the voltage division power supply, and the second pin of the pull-up resistor is connected between the first working signal pin of the control main board end and the control main board end;
the first pin of the pull-down resistor is grounded, the second pin of the pull-down resistor is connected between the second working signal pin of the working main board end and the working main board end, and the second working signal pin of the working main board end is connected with the first working signal pin of the control main board end.
7. The method of claim 6, wherein,
the power supply signal end of the control main board end is connected with the power supply output end of the control main board end through a first MOS tube and a second MOS tube respectively;
when the first level signal is received through the first working signal pin, the power output end of the control main board is conducted, and the method specifically comprises the following steps:
outputting a third level signal through the power supply signal end when the first working signal pin receives the first level signal, wherein the third level signal is used for conducting the power supply output end through the first MOS tube and the second MOS tube;
when the second level signal is received through the first working signal pin, the power supply output end is cut off, and the method specifically comprises the following steps:
and outputting a fourth level signal through the power supply signal end when the first working signal pin receives the second level signal, wherein the fourth level signal cuts off the power supply output end through the first MOS tube and the second MOS tube.
8. The method for preventing misplug according to any one of claims 6 to 7, further comprising, after the second level signal is input to the first working signal pin:
when the detection duration of the first level signal is longer than the preset duration, the power supply output end is conducted;
and when the second level signal is detected or the detection duration of the first level signal is detected to be not longer than the preset duration, the power supply output end is cut off.
9. An electronic device comprising a working motherboard terminal, a control motherboard terminal, and the misplug protection circuit of any one of claims 1 to 5.
CN202111631150.9A 2021-12-28 2021-12-28 Misplug prevention protection circuit, misplug prevention method and electronic equipment Active CN114281279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111631150.9A CN114281279B (en) 2021-12-28 2021-12-28 Misplug prevention protection circuit, misplug prevention method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111631150.9A CN114281279B (en) 2021-12-28 2021-12-28 Misplug prevention protection circuit, misplug prevention method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114281279A CN114281279A (en) 2022-04-05
CN114281279B true CN114281279B (en) 2024-03-08

Family

ID=80877366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111631150.9A Active CN114281279B (en) 2021-12-28 2021-12-28 Misplug prevention protection circuit, misplug prevention method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114281279B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426328A (en) * 2017-09-05 2019-03-05 鸿富锦精密工业(武汉)有限公司 Mainboard protection circuit
CN110096382A (en) * 2018-01-31 2019-08-06 鸿富锦精密工业(武汉)有限公司 The electronic device of mainboard and the application mainboard
CN110557748A (en) * 2019-07-29 2019-12-10 惠州Tcl移动通信有限公司 detection circuit based on control chip, mobile terminal and data line

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426328A (en) * 2017-09-05 2019-03-05 鸿富锦精密工业(武汉)有限公司 Mainboard protection circuit
CN110096382A (en) * 2018-01-31 2019-08-06 鸿富锦精密工业(武汉)有限公司 The electronic device of mainboard and the application mainboard
CN110557748A (en) * 2019-07-29 2019-12-10 惠州Tcl移动通信有限公司 detection circuit based on control chip, mobile terminal and data line

Also Published As

Publication number Publication date
CN114281279A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
US4968929A (en) Plug connector coding system for electric cables
US7624303B2 (en) Generation of system power-good signal in hot-swap power controllers
US5911050A (en) System for connecting either of two supply voltage type PCI cards using a common connector socket
KR100218916B1 (en) Power management system in usb hub unit
EP0854410B1 (en) Power supply system
CN114281279B (en) Misplug prevention protection circuit, misplug prevention method and electronic equipment
CN112380066B (en) Server maintenance and debugging device based on domestic platform and server
EP0446061B1 (en) Abnormal temperature detector for electronic apparatus
JP5451273B2 (en) Power monitoring circuit, power monitoring method and power monitoring control program used in the power monitoring circuit, and electronic device
US6850396B1 (en) Fail safe circuit with reset capability for a power supply
US6192437B1 (en) Transmission apparatus with control circuit/relay within each card providing connection to related card output depending on related slot ID/ redundancy/non-redundancy, working/protection signals
CN113448422A (en) Server BIOS flash memory chip protection circuit and server
JP6386606B1 (en) Connection circuit of connected equipment
JP5120374B2 (en) Monitoring device
JP2008228465A (en) Electric equipment
KR102545962B1 (en) Circuit for detecting scb and method thereof
JPH08123705A (en) Method and circuit for discriminating fault between electric system and cable system
CN220359142U (en) Quick and reliable response circuit for INTER X86 platform FUSA signal
KR100275570B1 (en) Control apparatus for the faulty output protection
CN216356793U (en) Electronic device
CN114817104B (en) IIC pull-up voltage switching circuit and switching method
KR101726519B1 (en) Apparatus for sensing mounting condition of module in financial device
KR101066791B1 (en) Method and Apparatus for detector of coupling state between PCB
KR100422142B1 (en) voltage checking device of the keep-phone system
CN115994059A (en) Board card in-place detection circuit and detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant