Skip to main content
Randy1
Associate II
August 7, 2019
Question

Payload length in Serial Communication in MCSDK

  • August 7, 2019
  • 2 replies
  • 683 views

Hi everybody,

I read the document UM1052 and in this document we can see this "Payload_Length: the total number of bytes that compose the frame payload". My question is: does the payload length include Payload_length byte itself and CRC ?

Precisely what the calcul for payload length ?:

1) Payload_length = Payload_length (1 byte) +Payload ID (1 byte)+ number of byte in payload content (x bytes) + CRC (1 byte)

2) Payload_length = Payload ID (1 byte)+ number of byte in payload content (x bytes) + CRC (1 byte)

3) Payload_length = Payload_length (1 byte) +Payload ID (1 byte)+ number of byte in payload content (x bytes)

4) Payload_length = Payload ID (1 byte)+ number of byte in payload content (x bytes)

5) An other combination

Best Regards

This topic has been closed for replies.

2 replies

PBo
Visitor II
September 26, 2019

Hi Randy,

Just seen your question.

Calcul is matching 4) Payload_length = Payload ID (1 byte)+ number of byte in payload content (x bytes)

Best Regards

Laurent Ca...
Senior III
June 28, 2021

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards