def read(self, size):
data = self.serial_h.read(size)<EOL>self.logger.debug('<STR_LIT>' + str(len(data)) + '<STR_LIT>' + binascii.b2a_hex(data).decode('<STR_LIT:utf-8>'))<EOL>self.serial_h.write(ACK)<EOL>if sys.version_info[<NUM_LIT:0>] == <NUM_LIT:2>:<EOL><INDENT>data = bytearray(data)<EOL><DEDENT>return data<EOL>
Read raw data from the serial connection. This function is not
meant to be called directly.

:param int size: The number of bytes to read from the serial connection.