High-performance serial communication method, system, medium, equipment and terminal

A serial communication, high-performance technology, applied in the field of data communication, can solve the problems of SPI lack of communication mechanism data transmission reliability, unable to judge whether the slave is receiving data correctly, unable to meet the data interaction between master and slave, etc. Visibility and controllability, ensure normal communication, the effect of fast communication speed

Pending Publication Date: 2022-07-01
HUAZHONG UNIV OF SCI & TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Through the above analysis, the problems and defects of the existing technology are: the traditional SPI lacks an effective communication mechanism to ensure the reliability of data transmission, and cannot satisfy the complex data interaction between the host and the slave, for example: the host cannot obtain the slave state, the host cannot judge whether the slave receives the data correctly after sending the data, and the host cannot judge whether the data sent by itself is wrong

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
  • High-performance serial communication method, system, medium, equipment and terminal
  • High-performance serial communication method, system, medium, equipment and terminal
  • High-performance serial communication method, system, medium, equipment and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] In order to solve the problems existing in the prior art, the present invention proposes a high-performance serial communication method based on DMA. The present invention uses the DMA technology to replace the interrupt technology to complete the data exchange process during the serial communication, thereby improving the communication efficiency; On the basis of the traditional SPI communication mechanism, a slave status signal line (Busy) and a CRC status signal line (CRC) are added, and a new master-slave data interaction mechanism is proposed to ensure that the host can understand the slave receiver in time. It improves the reliability, visibility and controllability of the communication state; in the present invention, the master and the slave use a standard CRC data verification mechanism to judge the accuracy of the data, so as to ensure the normal operation between the master and the slave. communication.

[0061] like figure 1 As shown, the high-performance s...

Embodiment 2

[0084] Example The method of the present invention is applied to the field of servo control, and the data command communication between the controller and the driver in the servo control is realized by the method of the present invention, and the motor is controlled to run.

[0085] The main chip of the controller adopts STM32F407, and the operating frequency can reach 168MHz. As the host, it is responsible for sending data commands to the driver and checking the working status of the motor. The main chip of the driver adopts RT1052, as a slave, it is responsible for receiving the command from the controller to control the operation of the motor, and at the same time monitoring the state of the motor and uploading it to the controller.

[0086] like image 3 As shown, the controller and the driver adopt a six-wire communication method, and a slave state signal line and a CRC state signal line are added on the basis of the traditional four-wire SPI communication method. Commun...

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 belongs to the technical field of data communication, and discloses a high-performance serial communication method and system, a medium, equipment and a terminal, a DMA (Direct Memory Access) technology is adopted to complete a data exchange process during serial communication, and data read-write transmission is realized; a slave state signal line and a CRC state signal line are additionally arranged on the basis of an SPI communication mechanism, and a host can determine the state of data received by a slave in each communication through a constructed host-slave data interaction mechanism. The serial communication method is simple in structure, low in cost and high in universality, the data transmission rate is increased by reading and writing data in a DMA mode, and normal communication is ensured; and the newly added signal line and data interaction mechanism improves the reliability of data transmission between the host and the slave, and enhances the visibility and controllability of serial communication. Meanwhile, the host and the slave adopt a standard CRC data verification mechanism to judge the accuracy of the data, and normal communication between the host and the slave is ensured.

Description

technical field [0001] The invention belongs to the technical field of data communication, and in particular relates to a high-performance serial communication method, system, medium, device and terminal. Background technique [0002] At present, in the field of embedded control system, robot control system and servo control, since it is necessary to complete the transmission of different task instructions according to different task requirements, it is necessary to realize the transmission of data instructions between different chips. A high-performance communication method helps to improve the system responsiveness and system accuracy of the control system. [0003] SPI (Serial Peripheral Interface, Serial Peripheral Interface) is a high-speed full-duplex communication bus. Compared with serial communication, CAN communication and other technologies, it has the characteristics of high communication rate, controllable communication, and simple communication. Most DSPs, MCU...

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
IPC IPC(8): G06F13/40G06F13/42G06F13/28G06F11/10
CPCG06F13/4068G06F13/4282G06F11/1004G06F13/28Y02D10/00
Inventor 宋宝吉文博周向东唐小琦张泽之张翔高天赐林志鹏许峻铭吴玉泉
Owner HUAZHONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products