Integrated service digital network bidirectional communication receiving and transmitting circuit
By designing a first-line bidirectional communication receiving and sending circuit, the problem of lack of communication functions of electric bicycle chargers is solved, and mutual recognition of communication between charging equipment and batteries is realized, and the safety of the charging process is improved.
Patent Information
- Application Number
- CN202411469404.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-02-28
AI Technical Summary
The existing electric bicycle chargers lack communication functions and cannot be mutually recognized with the battery, resulting in safety hazards during charging.
A first-line bidirectional communication receiving and transmitting circuit is designed, including a port protection circuit, a communication signal conversion circuit and an MCU module to realize the communication mutual recognition between the charging device and the battery.
Through this circuit, clamping and high-frequency signal suppression of the input signal of the first-line external port are realized, receiving and sending communication signals is completed, and the safety of the charging process is enhanced.
Smart Images

Figure FT_1
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of data communication, in particular to a one-line two-way communication receiving and sending circuit. Background Art
[0002] In daily life, electric bicycles are widely used because of their convenience, energy saving, environmental protection, and low travel costs. In recent years, safety accidents have frequently occurred during the charging process of electric bicycles, posing many hidden dangers to people's lives and property. In response to the problem of electric bicycle chargers, the National Standards Committee has issued the relevant standard GB42296-2022. In combination with the provisions of GB42296-2022, electric bicycle chargers should have the function of mutual recognition with batteries. Existing chargers do not have communication functions and do not have the ability to mutually recognize batteries. Summary of the invention
[0003] In view of the deficiencies of the prior art, the present invention provides a one-line two-way communication receiving and sending circuit, which solves the problems raised in the above background technology.
[0004] In order to achieve the above object, the present invention is implemented by the following technical scheme: a one-line two-way communication receiving and sending circuit, characterized in that the one-line two-way communication receiving and sending circuit is composed of a port protection circuit, a communication signal conversion circuit and an MCU module.
[0005] Preferably, the port protection circuit is composed of a resettable fuse F1, a first capacitor C1 and a voltage regulator D1. One end of the resettable fuse F1 is connected to a one-line external port COM; the other end is connected to the cathode of the voltage regulator D1, where the connection point is defined as COM1; one end of the first capacitor C1 is connected to COM1; the other end of the first capacitor C1 is connected to the anode of the voltage regulator diode D2 and is grounded.
[0006] Preferably, the communication signal conversion circuit is composed of a communication signal receiving circuit and a communication signal sending circuit.
[0007] Preferably, the communication signal receiving circuit is composed of an MCU communication signal receiving pin RXD, a second resistor R2, an isolation diode D2, a second switch tube Q2 and a third resistor R3. One end of the second resistor R2 and one end of the third resistor R3 are connected to VDD; the other end of the second resistor R2 is connected to the anode of the isolation diode D2 and the gate of the second switch tube Q2; the cathode of the isolation diode D2 is connected to COM1; the other end of the third resistor R3 is connected to the MCU communication signal receiving pin RXD and the drain of the second switch tube Q2; the source of the second switch tube Q2 is grounded.
[0008] Preferably, the communication signal sending circuit is composed of an MCU communication signal sending pin TXD, a first resistor R1 and a first switch tube Q1. The communication signal sending pin TXD is connected to one end of the first resistor R1 and the gate of the first switch tube Q1; the other end of the first resistor is connected to the source of the first switch tube Q1 and grounded; the drain of the first switch tube Q1 is connected to COM1.
[0009] Preferably, the MCU module is composed of an MCU communication signal receiving pin RXD, an MCU communication signal sending pin TXD, a positive power supply electrode VDD and a power ground GND.
[0010] Preferably, the MCU communication signal receiving pin RXD completes communication data reception.
[0011] Preferably, the MCU communication signal sending pin TXD completes communication data sending.
[0012] The present invention provides a one-line two-way communication receiving and sending circuit, which has the following beneficial effects: 1. Port protection circuit, completes the signal clamping and high-frequency signal suppression of the COM input of the one-line external port.
[0013] 2. The communication signal conversion circuit completes the conversion function of receiving and sending the signal communication signal input by the one-line external port COM.
[0014] 3. MCU module circuit, MCU communication signal receiving pin RXD completes communication data reception, and MCU communication signal sending pin TXD completes communication data sending.
[0015] 4. It can be mass-produced and used in charging equipment to better realize the communication and mutual recognition function between charging equipment and battery equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of the circuit structure of the present invention; Figure 1 The meanings of the various reference symbols are shown in the following table: Reference numerals meaning Reference numerals meaning COM One-line bus external port VDD Positive power supply COM1 Internal port of the one-line bus GND Power Ground TXD MCU communication signal sending pin RxD MCU communication signal receiving pin MCU Microcontroller C1 First capacitor R1 First resistor Q1 The first switch R2 Second resistor Q2 The second switch R3 The third resistor D1 Voltage regulator diode D2 Isolation diode DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present invention are described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0018] See also Figure 1The one-line two-way communication receiving and sending circuit of the present invention is characterized in that the one-line two-way communication receiving and sending circuit is composed of a port protection circuit, a communication signal conversion circuit and an MCU module.
[0019] The port protection circuit is composed of a resettable fuse F1, a first capacitor C1 and a voltage regulator D1. One end of the resettable fuse F1 is connected to a one-line port COM; the other end is connected to the cathode of the voltage regulator D1, where the connection point is defined as COM1; one end of the first capacitor C1 is connected to COM1; the other end of the first capacitor C1 and the anode of the voltage regulator diode D2 are grounded.
[0020] The principle of the port protection circuit is as follows: the resettable fuse F1, the first capacitor and the Zener diode D1 are composed to complete the signal level clamping and high-frequency signal suppression of the one-line port COM input. When the one-line port COM signal is high-frequency interference, the first capacitor C1 realizes high-frequency suppression; when the signal level of the one-line port COM input is higher than the voltage value of the Zener diode, the Zener diode is turned on to realize voltage clamping; when the current exceeds the rated current of the resettable fuse F1, the resettable fuse F1 is disconnected through its own characteristics to realize the protection function.
[0021] Wherein, the communication signal conversion circuit is composed of a communication signal sending circuit and a communication signal receiving circuit.
[0022] The communication signal receiving circuit is composed of the MCU communication signal receiving pin RXD, the second resistor R2, the isolation diode D2, the second switch tube Q2 and the third resistor R3. One end of the second resistor R2 and one end of the third resistor R3 are connected to VDD; the other end of the second resistor R2 is connected to the anode of the isolation diode D2 and the gate of the second switch tube Q2; the cathode of the isolation diode D2 is connected to COM1; the other end of the third resistor R3 is connected to the MCU communication signal receiving pin RXD and the drain of the second switch tube Q2; the source of the second switch tube Q2 is grounded.
[0023] Among them, the communication signal receiving principle: set the MCU communication signal sending pin TXD to a low level, the first switch tube Q1 is in the off state, when VDD is powered on, the one-line port COM is pulled up to a high level by the second resistor R2 through the isolation diode D2, the second switch tube Q2 is turned on, and the MCU communication signal receiving pin RXD is a low level. At this time, when the one-line external port COM communication signal is at a low level, the communication signal enters COM1 through the self-recovery fuse F1 to pull down the cathode of the isolation diode D2, and the anode of the isolation diode D2 is a forward conduction voltage drop to the ground, the second switch tube Q2 is turned off, and the MCU signal receiving pin RXD is a high level. It can be seen from this that the signal of the MCU signal receiving pin RXD is opposite to the one-line external port COM communication signal, so the signal of the MCU signal receiving pin RXD needs to be reversely processed during decoding to obtain the correct signal.
[0024] The transmitting circuit is composed of an MCU signal transmitting pin TXD, a first resistor R1 and a first switch tube Q1. The MCU signal transmitting pin TXD is connected to one end of the first resistor R1 and the gate of the first switch tube Q1; the other end of the first resistor is connected to the source of the first switch tube Q1 and grounded; the drain of the first switch tube Q1 is connected to COM1.
[0025] Among them, the principle of communication signal transmission: set the MCU communication signal transmission pin TXD to a low level, and the first switch tube Q1 is turned off. When VDD is powered on, the second resistor R2 is forward-conducted through the isolation diode D2 to pull up the one-line external port COM to a high level; at this time, the MCU signal transmission pin TXD is set to a high level, and the one-line external port COM is a low level; the communication signal is sent by changing the level of the MCU signal transmission pin TXD. It should be noted that the MCU communication signal transmission pin TXD and the one-line external port COM are in opposite states. According to the communication signal receiving principle described above, when sending a communication signal, it is first necessary to read the MCU communication signal receiving pin RXD to determine whether the one-line external port COM is in an idle state. In order to avoid one-line bus conflicts, communication data can only be sent in an idle state.
[0026] Among them, the MCU module consists of the MCU communication signal receiving pin RXD, the MCU communication signal sending pin TXD, the power positive pole VDD and the power ground GND.
[0027] Among them, in the MCU module circuit, the MCU communication signal receiving pin RXD completes communication data reception, and the MCU communication signal sending pin TXD completes communication data sending.
[0028] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A one-line two-way communication receiving and sending circuit, consisting of a port protection circuit, a communication signal conversion circuit and an MCU module.
2. A one-line two-way communication receiving and sending circuit according to claim 1, characterized in that: The port protection circuit is composed of a resettable fuse F1, a first capacitor C1 and a voltage regulator D1. One end of the resettable fuse F1 is connected to a one-line external port COM; the other end is connected to the cathode of the voltage regulator D1, where the connection point is defined as COM1; one end of the first capacitor C1 is connected to COM1; the other end of the first capacitor C1 is connected to the anode of the voltage regulator diode D2 and is grounded.
3. The one-line two-way communication receiving and sending circuit according to claim 1, characterized in that: The communication signal conversion circuit is composed of a communication signal receiving circuit and a communication signal sending circuit.
4. The one-line two-way communication receiving and sending circuit according to claim 1, characterized in that: The communication signal receiving circuit is composed of an MCU communication signal receiving pin RXD, a second resistor R2, an isolation diode D2, a second switch tube Q2 and a third resistor R3. One end of the second resistor R2 and one end of the third resistor R3 are connected to VDD; the other end of the second resistor R2 is connected to the anode of the isolation diode D2 and the gate of the second switch tube Q2; the cathode of the isolation diode D2 is connected to COM1; the other end of the third resistor R3 is connected to the MCU communication signal receiving pin RXD and the drain of the second switch tube Q2; the source of the second switch tube Q2 is grounded.
5. The one-line two-way communication receiving and sending circuit according to claim 1, characterized in that: The communication signal sending circuit is composed of an MCU communication signal sending pin TXD, a first resistor R1 and a first switch tube Q1. The MCU communication signal sending pin TXD is connected to one end of the first resistor R1 and the gate of the first switch tube Q1; the other end of the first resistor is connected to the source of the first switch tube Q1 and grounded; the drain of the first switch tube Q1 is connected to COM1.
6. The one-line two-way communication receiving and sending circuit according to claim 1, characterized in that: The MCU module consists of the MCU communication signal receiving pin RXD, the MCU communication signal sending pin TXD, the power positive pole VDD and the power ground GND.
7. The one-line two-way communication receiving and sending circuit according to claim 1, characterized in that: The MCU communication signal receiving pin RXD completes communication data reception.
8. The one-line two-way communication receiving and sending circuit according to claim 1, characterized in that: The MCU communication signal sending pin TXD completes communication data sending.
