title: one virtual serial port with socat
body: <p>how to create just one virtual port with socat? </p>
  
  <p>I want to test pyserial to read and write via one port</p>
  
  <p>I'm already try :</p>
  
  <pre><code>socat -d -d pty,raw,echo=1 pty,raw,echo=1
  </code></pre>
  
  <p>it creates two virtual ports /dev/pts/9 and /dev/pts/10</p>
  
  <p>when I'm try:</p>
  
  <pre><code>ser.write('test\n')
  </code></pre>
  
  <p>in another console, I'm try to read :</p>
  
  <pre><code>ser2.readline()
  </code></pre>
  
  <p>when timeout, pyserial read '\n' as '^J'</p>