title: linux + minicom + FT232RL USB-to-UART adaptor send Carriage Return (CR) instead of Linefeed (LF)
body: <p>Hello to this wonderful community.</p>
  <p>I use a computer with MX Linux as OS. I want to access a device with a serial/UART console (Specifically, the device is a minimal computer made from 74-series ICs. See <a href="https://github.com/slu4coder/Minimal-UART-CPU-FLASH-Edition" rel="nofollow noreferrer">https://github.com/slu4coder/Minimal-UART-CPU-FLASH-Edition</a>). To connect from the computer to the device, I hardwarewise use a USB-to-UART converter with a (genuine) FTDI FT232RL chip. Softwarewise, I use minicom.</p>
  <p>It generally works, but I experience a very specific issue:</p>
  <p>The device expects a Linefeed (LF) as newline signal (it says so on its PCB silkscreen). I can't get linux+minicom to send a LF on RETURN or ENTER. It will send a carriage return (CR).</p>
  <p>If I connect from my computer to the device via the USB-to-UART converter and start up minicom on my computer, it will show me the device serial console - so far, so good.</p>
  <p>But if I type in device commands into minicom and press RETURN or ENTER, the device won't process them.</p>
  <p>However, if I use CTRL+J instead of RETURN or ENTER after my command, which gives a LF, it works fine. Equally, it works if I do not use my standard input/keyboard + minicom, but send the command from the bash like this:</p>
  <p><code>echo foo &gt; /dev/ttyUSB0</code></p>
  <p>I have tried to modify my computer/linux behavior with</p>
  <pre><code>sudo stty -F /dev/ttyUSB0 icrnl
  </code></pre>
  <p>but to no avail.</p>
  <p>I believe this is in principle the right command, but I tried other commands as well just to be 100% sure, like:</p>
  <pre><code>sudo stty icrnl
  sudo stty ocrnl
  sudo stty cooked
  sudo stty raw
  sudo stty sane
  </code></pre>
  <p>but they also did not help.</p>
  <p>I also tried to get minicom itself to send a LF instead of a CR on RETURN or ENTER, using the &quot;Add Linefeed&quot; (A) option in the minicom settings menu. This did not help, either.</p>
  <p>Do you have any suggestions how to resolve this? It is not a critical issue really as I could always use CTRL+J instead of RETURN or ENTER, but that gets a bit inconvenient over time.</p>
  <p>Thank you!</p>
  <p>(And sorry if my description of the problem is not very good - hobbyist and first time posting on here. Let me know if you need more information or pictures.)</p>