CN112583682A - Bus communication circuit and device - Google Patents

Bus communication circuit and device Download PDF

Info

Publication number
CN112583682A
CN112583682A CN202011573828.8A CN202011573828A CN112583682A CN 112583682 A CN112583682 A CN 112583682A CN 202011573828 A CN202011573828 A CN 202011573828A CN 112583682 A CN112583682 A CN 112583682A
Authority
CN
China
Prior art keywords
voltage
signal
master station
module
resistor
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.)
Pending
Application number
CN202011573828.8A
Other languages
Chinese (zh)
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.)
Wasion Group Co Ltd
Original Assignee
Wasion Group 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 Wasion Group Co Ltd filed Critical Wasion Group Co Ltd
Priority to CN202011573828.8A priority Critical patent/CN112583682A/en
Publication of CN112583682A publication Critical patent/CN112583682A/en
Priority to PCT/CN2021/086004 priority patent/WO2022134379A1/en
Priority to MX2022009773A priority patent/MX2022009773A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40039Details regarding the setting of the power status of a node according to activity on the bus

Abstract

The invention discloses a bus communication circuit, which comprises a master station signal sending module, a communication protection module, a signal conversion resistor, a master station signal receiving module and a program-controlled reference voltage adjusting module, wherein the master station signal sending module is used for sending a master station signal to a master station; the input end of the master station signal transmitting module is connected with the signal transmitting end of the master station, the output end of the master station signal transmitting module is connected with the communication protection module, the program-controlled reference voltage adjusting module and the master station signal receiving module through signal conversion resistors respectively, the program-controlled reference voltage adjusting module is further connected with the master station signal receiving module, and the output end of the master station signal receiving module is connected with the signal receiving end of the master station. The invention adjusts the reference voltage through algorithm program control, so that the M-BUS communication circuit can adapt to more differentiated slave station equipment. The reference voltage in the communication circuit is automatically adjusted through a program control algorithm, and the maximum noise tolerance and the anti-interference capability of the communication circuit can be ensured.

Description

Bus communication circuit and device
Technical Field
The present invention relates to the field of circuit electronics, and more particularly, to a bus communication circuit and apparatus.
Background
The existing M-BUS communication mode of a remote meter reading system is a master-slave type half-duplex transmission BUS, and double-end communication is realized by adopting a calling/answering mode, namely, after a master station sends out an inquiry, a slave station transmits data to the master station. The master station can send bus voltage to the slave station to supply power to the slave station, and sends logic signals of '1' or '0' to the slave station through voltage amplitude change of the bus voltage to realize data transmission. The slave can then send a "1" or "0" logic signal to the master by adding a pulsed current to the normal slave current. In other words, the master station can supply power to the slave station while sending signals to the slave station through the bus, so that the battery arranged in the terminal instrument of the slave station is only used as a standby power supply, and the working requirements of the slave station for regular maintenance, battery replacement and the like are reduced.
However, in the terminal instruments used in the existing remote meter reading, the pulse currents generated by different instruments are different due to different specification models, and the modules for realizing the pulse current identification in the bus communication cannot accurately identify the logic signals when the pulse currents change. And because the bus length is longer, the noise signal that external environment produced is higher, also is easy to take place data transmission under the influence of noise signal unusually. That is, the conventional bus communication method is low in applicability when it is confronted with noise interference from slave meters of different specifications or different environments.
Disclosure of Invention
The invention mainly aims to provide a bus communication circuit and a bus communication device, and aims to solve the problem that the existing bus communication mode is insufficient in anti-interference capability and self-adaptive adjustment capability.
In order to achieve the above object, the present invention provides a bus communication circuit, which includes a master station signal transmitting module, a communication protection module, a signal converting resistor, a master station signal receiving module, and a program-controlled reference voltage adjusting module;
the input end of the master station signal sending module is connected with a signal sending end of a master station, the output end of the master station signal sending module is connected with the first end of the communication protection module through the signal conversion resistor, the second end of the communication protection module is connected with a slave station, the first end of the communication protection module is further connected with the first input end of the master station signal receiving module and the input end of the program-controlled reference voltage adjusting module, the output end of the program-controlled reference voltage adjusting module is connected with the second input end of the master station signal receiving module, and the output end of the master station signal receiving module is connected with a signal receiving end of the master station;
the master station signal transmitting module is used for adjusting a first output voltage according to a data signal sent by a master station;
the communication protection module is used for transmitting the first output voltage to the slave station so that the slave station converts the first output voltage to obtain a data signal transmitted by the master station, and is also used for adjusting a first output current according to the data signal transmitted by the slave station;
the signal conversion resistor is used for carrying out voltage reduction adjustment on the first output voltage according to the first output current so as to obtain a first signal voltage or a second signal voltage;
the program-controlled reference voltage adjusting module is used for adjusting the output reference voltage to be between a first signal voltage and a second signal voltage;
and the master station signal receiving module is used for receiving the first signal voltage or the second signal voltage and comparing the first signal voltage or the second signal voltage with a reference voltage to obtain a data signal sent by a slave station and sending the data signal to the master station.
Optionally, the programmable reference voltage adjustment module includes a first diode and a plurality of resistance unit circuits connected in parallel with each other;
the anode of the first diode is connected with the first end of the communication protection module, the cathode of the first diode is respectively connected with the first end of each resistance unit circuit, and the second end of each resistance unit circuit is connected with the second input end of the master station signal receiving module;
the program-controlled reference voltage adjusting module is used for adjusting the equivalent resistance of the program-controlled reference voltage adjusting module by controlling the on-off of the plurality of resistance unit circuits.
Optionally, each of the resistance unit circuits includes an adjusting resistor, a first switching tube, a first resistor, a second resistor, a first capacitor, and a first control unit;
a negative electrode of the first diode is connected with a first end of the first capacitor, a first end of the first resistor and a first end of the first switch tube, a control end of the first switch tube is connected with a second end of the first capacitor, a second end of the first resistor and a first end of the second resistor, a second end of the second resistor is connected with a control end of the first control unit, a controlled end of the first control unit is connected with a master station, and a second end of the first switch tube is connected with a second input end of the master station signal receiving module;
the first control unit is used for controlling the on and off of the first switch tube according to a control signal sent by the main station.
Optionally, the first control unit is a first optocoupler or a second switch tube.
Optionally, the adjustment resistances in each of the resistance unit circuits are different from each other.
Optionally, the master station signal receiving module includes a first comparator, a third resistor, a fourth resistor, a second capacitor, and a second optocoupler;
a first input end of the first comparator is connected with a first end of the communication protection module through the third resistor, a second input end of the first comparator is respectively connected with a second end of each resistor unit circuit, a second end of the first comparator is grounded through a fourth resistor, the second capacitor is connected with the fourth resistor in parallel, an output end of the first comparator is connected with a controlled end of the second optocoupler, and a control end of the second optocoupler is connected with a signal receiving end of the master station;
and the second optical coupler is used for sending corresponding high and low level signals to a signal receiving end of the main station according to the high and low level signals output by the first comparator.
Optionally, the master station signal transmitting module includes a third optocoupler, a voltage stabilizing chip, a first voltage stabilizing diode, and a second voltage stabilizing diode;
the controlled end of the third optical coupler is connected with the signal sending end of the master station, the output anode and the output cathode of the third optical coupler are respectively connected with the cathode and the anode of the second voltage stabilizing diode, the input end of the voltage stabilizing chip is connected with the bus voltage, the grounding end of the voltage stabilizing chip is connected with the cathode of the first voltage stabilizing diode, the anode of the first voltage stabilizing diode is connected with the cathode of the second voltage stabilizing diode, the anode of the second voltage stabilizing diode is grounded, and the output end of the voltage stabilizing chip is the output end of the master station signal sending module.
Optionally, the communication protection module includes a second diode, a transient diode, a third capacitor, and a thermistor;
the anode of the second diode is the first end of the communication protection module, the anode of the second diode is grounded through the third capacitor, the cathode of the second diode is connected with the anode of the slave station through the thermistor, the cathode of the slave station is grounded, and the cathode of the second diode is also grounded through the transient diode.
Optionally, the communication protection module is further configured to receive the first output voltage to supply power to a slave station.
In addition, in order to achieve the above object, the present invention also provides a bus communication apparatus including a master, a slave, and a bus communication circuit connected to the master and the slave, respectively, the bus communication circuit being configured as the bus communication circuit described above.
According to the invention, by arranging the program-controlled reference voltage adjusting module, the reference voltage obtained by the master station signal receiving module can be adjusted when signal interference caused by different slave station equipment terminals or different external environments is faced. By adjusting the reference voltage to be at the optimal value between the first signal voltage and the second signal voltage, the bus communication circuit can be adapted to various slave station devices, and the applicability of the bus communication circuit is improved. By adjusting the reference voltage to be close to the optimal value of the first signal voltage and the second signal voltage, the communication circuit can be ensured to obtain the maximum noise tolerance and the maximum interference resistance.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a block diagram of a bus communication circuit according to an embodiment of the present invention;
FIG. 2 is a schematic circuit diagram of the embodiment of FIG. 1;
FIG. 3 is a schematic circuit diagram of an embodiment of a first control unit in the embodiment of FIG. 2;
fig. 4 is a schematic circuit diagram of another embodiment of the first control unit in the embodiment of fig. 2.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
The reference numbers illustrate:
Figure BDA0002861341370000041
Figure BDA0002861341370000051
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a bus communication circuit, which is applied to a bus communication device and can realize data communication between a host and a plurality of slaves.
Referring to fig. 1, in an embodiment, the bus communication circuit includes a master station signal transmitting module 10, a communication protection module 20, a signal conversion resistor R, a master station signal receiving module 30, and a programmable reference voltage adjusting module 40. The input end of the master station signal transmitting module 10 is connected with the signal transmitting end of the master station, the output end of the master station signal transmitting module 10 is connected with the first end of the communication protection module 20 through a signal conversion resistor R, the second end of the communication protection module 20 is connected with the slave station, the first end of the communication protection module 20 is further connected with the first input end of the master station signal receiving module 30 and the input end of the program-controlled reference voltage adjusting module 40, the output end of the program-controlled reference voltage adjusting module 40 is connected with the second input end of the master station signal receiving module 30, and the output end of the master station signal receiving module 30 is connected with the signal receiving end of the master station.
The master station may transmit a corresponding data signal, for example a logic signal "1" or "0", to an input of the master station signal transmission module 10. The master station signal transmitting module 10 adjusts the output first output voltage accordingly according to the data signal. That is, the first output voltage output by the master station signal transmitting module 10 when receiving the logic signal "1" is different from the first output voltage output when receiving the logic signal "0", and has a larger voltage amplitude difference, so that the back end can recognize two different first output voltages.
The communication protection module 20 may implement receiving and transmitting of data signals, when the communication protection module 20 receives the first output voltage, the first output voltage may be transmitted to the slave station, and the slave station may determine the corresponding data signal according to the voltage amplitude of the first output voltage, so as to implement a data transmission process from the master station to the slave station.
The communication protection module 20 may also receive a data signal from a station and adjust the first output current in accordance with the data signal. The first output voltage is an output voltage of an output end of the master station signal transmitting module 10, and the first output current is a current on a current loop formed by the master station signal transmitting module 10, the signal conversion resistor R, and the communication protection module 20. For example, the data signal transmitted from the slave station may be a logic signal "0" or "1", and the slave station may keep the first output current constant while transmitting the signal "1"; when the signal "0" is transmitted, the consumption of a pulse current is added to the original first output current, and the signal data transmitted from the slave station can be determined by detecting the current amplitude of the first output current.
When the slave station does not generate the pulse current, the amplitude of the voltage reduction of the first output voltage after passing through the signal conversion resistor R is the product of the resistance value of the signal conversion resistor R and the current value of the normal first output current. When the slave station generates the pulse current, the voltage drop on the signal conversion resistor R is increased, and the increased voltage amplitude is the product of the current value of the pulse current and the resistance value of the signal conversion resistor R. That is, when the pulse current is generated in the current loop, the voltage drop generated across the signal conversion resistor R increases, so that the voltage value at the end of the signal conversion resistor R away from the master station signal transmission module 10 is further reduced relative to the voltage value when the pulse current is not generated.
The master station signal receiving module 30 can receive two different first output voltages, namely a first signal voltage and a second signal voltage, which are respectively reduced by the signal conversion resistor R. When the slave station generates a pulse current, the first output voltage is the voltage received by the master station signal receiving module 30 after the voltage drop of the signal conversion resistor R; the second signal voltage is a voltage received by the master station signal receiving module 30 after the first output voltage is dropped by the signal conversion resistor R when the slave station does not generate the pulse current. It can be understood that when a pulse current is generated in the current loop, the voltage drop across the signal conversion resistor R increases, and the voltage of the first signal voltage after passing through the signal conversion resistor R decreases more greatly, i.e. the first signal voltage is lower than the second signal voltage.
The output reference voltage is adjusted by the program-controlled reference voltage adjusting module 40, so that the second signal voltage received by the master station signal receiving module 30 is higher than the reference voltage when no pulse current is generated; when the pulse current is generated, the first signal voltage received by the master station signal receiving module 30 is lower than the reference voltage, that is, the reference voltage is adjusted to be between the first signal voltage and the second signal voltage. The actual signal voltage is compared with the reference voltage, so that the second signal voltage when the actual signal voltage is larger than the reference voltage and the first signal voltage when the actual signal voltage is smaller than the reference voltage can be determined, and whether pulse current is generated in a current loop or not is further determined, and a data signal sent by a slave station is obtained. The master station signal receiving module 30 may send the data signal sent by the slave station to the signal receiving end of the master station after determining the data signal, so as to implement a data transmission process from the slave station to the master station.
It should be noted that, for slave meters with different specifications, the amplitudes of the generated pulse currents are different, so that the voltage amplitude of the stepped-down first output voltage will change, that is, the first signal voltage and the second signal voltage change with the specification change of the slave meters. At this time, if both the first signal voltage and the second signal voltage are greater than or less than the reference voltage, the master station signal receiving module 30 cannot determine whether a pulse current is generated according to the comparison between the signal voltage and the reference voltage, so that the data signal sent by the slave station cannot be determined. And through the program-controlled reference voltage adjusting module 40, when facing different slave station terminal devices, the output reference voltage is adjusted, so that the magnitude of the reference voltage is between the first signal voltage and the second signal voltage, and the slave station can determine to send the data signal through the actual signal voltage. That is, for different slave station device terminals, the reference voltage is tested and adjusted by the program-controlled reference voltage adjusting module 40, and the reference voltages corresponding to the different slave station device terminals can be obtained, so that the bus communication circuit can be adapted to the different slave station devices, and the applicability of the bus communication circuit is improved.
As shown in fig. 1, in the bus communication circuit, the number of the slave stations may be set to one or more, each slave station is connected to one end of a signal conversion resistor R through a communication protection module 20 corresponding to the slave station, and the other end of the signal conversion resistor R is connected to a master station signal transmission module 10.
Similarly, when the reference voltage is set between the first signal voltage and the second signal voltage, if the voltage difference between the reference voltage and the first signal voltage is small, when the voltage of the first signal voltage is increased due to the superposition of the noise signal of the external environment, the first signal voltage on which the interference signal is superposed is easily larger than the reference voltage, thereby affecting the determination of the master station signal receiving module 30 on the data signal. That is, the reference voltage needs to be not only set between the first signal voltage and the second signal voltage, but also have a certain voltage difference with both the first signal voltage and the second signal voltage to provide a noise margin. It can be understood that, by setting the reference voltage as the average value of the first signal voltage and the second signal voltage, the maximum theoretical noise tolerance value, which is half of the difference between the voltages of the first signal voltage and the second signal voltage, can be obtained, thereby improving the interference resistance of the bus communication circuit.
In this embodiment, by providing the programmed reference voltage adjusting module 40, the reference voltage obtained by the master station signal receiving module 30 can be adjusted when signal interference caused by different slave station device terminals or different external environments is faced. By adjusting the reference voltage to be between the first signal voltage and the second signal voltage, the bus communication circuit can be adapted to various slave station devices, and the applicability of the bus communication circuit is improved. By adjusting the reference voltage to be close to the average value of the first signal voltage and the second signal voltage, a larger theoretical noise tolerance value can be obtained, and the anti-interference capability of the bus communication circuit is improved.
Referring to fig. 1 and 2 together, the programmable reference voltage adjustment module 40 may include a first diode D1 and a plurality of resistor unit circuits 41 connected in parallel. An anode of the first diode D1 is connected to the first end of the communication protection module 20, a cathode of the first diode D1 is connected to the first end of each resistor unit circuit 41, and a second end of each resistor unit circuit 41 is connected to the second input end of the master station signal receiving module 30.
The programmable reference voltage adjusting module 40 can control the on/off of the plurality of resistance unit circuits 41 to adjust the equivalent resistance of the programmable reference voltage adjusting module 40. The overall equivalent resistance of the program-controlled reference voltage adjustment module 40 is the resistance value of each turned-on resistance unit circuit 41 after the equivalent resistance is connected in parallel. The second end-to-ground input impedance of the master station signal receiving module 30 and the equivalent resistor of the program-controlled reference voltage adjusting module 40 form a voltage dividing circuit, the equivalent resistor of the program-controlled reference voltage adjusting module 40 is a pull-up resistor, the ground input impedance of the second end of the master station signal receiving module 30 is a pull-down resistor, and the reference voltage obtained by the second end of the master station signal receiving module 30 is a voltage value obtained by dividing the first output voltage by the voltage dividing circuit.
It can be understood that, for the voltage dividing circuit, when the resistance value of the pull-down resistor is not changed, the pull-up resistor is increased, and the divided output voltage is reduced. That is, the reference voltage can be reduced by increasing the overall equivalent resistance of the program-controlled reference voltage adjustment module 40; and the increase of the reference voltage can be realized by reducing the overall equivalent resistance of the program-controlled reference voltage adjusting module 40. The programmable reference voltage adjusting module 40 can generate a plurality of different equivalent resistances by controlling the on/off of the plurality of resistance unit circuits 41. After the generated equivalent resistances are arranged from small to large, the voltage value range of the reference voltage can be determined by testing whether the reference voltage obtained under the condition of each equivalent resistance is between the first signal voltage and the second signal voltage. Taking 3 resistor unit circuits 41 as an example, when the equivalent resistances of the resistor unit circuits 41 are different from each other, a total of 8 combinations exist. By rounding off the equivalent infinite resistances when all of the 3 resistance unit circuits 41 are off, there are 7 equivalent resistance combinations. After the 7 combinations are arranged according to the size sequence, an effective combination can be obtained by traversing and testing each equivalent resistance combination. For example, in the 1 st and 2 nd combinations in which the equivalent resistance is small among the 7 combinations, the generated reference voltage is not located between the first signal voltage and the second signal voltage, and the generated reference voltage in the 3 rd to 7 th combinations is located between the first signal voltage and the second signal voltage. It may be determined that the reference voltage corresponding to the combination 3-7 enables signal data transmission of the slave device terminal. Further, the reference voltage corresponding to the 5 th combination in the 3 rd to 7 th combinations can be selected to be closer to the average value of the first signal voltage and the second signal voltage, so that the master station signal receiving module 30 has a certain noise tolerance capability when comparing the actual signal voltage with the reference voltage.
Each of the resistor unit circuits 41 includes an adjusting resistor Ri, a first switch Q1, a first resistor R1, a second resistor R2, a first capacitor C1, and a first control unit 42. A cathode of the first diode D1 is connected to a first end of the first capacitor C1, a first end of the first resistor R1, and a first end of the first switch Q1, a control end of the first switch Q1 is connected to a second end of the first capacitor C1, a second end of the first resistor R1, and a first end of the second resistor R2, a second end of the second resistor R2 is connected to a control end of the first control unit 42, a controlled end of the first control unit 42 is connected to the master station, and a second end of the first switch Q1 is connected to a second input end of the master station signal receiving module 30.
The master station can control the on/off of each resistance unit circuit 41 by sending control signals. The first switch Q1 may be a PNP transistor or a P-channel MOS transistor, and fig. 2 shows a schematic circuit diagram of the resistor unit circuit 41 when the first switch Q1 is a PNP transistor. The master station may send an on signal or an off signal to the first control unit 42, and when receiving the on signal, the first control unit 42 may ground the control terminal of the first switch Q1 to turn on the first switch Q1; the first control unit 42 may disable the control terminal of the first switch Q1 when receiving the disable signal, so as to disable the first switch Q1. As shown in fig. 2, in the programmable reference voltage adjusting module 40 composed of 3 resistance unit circuits 41, the master station can control the first control unit 42 in each resistance unit circuit 41 through the CTR1, CTR2 and CTR3 ports, respectively.
The first capacitor C1 and the first resistor R1 can prevent the control end of the first switch tube Q1 from shaking due to external signals, and avoid the malfunction of the first switch tube Q1.
It is understood that the first diode D1 is a charging diode, the first capacitor C1 is an energy storage capacitor, and the pulse current is usually 11mA to 20 mA. When no pulse current is generated, the voltage across the first resistor R1 is the second signal voltage, and the first capacitor C1 is charged. When the pulse current is generated to decrease the second signal voltage to the first signal voltage, the first capacitor C1 may keep the voltage across the first resistor R1 at the second signal voltage by discharging. The first resistor R1 and the second resistor R2 form a voltage divider circuit, wherein the resistance of the first resistor R1 is much larger than that of the second resistor R2, so that when the second resistor R2 is grounded, the level of the control end of the first switch tube Q1 is low, and the first switch tube Q1 is turned on. When the second resistor R2 is not grounded, the control terminal of the first switch Q1 is at a high level, and the first switch Q1 is turned off.
It is understood that the signal conversion resistor R may be a winding resistor, and the resistance parameter of the winding resistor may be 100 Ω -3W. The first resistor R1 may be set to be at least ten times larger than the second resistor R2, and the second resistor R2 may be set to be at least 10K Ω, so that the level of the control terminal on the first switch tube Q1 is lower than the conduction level value after the voltage division by the second resistor R2, and the first switch tube Q1 is ensured to be in saturated conduction. The first diode D1 may be a schottky diode with a small reverse current and a low forward conduction voltage drop, such as BAT54 schottky diode with a forward conduction voltage drop of about 0.2V and a reverse leakage current of less than 0.1 μ a. The first switch tube Q1 may be a PNP transistor, such as a germanium tube with a voltage drop of 0.1V-0.2V when the low current is saturated and conducted. The first capacitor C1 in each resistance cell circuit 41 can avoid the influence of the disturbance malfunction. The fourth resistor R4 and the second capacitor C2 in the master station signal receiving module 30, when selected, require a larger time constant τ RC to enable the capacitors to store more energy.
When the first switching tube Q1 is turned on, the resistance unit circuit 41 is turned on. When some of the plurality of resistance cell circuits 41 are in the on state, the overall equivalent resistance of the plurality of resistance cell circuits 41 is a resistance value in which the adjustment resistances Ri of the on resistance cell circuits 41 are connected in parallel with each other.
Note that, in order to obtain different equivalent resistance combinations, the adjustment resistances Ri in the resistance cell circuits 41 may be set to be different from each other. When the number of the resistance unit circuits 41 is n in the case where the resistance values of the adjustment resistors Ri are different from each other, the number of combinations of all the equivalent resistors obtained is 2nThe number of combinations of effective equivalent resistances obtained by removing the infinite equivalent resistances when all the resistance unit circuits 41 are turned off is 2n-1。
It is understood that when the number of the resistance unit circuits 41 is large, 2nAnd-1 is large, and a great deal of time is consumed for measuring whether the reference voltage corresponding to the equivalent resistance of each combination meets the requirement in a traversal mode. The efficiency of determining the effective combination can be improved through the segmentation test after determining the equivalent resistance of each combination and arranging the equivalent resistance according to the magnitude sequence. For example, two adjacent equivalent resistance combinations x and y are selected, where the equivalent resistance of x is lower than the equivalent resistance of y. If x is a combination and y is a combinationThe obtained reference voltages are both greater than the first signal voltage and the second signal voltage, and the reference voltage is further increased when the equivalent resistance is further reduced. Because the reference voltage under the y combination is higher than the first signal voltage and the second signal voltage, the larger reference voltage does not satisfy the requirement, and other combinations with equivalent resistance smaller than the y combination in the equivalent resistance combination do not need to be tested, so that the testing time is saved, and the testing efficiency is improved.
Referring to fig. 3, when the bus communication circuit has an isolation requirement, the first control unit 42 may be a first optocoupler N1, and when the master station sends a turn-on signal to the first optocoupler N1, the first optocoupler N1 may ground the second end of the second resistor R2; and when the master station sends a cut-off signal to the first optical coupler N1, the first optical coupler N1 can empty the second end of the second resistor R2.
Referring to fig. 4, when the bus communication circuit does not need to isolate the control part from the communication part, the first control unit 42 may be a second switch Q2, and when the master station sends a turn-on signal to the second switch Q2, the second switch Q2 may connect the second terminal of the second resistor R2 to ground; when the master station sends a turn-off signal to the second switch Q2, the second switch Q2 may empty the second terminal of the second resistor R2. The second switch Q2 may be a transistor or a MOS transistor, and fig. 4 only shows a schematic circuit diagram of the first control unit 42 when the second switch is a transistor.
The master station signal receiving module 30 may include a first comparator a1, a third resistor R3, a fourth resistor R4, a second capacitor C2, and a second optocoupler N2. A first input end of the first comparator a1 is connected with a first end of the communication protection module 20 through a third resistor R3, a second input end of the first comparator a1 is connected with a second end of each resistor unit circuit 41, a second end of the first comparator a1 is grounded through a fourth resistor R4, a second capacitor C2 is connected with a fourth resistor R4 in parallel, an output end of the first comparator a1 is connected with a controlled end of a second optocoupler N2, and a control end of the second optocoupler N2 is connected with a signal receiving end of the master station.
The first input terminal of the first comparator a1 may receive the first signal voltage or the second signal voltage, and the second input terminal may receive the reference voltage. After the first end of the first comparator a1 receives the actual signal voltage, the actual signal voltage is determined to be the first signal voltage or the second signal voltage by comparing the actual signal voltage with the reference voltage. When the actual signal voltage is greater than the reference voltage, the actual signal voltage is the second signal voltage; when the actual signal voltage is smaller than the reference voltage, the actual signal voltage is the first signal voltage.
When the first comparator a1 receives the first signal voltage, a low level signal may be output; and when receiving the second signal voltage, a high level signal can be output. When receiving a low-level signal, the second optocoupler N2 may send a corresponding low-level signal to a signal receiving end of the master station; when receiving a high level signal, the second optocoupler N2 may send a corresponding high level signal to a signal receiving end of the master station, and the transmission of the logic signal may be achieved through the high and low level signal.
It can be understood that, in the above embodiment, the second optocoupler N2 can isolate the master station from the bus communication circuit, and the reference voltage and the actual signal voltage at the input end of the first comparator a1 are both voltages of about 30V, and the influence of the higher voltage in the communication part on the low-voltage signal of the master station can be avoided by setting the optocoupler isolation. According to whether the isolation requirement exists, the optical coupling isolation part can be added or cancelled adaptively so as to be suitable for different application scenes. For example, when safety regulation isolation of strong and weak current is required, optical coupling isolation is required. The output terminal of the first comparator a1 is directly connected with the signal receiving terminal of the master station to reduce the cost of the device.
The master station signal transmitting module 10 may include a third optocoupler N3, a voltage regulator chip U1, a first voltage regulator diode ZD1, and a second voltage regulator diode ZD 2. The controlled end of the third optocoupler N3 is connected with the signal sending end of the master station, the output anode and the output cathode of the third optocoupler N3 are respectively connected with the cathode and the anode of the second zener diode ZD2, the input end of the zener chip U1 is connected with the bus voltage, the grounding end of the zener chip U1 is connected with the cathode of the first zener diode ZD1, the anode of the first zener diode ZD1 is connected with the cathode of the second zener diode ZD2, the anode of the second zener diode ZD2 is grounded, and the output end of the zener chip U1 is the output end of the master station signal sending module 10.
When the output anode and the output cathode of the third optocoupler N3 are not conducted, the grounding end of the voltage stabilizing chip U1 is grounded through the two voltage stabilizing diodes. At this time, the ground terminal of the voltage regulation chip U1 is grounded to the ground voltage which is the sum of the breakdown voltages of the two voltage regulation diodes. The signal transmitting end of the master station may transmit a high-low level signal as a logic signal "0" or "1". When the third optical coupler N3 receives a low level signal, the third optical coupler N3 may short-circuit the second zener diode ZD 2. At this time, the ground terminal of the zener chip U1 is grounded to the ground voltage, which is the breakdown voltage of a zener diode. For example, when the breakdown voltages of the two zener diodes are 13V and the bus voltage is 31V, if the third optocoupler N3 receives a high level signal, the output terminal of the zener chip U1 has a voltage of 31V to ground; and if the third optocoupler N3 receives a low level signal, the second zener diode ZD2 is short-circuited, and the voltage of the output terminal of the zener chip U1 to the ground is 18V. The logic signal sent by the signal sending end of the main station can be determined by detecting the output voltage of the voltage stabilizing chip U1, so that the transmission process of the signal is realized.
It can be understood that in fig. 2, the TX end is a signal transmitting end of the master station, and the RX end is a signal receiving end of the master station. The first optical coupler N1 may be a common optical coupler. The second optical coupler N2 and the third optical coupler N3 can be common optical couplers, and high-speed optical couplers can be selected according to the actual communication baud rate.
The communication protection module 20 may include a second diode D2, a transient diode TVS, a third capacitor C3, and a thermistor PTC. The anode of the second diode D2 is the first end of the communication protection module 20, the anode of the second diode D2 is grounded through a third capacitor C3, the cathode of the second diode D2 is connected with the anode of the slave station through a thermistor PTC, the cathode of the slave station is grounded, and the cathode of the second diode D2 is also grounded through a transient diode TVS.
The transient diode TVS can absorb spike pulse signals such as static electricity, lightning strike and the like generated between interfaces of the master station and the slave station to protect a communication circuit. When the current on the current loop is overlarge, the resistance value of the PTC is increased along with the increase of the temperature, and finally the circuit is disconnected so as to protect the power supply of the main station and avoid the damage of the power supply of the main station caused by external short circuit and overload. It will be appreciated that the current loop can be switched on again when the temperature of the thermistor PTC decreases. The third capacitor C3 has a filtering function and can filter the ac interference signal.
It should be noted that, when the slave station receives the first output voltage, the voltage changes with the distance and the bus current, and the slave station may determine the corresponding logic signal "0" or "1" by detecting whether the voltage and the dynamic reference voltage differ by a preset voltage threshold. For example, the slave station may implement dynamic level identification through the interface chip TSS 721A. The dynamic reference voltage of the interface chip is obtained by charging a capacitor in the chip by the voltage received from the station access position, and under the condition that the baud rate is more than 300, a higher output voltage exists in every 11 bits of the transmitted bit stream, so that the dynamic reference voltage can be ensured to be stabilized near the higher output voltage. When the interface chip receives the actual output voltage, whether the difference between the actual output voltage and the dynamic reference voltage exceeds 10V or not is judged, and then the corresponding logic signal '0' or '1' can be determined to be received.
It is understood that, in the above embodiment, the first signal voltage or the second signal voltage transmitted by the master station signal transmitting module 10 is higher than the working voltage of the slave station device, and the quiescent standby current of the slave is the first output current, then the stepped-down first output voltage obtained by the communication protection module 20 may also be used as the working voltage of the slave station to supply power to the slave station after being regulated by the two zener diodes.
As shown in fig. 2, in an embodiment, the calculation formula of the reference voltage received by the second terminal of the first comparator a1 may be:
Figure BDA0002861341370000141
wherein Umark is the first output voltage, Imark is the first output current, R is the resistance value of the signal conversion resistor R, Ud1 is the conduction voltage drop of the first diode D1, Uq1 is the conduction voltage drop of the first switch tube Q1, Rb is the equivalent dc impedance of the fourth resistor R4, the second capacitor C2 and the equivalent resistance after the ground input impedance of the first comparator a1 are connected in parallel, and the R combination is the equivalent resistance after the adjustment resistors Ri in all the conductive resistance unit circuits 41 are connected in parallel.
The present invention further provides a bus communication device, which includes a master, a slave, and a bus communication circuit respectively connected to the master and the slave, and the structure of the bus communication circuit can refer to the above embodiments, and is not described herein again. It should be understood that, since the bus communication device of the present embodiment adopts the technical solution of the bus communication circuit, the bus communication device has all the advantages of the bus communication circuit.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A bus communication circuit is characterized by comprising a master station signal sending module, a communication protection module, a signal conversion resistor, a master station signal receiving module and a program-controlled reference voltage adjusting module;
the input end of the master station signal sending module is connected with a signal sending end of a master station, the output end of the master station signal sending module is connected with the first end of the communication protection module through the signal conversion resistor, the second end of the communication protection module is connected with a slave station, the first end of the communication protection module is further connected with the first input end of the master station signal receiving module and the input end of the program-controlled reference voltage adjusting module, the output end of the program-controlled reference voltage adjusting module is connected with the second input end of the master station signal receiving module, and the output end of the master station signal receiving module is connected with a signal receiving end of the master station;
the master station signal transmitting module is used for adjusting a first output voltage according to a data signal sent by a master station;
the communication protection module is used for transmitting the first output voltage to the slave station so that the slave station converts the first output voltage to obtain a data signal transmitted by the master station, and is also used for adjusting a first output current according to the data signal transmitted by the slave station;
the signal conversion resistor is used for carrying out voltage reduction adjustment on the first output voltage according to the first output current so as to obtain a first signal voltage or a second signal voltage;
the program-controlled reference voltage adjusting module is used for adjusting the output reference voltage to be between a first signal voltage and a second signal voltage;
and the master station signal receiving module is used for receiving the first signal voltage or the second signal voltage and comparing the first signal voltage or the second signal voltage with a reference voltage to obtain a data signal sent by a slave station and sending the data signal to the master station.
2. The bus communication circuit as claimed in claim 1, wherein the programmable reference voltage adjustment module comprises a first diode and a plurality of resistor unit circuits connected in parallel with each other;
the anode of the first diode is connected with the first end of the communication protection module, the cathode of the first diode is respectively connected with the first end of each resistance unit circuit, and the second end of each resistance unit circuit is connected with the second input end of the master station signal receiving module;
the program-controlled reference voltage adjusting module is used for adjusting the equivalent resistance of the program-controlled reference voltage adjusting module by controlling the on-off of the plurality of resistance unit circuits.
3. The bus communication circuit as claimed in claim 2, wherein each of said resistance unit circuits comprises an adjusting resistor, a first switch tube, a first resistor, a second resistor, a first capacitor and a first control unit;
a negative electrode of the first diode is connected with a first end of the first capacitor, a first end of the first resistor and a first end of the first switch tube, a control end of the first switch tube is connected with a second end of the first capacitor, a second end of the first resistor and a first end of the second resistor, a second end of the second resistor is connected with a control end of the first control unit, a controlled end of the first control unit is connected with a master station, and a second end of the first switch tube is connected with a second input end of the master station signal receiving module;
the first control unit is used for controlling the on and off of the first switch tube according to a control signal sent by the main station.
4. The bus communication circuit as claimed in claim 3, wherein said first control unit is a first optocoupler or a second switch tube.
5. The bus communication circuit as claimed in claim 3, wherein the trimming resistances in each of said resistance cell circuits are different from each other.
6. The bus communication circuit of claim 2, wherein the master station signal receiving module comprises a first comparator, a third resistor, a fourth resistor, a second capacitor, and a second optocoupler;
a first input end of the first comparator is connected with a first end of the communication protection module through the third resistor, a second input end of the first comparator is respectively connected with a second end of each resistor unit circuit, a second end of the first comparator is grounded through a fourth resistor, the second capacitor is connected with the fourth resistor in parallel, an output end of the first comparator is connected with a controlled end of the second optocoupler, and a control end of the second optocoupler is connected with a signal receiving end of the master station;
and the second optical coupler is used for sending corresponding high and low level signals to a signal receiving end of the main station according to the high and low level signals output by the first comparator.
7. The bus communication circuit according to any one of claims 1 to 6, wherein the master station signal transmitting module comprises a third optocoupler, a voltage regulator chip, a first voltage regulator diode and a second voltage regulator diode;
the controlled end of the third optical coupler is connected with the signal sending end of the master station, the output anode and the output cathode of the third optical coupler are respectively connected with the cathode and the anode of the second voltage stabilizing diode, the input end of the voltage stabilizing chip is connected with the bus voltage, the grounding end of the voltage stabilizing chip is connected with the cathode of the first voltage stabilizing diode, the anode of the first voltage stabilizing diode is connected with the cathode of the second voltage stabilizing diode, the anode of the second voltage stabilizing diode is grounded, and the output end of the voltage stabilizing chip is the output end of the master station signal sending module.
8. The bus communication circuit according to any one of claims 1 to 6, wherein the communication protection module comprises a second diode, a transient diode, a third capacitor and a thermistor;
the anode of the second diode is the first end of the communication protection module, the anode of the second diode is grounded through the third capacitor, the cathode of the second diode is connected with the anode of the slave station through the thermistor, the cathode of the slave station is grounded, and the cathode of the second diode is also grounded through the transient diode.
9. The bus communication circuit of claim 8, wherein the communication protection module is further to receive the first output voltage to power a slave station.
10. A bus communication apparatus comprising a master, a slave, and a bus communication circuit connected to the master and the slave, respectively, the bus communication circuit being configured as the bus communication circuit according to any one of claims 1 to 9.
CN202011573828.8A 2020-12-25 2020-12-25 Bus communication circuit and device Pending CN112583682A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202011573828.8A CN112583682A (en) 2020-12-25 2020-12-25 Bus communication circuit and device
PCT/CN2021/086004 WO2022134379A1 (en) 2020-12-25 2021-04-08 Bus communication circuit and device
MX2022009773A MX2022009773A (en) 2020-12-25 2021-04-08 Bus communication circuit and device.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011573828.8A CN112583682A (en) 2020-12-25 2020-12-25 Bus communication circuit and device

Publications (1)

Publication Number Publication Date
CN112583682A true CN112583682A (en) 2021-03-30

Family

ID=75140128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011573828.8A Pending CN112583682A (en) 2020-12-25 2020-12-25 Bus communication circuit and device

Country Status (3)

Country Link
CN (1) CN112583682A (en)
MX (1) MX2022009773A (en)
WO (1) WO2022134379A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022134379A1 (en) * 2020-12-25 2022-06-30 威胜集团有限公司 Bus communication circuit and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3279168B2 (en) * 1996-02-29 2002-04-30 日本電気株式会社 Multi-way multiplex communication equipment
CN102980604B (en) * 2012-11-30 2015-04-22 深圳市华旭科技开发有限公司 Photoelectric direct-reading decoder and decoding method
CN109857021B (en) * 2019-01-30 2020-05-12 烟台东方威思顿电气有限公司 Active shielding system and method for resisting interference of M-bus
CN112583682A (en) * 2020-12-25 2021-03-30 威胜集团有限公司 Bus communication circuit and device
CN213906694U (en) * 2020-12-25 2021-08-06 威胜集团有限公司 Bus communication circuit and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022134379A1 (en) * 2020-12-25 2022-06-30 威胜集团有限公司 Bus communication circuit and device

Also Published As

Publication number Publication date
WO2022134379A1 (en) 2022-06-30
MX2022009773A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN104239240A (en) Electronic device with universal serial bus (USB) interface with integration function
US11372796B2 (en) Bus subscriber and method for operating a bus subscriber
US9984033B2 (en) Systems and methods for biasing a bus
CN213906694U (en) Bus communication circuit and device
CN106980589A (en) A kind of automatic transceiving circuits of RS 485
CN112583682A (en) Bus communication circuit and device
CN207677707U (en) A kind of precisely reliable UART communications level shifting circuit
CN112953221B (en) Voltage conversion device
CN214707733U (en) Communication circuit of monitoring equipment
CN210075196U (en) Digital signal isolation transmission circuit based on capacitor and operational amplifier
CN210075211U (en) Signal transmission circuit and device
CN103118143A (en) Multiplex circuit of serial interface and Ethernet interface
CN109274615B (en) Bus signal reflection suppression method, device and system and control circuit
CN108964717B (en) NRZ current coding circuit based on single control line
CN216565110U (en) Isolation circuit of RS-485 chip
CN208128256U (en) A kind of multi-service field operation optical transmitter and receiver
CN217034618U (en) Voltage control circuit, voltage controller and voltage control system
CN210780766U (en) RS485 full-duplex communication circuit with reset function
CN109391277A (en) A kind of cascade bus signal receiving circuit and control system
CN110018974A (en) The slave station machine device for providing power supply simultaneously using two lines bus and being communicated
CN217956959U (en) Interface switching device and RS232 interface device
CN209746406U (en) equipment control circuit of intelligent granary
CN218771301U (en) Protection circuit and intelligent gateway of RS485 chip
CN220673416U (en) Single-wire communication circuit of battery and lithium battery
CN214798877U (en) BMS communication interface circuit and battery management system

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