UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method
A communication method and technology of a communication system, which is applied in the field of UART-based master-slave multi-machine communication system, can solve problems such as inability to support master-slave multi-machine communication, high cost of master-slave multi-machine communication, easy mutual interference of signals, etc., to reduce Mutual interference of wiring and signals, short design cycle and low cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0019] UART communication normally consists of three wires, namely RX, TX, and GND, which belong to full-duplex communication, so the sending and receiving data are separated. In order to reduce the connection between devices without affecting the communication between them, the present invention integrates RX and TX into one communication bus through circuits. Such as figure 1 Shown is a functional block diagram of a UART-based master-slave multi-machine communication system provided by Embodiment 1 of the present invention. The UART master-slave multi-machine communication system includes a master, n slaves and a communication bus, where n is a positive integer greater than or equal to 1. Wherein, the master and the slave communicate with each other through the communication bus. Specifically, the TX port, the RX port and an IO port of the master are respectively connected to the communication bus through a circuit, and the TX port, the RX port and the IO port of each slave...
Embodiment 2
[0022] Such as figure 2 It is a schematic circuit diagram of a UART-based master-slave multi-machine communication system provided by Embodiment 2 of the present invention. The communication system includes a host U1, a slave U2, a slave U3 ... a slave Un, the TX port (No. pin) is externally connected to the second resistor R2 and connected to the communication bus, and the IO port of the host (No. 9 pin) is externally connected to the third resistor R3 to be connected to the communication bus. The TX port (No. 8 pin) of the master of the slave U2 is connected to the communication bus with the fourth resistor R4, and the RX port (No. 7 pin) of the slave U1 is connected with the fifth resistor R5 to the communication bus. The IO port of the slave (No. 9 pin) The sixth external resistor R6 is connected to the communication bus. In addition, in order to keep the communication bus at high level all the time when there is no communication data, a power supply is connected to the...
Embodiment 3
[0026] Such as image 3 Shown is a flow chart of a UART-based master-slave multi-machine communication method provided by Embodiment 3 of the present invention, including the following steps:
[0027] S301. After the slave is connected to the communication bus, send a handshake signal to the communication bus through its own TX port, where the handshake signal includes the device ID of the slave.
[0028] When a slave is connected to the communication bus, it needs to shake hands with the master before it can be used normally. Since the TX port and RX port of the device are connected to the same communication bus, in order to ensure that two devices will not send data at the same time, each device adds an IO port to detect the communication bus, only when the communication bus is idle. send data. Therefore, before sending the handshake signal, the slave needs to detect whether the communication bus is idle through its own IO port, and if it is idle, send the handshake signal...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com