serial parser for communication testing