NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: TTL/USB converter usage question



Hello RVP, many thanks for the tip and explanation but it does not work:

netbsd-raspa4$ stty  -f /dev/ttyU0 9600 raw
netbsd-raspa4$ cat /dev/ttyU0

nothing happens...

Thanks. Regards.

El lun, 14 oct 2024 a las 12:46, RVP (<rvp%sdf.org@localhost>) escribió:
>
> On Mon, 14 Oct 2024, Ramiro Aceves wrote:
>
> > I read somewhere that I could get same behaviour with this commands this way:
> >
> > netbsd-raspa4$ stty -f /dev/ttyU0 9600
> > netbsd-raspa4$ cat /dev/ttyU0
> >
> > But I do get nothing from the cat command.
> >
>
> Put that tty into char-at-a-time mode; otherwise, cat doesn't get anything
> until a) either a '\n' in input is encountered, or b) 255 chars. are read.
>
> $ stty -f /dev/ttyU0 9600 raw; cat /dev/ttyU0
>
> -RVP


Home | Main Index | Thread Index | Old Index