title: Telnetlib: Not receiving anything
body: <p>I have a question regarding Python`s telnetlib-Library.</p>
  
  <pre><code>import telnetlib
  
  message= ('\x02'+'DD'+'\x03')
  print message
  
  tn = telnetlib.Telnet('IP','PORT')
  tn.write(message)
  while True:
     data = tn.read_all()
     if data:
         print data
  </code></pre>
  
  <p>I want to communicate with a data-logger. The data-logger expects commands which looks like this:</p>
  
  <p>STX + command + ETX</p>
  
  <p>By sending the STX+command+ETX-phrase via Putty / telnet to the data-logger, the data logger "answers", e.g. by sending the current time.</p>
  
  <p>Now, I want to send the same thing via python script to the logger. Unfortuantely, I do not receive any answer in the python shell, just a white space.</p>
  
  <p>Can you please help me?</p>
  
  <p>Regard,
  Phil</p>