MBUS collector
By adopting a design that reduces sampling resistance and isolating power in the MBUS collector, the impact of slave load current on MBUS modulated voltage signal is solved, and the load capacity of MBUS slave is improved.
Patent Information
- Application Number
- CN201711345987.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-12-15
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2037-12-15
AI Technical Summary
When there are many slave stations and large load currents, the sampling resistor affects the modulated voltage signal sent by the MBUS, resulting in voltage reduction and voltage difference fluctuations, affecting the signal recognition effect.
A MBUS collector was designed, using a microcontroller, LED display module, RS485 communication circuit, USB communication circuit and MBUS communication circuit, and was composed of three-terminal voltage regulator, current monitor, comparator, optocoupler and resistor components. The communication circuit, the sampling resistance is reduced to 0.5Ω, combined with an isolated power supply and a current monitor, reduce the impact of slave load on the modulated voltage signal.
On the premise of ensuring the correct sampling and identification of the modulated current signal of the MBUS slave station, the MBUS sending modulated voltage signal is reduced due to the change in the load current of the slave station, and the load capacity of the MBUS slave station is greatly improved.
Smart Images

Figure CN107767654B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of centralized meter reading, and in particular to an MBUS collector. Background Art
[0002] MBUS is a major communication method between collectors and meters in centralized meter reading systems. The MBUS communication circuit of existing collectors generally uses a sampling resistor of several tens of ohms to sample and identify the modulated current signal returned by the MBUS slave station. The larger the sampling resistor, the better the recognition effect of the returned signal. However, when there are many slave stations and the load current is large, the sampling resistor will affect the modulated voltage signal sent by the MBUS, resulting in voltage reduction and voltage difference fluctuation.
[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide an MBUS collector, aiming to reduce the impact of slave load current changes on the MBUS sending modulation voltage signal, and improve the MBUS slave load capacity.
[0005] The technical solution of the present invention is as follows:
[0006] An MBUS collector comprises a microcontroller, an LED display module, an RS485 communication circuit, a USB communication circuit, an MBUS communication circuit and a power module; the microcontroller is respectively connected to the LED display module, the RS485 communication circuit, the USB communication circuit and the MBUS communication circuit; the power module provides two groups of isolated power supplies, one of which is connected to the microcontroller, the LED display module, the RS485 communication circuit and the USB communication circuit, and the other is connected to the MBUS communication circuit.
[0007] The MBUS collector, wherein the microcontroller is STM32F103VC.
[0008] The MBUS collector, wherein the MBUS communication circuit includes a three-terminal voltage regulator U4, a current monitor U5, a comparator U6, a diode D1, a transistor Q7, a transistor Q8, a transistor Q9, a transistor Q10, an optocoupler ISO1, an optocoupler ISO2, a coupling capacitor C10, a filter capacitor C11, a pull-up resistor R17, a current limiting resistor R18, a current limiting resistor R19, a pull-up resistor R20, a current limiting resistor R21, a current limiting resistor R41, a pull-up resistor R42, a current limiting resistor R43, a current limiting resistor R44, a voltage dividing resistor R45, a voltage dividing resistor R46, a voltage dividing resistor R47, a sampling resistor R48, a matching resistor R49, a matching resistor R50, a pull-down resistor R51, a matching resistor R52, a voltage dividing resistor R53, a voltage dividing resistor R54, a pull-up resistor R55, a current limiting resistor R56, and a wiring terminal J1.
[0009] One end of the pull-up resistor R17 is connected to one end of the current limiting resistor R18 and then to pin 55 of the microcontroller U1. The other end of the pull-up resistor R17 is connected to a 3.3V power supply. The other end of the current limiting resistor R18 is connected to the B pole of the transistor Q7. The E pole of the transistor Q7 is connected to the 3.3V power supply. The C pole of the transistor Q7 is connected to pin 1 of the optocoupler ISO1. Pin 3 of the optocoupler ISO1 is connected to the current limiting resistor R19 and then to ground. Pin 4 of the optocoupler ISO1 is grounded. Pin 6 of the optocoupler ISO1 is connected to the current limiting resistor R41 and then to the 5V_MBUS power supply. Pin 5 of the optocoupler ISO1 is led out and divided into two paths. One path is connected to the pull-up resistor R42 and then to the 5V_MBUS power supply. The other path is connected to the current limiting resistor R43 and then to the B pole of the transistor Q9. The E pole of transistor Q9 is connected to the current limiting resistor R44 and then to the 5V_MBUS power supply, the C pole of transistor Q9 is connected to the B pole of transistor Q10, the E pole of transistor Q10 is grounded, the C pole of transistor Q10 is connected to one end of the voltage divider resistor R45, and pin 1 of the three-terminal voltage regulator U4 is led out and divided into three paths, one path is connected to the other end of the voltage divider resistor R45, one path is connected to the voltage divider resistor R46 and then to the ground, one path is connected to the voltage divider resistor R47 and then to pin 2 of the three-terminal voltage regulator U4, pin 3 of the three-terminal voltage regulator U4 is connected to the 36V_MBUS power supply, pin 1 of diode D1 is connected to pin 2 of the three-terminal voltage regulator U4, pin 2 of diode D1 is connected to pin 3 of the three-terminal voltage regulator U4, and one end of the sampling resistor R48 is connected to the three-terminal voltage regulator U 4, and the other end is connected to terminal 2 of terminal J1, terminal 1 of terminal J1 is grounded, and terminal J1 is connected to the instrument (MBUS slave); pin 3 of current monitor U5 is connected to matching resistor R49 and then to pin 2 of three-terminal regulator U4, pin 4 of current monitor U5 is connected to matching resistor R50 and then to terminal 2 of terminal J1, pin 5 of current monitor U5 is connected to 18V_MBUS power supply, pin 2 of current monitor U5 is grounded, pin 1 of current monitor U5 is connected to one end of coupling capacitor C10, and the other end of coupling capacitor C10 is led out and divided into three paths, one path is connected to pull-down resistor R51 and then to ground, one path is connected to filter capacitor C11 and then to ground, and one path is connected to matching resistor R52 and then to Pin 3 of comparator U6 and pin 8 of comparator U6 are connected to 5V_MBUS power supply, pin 4 of comparator U6 is grounded, pin 2 of comparator U6 is led out and divided into two paths, one path is connected to voltage divider resistor R53 and then to ground, and the other path is connected to voltage divider resistor R54 and then to 5V_MBUS power supply, pin 1 of comparator U6 is led out and divided into two paths, one path is connected to pull-up resistor R55 and then to 5V_MBUS power supply, one path is connected to B pole of transistor Q8, E pole of transistor Q8 is grounded, C pole of transistor Q8 is connected to pin 3 of optocoupler ISO2, pin 1 of optocoupler ISO2 is connected to current limiting resistor R56 and then to 5V_MBUS power supply, pin 4 of optocoupler ISO2 is grounded, pin 6 of optocoupler ISO2 is connected to current limiting resistor R21 and then to 3.3V power supply, pin 5 of optocoupler ISO2 is led out and divided into two paths, one is connected to the pull-up resistor R20 and then connected to the 3.3V power supply, and the other is connected to pin 56 of microcontroller U1. .
[0010] The MBUS collector, wherein the sampling resistor R48 is a 0.5Ω±1% chip resistor.
[0011] The MBUS collector, wherein the coupling capacitor C10 is a 1uF±10% chip capacitor.
[0012] The MBUS collector, wherein the current monitor U5 is INA194.
[0013] Beneficial effect: Under the premise of ensuring correct sampling and identification of MBUS slave station modulation current signal, the present invention reduces the influence of the MBUS sending modulation voltage signal on the slave station load current change, and greatly improves the MBUS slave station load capacity. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a structural block diagram of a preferred embodiment of an MBUS collector of the present invention.
[0015] Figure 2 The invention discloses an MBUS communication circuit diagram of an MBUS collector. DETAILED DESCRIPTION
[0016] The present invention provides an MBUS collector. To make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0017] To facilitate the following description, the following description is given for MBUS physical layer communication:
[0018] MBUS physical layer bit stream transmission has unique level characteristics. The bit stream transmission from the master to the slave is achieved through voltage modulation, while the bit stream transmission from the slave to the master is achieved through current modulation. Define logical "1" as mark and logical "0" as space.
[0019]
[0020] MBUS protocol stipulates that the bus is in an idle state with logic "1", that is, the bus voltage is maintained at Vmark, and each slave station takes a current of Imark ≤ 1.5mA, that is, the total current on the two-wire bus is equal to Imark * the total number of slave stations. In this way, whether the bus is in an idle state or a data transmission state, the bus voltage is not lower than Vspace, and the current taken by each slave station is not greater than Imark, and this current can be used as the slave station power supply.
[0021] Figure 1 It is a structural block diagram of the MBUS collector of the present invention, which includes a microcontroller, an LED display module, an RS485 communication circuit, a USB communication circuit, an MBUS communication circuit, and a power module. The microcontroller is connected to the LED display module, the RS485 communication circuit, the USB communication circuit, and the MBUS communication circuit respectively, and the power module provides two groups of isolated power supplies, one of which is connected to the microcontroller, the LED display module, the RS485 communication circuit, and the USB communication circuit, and the other is connected to the MBUS communication circuit. During the implementation process, the power module provides power; the microcontroller controls the LED display module to display the current communication status of the RS485 communication circuit, the USB communication circuit, and the MBUS communication circuit in real time; the RS485 communication circuit and the USB communication circuit forward the received meter reading command of the upstream device to the microcontroller; the microcontroller analyzes the meter reading command and sends the meter reading command to the downstream meter (MBUS slave station) through the MBUS communication circuit; the MBUS communication circuit forwards the received return data of the downstream meter (MBUS slave station) to the microcontroller, and the microcontroller sends the return data to the upstream device through the RS485 communication circuit and the USB communication circuit.
[0022] As a further preferred embodiment, the microcontroller is STM32F103VC.
[0023] Among them, STM32F103VC is a 32-bit ARM microcontroller with Cortex-M3 core produced by STMicroelectronics. Its operating voltage is 2.0-3.6V, the maximum operating frequency is 72MHz, and it has 256K FLASH and 48K SRAM.
[0024] Figure 2The invention discloses an MBUS communication circuit diagram of an MBUS collector, which includes a three-terminal voltage regulator U4, a current monitor U5, a comparator U6, a diode D1, a transistor Q7, a transistor Q8, a transistor Q9, a transistor Q10, an optical coupler ISO1, an optical coupler ISO2, a coupling capacitor C10, a filter capacitor C11, a pull-up resistor R17, a current limiting resistor R18, a current limiting resistor R19, a pull-up resistor R20, a current limiting resistor R21, a current limiting resistor R41, a pull-up resistor R42, a current limiting resistor R43, a current limiting resistor R44, a voltage dividing resistor R45, a voltage dividing resistor R46, a voltage dividing resistor R47, a sampling resistor R48, a matching resistor R49, a matching resistor R50, a pull-down resistor R51, a matching resistor R52, a voltage dividing resistor R53, a voltage dividing resistor R54, a pull-up resistor R55, a current limiting resistor R56, and a wiring terminal J1.
[0025] Connection relationship: one end of the pull-up resistor R17 is connected to one end of the current limiting resistor R18 and then to pin 55 of the microcontroller U1, the other end of the pull-up resistor R17 is connected to a 3.3V power supply, the other end of the current limiting resistor R18 is connected to the B pole of the transistor Q7, the E pole of the transistor Q7 is connected to the 3.3V power supply, the C pole of the transistor Q7 is connected to pin 1 of the optocoupler ISO1, pin 3 of the optocoupler ISO1 is connected to the current limiting resistor R19 and then to ground, pin 4 of the optocoupler ISO1 is grounded, pin 6 of the optocoupler ISO1 is connected to the current limiting resistor R41 and then to the 5V_MBUS power supply, and pin 5 of the optocoupler ISO1 is led out and divided into two paths, one path is connected to the pull-up resistor R42 and then to the 5V_MBUS power supply, and the other path is connected to the current limiting resistor R43 and then to the transistor Q9 The B pole of the transistor Q9 is connected to the current limiting resistor R44 and then to the 5V_MBUS power supply. The C pole of the transistor Q9 is connected to the B pole of the transistor Q10. The E pole of the transistor Q10 is grounded. The C pole of the transistor Q10 is connected to one end of the voltage divider resistor R45. Pin 1 of the three-terminal voltage regulator U4 is led out and divided into three paths. One path is connected to the other end of the voltage divider resistor R45, one path is connected to the voltage divider resistor R46 and then to the ground, one path is connected to the voltage divider resistor R47 and then to pin 2 of the three-terminal voltage regulator U4. Pin 3 of the three-terminal voltage regulator U4 is connected to the 36V_MBUS power supply. Pin 1 of the diode D1 is connected to pin 2 of the three-terminal voltage regulator U4, pin 2 of the diode D1 is connected to pin 3 of the three-terminal voltage regulator U4, and one end of the sampling resistor R48 is connected to the three-terminal voltage regulator The pin 2 of the current monitor U4 is connected to the other end of the pin 2 of the wiring terminal J1, the terminal 1 of the wiring terminal J1 is grounded, and the wiring terminal J1 is connected to the instrument (MBUS slave); the pin 3 of the current monitor U5 is connected to the matching resistor R49 and then to the pin 2 of the three-terminal regulator U4, the pin 4 of the current monitor U5 is connected to the matching resistor R50 and then to the terminal 2 of the wiring terminal J1, the pin 5 of the current monitor U5 is connected to the 18V_MBUS power supply, the pin 2 of the current monitor U5 is grounded, the pin 1 of the current monitor U5 is connected to one end of the coupling capacitor C10, and the other end of the coupling capacitor C10 is led out and divided into three paths, one path is connected to the pull-down resistor R51 and then to the ground, one path is connected to the filter capacitor C11 and then to the ground, and one path is connected to the matching resistor R52 and then to the Connect to pin 3 of comparator U6, pin 8 of comparator U6 is connected to 5V_MBUS power supply, pin 4 of comparator U6 is grounded, pin 2 of comparator U6 is led out and divided into two paths, one path is connected to voltage divider resistor R53 and then to ground, and the other path is connected to voltage divider resistor R54 and then to 5V_MBUS power supply, pin 1 of comparator U6 is led out and divided into two paths, one path is connected to pull-up resistor R55 and then to 5V_MBUS power supply, one path is connected to B pole of transistor Q8, E pole of transistor Q8 is grounded, C pole of transistor Q8 is connected to pin 3 of optocoupler ISO2, pin 1 of optocoupler ISO2 is connected to current limiting resistor R56 and then to 5V_MBUS power supply, pin 4 of optocoupler ISO2 is grounded, pin 6 of optocoupler ISO2 is connected to current limiting resistor R21 and then to 3.3V power supply, pin 5 of optocoupler ISO2 is led out and divided into two paths, one is connected to the pull-up resistor R20 and then connected to the 3.3V power supply, and the other is connected to pin 56 of microcontroller U1. .
[0026] Working principle: When sending data, the microcontroller outputs a signal through pin 55. After the signal is isolated by the optocoupler ISO1, it controls the on and off of transistors Q9 and Q10 through pin 5 of the optocoupler ISO1, and then controls pin 1 (voltage adjustment pin) of the three-terminal regulator U4, so that pin 2 of the three-terminal regulator U4 outputs a modulated voltage that meets the MBUS communication requirements to the instrument (MBUS slave station); when receiving data, the instrument (MBUS slave station) outputs a modulated current, the sampling resistor R48 converts the current signal into a voltage signal, and the current monitor U5 amplifies the voltage signal 50 times and outputs it to the coupling capacitor C10. The coupling capacitor C10 isolates the DC component and transmits the changing voltage signal to the comparator U6. The comparator U6 compares the coupled voltage signal with the reference voltage and outputs a standard digital communication TTL level. After being isolated by the optocoupler ISO2, it is transmitted to the microcontroller through pin 5 of the optocoupler ISO2.
[0027] As a further preferred embodiment, the sampling resistor R48 is a 0.5Ω±1% chip resistor.
[0028] As a further preferred embodiment, the coupling capacitor C10 is a 1uF±10% chip capacitor.
[0029] As a further preferred implementation, the current monitor U5 is INA194.
[0030] Among them, INA194 is a current monitor in SOT23-5 package produced by TI. The chip has the following features: wide operating voltage range: +2.7V to +18V; wide common mode voltage range: -16V to +36V; high accuracy, with an error of less than 3% over the entire operating temperature range; bandwidth up to 500kHz; low power consumption, with a maximum quiescent current of 900uA; output voltage proportional to the monitoring current, with a large monitoring current range; voltage amplification factor: 50.
[0031] The above specifically describes the preferred implementation of the present invention, but the invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. An MBUS collector, characterized in that: It includes a microcontroller, an LED display module, an RS485 communication circuit, a USB communication circuit, an MBUS communication circuit, and a power module; the microcontroller is connected to the LED display module, the RS485 communication circuit, the USB communication circuit, and the MBUS communication circuit respectively, and the power module provides two groups of isolated power supplies, one of which is connected to the microcontroller, the LED display module, the RS485 communication circuit, and the USB communication circuit, and the other is connected to the MBUS communication circuit; The MBUS communication circuit includes a three-terminal voltage regulator U4, a current monitor U5, a comparator U6, a diode D1, a transistor Q7, a transistor Q8, a transistor Q9, a transistor Q10, an optical coupler ISO1, an optical coupler ISO2, a coupling capacitor C10, a filter capacitor C11, a pull-up resistor R17, a current limiting resistor R18, a current limiting resistor R19, a pull-up resistor R20, a current limiting resistor R21, a current limiting resistor R41, a pull-up resistor R42, a current limiting resistor R43, a current limiting resistor R44, a voltage dividing resistor R45, a voltage dividing resistor R46, a voltage dividing resistor R47, a sampling resistor R48, a matching resistor R49, a matching resistor R50, a pull-down resistor R51, a matching resistor R52, a voltage dividing resistor R53, a voltage dividing resistor R54, a pull-up resistor R55, a current limiting resistor R56, and a wiring terminal J1; One end of the pull-up resistor R17 is connected to one end of the current limiting resistor R18 and then to pin 55 of the microcontroller U1. The other end of the pull-up resistor R17 is connected to a 3.3V power supply. The other end of the current limiting resistor R18 is connected to the B pole of the transistor Q7. The E pole of the transistor Q7 is connected to the 3.3V power supply. The C pole of the transistor Q7 is connected to pin 1 of the optocoupler ISO1. Pin 3 of the optocoupler ISO1 is connected to the current limiting resistor R19 and then to ground. Pin 4 of the optocoupler ISO1 is grounded. Pin 6 of the optocoupler ISO1 is connected to the current limiting resistor R41 and then to the 5V_MBUS power supply. Pin 5 of the optocoupler ISO1 is led out and divided into two paths. One path is connected to the pull-up resistor R42 and then to the 5V_MBUS power supply, and the other path is connected to the current limiting resistor R43 and then to the B pole of the transistor Q9. , the E pole of transistor Q9 is connected to the current limiting resistor R44 and then to the 5V_MBUS power supply, the C pole of transistor Q9 is connected to the B pole of transistor Q10, the E pole of transistor Q10 is grounded, the C pole of transistor Q10 is connected to one end of the voltage divider resistor R45, and the pin 1 of the three-terminal voltage regulator U4 is led out and divided into three paths, one path is connected to the other end of the voltage divider resistor R45, one path is connected to the voltage divider resistor R46 and then to the ground, and one path is connected to the voltage divider resistor R47 and then to the pin 2 of the three-terminal voltage regulator U4, and the pin 3 of the three-terminal voltage regulator U4 is connected to the 36V_MBUS power supply, the pin 1 of the diode D1 is connected to the pin 2 of the three-terminal voltage regulator U4, the pin 2 of the diode D1 is connected to the pin 3 of the three-terminal voltage regulator U4, and one end of the sampling resistor R48 is connected to the three-terminal voltage regulator The pin 2 of the current monitor U4 is connected to the terminal 2 of the wiring terminal J1, the terminal 1 of the wiring terminal J1 is grounded, and the wiring terminal J1 is connected to the MBUS slave station; the pin 3 of the current monitor U5 is connected to the matching resistor R49 and then connected to the pin 2 of the three-terminal regulator U4, the pin 4 of the current monitor U5 is connected to the matching resistor R50 and then connected to the terminal 2 of the wiring terminal J1, the pin 5 of the current monitor U5 is connected to the 18V_MBUS power supply, the pin 2 of the current monitor U5 is grounded, the pin 1 of the current monitor U5 is connected to one end of the coupling capacitor C10, and the other end of the coupling capacitor C10 is led out and divided into three paths, one path is connected to the pull-down resistor R51 and then to the ground, one path is connected to the filter capacitor C11 and then to the ground, and one path is connected to the matching resistor R52 and then to the ratio Pin 3 of comparator U6, pin 8 of comparator U6 is connected to 5V_MBUS power supply, pin 4 of comparator U6 is grounded, pin 2 of comparator U6 is led out and divided into two paths, one path is connected to voltage divider resistor R53 and then to ground, and the other path is connected to voltage divider resistor R54 and then to 5V_MBUS power supply, pin 1 of comparator U6 is led out and divided into two paths, one path is connected to pull-up resistor R55 and then to 5V_MBUS power supply, one path is connected to B pole of transistor Q8, E pole of transistor Q8 is grounded, C pole of transistor Q8 is connected to pin 3 of optocoupler ISO2, pin 1 of optocoupler ISO2 is connected to current limiting resistor R56 and then to 5V_MBUS power supply, pin 4 of optocoupler ISO2 is grounded, pin 6 of optocoupler ISO2 is connected to current limiting resistor R21 and then to 3.3V power supply, pin 5 of optocoupler ISO2 is led out and divided into two paths, one is connected to pull-up resistor R20 and then connected to 3.3V power supply, and the other is connected to pin 56 of microcontroller U1;. The sampling resistor R48 is a 0.5Ω±1% chip resistor; The microcontroller is STM32F103VC; The coupling capacitor C10 is a 1uF±10% chip capacitor; The current monitor U5 is INA194.
