Utility model content
In order to solve the above-mentioned technical problem, the purpose of this utility model is to provide a kind of TTL and turns MBUS communicating terminals, is used for
Compatible host voltage is sent and slave current receiv, real-time monitoring MBUS master-slave communication data.
Technical solution used by the utility model is:A kind of TTL turns MBUS communicating terminals, and the TTL turns MBUS communications
Terminal includes TTL serial communication circuits, voltage transmission circuit, current receiving circuit, MBUS and monitors switching circuit, MBUS monitorings
Circuit and MBUS interfaces;The output end of the TTL serial communication circuits is connect with the input terminal of voltage transmission circuit, the electric current
The output end of receiving circuit, the output end of MBUS monitoring circuits are connect with the input terminal of TTL serial communication circuits, the voltage hair
The output end on power transmission road, the input terminal of current receiving circuit and MBUS are connect with switching circuit is monitored;The MBUS is cut with monitoring
The output end for changing circuit is connect with the input terminal of MBUS monitoring circuits;The MBUS connects with monitoring switching circuit and MBUS interfaces
It connects.
Further, it further includes electrical isolation circuit that the TTL, which turns MBUS communicating terminals, the TTL serial communication circuits
Output end connect with the input terminal of voltage transmission circuit by electrical isolation circuit, the output end of the current receiving circuit,
The output end of MBUS monitoring circuits is connect by electrical isolation circuit with the input terminal of TTL serial communication circuits.
Further, the electrical isolation circuit is optocoupler.
Further, the TTL serial communication circuits are RS485 communicating circuits or RS232 communicating circuits or USB communication electricity
Road.
Further, the voltage transmission circuit includes tri- pole of the first NPN triode, the second NPN triode and the first PNP
Pipe;The output end of the TTL serial communication circuits is connect with the base stage of the first NPN triode, the hair of first NPN triode
Emitter-base bandgap grading is connect with the emitter of the collector of the first PNP triode, the second NPN triode, the transmitting of first NPN triode
Pole is grounded;The collector of first NPN triode is connect with the base stage of the first PNP triode, first NPN triode
Base stage, the base stage of the first PNP triode, the emitter of the first PNP triode, the collector of the second NPN triode and power supply connect
It connects, the emitter and MBUS of second NPN triode are connect with switching circuit is monitored.
Further, the current receiving circuit includes first resistor, second resistance, 3rd resistor, the first diode,
One polar capacitor and first comparator, the MBUS and one end of monitoring switching circuit and first resistor, the first diode are just
Pole connects, and the other end of the first resistor and the in-phase input end of first comparator connect, the cathode of first diode
It is connect with one end of second resistance, the other end of the second resistance and the inverting input of first comparator, 3rd resistor
The anode connection of one end, the first polar capacitor, the ground terminal of the first comparator, the cathode of the first polar capacitor, third electricity
The other end of resistance is grounded, and the output end of the first comparator is connect with the input terminal of TTL serial communication circuits.
Further, the MBUS monitoring circuits include the 4th resistance, the 5th resistance, the 6th resistance, the second diode, the
Two polar capacitors and the second comparator, the MBUS and one end of monitoring switching circuit and the 4th resistance, the second diode are just
Pole connects, and the other end of the 4th resistance is connect with the in-phase input end of the second comparator, the cathode of second diode
It is connect with one end of the 5th resistance, the other end of the 5th resistance and the inverting input of the second comparator, the second polarity electricity
One end connection of the anode of appearance, the 6th resistance, the ground terminal of second comparator, the cathode of the second polar capacitor, the 6th electricity
The other end of resistance is grounded, and the output end of second comparator is connect with the input terminal of TTL serial communication circuits.
Further, the MBUS and monitoring switching circuit include third NPN triode, the 4th NPN triode, third pole
Property capacitance and dpdt relay, the TTL serial communication circuits are connect with the base stage of third NPN triode, collector, institute
The collector for stating third NPN triode is connect with power supply, the collector of the third NPN triode and the 4th NPN triode
The anode connection of base stage, third polar capacitor, the cathode of the third polar capacitor connect with the emitter of third NPN triode
It connects, the emitter of the third NPN triode is connect with the emitter of the 4th NPN triode, the hair of the third NPN triode
Emitter grounding, the collector of the 4th NPN triode and the first coil connecting pin of dpdt relay connect, described double
Second coil connecting terminal of dpdt double-pole double-throw (DPDT) relay is connect with power supply, the first normally-closed contact of the dpdt relay, first
Normally opened contact is grounded, and the first movable contact of the dpdt relay is connect with MBUS interfaces;The dpdt relay
The second normally-closed contact connected with the input terminal of MBUS monitoring circuits, the second normally opened contact of the dpdt relay and electricity
Press the input terminal connection of the output end of transmission circuit, current receiving circuit, the second movable contact of the dpdt relay with
MBUS interfaces connect.
The utility model has the beneficial effects that:
A kind of TTL of the utility model turns MBUS communicating terminals, including TTL serial communication circuits, voltage transmission circuit, electric current
Receiving circuit, MBUS and monitoring switching circuit, MBUS monitoring circuits and MBUS interfaces;It realizes TTL-MBUS communications, and utilizes electricity
The compatible host voltage transmission of transmission circuit, current receiving circuit realization and slave current receiv are pressed, is switched using MBUS and monitoring
Circuit, MBUS monitoring circuits monitor MBUS master-slave communication data in real time.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.
A kind of TTL turns MBUS communicating terminals, and TTL turns MBUS communicating terminals and is set between host equipment and slave devices,
TTL turns MBUS communicating terminals and includes TTL serial communication circuits, voltage transmission circuit, current receiving circuit, MBUS and monitor switching
Circuit, MBUS monitoring circuits and MBUS interfaces;TTL serial communication circuits are connect with host equipment;TTL serial communication circuits it is defeated
Outlet is connect with the input terminal of voltage transmission circuit, the output end of current receiving circuit, the output end and TTL of MBUS monitoring circuits
The input terminal of serial communication circuit connects, the output end of voltage transmission circuit, the input terminal of current receiving circuit and MBUS and prison
Switching circuit is listened to connect;MBUS is connect with the output end for monitoring switching circuit with the input terminal of MBUS monitoring circuits;MBUS and prison
Switching circuit is listened to be connected with MBUS interfaces, MBUS interfaces are connect with slave devices.
The TTL of the utility model turns the TTL-MBUS that MBUS communicating terminals realize between principal and subordinate's machine equipment and communicates, and profit
The compatible host voltage transmission of transmission circuit, current receiving circuit realization and slave current receiv are pressed in electricity consumption, utilize MBUS and monitoring
Switching circuit, MBUS monitoring circuits monitor MBUS master-slave communication data in real time;Specifically, MBUS bus master-slave communications, base are monitored
In there are the more slave modes of a host on MBUS protocol requirements, entire connection, the communication mode of host and slave processors equipment is different, main
Machine is sent using voltage system, and slave is sent using current system.
As being further improved for technical solution, TTL serial communication circuits are RS485 communicating circuits or RS232 communication electricity
Road or USB communicating circuits.In the utility model, TTL serial communication circuits use RS485 communicating circuits.With reference to figure 1, Fig. 1 is this
A kind of TTL of utility model turns a specific embodiment structure diagram of MBUS communicating terminals, and it further includes electricity that TTL, which turns MBUS communicating terminals,
Source circuit, power circuit take electricity from alternating current (220V/AC), and two-way power supply is exported through Switching Power Supply.Wherein, logical for RS485 all the way
It interrogates circuit and power supply (5VDC) is provided, be all the way voltage transmission circuit, current receiving circuit, MBUS monitoring circuits, MBUS and monitoring
Switching circuit provides power supply (36VDC).Using RS485 communicating circuits, since existing electric power acquisition platform hardware has RS485
Interface, therefore when Reconstruction in field, only need to the terminal of the utility model be subjected to RS485 interfaces with electric power acquisition platform and docked, i.e.,
The metrical instruments communication needs such as compatible water, warm, gas complete the transformation of " unification of four tables " hardware platform;RS485 communications are only needed to connect
Mouthful, pass through the terminal of the utility model, you can the equipment that copy reading has MBUS interfaces.Communication apparatus is by RS485 interfaces (as schemed
Shown in 1, in actual use, RS485 interfaces, that is, RS485 communicating circuits are connect by RS485 buses with host equipment) extension host
MBUS interfaces;MBUS interfaces (as shown in Figure 1, in actual use, MBUS interfaces are connect by MBUS buses with slave devices) can
125 slave devices nodes of carry.It is the TTL that a kind of TTL of the utility model turns MBUS communicating terminals with reference to figure 1 and Fig. 2, Fig. 2
One specific embodiment circuit diagram of serial communication circuit, voltage transmission circuit, current receiving circuit, MBUS monitoring circuits,
TTL serial communication circuits are RS485 communicating circuits 1, have the function of sending and receiving data, wherein RS485 communicating circuits 1
RS485 buses are obtained using special RS485 chips U2 and its peripheral circuit, half duplex communication, chip U2 or by receiving circuit
Data, or RS485 buses are transferred data to by transmission circuit.
As being further improved for technical solution, with reference to figure 1, it further includes electrical isolation circuit that TTL, which turns MBUS communicating terminals,
The output end of TTL serial communication circuits is connect by electrical isolation circuit with the input terminal of voltage transmission circuit, current receiv electricity
The output end on road, the output end of MBUS monitoring circuits are connect by electrical isolation circuit with the input terminal of TTL serial communication circuits.
With reference to figure 2, electrical isolation circuit is optocoupler, specifically, setting two-way optocoupler be RS485 communicating circuits with voltage transmission circuit,
Electrical isolation, respectively optocoupler U3 and optocoupler U5 are done between current receiving circuit.Main isolation RS 485 communicating circuit is sent out with voltage
The electrical connection on power transmission road, current receiving circuit, reduce between the two because external connecting equipment electrical differences bring it is a series of logical
News interference, improves entire terminal anti-interference ability.Wherein, MBUS_RX is high level, and optocoupler U5 is not turned on, the 4th feet pair of optocoupler U5
Ground is high impedance, and the electric current for flowing through resistance R10 is minimum, and the 4th foot voltages of optocoupler U5 are approximately equal to VCC_485, and PNP triode Q2 cannot
Conducting, the 2nd foot, the 3rd foot of RS485 chips U2 are low level, and RS485 chips U2 is reception pattern.MBUS_RX is low level,
Optocoupler U5 conducting, the 4th feet of optocoupler U5 are Low ESR over the ground, and the electric current for flowing through resistance R10 becomes larger, and the 4th foot voltages of optocoupler U5 are about etc.
Begun to turn in GND_485, PNP triode Q2, RS485 chip U2) the 2nd foot, the 3rd foot be high level, RS485 chips U2 be hair
Send pattern.
As being further improved for technical solution, with reference to figure 1 and Fig. 2, voltage transmission circuit 2 includes the first NPN triode
N1, the second NPN triode N2 and the first PNP triode Q1;The output end of TTL serial communication circuits 1 passes through electrical isolation circuit
(i.e. optocoupler) is connect with the base stage of the first NPN triode N1, the emitter of the first NPN triode N1 and the first PNP triode Q1
Collector, the second NPN triode N2 emitter connection, the first NPN triode N1 emitter ground connection;Tri- poles first NPN
The collector of pipe N1 is connect with the base stage of the first PNP triode Q1, the base stage of the first NPN triode N1, the first PNP triode Q1
Base stage, the emitter of the first PNP triode Q1, the collector of the second NPN triode N2 connect with power supply, tri- poles the 2nd NPN
The emitter and MBUS of pipe N2 is connect with switching circuit is monitored, and with reference to figure 3, Fig. 3 is that a kind of TTL of the utility model turns MBUS communications
The MBUS of terminal and the specific embodiment circuit diagram for monitoring switching circuit, voltage transmission circuit 2 by main MBUS and
MBUS is connect with switching circuit is monitored.
With reference to figure 1 and Fig. 2, voltage transmission circuit 2 is to be converted into TTL data-signals to meet the electricity of MBUS bus requests
Pressure.When sending signal " 1 ", MBUS_TX is high level, driving the first NPN triode N1 conductings, the collection of the first NPN triode N1
Electrode C pole tensions are low level, and voltage VCC_MBUS drags down the first PNP triode Q1 base stages B after resistance R19, R22 partial pressure
Voltage, at this point, the first PNP triode Q1 conducting, the voltage of the collector C of the first PNP triode Q1 are approximately equal to voltage 32V
(VCC_MBUS).First NPN triode N1 is fully on, and the voltage of emitter E is smaller 0.7V or so than the voltage of base stage B, about
31.3V(VCC_MBUS-0.7);
When sending signal " 0 ", MBUS_TX is low level, the first NPN triode N1 cut-offs, the collection of the first NPN triode N1
The voltage of electrode C is high level, the voltage of the first PNP triode Q1 base stages B is drawn high, at this point, the first PNP triode Q1 is cut completely
Only.Voltage (VCC_MBUS) generates 16V (VCC_MBUS/ after resistance R20, R8 partial pressure, in the first NPN triode N1 base stages B
2).First NPN triode N1 is fully on, and the voltage 0.7V smaller than the voltage of base stage B of the first NPN triode N1 emitter Es is left
The right side, about 15.3V ((VCC_MBUS)/2-0.7).
As being further improved for technical solution, with reference to figure 1 and Fig. 2, current receiving circuit 3 includes first resistor R1, the
Two resistance R2,3rd resistor R3, the first diode D1, the first polar capacitor C1 and first comparator U4A, with reference to figure 3, MBUS with
The anode of one end, the first diode D1 for monitoring switching circuit and first resistor R1 connects (being connected by main MBUS), and first
The other end of resistance R1 is connect with the in-phase input end of first comparator U4A, cathode and the second resistance R2 of the first diode D1
One end connection, the other end of second resistance R2 and the inverting input of first comparator U4A, one end of 3rd resistor R3, the
The anode connection of one polar capacitor C1, the ground terminal of first comparator U4A, the cathode of the first polar capacitor C1,3rd resistor R3
Other end ground connection, the output end of first comparator U4A passes through the input terminal of electrical isolation circuit and TTL serial communication circuits 1
Connection.To sum up, current receiving circuit 3 is realized using comparator detecting way.When normal, voltage V1 is through the first diode D1,
Two resistance R2,3rd resistor R3, in the 2nd feet of first comparator U4A point to (V1-0.1) V.At this point, the 3rd of first comparator U4A the
Foot voltage V1, according to comparator principle, the in-phase end (the 3rd foot) of first comparator U4A greatly than reverse side (i.e. the 2nd foot), first
The 1st foot of comparator U4A is high-impedance state, and first comparator U4A exports high level.From MBUS equipment transmission datas when, MBUS is total
Line the largest of about 20mA losses.After sampled resistance R15, the voltage change of about 0.2V is generated, voltage V1 becomes V1-0.2V.At this point,
The 3rd foot voltage of first comparator U4A is V1-0.2V, and the 2nd foot voltage of first comparator U4A is V1-0.1V, according to comparing
The in-phase end (the 3rd foot) of device principle, first comparator U4A is smaller than reverse side (the 2nd foot), the 1st foot output of first comparator U4A
Low level.
As being further improved for technical solution, with reference to figure 1 and Fig. 2, MBUS monitoring circuits 4 include the 4th resistance R4, the
Five resistance R5, the 6th resistance R6, the second diode D2, the second polar capacitor C2 and the second comparator U7A, MBUS switch with monitoring
The anode connection of one end of circuit and the 4th resistance R4, the second diode D2, with reference to figure 3, MBUS passes through with switching circuit is monitored
MBUS with MBUS monitoring circuits are monitored to connect;The other end of 4th resistance R4 is connect with the in-phase input end of the second comparator U7A,
The cathode of second diode D2 is connect with one end of the 5th resistance R5, the other end of the 5th resistance R5 and the second comparator U7A's
One end connection of inverting input, the anode of the second polar capacitor C2, the 6th resistance R6, the ground terminal of the second comparator U7A, the
The cathode of two polar capacitor C2, the other end ground connection of the 6th resistance R6, the output end of the second comparator U7A is by electrical isolation electricity
Road is connect with the input terminal of TTL serial communication circuits 1.MBUS monitoring circuits 4 pass through electricity for detecting voltage, current data
Voltage, current data are uploaded to host equipment and carry out processing analysis by gas isolation circuit and TTL serial communication circuits 1, to complete
Monitoring to voltage, current data.MBUS monitoring circuits 4 use similar designs with current receiving circuit 3.
With reference to figure 1 and Fig. 2, drain bus is not electric by host MBUS transmission datas signal " 1 " or slave MBUS in MBUS buses
When stream, MBUS bus voltages are V2, through the second diode D2, the 5th resistance R5, the 6th resistance R6, the second comparator U7A's
2nd foot divides to (V2-0.1) V.At this point, the 3rd foot voltage of the second comparator U7A is V2, compared according to comparator principle, second
Greatly than reverse side (the 2nd foot), the 1st foot of the second comparator U7A is high-impedance state, the second comparator to the in-phase end (the 3rd foot) of device U7A
U7A exports high level.In MBUS buses when host MBUS transmission datas signal " 0 ", MBUS bus voltages are V2/2, through the 4th electricity
The 3rd foot for hindering R4 in the second comparator U7A divides to (V2/2) V.At this point, the reason of because of the second diode D2, the second comparator U7A
The 2nd foot voltage be V2, according to comparator principle, the in-phase end (the 3rd foot) of the second comparator U7A is smaller than reverse side (the 2nd foot),
The 1st foot of second comparator U7A is low resistance state, and the second comparator U7A exports low level.Slave MBUS consumption is total in MBUS buses
When line 20mA electric currents, after the sample resistance of MBUS buses, the voltage change of about 0.2V is generated, V2 voltages become V2-0.2V.This
When, the 2nd foot voltage V2-0.1V of the 3rd foot the voltage V2-0.2V, the second comparator U7A of the second comparator U7A, according to comparator
The in-phase end (the 3rd foot) of principle, the second comparator U7A is smaller than reverse side (the 2nd foot), and the 1st foot output of the second comparator U7A is low
Level.
As being further improved for technical solution, with reference to figure 1, Fig. 2 and Fig. 3, MBUS includes third with monitoring switching circuit
NPN triode N3, the 4th NPN triode N4, third polar capacitor C3 and dpdt relay U1, TTL serial communication circuit 1
(i.e. RS485_RX) is connect with the base stage of third NPN triode N3, collector, the collector and power supply of third NPN triode N3
The collector of connection, third NPN triode N3 is connect with the anode of the base stage of the 4th NPN triode N4, third polar capacitor C3,
The cathode of third polar capacitor C3 is connect with the emitter of third NPN triode N3, the emitter of third NPN triode N3 and
The emitter of four NPN triode N4 connects, the emitter ground connection of third NPN triode N3, the collector of the 4th NPN triode N4
It is connect with the first coil connecting pin of dpdt relay U1, the second coil connecting terminal and power supply of dpdt relay U1
Connection, the first normally-closed contact of dpdt relay U1, the first normally opened contact ground connection, the first of dpdt relay U1 are dynamic
(i.e. bus MBUS-) is connect with MBUS interfaces for contact;The second normally-closed contact (monitoring MBUS) of dpdt relay U1 and
The input terminal of MBUS monitoring circuits 4 connects, and the second normally opened contact (i.e. main MBUS) and the voltage of dpdt relay U1 are sent
The input terminal connection of the output end, current receiving circuit of circuit 2, the second movable contact (i.e. bus of dpdt relay U1
MBUS+ it) is connect with MBUS interfaces.
In the present embodiment, referring to figs. 1 to Fig. 3, MBUS is the receiving circuit when RS485 communicating circuits with switching circuit is monitored
Signal RS485_RX is triggered when becoming low level by high level.When RS485_RX is high level, through resistance R16, tri- poles driving NPN
The voltage of pipe N3 conductings, the collector C of NPN triode N3 is low level, at this point, NPN triode N4 cut-offs, double-pole double throw relay
Device U1 is failure to actuate, at this time the 2nd foot and the 3rd foot short circuit of dpdt relay U1, the 6th foot and the 7th foot short circuit, monitors number of buses
According to communication.For RS485_RX after high level becomes low level, NPN triode N3 is completely switched off, the collector C of NPN triode N3
Voltage be high level, voltage (VCC_485) charges to third polar capacitor C3 through resistance R12, diode D4;At this point, NPN
Triode N4 conductings, cause dpdt relay U1 to act, the 4th foot of dpdt relay U1 and the 3rd foot short circuit, and the 6th
Foot and the 5th foot short circuit carry out main MBUS communications.At this point, if RS485_RX becomes high level from low level, although tri- poles NPN
Pipe N3 is completely switched off, but third polar capacitor C3 has been filled with electricity, can only choose and close by resistance R14, NPN triode N4 electric discharges
Suitable resistance R14, third polar capacitor C3, allows third polar capacitor C3 in T (T>10) in time second, moreover it is possible to be maintained at 1V or so
Voltage, you can driving NPN triode N4 conductings completely allow terminal to be always held at main MBUS communications.
With reference to figure 1, when the receiving circuit of RS485 communicating circuits does not receive data, MBUS is in prison with switching circuit is monitored
State is listened, slave communication data in MBUS buses is monitored in real time, passes through the transmission of electrical isolation optocoupler, RS485 communicating circuits
The data listened to are sent to RS485 buses by circuit.
When the receiving circuit of RS485 communicating circuits receives data, MBUS is in main MBUS states with switching circuit is monitored,
By electrical isolation optocoupler, voltage transmission circuit, by the data penetration transmission received to MBUS buses, and pass through current receiv electricity
Road, by the return signal of MBUS slaves, it is total that the transmission circuit through electrical isolation optocoupler, RS485 communicating circuits is pass-through to RS485
Line.Meanwhile MBUS is maintained at T seconds time of main MBUS states, within this time, RS485 communicating circuits with switching circuit is monitored
Receiving circuit once receives data, and terminal will continue to, in this state, recalculate maintenance time, is more than up to holding time
T seconds, the receiving circuit of RS485 communicating circuits did not all receive any signal, just switches to listening mode.
The terminal of the utility model can be with hosted MBUS equipment, directly by RS485 and slave MBUS equipment into line number
According to communication.Applied to there is MBUS communication need occasions.Device extension MBUS interfaces can be passed through.It may also listen for MBUS master-slave communications
Data.Compatible host voltage is sent to be sent with slave electric current, grasps MBUS bus datas in real time, for live investigation problem, communication
Data collection provides facility.Terminal structure is simple, is not necessarily to particular communication agreement.Only it is only completed level between RS485 and MBUS
Conversion, no CPU are not required to program, strong antijamming capability.Without CPU main control chips, data transparency forwarding, no communications protocol requirement makes
It is simple and reliable with simple.
It is to be illustrated to the preferable implementation of the utility model, but the invention is not limited to the reality above
Example is applied, those skilled in the art can also make various equivalent variations without departing from the spirit of the present invention
Or replace, these equivalent deformations or replacement are all contained in the application claim limited range.