Serial communication protocol for controller

A serial communication and controller technology, applied in the field of serial communication, can solve the problems of unreliable communication, increase the manufacturing cost of serial communication system, and cannot guarantee the accuracy of multi-byte data transmission data, etc.

Inactive Publication Date: 2013-01-30
TIANJIN SANTROLL ELECTRIC AUTOMOBILE TECH CO LTD
View PDF6 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The universal serial communication system is widely used in various single-chip microcomputer systems because of its simple interface and flexible expansion. However, because the operating frequency of the single-chip itself is generally low and the processing speed is slow. In the case of unreliable communication, if the communication protocol is too simple, the transmission of multi-byte data and the accuracy of the data cannot be guaranteed
In order to solve this problem, the existing serial communication protocols usually improve stability by increasing the protocol and task complexity of the receiving end and the sending end, and an overly complex communication protocol must occupy more microprocessors. The processing time and storage unit, so that in order to run the traditional serial communication protocol, it is necessary to select a relatively high-end microprocessor, or add an auxiliary microprocessor for communication, thereby increasing the manufacturing cost of the serial communication system
Moreover, in traditional communication protocols, it is difficult to take into account the characteristics of microprocessors in products such as motor controllers, resulting in off-the-shelf protocols that cannot be applied to microprocessors in such products

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
  • Serial communication protocol for controller
  • Serial communication protocol for controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The embodiments of the present invention are described in further detail below in conjunction with the accompanying drawings. The following descriptions about the embodiments of the present invention are only exemplary, and are not intended to limit the subject matter to be protected in the present invention. There are other aspects of the described embodiments of the present invention. Changes within the protection scope of the claims all belong to the subject matter that needs to be protected in the present invention.

[0041] In the communication protocol of the present invention, there are two parties, the master and the slave. The protocol only supports "point-to-point" and "point-to-many" communication modes, that is, there can only be one master in a communication network, but there can be multiple slaves. In addition, the protocol does not support the "many-to-many" communication mode.

[0042] Considering that the core work of the microprocessor in the motor c...

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 discloses a serial communication protocol for a controller. The serial communication protocol comprises the following steps of: 1, for a master machine, preparing application layer data through the master machine, transmitting data to a slave machine, waiting an acknowledgement signal of the slave machine, retransmitting the data if the received signal comes from an unexpected slave machine, retransmitting the data if the inter-frame overtime or intra-frame overtime is generated, retransmitting the data if the acknowledgement signal is NAK, and finishing the operation if the acknowledgement signal is ACK; and 2, for the slave machine, receiving the data transmitted by the master machine, not responding and receiving the data again if the slave machine is busy, not responding and receiving the data again if the received data are nonnative identification (ID) data, receiving the data again if intra-frame overtime is generated, transmitting the NAK acknowledgement signal to the master machine if the data verification is wrong, and processing the application layer data and transmitting the ACK if the verification is successful. The serial communication protocol for the controller aims to overcome defects in the prior art, is stable in communication and can simplify task load of a microprocessor.

Description

technical field [0001] The invention relates to the field of serial port communication, more specifically, relates to a serial port communication protocol suitable for motor controllers. Background technique [0002] The universal serial communication system is widely used in various single-chip microcomputer systems because of its simple interface and flexible expansion. However, because the operating frequency of the single-chip itself is generally low and the processing speed is slow. In the case of unreliable communication, if the communication protocol is too simple, the transmission of multi-byte data and the accuracy of the data cannot be guaranteed. In order to solve this problem, the existing serial communication protocols usually improve the stability by increasing the complexity of the protocol and tasks of the receiving end and the sending end, and the communication protocol that is too complicated must occupy more microprocessors The processing time and storage...

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): G06F13/42
Inventor 孙彦军
Owner TIANJIN SANTROLL ELECTRIC AUTOMOBILE TECH CO LTD
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