Serial Port: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
</pre>
</pre>
</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>


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

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