Skip to main content
ibrahim
Associate III
June 28, 2016
Question

Auto detect budrate serial

  • June 28, 2016
  • 11 replies
  • 2606 views

Posted on June 28, 2016 at 11:48

Hello,

I have a STM32L031K6 and I want some auomatiser my reception function is adding automatic detection of transmission speed (baud rate) how I can do.

thank you very much

This topic has been closed for replies.

11 replies

ibrahim
ibrahimAuthor
Associate III
July 1, 2016
Posted on July 01, 2016 at 12:54

Hello xD,

Thank you, it works well, I even remake detection timer. but now i have anathore problem beacuse my stm32 is detect the 9200 baude and 1200 baude but after i do not get anything until I have to remain a card and soon several times to reset the card.

In Part I initalisation initializes the GPIO's after the timer and I trigger the interruption of Timer and when my timer after receiving Detect speed baude 1200 or 9600 baude I initialized the UART and trigger the interruption of the reception. But I do not get anything up to reset the STM32L0 card once or several times and if I want to change and other data with different speed I also have to reset or more reset. I do not know if it is a receive interrupt problem because at the beginning I get weird characters to do a reset. before the speed detection that automatically walk. Thanks