From 56663509e150698292292be4ed7aec5d22831162 Mon Sep 17 00:00:00 2001 From: Candas1 Date: Wed, 12 May 2021 12:09:23 +0200 Subject: [PATCH] Updated Variant USART (markdown) --- Variant-USART.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Variant-USART.md b/Variant-USART.md index 2a745c2..8d8b0a5 100644 --- a/Variant-USART.md +++ b/Variant-USART.md @@ -20,7 +20,15 @@ Commands are send as binary frames with following structure:
- Checksum(unsigned int16) : XOR checksum The least significant byte comes first (little endian).
-The FOC firmware will discard frames that are not starting with proper start frame and not ending with correct checksum.
+ +## Error rejection + +The FOC firmware will discard frames if: +- Command length is not correct +- Start frame is not correct +- Checksum is not correct +- 1 character inactivity on RX line while receiving the frame ([Idle Line Interrupt](https://github.com/1847123212/STM32_USART_DMA_RX#about-usart)) + A timeout will be triggered if no correct frame is received during the time specified with parameter SERIAL_TIMEOUT in config.h (160ms by default).
## Calibration: