Single-wire communication circuit
By setting switches on the receiving module RXD and the sending module TXD, and using port COM to realize signal transmission of a single wire, the problem of many wire harnesses in the prior art is solved and the circuit layout is simplified.
Patent Information
- Application Number
- CN202422649212.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2034-10-31
AI Technical Summary
The existing communication circuit requires two wires for signal reception and transmission, resulting in more wiring harnesses and not simple enough layout.
Both the receiving module RXD and the sending module TXD are switched and connected to the upper computer through port COM. When receiving the signal, the sending module TXD is turned off, and when sending the signal, the receiving module RXD is turned on. When sending the signal, the communication of a single wire is realized.
A single wire can realize communication between the control module and the upper computer, simplifying the circuit layout.
Smart Images

Figure CN223229884U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of communication circuits, in particular to a single-line communication circuit. Background Art
[0002] As is well known in the communications field, control modules need to send and receive signals when communicating with a host computer. Currently, two wires are required for communication: one for receiving and one for sending. This results in a large number of external wiring harnesses for the entire circuit and a less concise layout. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a single-line communication circuit, which has fewer external wiring harnesses and a simple layout.
[0004] To solve the above problems, the following technical solutions are provided:
[0005] The single-line communication circuit of the present invention includes a control module, a receiving module RXD, and a transmitting module TXD. One end of the receiving module RXD is adapted to be connected to the control module, and the other end is used to be connected to a host computer. The receiving module RXD is used to enable communication between the host computer and the control module. One end of the transmitting module TXD is adapted to be connected to the control module, and the other end is used to be connected to the host computer. The transmitting module TXD is used to enable communication between the control module and the host computer. The circuit is characterized in that both the receiving module RXD and the transmitting module TXD have switches, and both switches are adapted to be connected to the control module. Both the receiving module RXD and the transmitting module TXD are used to be connected to the host computer via a port COM. When receiving a signal, the switch of the transmitting module TXD is in the off state, and the switch of the receiving module RXD is in the on state. When sending a signal, the switch of the receiving module RXD is in the off state, and the switch of the transmitting module TXD is in the on state.
[0006] Among them, the switch of the receiving module RXD is a transistor Q10, the collector of the transistor Q10 is respectively connected to one end of the resistor R36 and the port RXD, the other end of the resistor R36 is connected to the power supply VCC, and the receiving module RXD is connected to the control module through the port RXD; the emitter of the transistor Q10 is grounded; the base of the transistor Q10 is respectively connected to one end of the resistor R49 and the resistor R38, the other end of the resistor R49 is grounded, the other end of the resistor R38 is connected to the cathode of the diode D10, the anode of the diode D10 is connected to one end of the resistor R54, and the other end of the resistor R54 is the port COM.
[0007] The switch of the transmitting module TXD is a transistor Q9, the base of the transistor Q9 is connected to one end of the resistor R32 and the resistor R37 respectively, the other end of the resistor R32 is grounded, and the other end of the resistor R37 is connected to the port TXD. The transmitting module TXD is connected to the control module through the port TXD; the emitter of the transistor Q9 is grounded; and the collector of the transistor Q9 is connected to the cathode of the diode D10.
[0008] A capacitor C27 is connected in parallel between the anode and cathode of the diode D10.
[0009] The control module uses a chip U2 with model number FU6861.
[0010] The above solution has the following advantages:
[0011] Because the single-line communication circuit of the present invention includes switches on both the receiving module RXD and the transmitting module TXD, and both switches are adapted to connect to the control module, the receiving module RXD and the transmitting module TXD are both connected to a host computer via port COM. When receiving a signal, the switch on the transmitting module TXD is in the off state, while the switch on the receiving module RXD is in the on state. When sending a signal, the switch on the receiving module RXD is in the off state, while the switch on the transmitting module TXD is in the on state. By using two switches and sharing the same port, the communication line and the receiving line can be combined, thereby enabling communication between the control module and the host computer using a single line and an external wiring harness. This reduces the number of external wiring harnesses and simplifies the overall circuit layout. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a topological diagram of the single-line communication circuit structure of the utility model;
[0013] Figure 2 This is a circuit diagram of a receiving module RXD and a transmitting module TXD in a single-line communication circuit of the present utility model;
[0014] Figure 3 It is a circuit diagram of a control module in a single-line communication circuit of the present utility model. DETAILED DESCRIPTION
[0015] The present invention will be described in further detail below with reference to the accompanying drawings and embodiments.
[0016] like Figure 1 and Figure 2As shown, the single-wire communication circuit of the present invention includes a control module, a receiving module RXD, a transmitting module TXD, and a port COM, wherein port COM is connected to a host computer. One end of the receiving module RXD is connected to the control module, and the other end is connected to the host computer via port COM. The receiving module RXD includes a switch. One end of the transmitting module TXD is connected to the control module, and the other end is connected to the host computer via port COM. The transmitting module TXD also includes a switch. When the control module receives a signal from the host computer, the switch of the transmitting module TXD is in the off state, and the switch of the receiving module RXD is in the on state. The signal sent by the host computer is transmitted to the control module via port COM and the receiving module RXD. When the control module sends a signal to the host computer, the switch of the receiving module RXD is in the off state, and the switch of the transmitting module TXD is in the on state. The signal generated by the control module is transmitted to the host computer via the transmitting module TXD and port COM.
[0017] like Figure 3 As shown in the figure, the control module uses the chip U2 model FU6861. The chip U2 contains peripheral circuits for driving its operation. The specific structure is as follows Figure 3 As shown, it belongs to the prior art and will not be described here in detail.
[0018] like Figure 2 and Figure 3 As shown, in some possible embodiments, the switch of the receiving module RXD is a transistor Q10. The collector of the transistor Q10 is connected to one end of a resistor R36 and a port RXD, respectively. The other end of the resistor R36 is connected to a power supply VCC, i.e., a 5V power supply. The receiving module RXD is connected to the control module via the port RXD, i.e., the port RXD is connected to pin 47 of the chip U2. The emitter of the transistor Q10 is grounded. The base of the transistor Q10 is connected to one end of a resistor R49 and one end of a resistor R38, respectively. The other end of the resistor R49 is grounded. The other end of the resistor R38 is connected to the cathode of a diode D10. The anode of the diode D10 is connected to one end of a resistor R54. The other end of the resistor R54 is the port COM. The transmitter module TXD includes a transistor Q9. The base of transistor Q9 is connected to one end of resistors R32 and R37, respectively. The other end of resistor R32 is grounded, and the other end of resistor R37 is connected to port TXD. Transmitter module TXD is connected to the control module via port TXD, which is connected to pin 46 of chip U2. The emitter of transistor Q9 is grounded. The collector of transistor Q9 is connected to the cathode of diode D10. Capacitor C27 is connected in parallel between the anode and cathode of diode D10.
[0019] During operation, the RXD and TXD ports are connected to pins 47 and 46 of chip U2, respectively. Port COM is connected to the host computer. The RXD port receives the program, and the TXD port sends the program. Port COM transmits at intervals. When the host computer sends a signal to chip U2 via port COM, the voltage level of port COM is pulled high, turning on transistor Q10. At this time, chip U2 is not sending a signal, transistor 9 closes, and the RXD port flips from a high level to a low level. The voltage level of pin 47 of chip U2 changes, enabling signal reception. Chip U2 then processes the received signal. After processing, chip U2 sends a reply signal to the TXD port via pin 46 between signals sent by the host computer. At this time, the host computer is not sending a signal, and the voltage level of port COM is insufficient to turn on Q10. Q10 closes, turning on transistor Q9, and the voltage level of port COM is further lowered. The host computer receives the signal, enabling communication.
Claims
1. A single-line communication circuit, comprising a control module, a receiving module RXD and a transmitting module TXD; one end of the receiving module RXD is adapted to be connected to the control module, and the other end is used to be connected to a host computer, and the receiving module RXD is used to realize communication between the host computer and the control module; one end of the transmitting module TXD is adapted to be connected to the control module, and the other end is used to be connected to the host computer, and the transmitting module TXD is used to realize communication between the control module and the host computer; characterized in that Both the receiving module RXD and the sending module TXD are provided with switches, and the two switches are adapted to be connected to the control module. Both the receiving module RXD and the sending module TXD are used to be connected to the host computer through the port COM. When receiving a signal, the switch of the sending module TXD is in the closed state, and the switch of the receiving module RXD is in the on state. When sending a signal, the switch of the receiving module RXD is in the closed state, and the switch of the sending module TXD is in the on state.
2. The single-wire communication circuit according to claim 1, wherein: The switch of the receiving module RXD is a transistor Q10. The collector of the transistor Q10 is respectively connected to one end of the resistor R36 and the port RXD. The other end of the resistor R36 is connected to the power supply VCC. The receiving module RXD is connected to the control module via the port RXD. The emitter of the transistor Q10 is grounded. The base of the transistor Q10 is respectively connected to one end of the resistor R49 and the resistor R38. The other end of the resistor R49 is grounded. The other end of the resistor R38 is connected to the cathode of the diode D10. The anode of the diode D10 is connected to one end of the resistor R54. The other end of the resistor R54 is the port COM.
3. The single-wire communication circuit according to claim 2, wherein: The switch of the transmitting module TXD is a transistor Q9, the base of the transistor Q9 is connected to one end of the resistor R32 and the resistor R37 respectively, the other end of the resistor R32 is grounded, and the other end of the resistor R37 is connected to the port TXD. The transmitting module TXD is connected to the control module through the port TXD; the emitter of the transistor Q9 is grounded; and the collector of the transistor Q9 is connected to the cathode of the diode D10.
4. The single-wire communication circuit according to claim 2 or 3, characterized in that: A capacitor C27 is connected in parallel between the anode and cathode of the diode D10.
5. The single-wire communication circuit according to claim 4, wherein: The control module uses a chip U2 with model number FU6861.