Using multiple UART-s on MEGA at same time

Robin2's serial input basics tutorial will help you to write non-blocking serial receive code.