title: Read response AT command with pySerial
body: <p>I have the following sample code:</p>
  
  <pre><code>import serial
  
  ser = serial.Serial('/dev/ttyUSB1', 115200, timeout=5)
  ser.write("AT\r")
  response =  ser.readline()
  ser.write(chr(26)) 
  ser.close()
  
  print response
  </code></pre>
  
  <p>My goal is to send the <strong>AT</strong> command and get your answer <strong>OK</strong>. </p>
  
  <p>The documentation of <a href="http://pyserial.sourceforge.net/shortintro.html" rel="noreferrer">PySerial readline()</a> says reads the data received until it finds a line break, the problem is that my print is returning nothing.</p>
  
  <p>I'm sure that after the <strong>AT</strong> command, the response that the 3G modem sends me is <strong>OK</strong>. Anyone know the reason why you can not retrieve the answer?</p>
  
  <p>PS: using programs like CuteCom, I got confirmation that the device works and that it responds to AT commands.</p>