title: Writing to the serial port from the Linux command line
body: <p>From Windows I can communicate with a serial port device using the following commands:</p>
  <pre><code>mode com1: baud=9600 data=8 parity=n stop=1
  copy con com1
  alt+18alt+2ctrl+z
  </code></pre>
  <p>The device starts the requested operation.</p>
  <p>When I try to accomplish the same operation from a stand-alone <a href="https://en.wikipedia.org/wiki/Debian" rel="nofollow noreferrer">Debian</a> box or from a Debian <a href="https://en.wikipedia.org/wiki/VirtualBox" rel="nofollow noreferrer">VirtualBox</a> instance of the same Windows machine, I had no luck so far.</p>
  <p>Here are equivalent Linux commands (at least I think so):</p>
  <pre><code>stty -F /dev/ttyS0 speed 9600 cs8 -cstopb -parenb
  echo '\x12\x02' &gt; /dev/ttyS0
  </code></pre>
  <p>Nothing happens.</p>
  <p>How can I do it?</p>