cancel
Showing results for 
Search instead for 
Did you mean: 

NMEA Data Combiner (STM32F101C8)

asttekin
Associate

Hi,

I want to combine NMEA data from two uart and send it from the third uart.

Which way I should follow?

1 REPLY 1

Use interrupts to accumulate bytes from each UART into its own line buffer, as soon as one of those buffers is complete enqueue it to an output buffer for the third UART, that way there are always complete lines.

Not sure how you identify the source, but it probably won't be perfectly paced or interleaved as the message count and lengths are highly variable.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..