What termios settings cause endpoint to get garbled serial?

I have two endpoints. One is Windows Subsystem for Linux (Ubuntu) and the other is a small AR9331 router (running OpenWRT and has 16550 chip). They are connected over a USB-to-Serial connection.

Sending from AR9331 to WSL works as expected.
enter image description here

Sending from WSL to AR9331 does not work as expected, it appears garbled or out of order.
enter image description here

AR9331 TTY settings:

enter image description here

WSL TTY settings:
enter image description here

I tried messing with canonical mode, but it did not appear to change anything.

Go to Source
Author: user_ABCD

Is there a common “standard” to send messages to a Linux host over serial/RS232?

I do have an Arduino project that does stuff and then sends results out over it’s serial port to a computer running Linux. This is a RS232 connection, 9600 Baud, connected either to a 9-Pin COM Port or using a USB/RS232 adapter (which in the end is the same any way).

Now, I can build my own reader using Minicom and reading from /dev/ttyS0 directly, but before I build my own solution, I wonder if there’s already some kind of common standard – common sense tells me that in the decades of *NIX, someone must have already built something. But so far, I’ve mostly found information about manually reading or using the AT command set, which really doesn’t apply here.

Something like “syslog over RS232” or so. I’m flexible in my data structure, and using some standard mechanism will allow other tools to also hook into it. I don’t want to build the receiving software myself if there’s already some standard software, and the eventual consumer of the data can then just pick it up from whatever standard place.

Go to Source
Author: Michael Stum