Skip to content

Latest commit

 

History

History

mdtp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Mid Capacity Data Transmit Protocol

English / 中文

Applicable Scenario:

  • The total amount of transmitted data is less than 128 Byte
  • Based on Full-Duplex transmit protocol
  • Mid capacity data transmit from master to slave
  • Mid capacity data transmit from slave to master
  • Don't need stable transmit
  • Support burst transmission

Description:

    This is a fixed-length transmit protocol, each package (the smallest unit of a transmit mission) length is 12Byte, the effective data length is 8Byte(means that the maximum data length is 8Byte). The base element of a package include SOF(Start Of Frame), PID(Package Identification) and EOF(End Of Frame). When communicating, sending package directly without handshaking. Each frame occupy a Byte(8 bits).


Package Contents:

Package_Contents

Frame declaration:
  • SOF(Start of frame): The initial frame of a package, which value is 0xAA.

  • EOF(End of frame): The final frame of a package, which value is 0xAA.

  • ADJ(Adjust frame): adjust data area to make sure data frame haven't exist 0xAA. If data frame appeared 0xff, set corresponding bit in adjust frame then clear the data frame as 0x00. The corresponding relationship is as below image. Adjust Frame

  • PID(Package identification): occupied 4 bits, values range from 0 to 15. Low 4 bits is the inverse of the High 4bits. The self checking method is as below image. PID_Frame