Serial Port: Difference between revisions

From Wiki
No edit summary
No edit summary
 
Line 6: Line 6:
</blockquote>
</blockquote>


* set port
<blockquote>
<pre class="bash>
stty -F /dev/ttyUSB0 speed 115200
</pre>
</blockquote>


 
* read with cat
<blockquote>
<pre class="bash>
stty -F /dev/ttyUSB0 speed 115200 raw
cat /dev/ttyUSB0
</pre>
</blockquote>





Latest revision as of 12:39, 13 February 2018

  • get port settings
stty -F /dev/ttyUSB0
  • set port
stty -F /dev/ttyUSB0 speed 115200
  • read with cat
stty -F /dev/ttyUSB0 speed 115200 raw
cat /dev/ttyUSB0