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.
Sending from WSL to AR9331 does not work as expected, it appears garbled or out of order.
AR9331 TTY settings:
WSL TTY settings:
I tried messing with canonical mode, but it did not appear to change anything.
Go to Source
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