I have 4 Arduino boards pushing data over UART to 4 serial ports on the Arduino Due at
115200 baud rate.
Data format -
<Short URL>,<Number of the Node>
Arduino Due has 4 hardware serial ports and one native USB port. I want to interface all the 4 UART nodes to each hardware serial of the Due and then push this data onto the
SerialUSB port which is native USB at baud rate of
What did I try?
- Sequential read of all Serial ports - Obviously poor performance
- Used Serial Events - For some reason never able to get the callback triggered.
- Used some FreeRTOS library and there are a lot of data misses.
When using RTOS, the data from multiple nodes is getting mixed up and printed incorrectly. I'm looking for some efficient way to read parallel data from all UARTs without data overlap and stream data and given the MCU on Arduino Due is very powerful I don't think that's what is bottlenecking the performance.