I am trying to connect my Arduino's Serial in/out to my linux terminal i use the command stty -F /dev/ttyACM0 cs8 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts to setup the correct baud-rate and settings (i fetched it up from the Internet as is). the i use $echo "hello" > /dev/ttyACM0 write hello for example to the Arduino serial. However when Arduino answers the answer doesn't show immediately, i have to send something else so the tail shows the previous answer. as an example for an arduino buffer code:

void setup() {
// initialize both serial ports:


void loop() {

if (Serial.available()) {
int inByte = Serial.read();

I then have to send the command echo "Hello" > /dev/ttyACM0 Twice to receive one "Hello" from the Arduino(the RX and TX flash rapidly both times). When i use screen the serial goes in and out immediately.

This is a screenshot for what happens exactly. An example for the problem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.