title: Serial port not working when using SOCAT in linux
body: <p>I want to make a serial to ethernet and vice versa converter using Linux based board (Nano Pi board with Debian OS). For this I am using socat tool and making my board as TCP server. Using the below command in terminal I am Piping the serial port to TCP.</p>
  
  <pre><code>sudo socat TCP4-LISTEN:33888 /dev/ttyS1
  </code></pre>
  
  <p>The above code is working only when once the ttyS1 serial port was opened and closed with minicom with the default settings I saved before. I want to make it work by without opening minicom, so how can I set the serial parameters like baud rate, parity etc in the above command and how to make it to work automatically without opening minicom.</p>
  
  <p>Please help me.
  And thanks in advance.</p>