Hello,
I simply need to merge two ascii characters streams into one output stream. I have Arduino Mega which has 4 uarts.
When merged I woud use PC to store output to a file.
The target is a simple datalogger.
Input would be:
1/ at uart1 rx
"xxxxxx\n"
"xxxxxx\n"
"xxxxxx\n"
.. never ending repeat
2/ at uart2 rx
"yyyyyyyyyyyyyyy\n"
"yyyyyyyyyyyyyyy\n"
... never ending repeat
The sentece "x" and "y" are variable length and can be long up 600-800 chars.
3/ I would like to get output at uart4 tx like:
"xxxxxx\n"
"xxxxxx\n"
"yyyyyyyyyyyyyyy\n"
"xxxxxx\n"
... never ending repeat, the order of sentences "x" and "y" doesn't matter.
Please would you advice me how to do it...
Thank you in advance