cancel
Showing results for 
Search instead for 
Did you mean: 

Payload length in Serial Communication in MCSDK

Randy1
Associate III

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

2 REPLIES 2
PBo
Associate III

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

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