A high-reliability M-Bus host circuit with large drive current
By designing the control module, sampling resistor circuit and protection circuit in the M-Bus host circuit, the problem of poor reliability and anti-interference ability under high driving current in the existing technology is solved, and M-Bus with high reliability and high anti-interference ability is realized. -Bus host circuit supports multi-baud rate transmission and adapts to different temperature environments.
Patent Information
- Application Number
- CN202211235587.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-10-10
AI Technical Summary
The existing M-Bus host circuit has poor reliability and anti-interference ability under high driving current conditions, cannot support low and high baud rate transmission at the same time, and the communication is unstable in high and low temperature environments, resulting in low system reliability.
A large drive current and high reliability M-Bus host circuit is designed, including a control module, serial port connection module, GPIO interface module, power module, sampling resistor circuit, receiving demodulation and detection voltage output circuit, overcurrent detection circuit and M -Bus protection circuit, receiving shielding circuit to eliminate noise when sending data through the serial port, using a high slope operational amplifier to detect the resistor voltage difference to achieve overcurrent, short circuit and hiccup protection.
Improved driving capability and working reliability, enhanced anti-interference ability, supports high and low baud rate transmission, reduced transceiver switching delay and temperature limit, achieved high reliability and high anti-interference ability, and can drive 326 slaves .
Smart Images

Figure CN115576244B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of remote data transmission of instrument measurement, and in particular relates to a high-reliability M-Bus host circuit with large drive current. Background Art
[0002] M-Bus, or Meter-Bus, is a bus protocol designed specifically for remote data transmission of meters and has been widely used in the field of heat metering. In the existing M-Bus host circuit, a resistor with a resistance value of tens or hundreds of ohms is connected in series on the bus to ensure that the receiving circuit can correctly demodulate the data. However, the power and heat limitations of the resistor will result in a small driving current for the host circuit. If the slave needs to draw power from the host to work, the maximum number of slaves allowed to be connected to the M-Bus bus will be small, usually less than 100; if the slave does not need to draw power from the host, each slave needs to be powered by a separate battery, and the cost of the slave is very high and the maintenance cost is high. According to the M-Bus standard, a single load is a 1.5mA constant current load, but in actual use, due to anti-interference reasons, the host and several slaves have EMC protection devices, which have high voltage and large capacitance, resulting in a large driving current and a large number of slaves. The bus current will fluctuate higher than 20mA, causing the receiving circuit to receive errors, and the host reliability and anti-interference ability are poor.
[0003] The existing host receiving circuit design is to connect a resistor in series with the M-Bus bus. When the slave sends data, the current changes and causes a slight voltage fluctuation on the resistor. The receiving circuit detects the voltage at one end of the resistor and generates a relatively constant voltage through the Schottky diode and capacitor, and then compares it with itself to demodulate the received data. This design will cause the bus baud rate to be unable to support low baud rate and high baud rate transmission at the same time, and it cannot adapt to high and low temperature environments. It is only suitable for communication within a narrow temperature fluctuation range at a specific baud rate. The temperature characteristics of Schottky diodes and transistors will cause threshold offsets; when the host drive current is large and the number of slaves is large, the host sends high and low levels, which will cause the actual current to fluctuate greatly, resulting in the receiving end receiving garbled characters and being unable to receive data for tens or even hundreds of ms after the data transmission stops, and the system reliability is low. Therefore, there is an urgent need for a high-drive current and high-reliability M-Bus host circuit to meet the needs. Summary of the invention
[0004] The object of the present invention is to provide a high-reliability M-Bus host circuit with large drive current, which can effectively improve the drive capability and working reliability.
[0005] To achieve the object, the present invention provides a high-reliability M-Bus host circuit with large drive current, including a control module, a serial port connection module connected to the control module, and a GPIO interface module connected to the control module, and also includes a power supply module for increasing the voltage required by the circuit, a sampling resistor circuit for sampling a signal sent from a machine, a receiving demodulation and detection voltage output circuit connected to the sampling resistor circuit for demodulating the sampling signal of the sampling resistor circuit and providing an overcurrent protection detection voltage according to the sampling signal of the sampling resistor circuit, and an overcurrent detection circuit connected to the receiving demodulation and detection voltage output circuit for overcurrent detection. The control module is connected to the sampling resistor circuit through the serial port connection module, the level conversion circuit and the M-Bus protection circuit in sequence to form a signal sending circuit. The sampling resistor circuit is connected to the control module through the receiving demodulation and detection voltage output circuit and the serial port connection module in sequence to form a signal receiving circuit. The control module is connected to the overcurrent detection circuit and the M-Bus protection circuit through the GPIO interface module to form an intelligent protection circuit.
[0006] Preferably, the sampling resistor circuit includes an M-Bus bus interface and a thirty-eighth resistor for sampling, the thirty-eighth resistor is connected to the positive electrode of the M-Bus bus interface through a fuse, the connection end of the thirty-eighth resistor and the fuse is connected to the ground wire through a ninth TVS tube and a fifty-seventh capacitor respectively, the two ends of the thirty-eighth resistor are respectively connected to the receiving demodulation and detection voltage output circuit, and the end opposite to the connection end of the thirty-eighth resistor and the fuse is connected to the M-Bus protection circuit.
[0007] Preferably, the receiving demodulation and detection voltage output circuit includes a sixth operational amplifier, a ninth MOS tube, an eighth triode, a tenth voltage regulator tube, a first NAND gate and a second NAND gate, the B operational amplifier in-phase input terminal of the sixth operational amplifier is connected to the opposite end of the thirty-eighth resistor and the fuse connection terminal through a fifty-sixth resistor and is also connected to the ground wire through a fifty-seventh resistor, the B operational amplifier inverting input terminal of the sixth operational amplifier is connected to the connection end of the thirty-eighth resistor and the fuse through a fifty-eighth resistor, the B operational amplifier inverting input terminal of the sixth operational amplifier is respectively connected to the B operational amplifier output terminal of the sixth operational amplifier and the overcurrent detection circuit through a fifty-ninth resistor, the B operational amplifier output terminal of the sixth operational amplifier is sequentially connected to the A operational amplifier inverting input terminal of the sixth operational amplifier through a sixty-third DC blocking capacitor and a fifty-fifth resistor, and the signal sending end of the serial port connection module is connected to the signal sending end of the serial port connection module through a sixty-fifth resistor. The resistors are respectively connected to the gate of the ninth MOS tube and one input end of the second NAND gate, so that a shielded operational amplifier output circuit for the B operational amplifier of the sixth operational amplifier is formed through the ninth MOS tube, the eighth triode, the tenth voltage regulator and the sixtieth DC bias resistor; the A operational amplifier in-phase input end of the sixth operational amplifier is connected to the power module through the fifty-second resistor and the forty-eighth resistor, the A operational amplifier output end of the sixth operational amplifier is connected to the two input ends of the first NAND gate through the fifty-third resistor and the fifty-first resistor in sequence, the output end of the first NAND gate is connected to the other input end of the second NAND gate, the output end of the second NAND gate is connected to the signal receiving end of the serial port connection module and is respectively connected to the ground line through the sixty-second resistor and the sixty-sixth capacitor, so that a receiving shielding circuit when sending data through the serial port is formed through the first NAND gate, the second NAND gate, the sixty-second resistor and the sixty-sixth capacitor.
[0008] Preferably, the overcurrent detection circuit is provided with a fourth operational amplifier and a fifth diode, the inverting input terminal of the A operational amplifier of the fourth operational amplifier is connected to the cathode of the fifth diode through a thirty-third resistor and is also connected to the ground through a thirty-fourth resistor, the anode of the fifth diode is connected to the receiving demodulation and detection voltage output circuit, the cathode of the fifth diode is connected to the ground through a forty-eighth capacitor and a forty-ninth capacitor respectively, the A operational amplifier non-inverting input terminal of the fourth operational amplifier is connected to the power supply module through a thirty-second resistor, the connection terminal of the thirty-second resistor and the power supply module is connected to the ground through a forty-seventh capacitor, the A operational amplifier output terminal of the fourth operational amplifier is connected to the M-Bus protection circuit and is connected to the GPIO interface module through a fourth diode, the anode of the GPIO interface module is connected to the GPIO interface module and is connected to the power supply module through the thirtieth resistor.
[0009] Preferably, the M-Bus protection circuit includes a fourth MOS tube, a sixth triode and a tenth MOS tube, the source of the fourth MOS tube is connected to the level conversion circuit, the drain of the fourth MOS tube is connected to the sampling resistor circuit, the gate of the fourth MOS tube is connected to the source of the fourth MOS tube through a thirty-seventh resistor; the drain of the tenth MOS tube is connected to the gate of the fourth MOS tube through a thirty-ninth resistor, the source of the tenth MOS tube is connected to the ground line, the gate of the tenth MOS tube is connected to the overcurrent detection circuit through a sixty-seventh resistor and is connected to the power module through a sixty-eighth resistor, and the tenth MO The gate of the S tube is also connected to the ground through the seventieth capacitor, and the thirteenth Schottky diode is connected in parallel at both ends of the sixty-seventh resistor, thereby forming an overcurrent protection control circuit; the collector of the sixth transistor is connected to the gate of the fourth MOS tube through the fortieth resistor, the emitter of the sixth transistor is connected to the ground and connected to the base of the sixth transistor through the forty-third resistor, the base of the sixth transistor is connected to the GPIO interface module through the forty-second resistor, the fifty-sixth capacitor, and the forty-first resistor in sequence, and the connecting end of the forty-first resistor and the GPIO interface module is connected to the ground through the fifty-eighth capacitor, thereby forming a hiccup protection control circuit.
[0010] Preferably, the power supply module includes a 12V to 24V boost circuit for providing a 24V DC voltage, a 12V to 36V boost circuit for providing a 36V DC voltage, a 12V to 3.3V step-down circuit for providing a 3.3V DC voltage, and a 3.3V to 3V step-down circuit for providing a 3V DC voltage, and the 12V to 3.3V step-down circuit is connected to the 3.3V to 3V step-down circuit.
[0011] Preferably, the 12V to 36V boost circuit is provided with a first boost PWM control chip, the 12V to 24V boost circuit is provided with a second boost PWM control chip, and the 12V to 3.3V buck circuit is provided with a synchronous buck converter.
[0012] Preferably, the level conversion circuit is provided with a third MOS tube and a fifth MOS tube, the gate of the fifth MOS tube is connected to the signal sending end of the serial port connection module, the source of the fifth MOS tube is connected to the ground line, the drain of the fifth MOS tube is connected to the gate of the third MOS tube through a thirty-sixth resistor, the source of the third MOS tube is connected to the 12V to 36V boost circuit and is connected to the gate of the third MOS tube through a thirty-fifth resistor, the drain of the third MOS tube is connected to the M-Bus protection circuit and is connected to the 12V to 24V boost circuit through a seventh diode, and the cathode of the seventh diode is connected to the drain of the third MOS tube.
[0013] Compared with the prior art, the present invention has the following beneficial effects:
[0014] In the present invention, the control module is connected to the sampling resistor circuit through the serial port connection module, the level conversion circuit and the M-Bus protection circuit to form a signal sending circuit, the sampling resistor circuit is connected to the control module through the receiving demodulation and detection voltage output circuit and the serial port connection module to form a signal receiving circuit, and the control module is connected to the overcurrent detection circuit and the M-Bus protection circuit through the GPIO interface module to form an intelligent protection circuit, thereby effectively improving the driving ability and working reliability. In the present invention, the receiving shielding circuit can eliminate and shield noise and self-transmitting and self-receiving garbled codes when the serial port sends data, thereby improving reliability and anti-interference ability. In the present invention, the fourth operational amplifier and the sixth operational amplifier use high-slope operational amplifiers with sampling resistors, and the voltage difference between the two ends of the resistor is detected and amplified, which successfully eliminates the problem of duty cycle change, avoids the problem of using Schottky diodes, energy storage capacitors, transistors or comparators to detect and receive data, solves the problem of not being able to adapt high and low baud rates to a single device, reduces the delay of sending and receiving switching, and temperature limits; improves system reliability and anti-interference ability. The protection function in the present invention can realize overcurrent protection, short circuit protection, hiccup protection, software detection and reporting alarm and remote control functions, which improves the reliability of the system. The present invention provides high-reliability performance with a large drive current of up to 490mA. According to the standard slave current of 1.5mA, it can drive up to 326 slaves, meeting the design purpose of 256 slave drive capability and solving the problem of insufficient drive capability of the M-Bus host. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a circuit structure block diagram of the present invention;
[0016] Figure 2 It is a structural schematic diagram of the receiving demodulation and detection voltage output circuit in the present invention;
[0017] Figure 3 is a circuit structure block diagram of the overcurrent detection circuit in the present invention;
[0018] Figure 4 is a circuit structure block diagram of the sampling resistor circuit in the present invention;
[0019] Figure 5 is a circuit structure block diagram of the M-Bus protection circuit in the present invention;
[0020] Figure 6 is a circuit structure block diagram of the level conversion circuit in the present invention;
[0021] Figure 7 The circuit structure block diagram of the 12V to 36V boost circuit in the present invention;
[0022] Figure 8The circuit structure block diagram of the 12V to 24V boost circuit in the present invention;
[0023] Fig. 9 This is a circuit structure block diagram of a 12V to 3.3V step-down circuit in the present invention;
[0024] Fig.10 It is a circuit structure block diagram of the 3.3V to 3V step-down circuit in the present invention;
[0025] Fig.11 It is a circuit structure block diagram of the serial port connection module in the present invention;
[0026] Fig.12 This is a circuit structure block diagram of the GPIO interface module in the present invention. DETAILED DESCRIPTION
[0027] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following.
[0028] like Figure 1-12 As shown, the present invention provides a high-reliability M-Bus host circuit with large drive current, including a control module 1, a serial port connection module 2 connected to the control module 1, and a GPIO interface module 3 connected to the control module 1, and also includes a power supply module 4 for increasing the voltage required by the circuit, a sampling resistor circuit 5 for sampling a signal sent from the machine, a receiving demodulation and detection voltage output circuit 6 connected to the sampling resistor circuit 5 for demodulating the sampling signal of the sampling resistor circuit 5 and providing an overcurrent protection detection voltage according to the sampling signal of the sampling resistor circuit 5, and an overcurrent detection circuit 7 connected to the receiving demodulation and detection voltage output circuit 6 for overcurrent detection , an M-Bus protection circuit 8 and a level conversion circuit 9 for converting the level of a sending signal, which are respectively connected to the control module 1 and the overcurrent detection circuit 7 for overcurrent or short-circuit protection and hiccup protection; the control module 1 is connected to the sampling resistor circuit 5 through the serial port connection module 2, the level conversion circuit 9 and the M-Bus protection circuit 8 in sequence to form a signal sending circuit; the sampling resistor circuit 5 is connected to the control module 1 through the receiving demodulation and detection voltage output circuit 6 and the serial port connection module 2 in sequence to form a signal receiving circuit; the control module 1 is connected to the overcurrent detection circuit 7 and the M-Bus protection circuit 8 through the GPIO interface module 3 to form an intelligent protection circuit.
[0029] In this embodiment, the control module 1 is an MCU or a CPU. The serial port connection module 2 and the GPIO interface module 3 have the same structure. In the serial port connection module 2, J2 is a socket, FB1 is a magnetic bead filter, and C43 is a filter capacitor.
[0030] The sampling resistor circuit 5 includes an M-Bus bus interface J3 and a thirty-eighth resistor R38 for sampling. The thirty-eighth resistor R38 is connected to the positive electrode of the M-Bus bus interface J3 through a fuse F1. The connection ends of the thirty-eighth resistor R38 and the fuse F1 are connected to the ground wire through the ninth TVS tube D9 and the fifty-seventh capacitor C57, respectively. The two ends of the thirty-eighth resistor R38 are respectively connected to the receiving demodulation and detection voltage output circuit 6, and the opposite end of the connection end of the thirty-eighth resistor R38 and the fuse F1 is connected to the M-Bus protection circuit 8. In this embodiment, the fifty-seventh capacitor C57 is a high-voltage EMC protection capacitor. Pin 1 of the M-Bus bus interface J3 is the positive electrode of the M-Bus bus, and pin 2 is the negative electrode of the M-Bus bus, and the negative electrode is directly grounded. The AC signal of the voltage across the thirty-eighth resistor R38 is a useful signal sent from the machine to the host. At the same time, the value of the voltage across the thirty-eighth resistor R38 divided by the resistance value is the driving current value on the M-Bus bus. The fuse F1 is used for backup overcurrent protection.
[0031] The receiving demodulation and detection voltage output circuit 6 includes a sixth operational amplifier U6, a ninth MOS tube Q9, an eighth transistor Q8, a tenth voltage regulator tube D10, a first NAND gate U5D and a second NAND gate U5C. The B operational amplifier non-inverting input terminal of the sixth operational amplifier U6 is connected to the opposite end of the thirty-eighth resistor R38 and the connection end of the fuse F1 through a fifty-sixth resistor R56 and is also connected to the ground line through a fifty-seventh resistor R57. The B operational amplifier inverting input terminal of the sixth operational amplifier U6 is connected to the thirty-eighth resistor R38 and the connection end of the fuse F1 through a fifty-sixth resistor R56 and is also connected to the ground line through a fifty-seventh resistor R57. The eighth resistor R38 is connected to the connection end of the fuse F1, the B op amp inverting input end of the sixth operational amplifier U6 is respectively connected to the B op amp output end of the sixth operational amplifier U6 and the overcurrent detection circuit 7 through the fifty-ninth resistor R59, the B op amp output end of the sixth operational amplifier U6 is sequentially connected to the A op amp inverting input end of the sixth operational amplifier U6 through the sixty-third DC blocking capacitor C63 and the fifty-fifth resistor R55, and the signal sending end of the serial port connection module 2 is respectively connected to the gate of the ninth MOS tube Q9 through the sixty-fifth resistor R65. The ninth MOS tube Q9, the eighth transistor Q8, the tenth voltage regulator tube D10 and the sixtieth DC bias resistor R60 form a shielded operational amplifier output circuit for the B operational amplifier of the sixth operational amplifier U6, thereby improving the ability to shield noise during transmission and preventing error codes from being received; the A operational amplifier non-inverting input terminal of the sixth operational amplifier U6 is connected to the power module 4 through the fifty-second resistor R52 and the forty-eighth resistor R48, and the A operational amplifier output terminal of the sixth operational amplifier U6 is connected to the power module 4 through the fifty-third ... Resistor R53 and the fifty-first resistor R51 are connected to two input ends of the first NAND gate U5D, the output end of the first NAND gate U5D is connected to the other input end of the second NAND gate U5C, the output end of the second NAND gate U5C is connected to the signal receiving end of the serial port connection module 2 and is connected to the ground line through the sixty-second resistor R62 and the sixty-sixth capacitor C66 respectively, thereby forming a receiving shielding circuit when the serial port sends data through the first NAND gate U5D, the second NAND gate U5C, the sixty-second resistor R62 and the sixty-sixth capacitor C66.
[0032] In this embodiment, the sixth operational amplifier U6 is a high slope dual channel operational amplifier. Only by using a high slope operational amplifier can the output high and low level time match the baud rate, and no large baud rate deviation occurs. The fifty-sixth resistor R56 and the fifty-seventh resistor R57 are used to provide an amplification bias reference voltage. The fifty-eighth resistor R58 and the fifty-ninth resistor R59 are the B operational amplifier output amplification feedback resistors of the sixth operational amplifier U6. The B operational amplifier output voltage of the operational amplifier U6 is 14 times the voltage across the thirty-eighth resistor R38. Its DC output voltage is used for overcurrent protection detection voltage, and its AC output voltage is the valid data sent by the M-Bus slave. The amplitude of the AC signal is R38*0.015*14=1.05V, and this voltage is then compared and amplified by the A operational amplifier of the sixth operational amplifier U6. The twelfth Schottky diode D12 is connected in parallel at both ends of the sixty-fifth resistor R65, the sixty-fifth resistor R65 is connected to the gate of the ninth MOS tube Q9 through the sixty-sixth resistor R66, and the connecting end of the sixty-fifth resistor R65 and the sixty-sixth resistor R66 is connected to the ground line through the sixty-fifth capacitor C65, forming a fast pull-down and delayed pull-up circuit controlled by the serial port transmission, which is used to eliminate the serial port of the control module 1 receiving error codes when sending data, thereby improving system reliability.
[0033] The overcurrent detection circuit 7 is provided with a fourth operational amplifier U4 and a fifth diode D5. The inverting input terminal of the A operational amplifier of the fourth operational amplifier U4 is connected to the cathode of the fifth diode D5 through the thirty-third resistor R33 and is also connected to the ground through the thirty-fourth resistor R34. The anode of the fifth diode D5 is connected to the receiving demodulation and detection voltage output circuit 6. The cathode of the fifth diode D5 is connected to the ground through the forty-eighth capacitor C48 and the forty-ninth capacitor C49 respectively. The A operational amplifier non-inverting input terminal of the fourth operational amplifier U4 is connected to the power module 4 through the thirty-second resistor R32. The connection terminal of the thirty-second resistor R32 and the power module 4 is connected to the ground through the forty-seventh capacitor C47. The A operational amplifier output terminal of the fourth operational amplifier U4 is connected to the M-Bus protection circuit 8 and is connected to the GPIO interface module 3 through the fourth diode D4. The anode of the GPIO interface module 3 is connected to the GPIO interface module 3 and is connected to the power module 4 through the thirtieth resistor R30.
[0034] The M-Bus protection circuit 8 includes a fourth MOS transistor Q4, a sixth triode Q6 and a tenth MOS transistor Q10. The source of the fourth MOS transistor Q4 is connected to the level conversion circuit 9, the drain of the fourth MOS transistor Q4 is connected to the sampling resistor circuit 5, and the gate of the fourth MOS transistor Q4 is connected to the source of the fourth MOS transistor Q4 through a thirty-seventh resistor R37; the drain of the tenth MOS transistor Q10 is connected to the gate of the fourth MOS transistor Q4 through a thirty-ninth resistor R39, the source of the tenth MOS transistor Q10 is connected to the ground line, the gate of the tenth MOS transistor Q10 is connected to the overcurrent detection circuit 7 through a sixty-seventh resistor R67 and is connected to the power module 4 through a sixty-eighth resistor R68, and the gate of the tenth MOS transistor Q10 is connected to the overcurrent detection circuit 7 through a sixty-seventh resistor R67 and is connected to the power module 4 through a sixty-eighth resistor R68. The 6th transistor Q6 is connected to the ground line through the 70th capacitor C70, and the 67th resistor R67 is connected in parallel with the 13th Schottky diode D13, thereby forming an overcurrent protection control circuit; the collector of the 6th transistor Q6 is connected to the gate of the 4th MOS transistor Q4 through the 40th resistor R40, the emitter of the 6th transistor Q6 is connected to the ground line and connected to the base of the 6th transistor Q6 through the 43rd resistor R43, the base of the 6th transistor Q6 is connected to the GPIO interface module 3 through the 42nd resistor R42, the 56th capacitor C56, and the 41st resistor R41 in sequence, and the connection end of the 41st resistor R41 and the GPIO interface module 3 is connected to the ground line through the 58th capacitor C58, thereby forming a hiccup protection control circuit. The 37th resistor R37 is connected in parallel with the 13th Schottky diode D13.
[0035] In the embodiment of this city, the activation of the hiccup protection is controlled by software. The fourth operational amplifier U4 is a dual-channel voltage comparator. When the current on the sampling resistor reaches 490mA, the fourth operational amplifier U4 will detect overcurrent, and the fourth operational amplifier U4 outputs 0V. When the current is detected to exceed 490mA, whether it is overcurrent or direct short circuit, the power supply will be turned off within a few ms and the overcurrent status will be reported to the control module 1. The hiccup and interval time are set by the sixty-eighth resistor R68 and the seventyth capacitor C70. Once the current is overcurrent or short-circuited, it is quickly turned off through the thirteenth Schottky diode D13, thereby maximizing the protection of components and improving system reliability.
[0036] The power module 4 includes a 12V to 24V boost circuit for providing a 24V DC voltage, a 12V to 36V boost circuit for providing a 36V DC voltage, a 12V to 3.3V step-down circuit for providing a 3.3V DC voltage, and a 3.3V to 3V step-down circuit for providing a 3V DC voltage. The 12V to 3.3V step-down circuit is connected to the 3.3V to 3V step-down circuit.
[0037] The 12V to 36V boost circuit is provided with a first boost PWM control chip U1, the 12V to 24V boost circuit is provided with a second boost PWM control chip U2, and the 12V to 3.3V step-down circuit is provided with a synchronous step-down converter U3. In this embodiment, a 12V DC power supply is connected through the power input socket J1. A third voltage regulator D3 is provided in the 3.3V to 3V step-down circuit for output voltage stabilization. The 12V to 36V boost circuit has the same principle as the 12V to 24V boost circuit. In the 12V to 36V boost circuit, the first inductor L1 is a boost energy storage inductor that forms a loop compensation resistor-capacitor network through the tenth resistor R10, the fourteenth capacitor C14 and the fifteenth capacitor C15; a voltage feedback network is formed through the fourth capacitor R4, the seventh resistor R7 and the ninth resistor R9. In the 12V to 3.3V step-down circuit, the third inductor L3 is a step-down energy storage inductor, the twenty-fourth resistor R24, the twenty-third resistor R23 and the twenty-fifth resistor R25 form a voltage feedback network, the thirty-sixth capacitor C36 is a dynamic adjustment capacitor, and the thirty-seventh capacitor C37 to the forty-first capacitor C41 are output energy storage filter capacitors.
[0038] The level conversion circuit 9 is provided with a third MOS transistor Q3 and a fifth MOS transistor Q5, the gate of the fifth MOS transistor Q5 is connected to the signal sending end of the serial port connection module 2, the source of the fifth MOS transistor Q5 is connected to the ground line, the drain of the fifth MOS transistor Q5 is connected to the gate of the third MOS transistor Q3 through the thirty-sixth resistor R36, the source of the third MOS transistor Q3 is connected to the 12V to 36V boost circuit and is connected to the gate of the third MOS transistor Q3 through the thirty-fifth resistor R35, the drain of the third MOS transistor Q3 is connected to the M-Bus protection circuit 8 and is connected to the 12V to 24V boost circuit through the seventh diode D7, and the cathode of the seventh diode D7 is connected to the drain of the third MOS transistor Q3. In this embodiment, the control module 1 converts the high level of 3.3V into the high level of 36V sent by M-BUS, and converts the low level of 0V into the high level of 24V sent by M-BUS, and the seventh diode D7 is an anti-reverse diode.
[0039] In this embodiment, when receiving a signal, the sampling resistor circuit 5 performs sampling, and then transmits the signal to the control module 1 through the receiving demodulation and detection voltage output circuit 6 and the serial port connection module 2 in sequence. When sending a signal, the control module 1 sequentially transmits the signal to the sampling resistor circuit 5 through the serial port connection module 2, the level conversion circuit 9 and the M-Bus protection circuit 8. At the same time, intelligent protection is performed in real time through the overcurrent detection circuit 7 and the M-Bus protection circuit 8, thereby effectively improving the driving capability and working reliability.
[0040] The above are only preferred embodiments of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the present invention through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art do not depart from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.
Claims
1. A high-drive current and high-reliability M-Bus host circuit, comprising a control module (1), a serial port connection module (2) connected to the control module (1), and a GPIO interface module (3) connected to the control module (1). It is characterized in that The device also includes a power supply module (4) for increasing the voltage required by the circuit, a sampling resistor circuit (5) for sampling a signal sent from the machine, a receiving demodulation and detection voltage output circuit (6) connected to the sampling resistor circuit (5) for demodulating the sampling signal of the sampling resistor circuit (5) and providing an overcurrent protection detection voltage according to the sampling signal of the sampling resistor circuit (5), an overcurrent detection circuit (7) connected to the receiving demodulation and detection voltage output circuit (6) for overcurrent detection, and an M-Bus protection circuit (8) respectively connected to the control module (1) and the overcurrent detection circuit (7) for overcurrent or short circuit protection and hiccup protection. ) and a level conversion circuit (9) for converting the level of a transmission signal, the control module (1) is connected to the sampling resistor circuit (5) in sequence through the serial port connection module (2), the level conversion circuit (9) and the M-Bus protection circuit (8) to form a signal transmission circuit, the sampling resistor circuit (5) is connected to the control module (1) in sequence through the receiving demodulation and detection voltage output circuit (6) and the serial port connection module (2) to form a signal receiving circuit, and the control module (1) is connected to the overcurrent detection circuit (7) and the M-Bus protection circuit (8) respectively through the GPIO interface module (3) to form an intelligent protection circuit; The overcurrent detection circuit (7) is provided with a fourth operational amplifier (U4) and a fifth diode (D5); the A operational amplifier inverting input terminal of the fourth operational amplifier (U4) is connected to the cathode of the fifth diode (D5) through a thirty-third resistor (R33) and is also connected to the ground through a thirty-fourth resistor (R34); the anode of the fifth diode (D5) is connected to the receiving demodulation and detection voltage output circuit (6); the cathode of the fifth diode (D5) is connected to the ground through a forty-eighth capacitor (C48) and a forty-ninth capacitor (C49), respectively; the fourth operational amplifier The A op amp non-inverting input terminal of the (U4) is connected to the power module (4) via a thirty-second resistor (R32); the connection terminal of the thirty-second resistor (R32) and the power module (4) is connected to the ground wire via a forty-seventh capacitor (C47); the A op amp output terminal of the fourth operational amplifier (U4) is connected to the M-Bus protection circuit (8) and is connected to the GPIO interface module (3) via a fourth diode (D4); the positive electrode of the GPIO interface module (3) is connected to the GPIO interface module (3) and is connected to the power module (4) via a thirty-second resistor (R30); The M-Bus protection circuit (8) comprises a fourth MOS tube (Q4), a sixth triode (Q6) and a tenth MOS tube (Q10); the source of the fourth MOS tube (Q4) is connected to the level conversion circuit (9); the drain of the fourth MOS tube (Q4) is connected to the sampling resistor circuit (5); the gate of the fourth MOS tube (Q4) is connected to the source of the fourth MOS tube (Q4) through a thirty-seventh resistor (R37); the drain of the tenth MOS tube (Q10) is connected to the gate of the fourth MOS tube (Q4) through a thirty-ninth resistor (R39); the source of the tenth MOS tube (Q10) is connected to the ground wire; the gate of the tenth MOS tube (Q10) is connected to the overcurrent detection circuit (7) through a sixty-seventh resistor (R67) and is connected to the power module (4) through a sixty-eighth resistor (R68); The gate of the transistor (Q10) is also connected to the ground line through the seventieth capacitor (C70), and the two ends of the sixty-seventh resistor (R67) are connected in parallel with the thirteenth Schottky diode (D13), thereby forming an overcurrent protection control circuit; the collector of the sixth triode (Q6) is connected to the gate of the fourth MOS tube (Q4) through the fortieth resistor (R40), the emitter of the sixth triode (Q6) is connected to the ground line and connected to the base of the sixth triode (Q6) through the forty-third resistor (R43), the base of the sixth triode (Q6) is connected to the GPIO interface module (3) through the forty-second resistor (R42), the fifty-sixth capacitor (C56), and the forty-first resistor (R41) in sequence, and the connection end of the forty-first resistor (R41) and the GPIO interface module (3) is connected to the ground line through the fifty-eighth capacitor (C58), thereby forming a hiccup protection control circuit.
2. A high-drive current and high-reliability M-Bus host circuit according to claim 1, It is characterized in that The sampling resistor circuit (5) comprises an M-Bus bus interface (J3) and a thirty-eighth resistor (R38) for sampling, wherein the thirty-eighth resistor (R38) is connected to the positive electrode of the M-Bus bus interface (J3) via a fuse (F1), the connection end of the thirty-eighth resistor (R38) and the fuse (F1) is connected to the ground wire via a ninth TVS tube (D9) and a fifty-seventh capacitor (C57), the two ends of the thirty-eighth resistor (R38) are respectively connected to the receiving demodulation and detection voltage output circuit (6), and the end opposite to the connection end of the thirty-eighth resistor (R38) and the fuse (F1) is connected to the M-Bus protection circuit (8).
3. A high-drive current and high-reliability M-Bus host circuit according to claim 2, It is characterized in that The receiving demodulation and detection voltage output circuit (6) comprises a sixth operational amplifier (U6), a ninth MOS tube (Q9), an eighth triode (Q8), a tenth voltage regulator tube (D10), a first NAND gate (U5D) and a second NAND gate (U5C); the B operational amplifier non-inverting input terminal of the sixth operational amplifier (U6) is connected to the opposite end of the connection end of the thirty-eighth resistor (R38) and the fuse (F1) through a fifty-sixth resistor (R56) and is also connected to the ground line through a fifty-seventh resistor (R57); the B operational amplifier inverting input terminal of the sixth operational amplifier (U6) is connected to the opposite end of the connection end of the thirty-eighth resistor (R38) and the fuse (F1) through a fifty-sixth resistor (R56); The sixth operational amplifier (U6) is connected to the connection end of the thirty-eighth resistor (R38) and the fuse (F1); the B operational amplifier inverting input end of the sixth operational amplifier (U6) is respectively connected to the B operational amplifier output end of the sixth operational amplifier (U6) and the overcurrent detection circuit (7) through the fifty-ninth resistor (R59); the B operational amplifier output end of the sixth operational amplifier (U6) is connected to the A operational amplifier inverting input end of the sixth operational amplifier (U6) through the sixty-third DC blocking capacitor (C63) and the fifty-fifth resistor (R55); the signal sending end of the serial port connection module (2) is connected to the A operational amplifier inverting input end of the sixth operational amplifier (U6) through the sixty-fifth resistor (R65); The shielded operational amplifier output circuit for the B operational amplifier of the sixth operational amplifier (U6) is formed through the ninth MOS tube (Q9), the eighth triode (Q8), the tenth voltage regulator tube (D10) and the sixtieth DC bias resistor (R60); the A operational amplifier non-inverting input terminal of the sixth operational amplifier (U6) is connected to the power module (4) through the fifty-second resistor (R52) and the forty-eighth resistor (R48); the A operational amplifier output terminal of the sixth operational amplifier (U6) is connected to the power module (4) through the fifty-third resistor (R52) and the forty-eighth resistor (R48); and the A operational amplifier output terminal of the sixth operational amplifier (U6) is connected to the power module (4) through the fifty-third resistor (R52). 3) and a fifty-first resistor (R51) are connected to two input ends of the first NAND gate (U5D), the output end of the first NAND gate (U5D) is connected to the other input end of the second NAND gate (U5C), the output end of the second NAND gate (U5C) is connected to the signal receiving end of the serial port connection module (2) and is connected to the ground wire through a sixty-second resistor (R62) and a sixty-sixth capacitor (C66), thereby forming a receiving shielding circuit when the serial port sends data through the first NAND gate (U5D), the second NAND gate (U5C), the sixty-second resistor (R62) and the sixty-sixth capacitor (C66).
4. The high-drive current and high-reliability M-Bus host circuit according to claim 1, It is characterized in that The power supply module (4) comprises a 12V to 24V boost circuit for providing a 24V DC voltage, a 12V to 36V boost circuit for providing a 36V DC voltage, a 12V to 3.3V buck circuit for providing a 3.3V DC voltage, and a 3.3V to 3V buck circuit for providing a 3V DC voltage, wherein the 12V to 3.3V buck circuit is connected to the 3.3V to 3V buck circuit.
5. A high-drive current and high-reliability M-Bus host circuit according to claim 4, It is characterized in that The 12V to 36V boost circuit is provided with a first boost PWM control chip (U1), the 12V to 24V boost circuit is provided with a second boost PWM control chip (U2), and the 12V to 3.3V buck circuit is provided with a synchronous buck converter (U3).
6. A high-drive current and high-reliability M-Bus host circuit according to claim 4, It is characterized in that The level conversion circuit (9) is provided with a third MOS tube (Q3) and a fifth MOS tube (Q5); the gate of the fifth MOS tube (Q5) is connected to the signal sending end of the serial port connection module (2); the source of the fifth MOS tube (Q5) is connected to the ground line; the drain of the fifth MOS tube (Q5) is connected to the gate of the third MOS tube (Q3) through a thirty-sixth resistor (R36); the source of the third MOS tube (Q3) is connected to the 12V to 36V boost circuit and is connected to the gate of the third MOS tube (Q3) through a thirty-fifth resistor (R35); the drain of the third MOS tube (Q3) is connected to the M-Bus protection circuit (8) and is connected to the 12V to 24V boost circuit through a seventh diode (D7); the cathode of the seventh diode (D7) is connected to the drain of the third MOS tube (Q3).
Citation Information
Patent Citations
LED direct-current input control circuit
CN101711070A
Twisted pair carrier data communication circuit
CN110752859A
