def METHOD_NAME(self):
    """Test if there are data waiting."""
    try:
        data = self.sync_serial.read(1024)
    except serial.SerialException as exc:
        self._protocol.loop.call_soon(self._call_connection_lost, exc)
        self.close()
    else:
        if data:
            self._protocol.data_received(data)