Serial Port Configuration on the fly?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

What is the appropiate way to configure the speed of the serial port dinamically?  In the application the serial port needs to be reconfigure every time that establish the communication with the Host MCU, since the communication started at certain speed and after needs to be changed. We tried open and close the serial port on the STM3 MCU but the system stop operating correctly, no more information sent.

they only way to make it work, was overwritting the configuration of the port. Is this the correct procedure?

Gerardo

0 Likes
1 Reply
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Is this your question:

1. Application initializes the uart with default baudrate.

2. After receiving specific event, uart baudrate will be updated to a new value.

If so, please use wiced_uart_init() from your platform files to initialize the uart with updated baudrate.

Hope it helps,

Seyhan