Welcome! Log In Create A New Profile

Advanced

ioctl: ttyS1 not a tty device

Posted by ptz 
ptz
ioctl: ttyS1 not a tty device
August 29, 2018 08:30AM
I have a board with UART, and an external converter to RS485. It sits at /dev/ttyS1. The converter requires that I put the UART RTS pin to high when sending and to low when receiving. I can achieve that by manipulating the pin manually, but I'd much prefer to have the serial driver do that. I follow verbatim the example in [elixir.bootlin.com], but what I get from
ioctl()
is
ENOTTY
- not a tty device. How can I proceed to understand the issue?

$ ls -l /dev/ttyS1
crw-rw---- 1 root dialout 4, 65 Aug 29 09:16 /dev/ttyS1

EDIT: I guess this is becuase my UART is uncapable of RS485 functionality. As I said, my converter sits outside, and the kernel doesn't know about it.



Edited 1 time(s). Last edit at 08/29/2018 09:00AM by ptz.
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 25 plus 8?
Message: