Simple serial multi-protocol handler