code: def setCompactProtocol(self):
          
          self._compact = True
          self._serial.write(bytes(self._BAUD_DETECT))
          self._log and self._log.debug("Compact protocol has been set.")
docs: Set the compact protocol.