USB to serial loopback needs read to be called first
up vote
0
down vote
favorite
We are testing CP2108 USB to serial chips serial communication from User Space.
We connected the two interfaces ttyUSB0 and ttyUSB1 tx/rx connections.
First for a proof of concept we configured the baud rate using stty and then test tx/rx by running
cat /dev/ttyUSB0 in one terminal
echo "hello" > /dev/ttyUSB0 in another terminal and it works
Why is the data lost when I run first echo command and then cat within a second. Is this the default behavior.. Can we change this
linux loopback usbserial
add a comment |
up vote
0
down vote
favorite
We are testing CP2108 USB to serial chips serial communication from User Space.
We connected the two interfaces ttyUSB0 and ttyUSB1 tx/rx connections.
First for a proof of concept we configured the baud rate using stty and then test tx/rx by running
cat /dev/ttyUSB0 in one terminal
echo "hello" > /dev/ttyUSB0 in another terminal and it works
Why is the data lost when I run first echo command and then cat within a second. Is this the default behavior.. Can we change this
linux loopback usbserial
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We are testing CP2108 USB to serial chips serial communication from User Space.
We connected the two interfaces ttyUSB0 and ttyUSB1 tx/rx connections.
First for a proof of concept we configured the baud rate using stty and then test tx/rx by running
cat /dev/ttyUSB0 in one terminal
echo "hello" > /dev/ttyUSB0 in another terminal and it works
Why is the data lost when I run first echo command and then cat within a second. Is this the default behavior.. Can we change this
linux loopback usbserial
We are testing CP2108 USB to serial chips serial communication from User Space.
We connected the two interfaces ttyUSB0 and ttyUSB1 tx/rx connections.
First for a proof of concept we configured the baud rate using stty and then test tx/rx by running
cat /dev/ttyUSB0 in one terminal
echo "hello" > /dev/ttyUSB0 in another terminal and it works
Why is the data lost when I run first echo command and then cat within a second. Is this the default behavior.. Can we change this
linux loopback usbserial
linux loopback usbserial
asked 2 days ago
md.jamal
370316
370316
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203517%2fusb-to-serial-loopback-needs-read-to-be-called-first%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password