title: Writing to serial port works via Putty but not PySerial
body: <p>I am able to send a command string to the serial port via Putty and get a response. However, when I try the same using Python PySerial read/write I am not able to send read/write commands.</p>
  <p>Putty terminal:
  example-1:</p>
  <pre><code> &lt;command_string&gt;
      response = Success
  </code></pre>
  <p>Example-2:</p>
  <pre><code>&lt;incorrect_command_string&gt;
  response = Fail
  </code></pre>
  <p>Python code:</p>
  <pre><code>serialData = serial.Serial(port=2, baudrate=921600, parity=serial.PARITY_NONE,
                                     stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS)
  serialData.write(b'&lt;command_string&gt;')
  print(serialData.in_waiting)
  print(serialData.read(serialData.in_waiting))
  </code></pre>
  <p>Output of the code:</p>
  <pre><code>0  
  b''
  </code></pre>
  <p>Any suggestions?</p>