Edited:
I have data acquisition hardware that sends out serial data via UART into FTDI (serial to USB) device. The FTDI is plugged into USB port and its port name is /dev/ttyUSB0
. This device outputs data in the following format:
data line 1\r
data line 2\r
...
data line n\r
I tried using screen to view the data by entering the following command:
screen /dev/ttyUSB0 115200
The screen begins to show all data on one line, so I see a single line flashing. How can I add a newline character at the end of each line so that the screen begins to separate the lines?
Original: I am using a serial device that terminates lines with just carriage return. Is it possible to configure screen to add a nl (new-line) character for every cr character?
Thanks...
EDIT: Was not able to get this working with screen, picocom works great. I use the following command picocom -b 115200 --imap crcrlf /dev/ttyUSB0
.
minicom(1)
to talk to your device, seteol
character for the line discipline withstty(1)
, configuregetty(1)
, etc./dev/ttyUSB0
with with format"this is the line\r"
, is it possible to have screen convert it to"this is the line\r\n"
or"this is the line\n\r"
I do not care about the order, I just need a newline for every carriage return. Thanks...