Option to disable setting readback? #164
ShaneMurphy2
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hello @ShaneMurphy2, you are not alone experiencing such behavior. I've seen this for What is the actual show stopper for you in your case? Getting an error from Interestingly, reading back termios flags only seems to happen |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some background, I'm working with a Xilinx UARTLite IP. This serial device is very barebones, and doesn't support all features. As such, the driver handles calls to
tcsetattr
a little oddly, in that it will mutate the settings the user passed in to be what the device supports. This causes an issue with opening this port using this library, since it callstcgetattr
aftertcsetattr
. For some combinations of settings, the readback will be different. For this device, that is not a problem. The core, low-level settings are configured in hardware (data bits, flow control, etc.).The only thing I need this library to do is higher level setup. I recognize I can construct a TTYPort instance from a raw FD, but I was having difficulty getting that to work reliably when constructing a
SerialStream
fromtokio_serial
.My proposal is to add a setting to the builder called
best_effort
, that when passedtrue
will disable the call totcgetattr
and the setting check. So, my question is: is this use case of a devious device driver is common enough to warrant an upstream change like this?Beta Was this translation helpful? Give feedback.
All reactions