Main unit wired MBUS circuit, wired MBUS communication device and terminal
By introducing a transmit waveform correction circuit into the wired MBUS circuit of the host, the electrical energy stored by the bus capacitance effect is quickly released, solving the problem of falling edge delay distortion caused by line distributed capacitance in small centralized meter reading systems, and realizing stable communication and high success rate at high speed.
Patent Information
- Application Number
- CN202611145613.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-30
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2046-07-30
AI Technical Summary
In small centralized meter reading systems, due to the small number of slave devices and light bus load, the falling edge delay distortion caused by the distributed capacitance of the line is serious, affecting the communication success rate and high-speed communication capability.
The host wired MBUS circuit is adopted, including a host control circuit, a host data transmission circuit, a host data reception circuit, and a transmission waveform correction circuit. The transmission waveform correction circuit provides a discharge path when the host data transmission signal transitions from high level to low level, quickly releasing the electrical energy stored by the bus capacitance effect and eliminating falling edge delay distortion.
With a small number of slave devices and a light bus load, stable communication at high speeds is ensured, significantly improving the system's anti-interference capability and communication success rate, while reducing hardware costs.
Smart Images

Figure CN122673141B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to a host wired MBUS circuit, a wired MBUS communication device, and a terminal. Background Technology
[0002] In traditional wired MBUS communication schemes, both the master and slave devices are designed with communication modulation integrated circuits. The slave device's communication modulation integrated circuit and the master device's communication modulation integrated circuit are connected via a bus. The slave device detects the bus voltage; a high voltage represents logic "1," and a low voltage represents logic "0." The master device supplies power to the bus and performs data communication through its modulation integrated circuit, outputting a high voltage as logic "1" and a low voltage as logic "0." The master controller (MCU) sends digital data signals "1" and "0" through the wired MBUS communication modulation integrated circuit. The bus transmits corresponding signals through voltage changes. The slave device's wired MBUS communication modulation integrated circuit parses the digital signals "1" and "0" and sends them to the slave controller. After combining them into a correct data frame, the slave MCU responds with data to the master MCU through the MBUS communication modulation integrated circuit, the bus, and the wired MBUS communication modulation integrated circuit, completing the data communication interaction between the master and slave devices.
[0003] However, in related technologies, when the master transmits data via the falling edge from high voltage to low voltage, the slave device relies entirely on its own power consumption load to pull down the bus voltage. If the bus routing is complex and the capacitance effect is significant, waveform delay and distortion will occur during the falling edge from high voltage to low voltage, affecting normal communication. Moreover, in small-scale centralized data collection systems for households, there are usually only four slave devices: water meter, gas meter, heat meter, and electricity meter. The total load of the slave devices is very small, making it difficult to guarantee the success rate of wired MBUS communication. Summary of the Invention
[0004] In view of the above problems, this application provides a host wired MBUS circuit, a wired MBUS communication device and a terminal, which eliminates the falling edge delay distortion caused by line distributed capacitance.
[0005] The first aspect of this application provides a host wired MBUS circuit, the host wired MBUS circuit comprising: The main control circuit is used to send master data transmission signals and receive slave response signals. A host data transmission circuit, connected to the main control circuit and the bus, is used to control the voltage on the bus to switch between high and low levels according to the host data transmission signal. A host data receiving circuit, connected to the main control circuit and the bus, is used to detect current changes on the bus and demodulate the current changes to generate the slave response signal; and A waveform correction circuit is connected to the host data transmission circuit to provide a bus discharge path when the host data transmission signal transitions from high level to low level, so as to accelerate the release of energy stored by the bus capacitance effect. The transmitted waveform correction circuit includes: a discharge switch unit and a discharge resistor; the control terminal of the discharge switch unit is connected to a first control node, the first terminal of the discharge switch unit is connected to the bus, and the second terminal of the discharge switch unit is grounded through the discharge resistor; an isolation diode is provided between the first control node and the bus, and the discharge switch unit is configured to turn on when the level of the first control node switches from high level to low level.
[0006] In some embodiments, the host data transmission circuit includes: A transmission isolation module, connected to the main control circuit, is used to receive the host data transmission signal and convert the host data transmission signal into a transmission isolation data signal; A transmission modulation module, connected to the transmission isolation module and the bus, is used to receive the transmission isolation data signal and modulate the voltage on the bus according to the transmission isolation data signal to control the level switching on the bus.
[0007] In some embodiments, the transmission modulation module includes: a first switching unit and a second switching unit; The output terminal of the transmission isolation module is connected to the control terminal of the first switching unit. The first terminal of the first switching unit is connected to the bus, and the second terminal of the first switching unit is grounded. The first switching unit is configured to turn on or off according to the transmission isolation data signal. The first terminal of the second switching unit is connected to the pull-up power supply terminal, the control terminal of the second switching unit is connected to the first terminal of the first switching unit, the second terminal of the second switching unit is connected to the bus, and the second switching unit is configured to provide a high level to the bus when the first switching unit is turned off.
[0008] In some embodiments, the resistance value of the discharge resistor is positively correlated with the high-level voltage on the bus.
[0009] In some embodiments, the cable equivalent capacitance of the bus is less than 180nF.
[0010] In some embodiments, the host data receiving circuit includes: A receiving and demodulation module, connected to the bus, is used to detect current changes on the bus and convert the current changes on the bus into response data signals; The receiving isolation module, connected to the main control circuit and the receiving modulation and demodulation module, is used to isolate the response data signal to generate the slave response signal.
[0011] In some embodiments, the host wired MBUS circuit further includes: The bus protection module is used to provide overcurrent protection for the current on the bus and overvoltage protection for the voltage on the bus.
[0012] A second aspect of this application also provides a wired MBUS communication device, which includes: a slave wired MBUS circuit and a master wired MBUS circuit as described in any of the above embodiments. The slave wired MBUS circuit is used to detect voltage changes on the bus, convert the voltage changes into corresponding master data, and send a slave response signal by adjusting the current on the bus.
[0013] In some embodiments, the slave wired MBUS circuit includes: The control module is used to receive data transmission signals from the host and send slave response signals. The slave communication modulation transceiver module is used to convert voltage changes on the bus into data transmission signals for the master.
[0014] A third aspect of this application also provides a terminal, the terminal including the wired MBUS communication device as described above.
[0015] The beneficial effects of this application embodiment are as follows: The host data transmission circuit controls the voltage on the bus to switch between high and low levels according to the host data transmission signal provided by the main control circuit. The host data receiving circuit detects the current change on the bus and demodulates the current change to generate a slave response signal to be sent to the main control circuit. The transmission waveform correction circuit provides a bus discharge path when the host data transmission signal transitions from high to low level to accelerate the release of energy stored by the bus capacitance effect. This effectively eliminates the falling edge delay distortion caused by the distributed capacitance of the line, so that even when the number of slaves is small and the bus load is light, stable communication at high speed can be guaranteed, which significantly improves the anti-interference capability and communication success rate of the system.
[0016] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0017] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 A first schematic diagram of a host wired MBUS circuit provided in an embodiment of this application; Figure 2 A second schematic diagram of a host wired MBUS circuit provided in an embodiment of this application; Figure 3 A third schematic diagram of a host wired MBUS circuit provided in an embodiment of this application; Figure 4 A fourth schematic diagram of a host wired MBUS circuit provided in an embodiment of this application; Figure 5 This is a schematic diagram of a wired MBUS communication device provided in an embodiment of this application. Detailed Implementation
[0018] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0020] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0021] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The phrase "second connection port" at various locations in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0022] The M-Bus (Meter-Bus) communication protocol is a European standard meter bus communication protocol widely used in remote centralized meter reading systems for water meters, gas meters, heat meters, and electricity meters. Its physical layer uses a two-wire bus, combining power supply and communication functions. The master unit transmits data via voltage modulation, while the slave unit responds via current modulation. Currently, mainstream wired M-Bus master circuit technology generally uses dedicated integrated circuit chips. These dedicated chips are feature-rich, have high load capacity (typically driving more than 50 slave units), and offer stable performance. However, centralized meter reading systems are gradually shifting from complex, large-scale systems (capable of reading more than 200 slave units) to smaller, household-based centralized meter reading systems. In this application scenario, a master unit typically only needs to read a small number of slave units (e.g., four or fewer) such as water, gas, heat, and electricity meters within the household. Using existing high-performance, high-load-capacity dedicated integrated circuit chips to drive such a small number of slave units results in significant functional redundancy, leading to high hardware costs and hindering product market competitiveness and industry-wide scaling. Furthermore, in practical engineering applications, the laying path, length, and wiring method of the M-Bus communication bus (twisted pair) can lead to distributed capacitance between the lines, resulting in a capacitive effect. When the host transmits data, transitioning from a high-level "1" to a low-level "0", the capacitance on the bus stores electrical energy, which slowly discharges at the moment of transition, causing a delay distortion in the falling edge of the communication data waveform. The harsher the environment (e.g., the longer the line, the more complex the wiring), the more pronounced the capacitive effect and the more severe the waveform distortion. In small systems designed for home use, the number of slave devices is small, the total power consumption of the slave devices is very low, and their ability to pull down the bus voltage is weak, making the aforementioned waveform falling edge distortion problem even more prominent. This seriously affects the communication success rate, especially at communication baud rates higher than 2400bps, where the problem is particularly significant, limiting the system's high-speed communication capabilities and the user's meter reading experience.
[0023] To address the aforementioned technical problems, this application provides a master wired MBUS circuit, which is connected to a slave wired MBUS circuit via a bus. (See [link to relevant documentation]). Figure 1As shown, the host wired MBUS circuit 100 includes: a main control circuit 110, a host data transmission circuit 200, a host data receiving circuit 300, and a transmission waveform correction circuit 400. The main control circuit 110 is used to transmit host data transmission signals and receive slave response signals. The host data transmission circuit 200 is connected to the main control circuit 110 and the bus 600, and is used to control the voltage on the bus 600 to switch between high and low levels according to the host data transmission signal. The host data receiving circuit 300 is connected to the main control circuit 110 and the bus 600, and is used to detect current changes on the bus 600 and demodulate the current changes to generate slave response signals. The transmission waveform correction circuit 400 is connected to the host data transmission circuit 200, and is used to provide a bus discharge path when the host data transmission signal transitions from high to low level, so as to accelerate the release of the energy stored in the bus 600 by the capacitor effect.
[0024] The laying path, length, and wiring method of the M-Bus communication bus (twisted pair) can cause distributed capacitance between the lines, resulting in a capacitive effect. The host includes a host wired MBUS circuit 100, and the slave includes a slave wired MBUS circuit. The host wired MBUS circuit 100 is connected to the slave wired MBUS circuit via bus 600. When the host transmits data (i.e., the host data transmission signal) transitions from a high level "1" to a low level "0", the capacitance effect on bus 600 stores electrical energy, which slowly discharges at the moment of transition, causing a delay distortion in the falling edge of the communication data waveform. In this embodiment, the transmit waveform correction circuit 400 is electrically connected to the host data transmission circuit 200 and provides an additional discharge loop at the moment the host data transmission signal transitions from a high level to a low level to accelerate the release of the energy stored in the capacitance effect of bus 600 and correct the waveform falling edge delay. Thus, by adding a unique transmit waveform correction circuit 400, a high-power discharge resistor is automatically connected at the instant the host transmits data from "1" to "0", forcibly and quickly releasing the electrical energy stored in the bus 600 due to the capacitance effect, effectively eliminating the falling edge delay distortion caused by the distributed capacitance of the lines. This ensures stable communication at high speeds (such as 9600bps) even when the number of slave devices is small and the bus 600 is lightly loaded, significantly improving the system's anti-interference capability and communication success rate.
[0025] In some embodiments, the host data transmitting circuit 200, the host data receiving circuit 300, and the transmitting waveform correction circuit 400 use discrete components such as transistors, resistors, capacitors, and diodes. By combining various discrete components, all communication functions of the M-Bus host are realized, eliminating the need for expensive dedicated integrated circuit chips and greatly reducing material costs. This is especially suitable for small centralized meter reading systems based on households that are cost-sensitive.
[0026] In some embodiments, see Figure 1 As shown, the transmitted waveform correction circuit 400 includes: a discharge switch unit 410 and a discharge resistor R0; the control terminal of the discharge switch unit 410 is connected to the first control node A, the first terminal of the discharge switch unit 410 is connected to the bus 600, and the second terminal of the discharge switch unit 410 is grounded through the discharge resistor R0; an isolation diode D1 is provided between the first control node A and the bus 600, and the discharge switch unit 410 is configured to turn on when the level of the first control node A switches from high level to low level and switches from off to on.
[0027] In this embodiment, the control terminal of the discharge switch unit 410 is connected to the first control node A. The switching state of the discharge switch unit 410 is controlled by the voltage of the first control node A. When the host data transmission signal is high, the first control node A is high, and the discharge switch unit 410 is turned off. At this time, the discharge resistor R0 does not participate in the operation and there is no static power consumption. When the host data transmission signal jumps from high to low, the bus voltage is still maintained at around 36V (described as 36V). The voltage of the first control node A is pulled low, and the voltage of the control terminal of the discharge switch unit 410 drops sharply to ≈0V, while the emitter / source is still 36V, obtaining a large positive bias (e.g., Veb≈36V). It immediately saturates and conducts, and the discharge switch unit 410 is turned on. The energy stored by the capacitance effect of the bus 600 (including the slave input capacitance and cable distributed capacitance) can be released more quickly through the discharge resistor R0, and the voltage on the bus 600 drops rapidly. As the bus voltage decreases, the emitter / source voltage of the discharge switch unit 410 decreases, the control terminal remains at 0V, Veb gradually decreases, the discharge resistor R0 stops consuming current, and the voltage of the bus 600 is stabilized at 24V by the voltage sustaining circuit.
[0028] In some embodiments, the resistance value of the discharge resistor R0 is positively correlated with the high-level voltage on the bus 600; the higher the high-level voltage on the bus 600, the higher the resistance value of the discharge resistor R0.
[0029] In some embodiments, the discharge resistor R0 is an adjustable resistor whose resistance value is controlled by the main control circuit 110. The main control circuit 110 adjusts the resistance value of the discharge resistor R0 according to the high-level voltage on the bus 600.
[0030] In some embodiments, the resistance value of the discharge resistor R0 is related to the number and power of the slave devices on the bus 600. The more slave devices on the bus 600, the larger the resistance value of the discharge resistor R0. The greater the power of the slave devices on the bus 600, the larger the resistance value of the discharge resistor R0.
[0031] In some embodiments, the resistance value of the discharge resistor R0 can be represented by the high-level voltage on the bus 600, the number of slave devices on the bus 600, and their power. For example, R0 = k1 × Rv1 + k2 × Rn1 + k3 × Rw1, where k1, k2, and k3 are weighting coefficients, Rv1 is the resistance corresponding to the high-level voltage, Rn1 is the resistance corresponding to the number of slave devices on the bus 600, and Rw1 is the resistance corresponding to the power of the slave devices on the bus 600.
[0032] In some embodiments, see Figure 2 As shown, the host data transmission circuit 200 includes a transmission isolation module 210 and a transmission modulation module 220. The transmission isolation module 210 is connected to the main control circuit 110 and is used to receive the host data transmission signal and convert it into a transmission isolation data signal. The transmission modulation module 220 is connected to the transmission isolation module 210 and the bus 600. The transmission modulation module 220 is used to receive the transmission isolation data signal and modulate the voltage on the bus 600 according to the transmission isolation data signal to control the level switching on the bus 600.
[0033] In this embodiment, the transmission isolation module 210 can achieve electrical isolation between the main control circuit 110 and the transmission modulation module 220. The transmission modulation module 220 controls the bus 600 voltage to switch between a high level (e.g., 36V) and a low level (e.g., 24V) specified by the M-Bus standard according to the level of the transmission isolation data signal. For example, when the data transmission terminal MCU_TXD of the main control circuit 110 outputs logic "1" and the transmission isolation data signal is low (corresponding to MCU transmission logic "1"), the driving transistor (e.g., NPN type) in the transmission modulation module 220 is cut off, and the bus 600 is connected to a high-voltage power supply (e.g., 36V) through a pull-up resistor, outputting a high level. When the transmission isolation data signal is high (corresponding to MCU transmission logic "0"), the transistor in the transmission modulation module 220 is turned on, pulling the bus 600 voltage down to a low level determined by the voltage divider network (e.g., 24V obtained through resistor voltage divider). The modulated bus 600 voltage is directly applied to the M-Bus bus for slave detection.
[0034] In some embodiments, the host data transmission signal provided by the main control circuit 110 is a standard TTL / CMOS level (such as 3.3V or 5V), representing logic "1" or "0".
[0035] In some embodiments, the transmission isolation module 210 includes an optocoupler, which achieves electrical isolation. The light-emitting diode in the optocoupler receives the host data transmission signal provided by the main control circuit 110, and the phototransistor in the optocoupler outputs the isolated signal (transmission isolation data signal). In this way, the transmission isolation module 210 completely isolates the low-voltage side of the MCU from the high-voltage side of the bus 600, avoiding damage to the MCU from high voltage (36V) or surge impact on the bus 600, while suppressing common-mode interference and enhancing noise immunity. The transmission modulation module 220 accurately converts the digital signal into a voltage difference (≥10V) conforming to the EN13757 / CJ / T188 standard, ensuring that the slave device can correctly identify the data bits. When the input (the host data transmission signal provided by the main control circuit 110) is high, the light-emitting diode in the optocoupler is turned on and illuminated, and the phototransistor in the optocoupler is turned on by light, resulting in low impedance on the output side (the output level is low or high depending on the circuit connection). When the input (the host data transmission signal provided by the main control circuit 110) is low, the light-emitting diode in the optocoupler is turned off, and the phototransistor in the optocoupler is turned off, resulting in high impedance on the output side.
[0036] In some embodiments, see Figure 3 As shown, the host wired MBUS circuit 100 also includes a bus protection module 120, which is used to provide overcurrent protection for the current on the bus 600 and overvoltage protection for the voltage on the bus 600.
[0037] In this embodiment, the bus protection module 120 can compare the current on the bus 600 with a preset threshold current. When there are slightly more slave devices and short-term fluctuations, under mild overload, the bus protection module 120 can clamp the current of the bus 600 below the preset threshold current through linear current limiting, resulting in a lower voltage but continuous current. In cases of slave cable grounding or slave chip breakdown, causing severe overload or short circuit on the bus 600, the bus protection module 120 quickly shuts off the modulation transistor or switches the relay, physically disconnecting the 36V output until the fault is cleared or a delayed retry is performed.
[0038] In some embodiments, see Figure 4 As shown, the bus protection module 120 includes a first overcurrent protection resistor RT1, which is connected in series on the bus 600.
[0039] In some embodiments, the bus protection module 120 may also use a polymer positive temperature coefficient thermistor (self-resetting PTC) or an electronic fuse (eFuse) for current sensing. If the bus protection module 120 uses a PTC resistor, if the resistance value jumps due to temperature rise, it will automatically limit the current and wait for the fault to be cleared before cooling down and self-recovering.
[0040] In some embodiments, see Figure 4 As shown, the bus protection module 120 includes a first transient suppression diode TVS1, which is connected in parallel between the positive terminal MBUS+ and the negative terminal MBUS- of the bus.
[0041] In this embodiment, under normal operating conditions, the voltage on bus 600 switches between 36V and 24V. If a surge occurs on bus 600 (hot-plug discharge, induced lightning, power supply abnormality causing bus 600 voltage to exceed 48V), the first transient suppression diode TVS1 breaks down and clamps the bus 600 voltage to the rated clamping voltage of the antenna.
[0042] In some embodiments, see Figure 4 As shown, the transmission modulation module 220 includes: a first switching unit 221 and a second switching unit 222; the output terminal of the transmission isolation module 210 is connected to the control terminal of the first switching unit 221, the first terminal of the first switching unit 221 is connected to the bus 600, the second terminal of the first switching unit 221 is grounded, and the first switching unit 221 is configured to turn on or off according to the transmission isolation data signal; the first terminal of the second switching unit 222 is connected to the power supply of the bus 600, the control terminal of the second switching unit 222 is connected to the first terminal of the first switching unit 221, the second terminal of the second switching unit 222 is connected to the bus 600, and the second switching unit 222 is configured to provide a high level to the bus 600 when the first switching unit 221 is off.
[0043] In this embodiment, combined with Figure 4As shown, the common terminal between the first switching unit 221 and the second switching unit 222 serves as the first control node A. The operating state of the waveform correction circuit 400 responds to the voltage of the first control node A. Taking a high level (e.g., 36V) = logic "1" (Mark) and a low level (e.g., 24V) = logic "0" as an example, the voltage difference ≥12V allows the internal comparator to identify the voltage. The first switching unit 221 and the second switching unit 222 use voltage modulation, and their switching states are achieved by controlling the conduction and cutoff of the NPN transistor. The host data transmission signal sent by the main control circuit 110 is high, and the bus 600 requires a 36V high level. The signal reaches the bus 600 via the main control circuit 110, the transmission isolation module 210, and the transmission modulation module 220. If the main control circuit 110 wants to send a "1", the host data transmission signal is high, the transmission isolation data signal is low, the first switch unit 221 is turned off, and the control terminal of the second switch unit 222 is pulled high. The pull-up power supply terminal VDC is connected to the bus 600 via the second switch unit 222, and the bus 600 level is pulled high. If the main control circuit wants to send a "0", the host data transmission signal is low, the transmission isolation data signal is high, the first switch unit 221 is turned on, and its first terminal is pulled close to ground (less than or equal to 0.5V). At this time, the control terminal of the second switch unit 222 is pulled low, and the bus 600 level is pulled low.
[0044] In some embodiments, the transmitting isolation module 210 and the transmitting modulation module 220 all use discrete components (optocouplers, transistors, resistors, etc.), eliminating the need for a dedicated M-Bus modulation chip and significantly reducing BOM costs. The drive power can be adjusted according to the actual number of slave devices (e.g., by replacing with higher-power transistors or adjusting resistor values) to adapt to applications of different scales. By appropriately selecting the transistor switching speed and optocoupler response time, this circuit can operate stably within a baud rate range of 300~9600bps, meeting M-Bus standard requirements.
[0045] In some embodiments, see Figure 4 As shown, the transmission isolation module 210 includes a first resistor R1, a second resistor R2, and a first optocoupler chip U1. The first end of the second resistor R2 is connected to the signal transmission terminal MCU_TXD of the main control circuit 110, and the second end of the second resistor R2 is connected to the negative terminal of the light-emitting diode of the first optocoupler chip U1. The first end of the first resistor R1 is connected to the first power supply terminal V1, and the second end of the first resistor R1 is connected to the positive terminal of the light-emitting diode of the first optocoupler chip U1. The first end of the phototransistor of the first optocoupler chip U1 is connected to the pull-up power supply terminal VDC, and the second end of the phototransistor of the first optocoupler chip U1 outputs the transmission isolation data signal.
[0046] In this embodiment, the level of the isolated data transmission signal is opposite to that of the host data transmission signal provided by the main control circuit 110.
[0047] In some embodiments, see Figure 4 As shown, the first switching unit 221 includes a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a first transistor Q1. The first end of the third resistor R3 is connected to the transmitting isolation module 210. The second end of the third resistor R3 and the first end of the fourth resistor R4 are both connected to the base of the first transistor Q1. The second end of the fourth resistor R4 and the emitter of the first transistor Q1 are both connected to ground. The collector of the first transistor Q1 is connected to the first end of the fifth resistor R5. The second end of the fifth resistor R5 is connected to the first control node A.
[0048] In this embodiment, the operating state of the waveform correction circuit 400 is responsive to the voltage of the first control node A. The voltage of the first control node A depends on the level of the transmitted isolation data signal, which in turn depends on the level of the host data transmission signal. The data transmission terminal of the main control circuit 110 outputs the host data transmission signal. When the signal transitions from high to low, it is transmitted to the first switching unit 221 after isolation processing. The delay time caused by the isolation processing is negligible compared to the release time of the energy stored by the capacitor effect.
[0049] In some embodiments, the first power supply terminal V1 is used to provide a voltage of 3.3V.
[0050] In some embodiments, the first transistor Q1 is an NPN transistor.
[0051] In some embodiments, see Figure 4 As shown, the second switching unit 222 includes a sixth resistor R6, a seventh resistor R7, and a second transistor Q2. The first end of the sixth resistor R6 and the base of the second transistor Q2 are connected to the first control node A. The second end of the sixth resistor R6 and the collector of the second transistor Q2 are connected to the pull-up power supply terminal VDC. The emitter of the second transistor Q2 is connected to the seventh resistor R7. The second end of the seventh resistor R7 is connected to the bus 600.
[0052] In this embodiment, the main control circuit 110 sends data bit 1, the data transmission terminal MCU_TXD of the main control circuit 110 outputs logic "1", the host data transmission signal is high level, the light-emitting diode terminal of the first optocoupler chip U1 is cut off, the phototransistor terminal of the first optocoupler chip U1 is cut off, the transmission isolation data signal is low level, the first transistor Q1 is cut off, the level of the first control node A is pulled high, the base of the second transistor Q2 is pulled up to 36V voltage through the sixth resistor R6 (the voltage of the pull-up power supply terminal VDC is described as 36V, but it can also be other voltages that meet the standard requirements, the functional result is the same, and no detailed comparison, explanation and description are given), the emitter voltage of the second transistor Q2 is 36V-0.7V=35.3V, and a high-level voltage is output to the bus 600 through the seventh resistor R7. Due to the load consumption of the slave, the voltage on the seventh resistor R7 and the first overcurrent protection resistor RT1 (such as a thermistor) drops slightly, and the high-level "1" voltage that meets the standard requirements is output at the positive terminal MBUS+ of the bus. Therefore, the seventh resistor R7 determines the high-level voltage output by bus 600. In some embodiments, to match the discharge rate, the resistance value of the discharge resistor R0 is related to the resistance value of the seventh resistor R7. The main control circuit 110 sends data bit 0, the data transmission terminal MCU_TXD of the main control circuit 110 outputs 0, the LED terminal of the first optocoupler chip U1 is turned on, the phototransistor terminal of the first optocoupler chip U1 is turned on, the first transistor Q1 is turned on, and the base voltage of the second transistor Q2 is the voltage after voltage division by the fifth resistor R5 and the sixth resistor R6. Taking the fifth resistor R5 and the sixth resistor R6 having the same resistance value as an example, the emitter output voltage of the second transistor Q2 is 36V. (R5 / (R5+R6))-0.7V=18V-0.7V=17.3V, the voltage change is greater than 10V, and the output 0 data bit voltage meets the standard requirements.
[0053] In some embodiments, the second transistor Q2 is an NPN transistor.
[0054] In some embodiments, see Figure 4 As shown, an isolation diode Z1 is provided between the bus 600 and the first control node A.
[0055] In this embodiment, due to the presence of the isolation diode Z1, there is a certain voltage difference between the bus 600 and the first control node A. When the first switching unit 221 is turned on, the voltage of the first control node A drops. When the first switching unit 221 is turned off, the voltage of the first control node A is pulled up. At the instant when the host data transmission signal jumps from high level to low level, the first switching unit 221 switches from off to on, the voltage of the first control node A is pulled down, and the level on the bus 600 is pulled down.
[0056] Combination Figure 4As shown, the main control circuit 110, consisting of the data transmitter MCU_TXD, first resistor R1, second resistor R2, first optocoupler chip U1, third resistor R3, fourth resistor R4, first transistor Q1, fifth resistor R5, sixth resistor R6, second transistor Q2, isolation diode Z1, and seventh resistor R7, forms the wired MBUS bus voltage supply and data transmission circuit. When the main control circuit 110's data transmitter MCU_TXD outputs a high level (1), the LED terminal of the first optocoupler chip U1 is cut off, the phototransistor terminal of the first optocoupler chip U1 is cut off, the first transistor Q1 is cut off, and the second transistor Q2 is turned on through the seventh resistor R7, providing a power supply voltage with a certain load-carrying capacity to the wired MBUS bus. The second transistor Q2, the seventh resistor R7, and the isolation diode Z1 form a constant current output control circuit for the wired MBUS bus. Taking the voltage of the isolation diode Z1 as 5.1V and the resistance of the seventh resistor R7 as 100 ohms as an example, its output load current capability reaches (5.1V-0.7V) / 100Ω=43mA, which can meet the application scenarios of more than 10 slave devices. If it is necessary to support more slave devices, the parameters of the second transistor Q2, the seventh resistor R7, and the isolation diode Z1 can be changed to meet the load power requirements. This will not be described in detail here.
[0057] In some embodiments, the resistance value of the seventh resistor R7 is 100 ohms (it can also be other resistance values, achieving the same functional result, and will not be explained or described in detail).
[0058] In some embodiments, multiple slave devices are connected to the M-Bus, each with a filter capacitor (typically 100nF~1μF) at its input, plus the distributed capacitance of long cables (up to several nF over hundreds of meters). Without the transmit waveform correction circuit 400, the voltage of the bus 600 dropping from 36V to 24V can only be achieved through the leakage current after the second switching unit 222 is turned off or the slow discharge of the baseline circuit, which may drag on for tens or even hundreds of microseconds. The combination of the discharge switching unit 410 and the discharge resistor R0 provides active low-impedance discharge. The discharge switching unit 410 is turned on only for a few microseconds at the moment of the falling edge and is turned off for the rest of the time. There is no continuous current in the discharge resistor R0, so it does not increase the static power consumption of the host or affect the normal power supply capability of the bus. In this way, the falling time is compressed to a few microseconds, and the slave comparator can clearly distinguish the edge, reducing the bit error rate.
[0059] Furthermore, in this embodiment, the discharge resistor R0 not only accelerates the discharge but also forms a damping effect with the parasitic inductance and capacitance of the bus, absorbing the oscillation energy during switching. Together with the isolation diode Z1, it can suppress ringing caused by parasitic Cgd coupling when the second switching unit 222 is turned off, resulting in a smooth waveform transition. Moreover, the isolation diode Z1 briefly conducts at the initial stage of the voltage falling edge (when the voltage of the first control node A is still low and the voltage of the bus 600 is still high), providing the first auxiliary discharge path (bus 600 → isolation diode Z1 → first control node A → first switching unit 221 → ground). The discharge switching unit 410 and the discharge resistor R0 provide the second main discharge path (bus 600 → discharge switching unit 410, discharge resistor R0 → ground) in the middle of the falling edge (when the voltage of the first control node A is low and the voltage of the bus 600 is still high). The sequential operation of these two discharge paths ensures both rapid initial discharge and avoids the additional power consumption caused by the prolonged conduction of the isolation diode Z1.
[0060] In a specific application embodiment, when the second switching unit 222 is turned off, its drain (bus) still has a high voltage, while its gate (first control node A) is being slowly pulled up by the pull-up resistor. If the first control node A rises slowly, the second switching unit 222 will operate in the linear region for a long time, bearing large current and high Vds, leading to overheating or even thermal failure. After the discharge switching unit 410 is turned on, the bus voltage drops rapidly, causing the Vds of the second switching unit 222 to decrease rapidly, shortening the dwell time in the linear region and improving reliability.
[0061] In some embodiments, see Figure 4 The discharge switch unit 410 shown includes an eighth resistor R8 and a third transistor Q3. The emitter of the third transistor Q3 is connected to the bus 600, the collector of the third transistor Q3 is connected to the first end of the eighth resistor R8, the second end of the eighth resistor R8 is connected to the first control node A, and the collector of the third transistor Q3 is grounded through the discharge resistor R0.
[0062] Combination Figure 4 As shown, the host data reception uses current modulation and demodulation. The slave response sending "1" is 0~1.5mA, and the slave response sending logic "0" is 11~20mA. In this embodiment, when the host receives slave data, the host does not send data itself. That is, the first switching unit 221 is turned off, the voltage of the first control node A is pulled up to around 36V, the third transistor Q3 is turned off, and the bus voltage is maintained at 24V (logic "0" baseline, which is also the power source for the slave). Therefore, when the slave sends back data, the bus voltage remains constant, and what changes is the total bus current.
[0063] In some embodiments, the third transistor Q3 can be a PNP transistor, a silicon transistor, or a MOSFET, etc., which can achieve the same function. No detailed comparison, explanation and description are provided.
[0064] Combination Figure 4 As shown, waveform correction for the host-sent data 0 is achieved using a small resistor and rapid discharge method. Figure 4 As shown, the eighth resistor R8, the third transistor Q3, and the discharge resistor R0 constitute the data transmission waveform correction circuit. When the standby or main control circuit 110 (MCU) transmits data bit 1, the base voltage of the third transistor Q3 is higher than the emitter voltage, so the third transistor Q3 is cut off. The discharge resistor R0 does not consume the 600V power supply load of the bus and does not affect normal data transmission. When the main control circuit 110 (MCU) transmits data bit 0 in a steady state, the base voltage of the main control circuit 110 (MCU) is higher than the emitter voltage, so the main control circuit 110 (MCU) is cut off. The discharge resistor R0 also does not consume the 600V power supply load of the bus and does not affect normal data transmission. When the main control circuit 110 (MCU) sends data bit 0 to data bit 1, the third transistor Q3 is always off, which does not affect normal communication. When the main control circuit 110 (MCU) sends data bit 1 to data bit 0, the falling edge of the bus 600 voltage output changes. Due to the capacitance effect of the MBUS bus, the voltage drop speed of the bus 600 is slower than that of the control signal (first transistor Q1, fifth resistor R5, and sixth resistor R6). At this time, the base voltage of the third transistor Q3 is lower than the emitter voltage. The third transistor Q3 is turned on through the eighth resistor R8, the fifth resistor R5, and the first transistor Q1. The large load of the discharge resistor R0 consumes the energy stored by the capacitance effect of the bus 600, causing the falling edge of the bus 600 voltage to drop rapidly. This achieves the purpose of correcting the transmitted data waveform, greatly improving the communication success rate and ensuring high-reliability communication.
[0065] In some embodiments, the cable equivalent capacitance of bus 600 is less than 180nF.
[0066] In this embodiment, the MBUS communication uses a twisted-pair cable. During field installation, there is a capacitive effect. The MBUS standard explicitly requires that the total equivalent capacitance of the entire 600 bus cable should not exceed 180 nF. We will temporarily calculate it as 180 nF (the equivalent capacitance may vary depending on factors such as installation length and environment; other values may be chosen based on the inventor's understanding, but detailed comparisons and descriptions are not provided). The MBUS standard requires that the voltage difference between the master's transmitted data bits 1 and 0 be greater than 10V; in this embodiment, we will calculate it as 10V. The discharge resistor R0 is set to 100 ohms (other values may be chosen, but detailed comparisons and descriptions are not provided); the voltage for transmitting data bit 1 is set to 36V DC, and the voltage for transmitting data bit 0 is set to 26V DC; the number of slave devices is calculated based on the environment set by this invention (4), and the total static power consumption of the slave devices is 1.5. 4 = 6mA.
[0067] In some embodiments, at a baud rate of 300bps, the period time per data bit is: T1 = 1000 / 300 = 3.3ms.
[0068] In some embodiments, at a baud rate of 9600bps, the period time per data bit is: T2 = 1000 / 9600 = 104.2us.
[0069] In some embodiments, the discharge resistor R0 is 100 ohms. The falling edge delay of the waveform when the main control circuit 110 (host) sends 1 data bit 1 to 0 is calculated as follows: The current consumed on the discharge resistor R0 is calculated by averaging the high and low voltages: IR0 = (36V + 26V) / 2 / R0 = (36V + 26V) / 2 / 100Ω = 310mA; The falling edge delay time of the waveform is T6, and T6 = C. ΔU / I=C ΔU / (IR17+6mA)=180 nF 10V / (310mA+6mA)=5.7us; the waveform falling edge delay T6 is 5.7us, which is much lower than the data bit period time of 104.2us at the highest communication rate of 9600bps, which can ensure the communication success rate.
[0070] In some embodiments, see Figure 3 As shown, the host data receiving circuit 300 includes a receiving modulation and demodulation module 320 and a receiving isolation module 310. The receiving modulation and demodulation module 320 is connected to the bus 600 and is used to detect current changes on the bus 600 and convert the current changes on the bus 600 into response data signals. The receiving isolation module 310 is connected to the main control circuit 110 and the receiving modulation and demodulation module 320, and is used to isolate the response data signals to generate slave response signals.
[0071] In this embodiment, the receiving and demodulation module 320 is directly connected to the bus 600. It uses the voltage changes of the bus 600 or its own current path to sense the slave current. The receiving and demodulation module 320 converts the current changes on the bus 600 into clear high and low level voltage changes (i.e., response data signals). Since numerous slave devices are connected to the bus 600, there may be high voltage surges, ground loop interference, or strong electric fields. The main control circuit 110 (e.g., the host MCU) cannot directly withstand the high voltage on the bus 600. Therefore, the receiving isolation module 310 is used to isolate the response data signals, generate slave response signals, and then send them to the signal receiving terminal MCU_RXD of the main control circuit 110.
[0072] In some embodiments, see Figure 4 As shown, the receiving and demodulation module 320 includes a fourth transistor Q4, a ninth resistor R9, a tenth resistor R10, a first diode D1, and a first capacitor C1. The emitter of the fourth transistor Q4 is connected to the bus 600. The base of the fourth transistor Q4, the first terminal of the tenth resistor R10, the first terminal of the ninth resistor R9, and the anode of the first diode D1 are all connected together. The second terminal of the ninth resistor R9 is grounded. The second terminal of the tenth resistor R10, the cathode of the first diode D1, and the first terminal of the first capacitor C1 are all connected together. The second terminal of the first capacitor C1 is connected to the pull-up power supply terminal VDC.
[0073] In this embodiment, the fourth transistor Q4 serves as the core of current detection. Its emitter (E) is connected to bus 600, its base (B) is grounded, and its collector (C) serves as the output terminal connected to subsequent circuits. The tenth resistor R10 and the first capacitor C1 are connected in series to form an RC filter network.
[0074] In some embodiments, the fourth transistor Q4 is a PNP transistor.
[0075] In some embodiments, see Figure 4As shown, the receiving isolation module 310 includes an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, a fifth transistor Q5, a sixth transistor Q6, and a second optocoupler chip U2. The first end of the eleventh resistor R11 is connected to the receiving signal terminal MCU_RXD of the main control circuit 110. The second end of the eleventh resistor R11, the collector of the sixth transistor Q6, and the first end of the twelfth resistor R12 are connected together. The base of the sixth transistor Q6 is connected to the first end of the thirteenth resistor R13. The second end of the thirteenth resistor R13... The first terminal of the fourteenth resistor R14 is connected to the negative terminal of the light-emitting diode inside the second optocoupler chip U2. The emitter of the sixth transistor Q6 and the second terminal of the fourteenth resistor R14 are grounded. The second terminal of the twelfth resistor R12 and the positive terminal of the light-emitting diode inside the second optocoupler chip U2 are connected to the first power supply terminal V1. The first terminal of the phototransistor inside the second optocoupler chip U2, the first terminal of the fifteenth resistor R15, and the collector of the fifth transistor Q5 are connected together. The second terminal of the fifteenth resistor R15 is connected to the pull-up power supply terminal VDC. The base of the fifth transistor Q5 is connected to the receiving modem module 320.
[0076] In some embodiments, see Figure 4 As shown, the base of the fifth transistor Q5 is connected to the receiving and demodulation module 320 via the sixteenth resistor R16 and the seventeenth resistor R17. The base of the fifth transistor Q5, the first end of the sixteenth resistor R16, and the first end of the seventeenth resistor R17 are connected together. The second end of the seventeenth resistor R17 is connected to the receiving and demodulation module 320, and the second end of the sixteenth resistor R16 is grounded.
[0077] Combination Figure 4 As shown, the master receives data bit 1, the slave responds by sending data bit 1, the maximum current change on the bus 600 is 1.5mA, and the voltage change across the seventh resistor R7 is U=1.5mA. 100Ω = 0.15V. The base voltage of the fourth transistor Q4 is about 0.55V lower than the emitter voltage (0.7V - 0.15V = 0.55V), which does not meet the transistor cutoff condition. The base of the fourth transistor Q4 is pulled down and amplified through the ninth resistor R9, turning on the fifth transistor Q5. The LED terminal of the second optocoupler chip U2 is cut off, as is the phototransistor terminal of the second optocoupler chip U2. The sixth transistor Q6 is cut off, and the data receiver MCU_RXD of the main control circuit is at a high level ("1"), completing the reception of 1 bit of host data. The slave device responds by sending 0 data bits, with a current of 11~20mA. Calculated at the minimum of 11mA, the voltage across the seventh resistor R7 changes by U = 11mA. 100Ω = 1.1V. The voltage difference between the base and emitter of the fourth transistor Q4 is 0.7V - 1.1V = -0.4V. The base voltage of the fourth transistor Q4 is 0.4V higher than the emitter voltage, which satisfies the reverse cutoff condition of the transistor PN junction. The fourth transistor Q4 is cut off, the fifth transistor Q5 is cut off, the light-emitting diode terminal of the second optocoupler chip U2 is turned on, the phototransistor terminal of the second optocoupler chip U2 is turned on, the sixth transistor Q6 is turned on, and the data receiving terminal MCU_RXD of the main control circuit is low ("0"), completing the reception of 0 bits of host data.
[0078] The host receives data bit 0, combined with Figure 4 As shown, when the slave device responds with a data bit of 0, the current is 11~20mA. The standard requires a communication rate of 300~9600bps. To ensure communication success, when the slave device responds with a data bit of 0, the fourth transistor Q4 must be completely turned off. The first capacitor C1, the tenth resistor R10, the ninth resistor R9, and the first diode D1 form a charge and discharge voltage holding circuit, which can ensure that the fourth transistor Q4 is completely turned off when needed. When in standby mode without communication or when the slave device responds with a data bit of 1, the MBUS bus voltage quickly charges the first capacitor C1 through the PN junction of the emitter and base of the fourth transistor Q4 and the first diode D1, so that the voltage difference between the base and emitter of the fourth transistor Q4 is maintained near the silicon transistor PN junction voltage drop.
[0079] In some embodiments, at a baud rate of 300bps, the period time for each data bit is T1: T1 = 1000 / 300 = 3.3ms.
[0080] In some embodiments, at a baud rate of 9600bps, the period time for each data bit is T2: T2 = 1000 / 9600 = 104.2us.
[0081] In some embodiments, when the first capacitor C1 is 1uF, the tenth resistor R10 is 10kΩ, and the ninth resistor R9 is 1MΩ, the discharge time T3 = 0.7RC = 0.7 (R8+R9) C1 = 0.7 (10kΩ + 1MΩ) 1uF = 700ms.
[0082] In some embodiments, the PN junction resistance of the fourth transistor Q4 is approximately RQ3≈0, the PN junction resistance of the first diode D1 is approximately RD1≈0, and the charging time of the first capacitor C1 is T4=C. ΔU / I=C ΔU R / U=C ΔU (RQ3+RD1) / U≈0 seconds.
[0083] In some embodiments, when the slave device responds by sending data bit 0, the voltage across the seventh resistor R7 changes by U = 11mA. 100Ω = 1.1V. The voltage difference between the base and emitter of the fourth transistor Q4 is 0.7V - 1.1V = -0.4V, so the fourth transistor Q4 is cut off. The electrical energy stored in the first capacitor C1 is released through the tenth resistor R10 and the ninth resistor R9, ensuring that the voltage at the base of the fourth transistor Q4 is higher than the voltage at the emitter during the effective cutoff time, thus achieving reverse cutoff. Taking a capacitor C1 of 1uF, a resistor R10 of 10kΩ, and a resistor R9 of 1MΩ (other ratios are also possible, achieving the same functional result, and will not be described in detail here), the energy storage and discharge time T3 of the first capacitor C1 is 700 milliseconds. In the two extreme cases of communication baud rates of 300bps and 9600bps, the lower the baud rate, the greater the impact. As long as the low baud rate condition is met, the high baud rate condition will certainly be met. At a baud rate of 300bps, the cycle time T1 for each data bit is 3.3ms. In the extreme case where all 8 data bits are identical, the cycle time for each byte is 26.7ms. 700 milliseconds is much greater than 26.7ms, effectively cutting off the fourth transistor Q4 and meeting the host's requirement to receive data bit 0. When the slave responds by sending data bit 0 to 1, the MBUS bus voltage returns to high voltage, the charging time T4 of the first capacitor C1 is approximately 0 seconds, and the fourth transistor Q4 conducts, creating conditions for the host to continue receiving data bit 0, thus meeting the communication requirements.
[0084] This application also provides a wired MBUS communication device, see [link to relevant documentation]. Figure 5 As shown, the wired MBUS communication device includes: a slave wired MBUS circuit 500 and a master wired MBUS circuit 100 as described in any of the above embodiments; the slave wired MBUS circuit 500 is used to detect voltage changes on the bus 600, convert the voltage changes into corresponding master data to be sent, and send a slave response signal by adjusting the current on the bus 600.
[0085] In some embodiments, see Figure 5 As shown, the slave wired MBUS circuit 500 includes a slave control module 510 and a slave communication modulation transceiver module 520. The slave control module 510 is used to receive master data transmission signals and send slave response signals. The slave communication modulation transceiver module 520 is used to convert voltage changes on the bus 600 into master data transmission signals.
[0086] This application also provides a terminal, which includes the wired MBUS communication device as described in the above embodiments.
[0087] In this embodiment, the terminal can be a small-scale data collection system, which may include water meters, gas meters, heat meters, and electricity meters. The host data transmission circuit 200 controls the voltage on the bus 600 to switch between high and low levels according to the host data transmission signal provided by the main control circuit 110. The host data receiving circuit 300 detects the current change on the bus 600 and demodulates the current change to generate a slave response signal, which is sent to the main control circuit 110. The transmission waveform correction circuit 400 provides a bus discharge path when the host data transmission signal transitions from high to low level, thereby accelerating the release of energy stored in the bus 600 by the capacitance effect. This effectively eliminates the falling edge delay distortion caused by the distributed capacitance of the line, ensuring stable communication at high speed even when the number of slaves is small and the load on the bus 600 is light, significantly improving the system's anti-interference capability and communication success rate.
[0088] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0089] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0090] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the terminal embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0091] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0092] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0093] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A master wired MBUS circuit, characterized in that, The master wired MBUS circuit is connected to the slave wired MBUS circuit via a bus, and includes: The main control circuit is used to send master data transmission signals and receive slave response signals. A host data transmission circuit, connected to the main control circuit and the bus, is used to control the voltage on the bus to switch between high and low levels according to the host data transmission signal. A host data receiving circuit, connected to the main control circuit and the bus, is used to detect current changes on the bus and demodulate the current changes to generate the slave response signal; and A waveform correction circuit is connected to the host data transmission circuit to provide a bus discharge path when the host data transmission signal transitions from high level to low level, so as to accelerate the release of energy stored by the bus capacitance effect. The transmitted waveform correction circuit includes: a discharge switch unit and a discharge resistor; the control terminal of the discharge switch unit is connected to a first control node, the first terminal of the discharge switch unit is connected to the bus, and the second terminal of the discharge switch unit is grounded through the discharge resistor; an isolation diode is provided between the first control node and the bus, and the discharge switch unit is configured to turn on when the level of the first control node switches from high level to low level; The isolation diode is a Zener diode. The anode of the isolation diode is connected to the bus, and the cathode of the isolation diode is connected to the first control node. The isolation diode is used to clamp the voltage between the first control node and the bus to a set voltage, and to conduct forward when the level of the first control node switches from high level to low level and the voltage on the bus has not yet dropped, so as to form a first discharge path from the bus through the isolation diode and the first control node to ground. The discharge switch unit includes an eighth resistor and a PNP transistor. The emitter of the PNP transistor is connected to the bus, the base of the PNP transistor is connected to the first control node via the eighth resistor, and the collector of the PNP transistor is grounded via the discharge resistor. The PNP transistor is turned on when the voltage on the bus has not yet dropped, so as to form a second discharge path from the bus through the PNP transistor and the discharge resistor to ground. The second discharge path operates after the first discharge path. The PNP transistor is turned off when the bus is at a steady-state level, so that there is no continuous current in the discharge resistor.
2. Host wired MBUS circuit according to claim 1, characterized in that, The host data transmission circuit includes: A transmission isolation module, connected to the main control circuit, is used to receive the host data transmission signal and convert the host data transmission signal into a transmission isolation data signal; A transmission modulation module, connected to the transmission isolation module and the bus, is used to receive the transmission isolation data signal and modulate the voltage on the bus according to the transmission isolation data signal to control the level switching on the bus.
3. A master wired MBUS circuit according to claim 2, characterized in that, The transmission modulation module includes: a first switching unit and a second switching unit; The output terminal of the transmission isolation module is connected to the control terminal of the first switching unit. The first terminal of the first switching unit is connected to the bus, and the second terminal of the first switching unit is grounded. The first switching unit is configured to turn on or off according to the transmission isolation data signal. The first terminal of the second switching unit is connected to the pull-up power supply terminal, the control terminal of the second switching unit is connected to the first terminal of the first switching unit, the second terminal of the second switching unit is connected to the bus, and the second switching unit is configured to provide a high level to the bus when the first switching unit is turned off.
4. The host wired MBUS circuit according to claim 1, characterized in that, The resistance value of the discharge resistor is positively correlated with the high-level voltage on the bus.
5. The host wired MBUS circuit according to claim 1, characterized in that, The cable equivalent capacitance of the bus is less than 180nF.
6. The host wired MBUS circuit according to any one of claims 1-5, characterized in that, The host data receiving circuit includes: A receiving and demodulation module, connected to the bus, is used to detect current changes on the bus and convert the current changes on the bus into response data signals; The receiving isolation module, connected to the main control circuit and the receiving modulation and demodulation module, is used to isolate the response data signal to generate the slave response signal.
7. The host wired MBUS circuit according to claim 6, characterized in that, The host wired MBUS circuit also includes: The bus protection module is used to provide overcurrent protection for the current on the bus and overvoltage protection for the voltage on the bus.
8. A wired MBUS communication device, characterized in that, The wired MBUS communication device includes: a slave wired MBUS circuit and a master wired MBUS circuit as described in any one of claims 1-7; The slave wired MBUS circuit is used to detect voltage changes on the bus, convert the voltage changes into corresponding master data, and send a slave response signal by adjusting the current on the bus.
9. The wired MBUS communication device according to claim 8, characterized in that, The slave wired MBUS circuit includes: The control module is used to receive data transmission signals from the host and send slave response signals. The slave communication modulation transceiver module is used to convert voltage changes on the bus into data transmission signals for the master.
10. A terminal, characterized in that, The terminal includes the wired MBUS communication device as described in claim 8 or 9.
Citation Information
Patent Citations
MBUS master station communication conversion device with overload protection function
CN107770023A
