title: How to read the response from serial port
body: <p>I'm new with the python language </p>
  
  <p>I have a uart bluetooth dongle, I wrote this code below and the write method works fine because I can see the response using the <strong>gtkterm</strong> software</p>
  
  <p>Code:</p>
  
  <pre><code>import serial
  
  ser = serial.Serial()
  ser.baudrate = 115200
  ser.port = '/dev/ttyUSB0'
  
  ser.open()
  print(ser.is_open)
  
  ser.write(b'info\r\n')  # get info command 
  ser.write(b'scan=00\r\n')  # start scan command
  </code></pre>
  
  <p>The response displayed in <strong>gtkterm</strong> software:</p>
  
  <pre><code>Device information
  firmware: nrf_dongle
  firmware_version: 0.2.5-ba519b3
  firmware_build: 20180413-104249
  device_name: amine
  serial_number: a58f2080352ac55bd1850576df54
  mac_address: d1850576df54
  device_state: 1
  adv_state: 0
  scan_state: 0
  END
  
  @scan:d1850576df54,20fabb03c064,-71,2,30,0201041aff4c00021570996ffaa2c34f00b776a3852c4bbd790cb90006c2
  @scan:d1850576df54,20fabb044b2c,-62,2,30,0201041aff4c000215023f3d601143013582ba2e1e1603bcb9ffff02e5c5
  @scan:d1850576df54,20fabb044b51,-54,3,30,0201041aff4c000215023f3d601143013582ba2e1e1603bcb9ffff02c8c5
  @scan:d1850576df54,20fabb044b2c,-62,2,30,0201041aff4c000215023f3d601143013582ba2e1e1603bcb9ffff02e5c5
  .
  .
  .
  </code></pre>
  
  <p>So my question is how can I read this data using the pyserial module or any other approach ? </p>