Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2017-02-22
SHENZHEN TOPBAND CO LTD
View PDF4 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a UART-based master-slave multi-machine communication system and method, aiming to solve the problem that the standard UART communication in the prior art cannot support master-slave multi-machine communication, and other communication methods are used to realize master-slave multi-machine communication. The connection is complicated and the signals are easy to interfere with each other

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method
  • UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method
  • UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a UART (universal asynchronous receiver / transmitter)-based master-slave multi-processor communication system and method. The system is characterized by comprising a master processor, n slave processors and a communication bus, wherein n is a positive integer equal or greater than 1, a TX port, a RX port and an IO port of the master processor are respectively connected to the communication bus through circuits, the TX port, the RX port and the IO port of each of the slave processors are respectively connected to the communication bus through the circuits. The RX port and the TX port of the master processor and the RX port and the TX port of the slave processor are connected to the same communication bus, so that the wiring between the devices and the mutual interference of the signals are reduced. Furthermore, the extra appliance is unnecessary to add in the system, the cost is low, the design period is short, and the system can be extensively applied to the communication among multiple devices in short distance.

Description

technical field [0001] The invention belongs to the communication field, in particular to a UART-based master-slave multi-computer communication system and method. Background technique [0002] Under the trend of the Internet of Things, information interaction between devices is essential. The real-time interaction of data between devices can improve the user experience and is more conducive to the safety and reliability of the product. At present, short-distance point-to-point communication in the industry generally uses UART (Universal Asynchronous Receiver / Transmitter, Universal Asynchronous Receiver Transmitter), mainstream MCU ((Microcontroller Unit, micro control unit) generally has a UART port, which can be connected to RS232 line. Standard UART adopts a simple one-to-one communication method, which cannot meet the one-to-many communication needs of the current home appliance control industry and automation equipment control field. Other communication methods, such a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L67/104H04L67/1046H04L67/1091H04L69/02H04L69/08
Inventor 覃健峰
Owner SHENZHEN TOPBAND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products