CN117434876A - OT communication detection circuit and device - Google Patents

OT communication detection circuit and device Download PDF

Info

Publication number
CN117434876A
CN117434876A CN202311746176.7A CN202311746176A CN117434876A CN 117434876 A CN117434876 A CN 117434876A CN 202311746176 A CN202311746176 A CN 202311746176A CN 117434876 A CN117434876 A CN 117434876A
Authority
CN
China
Prior art keywords
resistor
triode
voltage
controller
unit
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.)
Granted
Application number
CN202311746176.7A
Other languages
Chinese (zh)
Other versions
CN117434876B (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.)
Shenzhen Senweier Technology Development Co ltd
Original Assignee
Shenzhen Senweier Technology Development 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 Shenzhen Senweier Technology Development Co ltd filed Critical Shenzhen Senweier Technology Development Co ltd
Priority to CN202311746176.7A priority Critical patent/CN117434876B/en
Publication of CN117434876A publication Critical patent/CN117434876A/en
Application granted granted Critical
Publication of CN117434876B publication Critical patent/CN117434876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model relates to a technical field of communication detection especially relates to an OT communication detection circuit and device, including current output module and voltage detection module, current output module is used for exporting two constant current to outside controller, including the power supply end, signal end and control end, the direct current signal source is connected to the power supply end, the signal end is used for exporting constant current to the controller, the control end is used for the outside singlechip control to switch the constant current output value of current output module, voltage detection module is used for receiving the voltage value that the controller returned, and output sampling voltage to the singlechip according to the voltage value that returns, including the power supply end, signal end and detection end, direct current signal source is connected to voltage detection module's signal end is used for receiving the voltage value that the controller returned, the detection end is used for singlechip detection test development board and the communication condition of controller, and according to the break-make of judgement result control controller. The OT communication condition detection method has the beneficial effect of detecting the OT communication condition.

Description

OT communication detection circuit and device
Technical Field
The application relates to the technical field of communication detection, in particular to an OT communication detection circuit and an OT communication detection device.
Background
OT (openthermal, open temperature control protocol) is a common communication protocol applied to the communication between a controller and a wall-mounted furnace, according to the OT protocol, the controller can communicate with the wall-mounted furnace so as to control the switch of the wall-mounted furnace and adjust the temperature of the wall-mounted furnace, however, when the communication process is blocked or is interrupted for other reasons, the wall-mounted furnace is likely to cause faults and further influence the use of products, so that how to timely detect OT communication faults is a technical problem to be solved.
Disclosure of Invention
The method and the device aim to detect whether the OT communication is abnormal or not, so that the OT communication fault can be timely detected.
The technical aim of the application is achieved through the following technical scheme:
the OT communication detection circuit is applied to a test development board and comprises a current output module and a voltage detection module;
the current output module is used for outputting two constant currents to an external controller and comprises a power supply end, a signal end and a control end, wherein the power supply end is connected with an external direct current signal source, the signal end is used for outputting the constant currents to the controller, and the control end is used for controlling and switching constant current output values of the current output module by an external singlechip;
the voltage detection module is used for receiving the voltage value returned by the controller, outputting a sampling voltage to the singlechip according to the returned voltage value, and comprises a power supply end, a signal end and a detection end, wherein the power supply end of the voltage detection module is connected with an external direct current signal source, the signal end of the voltage detection module is used for receiving the voltage value returned by the controller, and the detection end is used for detecting whether the communication between the test development board and the controller is abnormal or not by the singlechip and controlling the connection or disconnection of the controller according to a judgment result.
By adopting the technical scheme, whether the sampling voltage value output to the singlechip by the detection voltage detection module corresponds to the output current of the current output module or not is detected, so that whether OT communication is abnormal or not is judged.
Optionally, the current output module comprises a current output unit and a variable current control unit; the voltage detection module comprises a voltage detection unit and a voltage transformation triggering unit;
the current output unit is used for outputting constant current to the controller and comprises a power supply end and a signal end, wherein the power supply end of the current output unit is connected with the direct current signal source, and the signal end of the current output unit is used for outputting constant current to the controller;
the current transformation control unit is used for controlling and switching the constant current output value of the current output unit by the singlechip and comprises an input end and a control end, wherein the input end of the current transformation control unit is used for receiving the singlechip control signal, and the control end of the current transformation control unit is used for controlling and switching the constant current output value of the current output unit according to the singlechip control signal.
The voltage detection unit is used for outputting sampling voltage to the singlechip, and comprises an input end and an output end, wherein the input end of the voltage detection unit is connected with the voltage transformation triggering unit, and the output end of the voltage detection unit is used for outputting the sampling voltage to the singlechip;
the voltage transformation triggering unit is used for receiving the voltage value returned by the controller and switching and outputting two different voltage values to the voltage detection unit according to the returned voltage value;
the voltage transformation triggering unit comprises an input end and an output end, wherein the input end of the voltage transformation triggering unit is used for receiving the voltage value returned by the controller, and the output end of the voltage transformation triggering unit is used for controlling the sampling voltage value output by the voltage detection unit according to the returned voltage value.
Through adopting above-mentioned technical scheme, the variable flow control unit can switch control current output unit output two kinds of constant current to the controller, and the controller can correspond return voltage value to vary voltage trigger unit, and vary voltage trigger unit can be according to the sampling voltage value of the voltage detection unit output of voltage value adjustment, and the singlechip can confirm whether OT communication has the abnormality through judging the size of sampling voltage value.
Optionally, the current output unit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first triode and a second triode;
one end of the first resistor is connected with the direct current signal source, and the other end of the first resistor is connected with one end of the second resistor and the emitter of the first triode; the collector electrode of the first triode is connected with the controller;
the other end of the second resistor is connected with the base electrode of the second triode; the emitter of the second triode is connected with the direct current signal source, and the collector of the second triode is connected with one end of the third resistor and one end of the fourth resistor;
the other end of the third resistor is connected with the base electrode of the first triode; the other end of the fourth resistor is grounded.
By adopting the technical scheme, the base current of the first triode is limited to generate limitation after the second triode is conducted, so that the current output by the first triode is kept constant.
Optionally, the variable current control unit includes a fifth resistor, a sixth resistor, a seventh resistor, a MOS transistor and a third triode;
one end of the fifth resistor is connected with the direct current signal source, and the other end of the fifth resistor is connected with the grid electrode of the MOS tube and the collector electrode of the third triode;
one end of a body diode of the MOS tube is connected with the direct current signal source, and the other end of the body diode of the MOS tube is connected with one end of the sixth resistor; the other end of the sixth resistor is connected with the other end of the first resistor;
the base electrode of the third triode is connected with one end of the seventh resistor, and the emitter electrode of the third triode is grounded; the other end of the seventh resistor is connected with the singlechip.
By adopting the technical scheme, the variable current control unit changes the resistance value of the current output module according to the control signal sent by the singlechip, so as to output a second constant current.
Optionally, the variable current control unit further includes an electrostatic resistor, one end of the electrostatic resistor is connected to the other end of the seventh resistor, and the other end of the electrostatic resistor is grounded.
By adopting the technical scheme, electrostatic interference can be prevented, and the device is prevented from being damaged by surge.
Optionally, the voltage detection unit includes an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, and a fourth triode;
one end of the eighth resistor is connected with the direct current signal source, and the other end of the eighth resistor is connected with one end of the ninth resistor; the other end of the ninth resistor is connected with the base electrode of the fourth triode;
one end of the tenth resistor is connected with the direct current signal source, and the other end of the tenth resistor is connected with the collector electrode of the fourth triode and one end of the eleventh resistor; the other end of the eleventh resistor is connected with the singlechip;
an emitter of the fourth triode is connected with one end of the twelfth resistor, and the other end of the twelfth resistor is grounded.
By adopting the technical scheme, the fourth triode is conducted to form a loop when the controller does not return to the voltage value, and the loop is used for sampling and detecting by the singlechip.
Optionally, the voltage detection unit further includes a capacitor and a thirteenth resistor;
one end of the capacitor is connected with the other end of the eighth capacitor, and the other end of the capacitor is connected with the junction of the ninth resistor and the base electrode of the fourth triode;
one end of the thirteenth resistor is connected with the connection part of the ninth resistor and the base electrode of the fourth triode, and the other end of the thirteenth resistor is grounded.
By adopting the technical scheme, a bleeder circuit from the capacitor and the resistor to the ground is formed, the circuit is protected, and the stability of the circuit is improved.
Optionally, the voltage detection unit further includes a fourteenth resistor;
one end of the fourteenth resistor is connected with the other end of the eleventh resistor, and the other end of the fourteenth resistor is grounded.
By adopting the technical scheme, when the fourth triode is not conducted, a release loop is formed, so that a circuit is protected, and the stability of the circuit is improved.
Optionally, the voltage transformation triggering unit comprises a fifteenth resistor and a fifth triode;
one end of the fifteenth resistor is connected with the controller, and the other end of the fifteenth resistor is connected with the base electrode of the fifth triode;
and the collector electrode of the fifth triode is connected with the connection part of the eighth resistor and the ninth resistor, and the emitter electrode is connected with one end of the twelfth resistor.
By adopting the technical scheme, the fifth triode is turned on and the fourth triode is turned off according to the voltage value returned by the controller, so that the sampling voltage value output to the singlechip is changed, and the singlechip can determine whether OT communication is abnormal according to the sampling voltage value.
In another aspect of the application, a device is disclosed, incorporating the OT communication detection circuit described above.
In summary, the present application has at least any of the following beneficial effects:
1. the current output module can control to switch and output two different constant currents to the controller, and the voltage detection module can adjust and output a sampling voltage value to the singlechip according to a voltage value returned by the controller, so that the singlechip can judge whether OT communication is abnormal according to whether the sampling voltage value corresponds to the constant current output by the current output module.
2. After power-on, the first triode is conducted due to forward bias, voltage drop is generated at two ends of the first resistor, so that the second triode is triggered to conduct, and the base current of the first triode is limited to generate limitation after the second triode is conducted, so that the current output by the first triode is kept constant.
3. If the controller does not return the voltage value, the fourth triode is conducted, the fifth triode is closed, and under the condition, a sampling voltage value is output to the singlechip; if the controller returns the voltage value, the fifth triode is turned on and the fourth triode is turned off, so that the sampling voltage value output to the singlechip is changed, and the singlechip can detect different sampling voltage values.
Drawings
FIG. 1 is a diagram of a scenario application of one embodiment of the OT communication detection circuit of the present application;
FIG. 2 is a block diagram of one embodiment of the OT communication detection circuit of the present application;
FIG. 3 is a circuit schematic of a current output module of one embodiment of the OT communication detection circuit of the present application;
fig. 4 is a circuit schematic of a voltage detection module of one embodiment of the OT communication detection circuit of the present application.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a scene application diagram of an embodiment of an OT communication detection circuit of the present application, including a host computer, a test development board, a controller, and a production test fixture. The production test jig supplies power to the controller product through the power supply thimble, the test development board is connected with the production test jig in a wiring way, the current test resistor of the development board is connected in series with the positive electrode of the production test jig in a power supply way, the working current of the product can be tested, the controller product and the test development board are connected through pins with various corresponding functions on the periphery, and the upper computer is communicated with the development board through USB and issues instructions so as to test the controller product rapidly and comprehensively.
The invention relates to a test development board, which mainly comprises a power supply module for supplying power to the whole development board, a USB module for communicating with an upper computer, an MCU module, a wired communication module for communicating with an external 485 (adopting a data acquisition method of an RS-485 serial bus standard), a wireless communication module for communicating with a wireless module, a temperature and humidity detection module for detecting the outside temperature and humidity, an LCD display module for displaying data in standby mode, a current and voltage detection module for detecting the current value and the voltage value of a detected product and a relay detection module for detecting the on-off function of a relay.
Referring to fig. 2, fig. 2 is a block diagram of an embodiment of the OT communication detection circuit of the present application, including a current output module 1, a voltage detection module 2, a controller, and a single chip microcomputer, and the following details are described:
the current output module 1 is used for outputting two constant currents to an external controller and comprises a power supply end, a signal end and a control end, wherein the power supply end is connected with an external direct current signal source, the signal end is used for outputting the constant currents to the controller, and the control end is used for controlling and switching the constant current output value of the current output module 1 through an external single chip microcomputer.
Regarding the current output module 1: the current output module 1 at least comprises 3 switching tubes, wherein the two switching tubes are used for mutually combining and limiting current, so that the output current is fixed on a certain value, and the other switching tubes are controlled to be conducted or disconnected through the MCU, so that the resistance value of the current output module 1 is changed, and the output constant current is adjusted.
The voltage detection module 2 is configured to receive a voltage value returned by the controller, output a sampling voltage to the singlechip according to the returned voltage value, and include a power supply end, a signal end and a detection end, where the power supply end of the voltage detection module is connected to an external direct current signal source, the signal end of the voltage detection module 2 is configured to receive the voltage value returned by the controller, and the detection end is configured to detect whether the communication between the test development board and the controller is abnormal by the singlechip, and control the controller to be turned on or off according to a judgment result.
Regarding the voltage detection module 2: the voltage detection module 2 at least comprises two switching tubes, the two switching tubes are controlled to be conducted in turn according to the difference of voltage values returned by the controller received by the signal end of the voltage detection module 2, when one switching tube is conducted, the other switching tube is closed, the voltage output to the MCU is also different, and the MCU judges whether OT communication is abnormal according to the sampling voltage output by the voltage detection module 2. In this embodiment, the judgment is performed by means of TXRX serial communication, where TX stands for transmission and RX stands for reception, and serial communication refers to serial data transmission, which is to sequentially transmit one bit of information through a single line.
For this embodiment, the current output module 1 sends a signal, the voltage detection module 2 replies a signal, the voltage is 15V-18V for "1",6V-8V for "0", the current is 23mA for "1",7mA for "0", if the current output module 1 sends two different constant currents 7mA/23mA through switching, serial data of "101010" are sent, the voltage detection module 2 should send sampling voltage to the single chip microcomputer correspondingly, and the single chip microcomputer obtains corresponding serial data result of "101010" according to the interval difference of the sampling voltage value. Otherwise, OT communication is considered to be abnormal.
Referring to fig. 3 and 4, fig. 3 is a schematic circuit diagram of a current output module of an embodiment of the OT communication detection circuit of the present application, and fig. 4 is a schematic circuit diagram of a voltage detection module of an embodiment of the OT communication detection circuit of the present application, the current output module 1 includes a current output unit 11 and a current conversion control unit 12; the voltage detection module 2 comprises a voltage detection unit 21 and a voltage transformation triggering unit 22, wherein:
regarding the current output unit 11, the current output unit 11 is configured to output a constant current to the controller, and includes a power supply terminal and a signal terminal, the power supply terminal of the current output unit 11 is connected to the dc signal source, and the signal terminal of the current output unit 11 is configured to output the constant current to the controller, and the following details of the current output unit 11 are described below:
the current output unit comprises a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first triode Q1 and a second triode Q2;
one end of the first resistor R1 is connected with the direct current signal source, and the other end of the first resistor R1 is connected with one end of the second resistor R2 and the emitter of the first triode Q1; the collector electrode of the first triode Q1 is connected with the controller;
the other end of the second resistor R2 is connected with the base electrode of the second triode Q2; an emitter of the second triode Q2 is connected with the direct current signal source, and a collector of the second triode Q2 is connected with one end of the third resistor R3 and one end of the fourth resistor R4;
the other end of the third resistor R3 is connected with the base electrode of the first triode Q1; the other end of the fourth resistor R4 is grounded.
Specifically, the dc signal source in this embodiment is an 18V constant current signal source, and after the circuit is powered on, 18V forms a bias current through the resistor R1, the emitter of the triode Q1, and the base of the triode Q1, so that the triode Q1 generates forward bias conduction, and 18V generates a voltage drop of 0.6V through the resistor R1. In this case, the base of the transistor Q2 is triggered, the transistor Q2 is turned on, the electric signal starts to be output to the ground via the resistor R4, and the base current of the transistor Q1 is thus shunted, so that the transistor Q1 cannot be completely turned on, and the current output to the J23 is limited. Wherein J23 is a 2P seat, the seat is connected with the 2P seat of the controller through an external wiring, J2 of J23 is ground, and J1 is a signal pin.
More specifically, the constant current output in the circuit is determined by the on-voltage difference Vbe of the resistor R1 and the transistor Q2, and assuming that Vbe of the transistor Q2 is 0.7V, the magnitude of the output current in the circuit can be calculated by i=vbe/r1=0.7v/100deg.Ω=0.007A, that is, 7mA, which represents the transmission data "1" in this embodiment.
Regarding the current transformation control unit 12, the current transformation control unit is configured to control and switch the constant current output value of the current output unit by using the single-chip microcomputer, and includes an input end and a control end, where the input end of the current transformation control unit is configured to receive the single-chip microcomputer control signal, and the control end of the current transformation control unit is configured to control and switch the constant current output value of the current output unit according to the single-chip microcomputer control signal, and the following describes the current transformation control unit 22 specifically:
the current transformation control unit 12 comprises a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, a MOS transistor Q3 and a third triode Q4;
one end of the fifth resistor R5 is connected with the direct current signal source, and the other end of the fifth resistor R5 is connected with the grid electrode of the MOS tube Q3 and the collector electrode of the third triode Q4;
one end of a body diode of the MOS tube Q3 is connected with the direct current signal source, and the other end of the body diode is connected with one end of the sixth resistor R6; the other end of the sixth resistor R6 is connected to the other end of the first resistor R1;
the base electrode of the third triode Q4 is connected with one end of the seventh resistor R7, and the emitter electrode is grounded; the other end of the seventh resistor R7 is connected with the singlechip.
Specifically, the on or off of the triode Q4 is controlled by the single chip microcomputer MCU, and in this embodiment, if the MCU outputs a high level, the triode Q4 is turned on; if the MCU outputs a low level, transistor Q4 is turned off. When the transistor Q4 is turned on due to the high level output by the singlechip, the gate voltage of the MOS transistor Q3 is pulled down, so that the body diode of the MOS transistor Q3 is turned on, and in this case, the current output is determined by the resistance value of the resistor R1 and the resistor R6 connected in parallel and the Vbe of the diode Q2. In this embodiment, the resistance value of the resistor R6 is 100deg.OMEGA, and the constant current outputted after parallel connection is 23mA, namely, the transmission data "1".
In one possible embodiment, an electrostatic resistor may also be connected to the current transformation control unit 12, which is specifically described as follows:
the current transformation control unit further comprises an electrostatic resistor ESD1, one end of the electrostatic resistor ESD1 is connected with the other end of the seventh resistor R7, and the other end of the electrostatic resistor ESD1 is grounded.
Specifically, the electrostatic discharge can cause serious damage to the electronic device, electrostatic damage can be effectively prevented by connecting the electrostatic resistor ESD1, and the devices of the singlechip and the back-end circuit are protected.
Regarding the voltage detection unit 21, the voltage detection unit 21 is configured to output a sampling voltage to the single-chip microcomputer, the voltage detection unit 21 includes an input end and an output end, the input end of the voltage detection unit 21 is connected to the voltage transformation triggering unit 22, and the output end of the voltage detection unit 21 is configured to output the sampling voltage to the single-chip microcomputer, which is specifically described as follows:
the voltage detection unit 21 includes an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, and a fourth transistor Q5;
one end of the eighth resistor R8 is connected with the direct current signal source, and the other end of the eighth resistor R8 is connected with one end of the ninth resistor R9; the other end of the ninth resistor R9 is connected with the base electrode of the fourth triode Q5;
one end of the tenth resistor R10 is connected with the direct current signal source, and the other end of the tenth resistor R10 is connected with the collector of the fourth triode Q5 and one end of the eleventh resistor R11; the other end of the eleventh resistor R11 is connected with the singlechip;
an emitter of the fourth triode Q5 is connected to one end of the twelfth resistor R12, and the other end of the twelfth resistor R12 is grounded.
Specifically, after the circuit is powered on, an electrical signal is output to the base of the transistor Q5 through the resistor R8 and the resistor R9, so that the transistor Q5 is turned on. After the triode Q5 is conducted, an electric signal is output to the ground through a resistor R10 and a resistor R12, wherein a sampling voltage is output to the MCU through a resistor R11, and in this case, in the embodiment, the sampling voltage value is between 6V and 8V, and the communication result is 0.
In the voltage detection unit 21, a bleed circuit may be further added to protect components, as described below:
the voltage detection unit 21 further includes a capacitor C1 and a thirteenth resistor R13;
one end of the capacitor C1 is connected to the other end of the eighth capacitor R8, and the other end is connected to the junction of the ninth resistor R9 and the base of the fourth triode Q5;
one end of the thirteenth resistor R13 is connected to the connection between the ninth resistor R9 and the base of the fourth triode Q5, and the other end is grounded.
Specifically, a filtering loop for outputting an interference signal to the ground is formed, so that the stability of a device is prevented from being influenced by the interference signal, and when the triode Q5 is not conducted, a bleeder loop from R13 to the ground is formed, so that the triode Q5 is prevented from being damaged by signal backlog.
In the voltage detection unit 21, a fourteenth resistor R14 may be further included, one end of the fourteenth resistor R14 is connected to the other end of the eleventh resistor R11, and the other end is grounded.
Specifically, when the voltage detection circuit is not electrified, a control level signal input by the singlechip MCU is discharged to the ground through the resistor R14, so that the level signal is prevented from damaging the circuit.
Regarding the voltage transformation triggering unit 22, the voltage transformation triggering unit 22 is configured to receive a voltage value returned by the controller, and switch and output two different voltage values to the voltage detection unit according to the returned voltage value;
the voltage transformation triggering unit 22 includes an input end and an output end, the input end of the voltage transformation triggering unit is used for receiving the voltage value returned by the controller, and the output end of the voltage transformation triggering unit 22 is used for controlling the sampling voltage value output by the voltage detecting unit 21 according to the returned voltage value. The concrete explanation is as follows:
the voltage transformation triggering unit 22 comprises a fifteenth resistor R15 and a fifth triode Q6;
one end of the fifteenth resistor R15 is connected with the controller, and the other end of the fifteenth resistor R is connected with the base electrode of the fifth triode Q6;
the collector of the fifth triode Q6 is connected with the connection part of the eighth resistor R8 and the ninth resistor R9, and the emitter is connected with one end of the twelfth resistor R12.
Specifically, WK is a data line for OT communication, which can receive voltage returned by an external controller, and can also output current to an output end of the controller. When the input voltage WK returned by the external controller is close to 0V, the transistor Q6 is turned off, and at this time, the transistor Q5 is turned on, and the sampled voltage value is explained in the above description of the voltage detection unit 21, which is not described herein again;
when the input voltage WK increases to the base threshold voltage Vp of the transistor Q6, the transistor Q6 starts to turn on, and the base current of the transistor Q5 is divided away, so that the transistor Q5 starts to turn off, and the voltage of the emitter of the transistor Q5 after the turn-off starts to decrease, thereby increasing the voltage difference between the base of the transistor Q6 and the emitter of the transistor Q6, accelerating the conduction of the transistor Q6, and forming positive feedback, which accelerates the turn-off of the transistor Q5, in this case, the sampling voltage value is 15-18V, i.e. the received communication result is "1".
When the input voltage WK falls to 0V, if the voltage value returned by WK falls to 0.6V higher than the emitter voltage of the triode Q6, the triode Q6 starts to be closed, the base current of the triode Q5 divided by the triode Q6 is gradually increased, the triode Q5 is gradually opened, the emitter voltage of the triode Q5 is gradually increased, and positive feedback is formed to promote the acceleration closing of the triode Q6. In this case, the sampled voltage value is 6-8V in this embodiment, that is, the received communication result is "0".
More specifically, the singlechip MCU receives the sampling voltage output by the collector voltage of the triode Q5, and controls the opening or closing of the test development board according to the sampling voltage. In this embodiment, the voltage is 15V-18V representing "1",6V-8V representing "0", the current is 23mA representing "1",7mA representing "0", the variable current control unit 12 switches and sends two different constant currents 7mA/23mA to the controller by changing the resistance value of the current output unit 11, the controller correspondingly returns corresponding voltage values, if serial data of "101010" are sent, the voltage value returned by the controller is received by the variable voltage trigger unit 22, and the on or off of the triode Q5 in the voltage detection unit 21 is correspondingly controlled according to the voltage value, so that different sampling voltage values are sent to the single chip microcomputer MCU, and the single chip microcomputer MCU correspondingly obtains corresponding serial data results of "101010" according to different intervals of the sampling voltage values. If the obtained serial data are not synchronous, the OT communication is considered to be abnormal.
The embodiments of the present invention are all preferred embodiments of the present application, and are not intended to limit the scope of the present application in this way, therefore: all equivalent changes in structure, shape and principle of this application should be covered in the protection scope of this application.

Claims (10)

1. The OT communication detection circuit is applied to a test development board and is characterized in that: the device comprises a current output module and a voltage detection module;
the current output module is used for outputting two constant currents to an external controller and comprises a power supply end, a signal end and a control end, wherein the power supply end is connected with an external direct current signal source, the signal end is used for outputting the constant currents to the controller, and the control end is used for controlling and switching constant current output values of the current output module by an external singlechip;
the voltage detection module is used for receiving the voltage value returned by the controller, outputting a sampling voltage to the singlechip according to the returned voltage value, and comprises a power supply end, a signal end and a detection end, wherein the power supply end of the voltage detection module is connected with an external direct current signal source, the signal end of the voltage detection module is used for receiving the voltage value returned by the controller, and the detection end is used for detecting whether the communication between the test development board and the controller is abnormal or not by the singlechip and controlling the connection or disconnection of the controller according to a judgment result.
2. The OT communication detection circuit of claim 1, wherein: the current output module comprises a current output unit and a variable current control unit; the voltage detection module comprises a voltage detection unit and a voltage transformation triggering unit;
the current output unit is used for outputting constant current to the controller and comprises a power supply end and a signal end, wherein the power supply end of the current output unit is connected with the direct current signal source, and the signal end of the current output unit is used for outputting constant current to the controller;
the variable current control unit is used for controlling and switching the constant current output value of the current output unit by the singlechip and comprises an input end and a control end, wherein the input end of the variable current control unit is used for receiving the singlechip control signal, and the control end of the variable current control unit is used for controlling and switching the constant current output value of the current output unit according to the singlechip control signal;
the voltage detection unit is used for outputting sampling voltage to the singlechip, and comprises an input end and an output end, wherein the input end of the voltage detection unit is connected with the voltage transformation triggering unit, and the output end of the voltage detection unit is used for outputting the sampling voltage to the singlechip;
the voltage transformation triggering unit is used for receiving the voltage value returned by the controller and switching and outputting two different voltage values to the voltage detection unit according to the returned voltage value;
the voltage transformation triggering unit comprises an input end and an output end, wherein the input end of the voltage transformation triggering unit is used for receiving the voltage value returned by the controller, and the output end of the voltage transformation triggering unit is used for controlling the sampling voltage value output by the voltage detection unit according to the returned voltage value.
3. The OT communication detection circuit according to claim 2, wherein: the current output unit comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a first triode and a second triode;
one end of the first resistor is connected with the direct current signal source, and the other end of the first resistor is connected with one end of the second resistor and the emitter of the first triode; the collector electrode of the first triode is connected with the controller;
the other end of the second resistor is connected with the base electrode of the second triode; the emitter of the second triode is connected with the direct current signal source, and the collector of the second triode is connected with one end of the third resistor and one end of the fourth resistor;
the other end of the third resistor is connected with the base electrode of the first triode; the other end of the fourth resistor is grounded.
4. The OT communication detection circuit according to claim 3, wherein: the variable current control unit comprises a fifth resistor, a sixth resistor, a seventh resistor, an MOS tube and a third triode;
one end of the fifth resistor is connected with the direct current signal source, and the other end of the fifth resistor is connected with the grid electrode of the MOS tube and the collector electrode of the third triode;
one end of a body diode of the MOS tube is connected with the direct current signal source, and the other end of the body diode of the MOS tube is connected with one end of the sixth resistor; the other end of the sixth resistor is connected with the other end of the first resistor;
the base electrode of the third triode is connected with one end of the seventh resistor, and the emitter electrode of the third triode is grounded; the other end of the seventh resistor is connected with the singlechip.
5. The OT communication detection circuit of claim 4, wherein: the variable current control unit further comprises an electrostatic resistor, one end of the electrostatic resistor is connected with the other end of the seventh resistor, and the other end of the electrostatic resistor is grounded.
6. The OT communication detection circuit according to claim 2, wherein: the voltage detection unit includes an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, and a fourth triode;
one end of the eighth resistor is connected with the direct current signal source, and the other end of the eighth resistor is connected with one end of the ninth resistor; the other end of the ninth resistor is connected with the base electrode of the fourth triode;
one end of the tenth resistor is connected with the direct current signal source, and the other end of the tenth resistor is connected with the collector electrode of the fourth triode and one end of the eleventh resistor; the other end of the eleventh resistor is connected with the singlechip;
an emitter of the fourth triode is connected with one end of the twelfth resistor, and the other end of the twelfth resistor is grounded.
7. The OT communication detection circuit of claim 6, wherein: the voltage detection unit further includes a capacitor and a thirteenth resistor;
one end of the capacitor is connected with the other end of the eighth capacitor, and the other end of the capacitor is connected with the junction of the ninth resistor and the base electrode of the fourth triode;
one end of the thirteenth resistor is connected with the connection part of the ninth resistor and the base electrode of the fourth triode, and the other end of the thirteenth resistor is grounded.
8. The OT communication detection circuit of claim 6, wherein: the voltage detection unit further includes a fourteenth resistor;
one end of the fourteenth resistor is connected with the other end of the eleventh resistor, and the other end of the fourteenth resistor is grounded.
9. The OT communication detection circuit of claim 6, wherein: the voltage transformation triggering unit comprises a fifteenth resistor and a fifth triode;
one end of the fifteenth resistor is connected with the controller, and the other end of the fifteenth resistor is connected with the base electrode of the fifth triode;
and the collector electrode of the fifth triode is connected with the connection part of the eighth resistor and the ninth resistor, and the emitter electrode is connected with one end of the twelfth resistor.
10. An apparatus, characterized in that: is provided with an OT communication detection circuit as claimed in any one of claims 1-9.
CN202311746176.7A 2023-12-19 2023-12-19 Open temperature control protocol communication detection circuit and device Active CN117434876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311746176.7A CN117434876B (en) 2023-12-19 2023-12-19 Open temperature control protocol communication detection circuit and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311746176.7A CN117434876B (en) 2023-12-19 2023-12-19 Open temperature control protocol communication detection circuit and device

Publications (2)

Publication Number Publication Date
CN117434876A true CN117434876A (en) 2024-01-23
CN117434876B CN117434876B (en) 2024-03-08

Family

ID=89551880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311746176.7A Active CN117434876B (en) 2023-12-19 2023-12-19 Open temperature control protocol communication detection circuit and device

Country Status (1)

Country Link
CN (1) CN117434876B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546483A (en) * 2008-03-26 2009-09-30 中国科学院自动化研究所 System and method for fault diagnosis of traffic signal controller
CN102045207A (en) * 2009-10-14 2011-05-04 中兴通讯股份有限公司 Power supply monitoring method, system and device of communication equipment
US20160028313A1 (en) * 2014-07-24 2016-01-28 Dialog Semiconductor Inc. Secondary-Side Dynamic Load Detection and Communication Device
CN105974260A (en) * 2016-07-06 2016-09-28 成都四威功率电子科技有限公司 Bus communication fault detection protective apparatus and method
US20170292982A1 (en) * 2016-04-11 2017-10-12 Lear Corporation Hvil signal generator and detector with loop diagnostics
US20180183546A1 (en) * 2016-12-22 2018-06-28 Samsung Electronics Co., Ltd. Electronic device and method for detecting error thereof
CN109633371A (en) * 2018-12-10 2019-04-16 国网重庆市电力公司忠县供电分公司 A kind of line current detection method based on wireless communication
CN209248278U (en) * 2018-12-12 2019-08-13 优艾特仪表科技成都有限公司 A kind of wall-mounted furnace controller and wall-hung boiler with Internet of Things network telecommunication function
CN113433899A (en) * 2021-06-16 2021-09-24 南京航空航天大学 Signal detection and control method based on serial communication
KR20220132159A (en) * 2021-03-23 2022-09-30 (주)화인 Heater disconnection detecting system and detecting method for parallel-serial connection
CN218473155U (en) * 2022-09-22 2023-02-10 国网湖南省电力有限公司 Current detection circuit and fault diagnosis device for HPLC communication unit
CN115833875A (en) * 2022-01-18 2023-03-21 宁德时代新能源科技股份有限公司 Daisy chain communication fault detection method, positioning detection method and circuit

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546483A (en) * 2008-03-26 2009-09-30 中国科学院自动化研究所 System and method for fault diagnosis of traffic signal controller
CN102045207A (en) * 2009-10-14 2011-05-04 中兴通讯股份有限公司 Power supply monitoring method, system and device of communication equipment
US20160028313A1 (en) * 2014-07-24 2016-01-28 Dialog Semiconductor Inc. Secondary-Side Dynamic Load Detection and Communication Device
US20170292982A1 (en) * 2016-04-11 2017-10-12 Lear Corporation Hvil signal generator and detector with loop diagnostics
CN105974260A (en) * 2016-07-06 2016-09-28 成都四威功率电子科技有限公司 Bus communication fault detection protective apparatus and method
US20180183546A1 (en) * 2016-12-22 2018-06-28 Samsung Electronics Co., Ltd. Electronic device and method for detecting error thereof
CN109633371A (en) * 2018-12-10 2019-04-16 国网重庆市电力公司忠县供电分公司 A kind of line current detection method based on wireless communication
CN209248278U (en) * 2018-12-12 2019-08-13 优艾特仪表科技成都有限公司 A kind of wall-mounted furnace controller and wall-hung boiler with Internet of Things network telecommunication function
KR20220132159A (en) * 2021-03-23 2022-09-30 (주)화인 Heater disconnection detecting system and detecting method for parallel-serial connection
CN113433899A (en) * 2021-06-16 2021-09-24 南京航空航天大学 Signal detection and control method based on serial communication
CN115833875A (en) * 2022-01-18 2023-03-21 宁德时代新能源科技股份有限公司 Daisy chain communication fault detection method, positioning detection method and circuit
CN218473155U (en) * 2022-09-22 2023-02-10 国网湖南省电力有限公司 Current detection circuit and fault diagnosis device for HPLC communication unit

Also Published As

Publication number Publication date
CN117434876B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
US9906014B2 (en) Circuit protection device with automatic fault monitoring and detection function
CN103683242A (en) Load protection circuit
US20240128744A1 (en) Electrostatic discharge (esd) protection circuit with disable feature based on hot-plug condition detection
CN104466886A (en) Load protection circuit and load protection method
CN110988540A (en) Automatic power-on and power-off testing system of Internet of things communication equipment
CN110673054B (en) DC/DC power supply test system and aging test method of DC/DC power supply
EP4027160A1 (en) Universal plug status detection circuit
CN117434876B (en) Open temperature control protocol communication detection circuit and device
CN105162198B (en) A kind of charging electric vehicle control guidance circuit based on analog switch
CN108132445B (en) Detection device of linear power supply
CN112180183A (en) State monitoring circuit and method for vehicle-mounted electronic equipment
CN104577961B (en) Over-pressed power-off protecting circuit
CN205847076U (en) AC D/C power
CN214122434U (en) Circuit state detection circuit with circuit control device and circuit system
CN112134257B (en) DC power supply short-circuit protection circuit
CN204269775U (en) Subway train traction module wiring board detects integrated machine equipment
CN110780108A (en) Peak detection unit, detection system and detection method
CN215682111U (en) Power output bus circuit
CN211603320U (en) Peak detection unit and detection system
CN206148924U (en) Fall circuit
CN211479273U (en) Wireless forwarding device
CN212410713U (en) Testing device for electrical fault injection
CN215931998U (en) Control circuit for monitoring and measuring current of display module
CN220491221U (en) Control circuit capable of automatically adjusting test temperature
CN112848891B (en) Heating control circuit of vehicle-mounted equipment

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