-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uart applet warnings #568
Comments
The first is a non-issue - as there is no signal (and parity is disabled), it's just informing you that there were n framing errors... UARTs are typically idle-high, and if the line is low for an extended period then it is either a break (technically also a framing issue), or an invalid signal. https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter#Break_condition |
Yes, this I understand. Just wasn't expecting "warnings" when doing nothing. Also, the fill up the screen fast. But true, receiving nothing (idle-high) could technically be interpreted as framing errors. I guess the easy way is just to change the log level, right? |
I consider this the desired behavior since it's an abnormal state indicating a connection error, a faulty transmitter, or some other condition you want to be aware of. I do not consider it a concern that when you are not actually using the applet for its only purpose you're getting what may seem to be spurious warnings.
If you run it in PTY mode it does not instruct you to use
That seems like a bug. |
(That said, I'm wondering if we should switch to a different escape sequence and/or trap SIGQUIT and make it synonymous to SIGINT normally because training users to do a thing that most of the time coredumps is bad.) |
It was just new to me because other USB to UART converters (e.g. FTDI, etc.) don's show that. But fair enough, I understand you point.
Correct. I just tired it because
Ok. :) Thank you for the hard work on the project. Feel free to close this issue or to change its title to something more appropriate (e.g. "Bug when closing UART applet in PTY mode using Ctrl+c"). |
One thing we can do is simply add a pullup on the RX line. |
So reading through this issue with a fresh pair of eyes:
So I think there's actually three issues here, but it's a little more subtle than what it looked at first. |
Is it worth the (small, I think) effort to change the message to not mention parity errors if parity is none? FWIW, I also like that it informs me when the DUT stops pulling it's transmit line high. |
Yes, happy to merge a PR right away. |
@whitequark FWIW, no I don't care about a warning message :) And I also only use my revABs with custom applet anyway. |
@smunaut Thanks. n=1 isn't a lot but it's better than n=0, so I'll go with an unconditional pullup and we can fix it later. Anyone in this thread wants to add the pullups? You can glean how from the I2C applet. |
We are now unconditionally enabling pulls on the UART applet: #583 This leaves SIGQUIT and the deadlock on Ctrl-C as the remaining issues. |
Hi. My Glasgow just arrived today and I'm very exited. I've just tested the UART applet with nothing connected and made some observations. Not sure of what to make of them. Maybe they will help with development.
none
by default.The text was updated successfully, but these errors were encountered: