You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/04/05 16:59:26 UTC
[GitHub] [incubator-nuttx] v01d opened a new issue #3392: TERMIOS
v01d opened a new issue #3392:
URL: https://github.com/apache/incubator-nuttx/issues/3392
```
Description: Need some minimal termios support... at a minimum, enough to
switch between raw and "normal" modes to support behavior like
that needed for readline().
UPDATE: There is growing functionality in libs/libc/termios/
and in the ioctl methods of several MCU serial drivers (stm32,
lpc43, lpc17, pic32, and others). However, as phrased, this
bug cannot yet be closed since this "growing functionality"
does not address all termios.h functionality and not all
serial drivers support termios.
Status: Open
Priority: Low
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] acassis commented on issue #3392: TERMIOS
Posted by GitBox <gi...@apache.org>.
acassis commented on issue #3392:
URL: https://github.com/apache/incubator-nuttx/issues/3392#issuecomment-813691992
I think the next step is to list the Arch(es) that need(s) support. I noticed that the FreeModbus was modified to include "speed_t" that comes from Termios, this "inoffensive" modification was enough to make FreeModbus dependent on Termios. Now all MCUs will need to support Termios (or at like say it supports) to get FreeModbus compiled.
This modification is not a bad thing, modifying FreeModbus to use Termios will allow it to setup its own baudrate and parity without depending on user to configure it in Serial Driver Configuration inside the menuconfig.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] robertlipe commented on issue #3392: TERMIOS
Posted by GitBox <gi...@apache.org>.
robertlipe commented on issue #3392:
URL: https://github.com/apache/incubator-nuttx/issues/3392#issuecomment-831706991
There's a LOT in "all termios.h functionality" that will never get used. Marking input parity errors (try that in a DMA/FIFO world), 50 baud, and FFDLY/FF1 (wait two seconds after sending a ^L without sending any data or exercising any flow control while the printer advances the platen since it "obviously" has no receive buffer) are a waste of time and complexity in this century. (And some of the previous century...) Full termios support would probably blow out a PIC.
I'd suggest narrowing this request substantially. Being able to support bit rate via integers instead of via CBAUD enums is nice and that's reasonable. If you didn't care about binary compatibility with ancient UNIX, you could do that with termio instead of termios. Coding OLCUC and IUCLC because your five bit tty doesn't have lower case letters is a bit silly.
Is the bugreport here really "want readline to work" instead of "all termios functionality"?
Either Ken or Dennis called the terminal driver the biggest regret in original UNIX. :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org