tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: USB output in ucom
On Sun, Jul 13, 2025 at 09:16:17AM +0000, RVP wrote:
> Does the link have working HW flow control (RTS/CTS)? If only 3 wires are
> active (Rx/Tx/GND), then you'll have to set very low speeds.
The link has hardware flow-control, and it can work at 115200 bps in
other contexts. I tired addinc CRTSCTS to control flags, it does
not change much
struct termios t;
memset(&t, 0, sizeof(t));
t.c_ispeed = ucomcons_speed;
t.c_ospeed = ucomcons_speed;
t.c_cflag = tp->t_cflag ;
SET(t.c_cflag, CLOCAL|CRTSCTS);
CLR(t.c_cflag, HUPCL);
(void)ucomparam(tp, &t);
Input received on the other end:
"6"
"E"
"LL"
"O"
" "
"W"
"O"
"R"
"L"
"D"
"!\r"
"\n"
"X"
"x"
--
Emmanuel Dreyfus
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index