cbrake / linux-serial-test

Linux Serial Test Application
302 stars 154 forks source link

TIOCGSERIAL failed: Inappropriate ioctl for device #31

Closed ebi-droid closed 4 years ago

ebi-droid commented 4 years ago

When I try to sart the app: ./linux-serial-test -s -e -p /dev/ttyUSB0 -c -l 250 Linux serial test app

I get the following error: TIOCGSERIAL failed: Inappropriate ioctl for device

how to solve it ?

cbrake commented 4 years ago

can you try commenting out this line:

https://github.com/cbrake/linux-serial-test/blob/master/linux-serial-test.c#L615

dwillmore commented 4 years ago

That solved it for me. CH340G adapter here. Thank you!

cbrake commented 4 years ago

let me know if any concerns with this:

https://github.com/cbrake/linux-serial-test/commit/0685fc53870f52d38af82bdcddaeb6dc0182fb72

I think this is better behavior.