-
|
Hi, there, I have a embed device which only with Though I made it work, but I can't really understand it. Would you please help me to understand it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The "nobreak" option on the serialdev gensio turns off break at startup. It really should be named "disable_break_at_start", but that's kind of long. I imagine that the break signal is enabled on the serial port at startup. By default ser2net/gensio leaves it alone; nobreak turns it off. -corey |
Beta Was this translation helpful? Give feedback.
Break is something that can be on or off, and just closing the port won't change the setting ( I don't think; I'm not 100% sure). "send brk" does a kernel operation that causes break to be sent for a little bit. If it's already set on, it will have no effect.
However, I'm not sure about this. If break was enabled, you wouldn't be able to type characters, and I assume that's working.
I looked at the Linux driver and didn't see anything unusual around break. It may be a bug in the hardware or firmware, like the first break setting doesn't do anything. I'm not sure.