Reading/Writing Multiple Serial Inputs and Outputs using NMEA protocol

You might find this post helpful: