Command, response, event processing for serial communications.