code: def serial_get(self):
  		
  		frmwk_c1218_settings = {
  			'nbrpkts': self.advanced_options['C1218_MAX_PACKETS'],
  			'pktsize': self.advanced_options['C1218_PACKET_SIZE']
  		}
  
  		frmwk_serial_settings = termineter.utilities.get_default_serial_settings()
  		frmwk_serial_settings['baudrate'] = self.advanced_options['SERIAL_BAUD_RATE']
  		frmwk_serial_settings['bytesize'] = self.advanced_options['SERIAL_BYTE_SIZE']
  		frmwk_serial_settings['stopbits'] = self.advanced_options['SERIAL_STOP_BITS']
  
  		self.logger.info('opening serial device: ' + self.options['SERIAL_CONNECTION'])
  		try:
  			self.serial_connection = c1218.connection.Connection(self.options['SERIAL_CONNECTION'], c1218_settings=frmwk_c1218_settings, serial_settings=frmwk_serial_settings, enable_cache=self.advanced_options['CACHE_TABLES'])
  		except Exception as error:
  			self.logger.error('could not open the serial device')
  			raise error
  		return self.serial_connection
docs: Create the serial connection from the framework settings and return
  		it, setting the framework instance in the process.