On 06/13/2011 01:53 PM, Bruno Tréguier wrote:
Le 13/06/2011 à 22:28, f8arr a écrit :
Hello,
I'm not sure because I found the problem to resolve my issue :
stty --file=/dev/ttyUSB0 clocal
I remove all flow control on the serial.
I don't think that "clocal" removes flow control (on RTS/CTS) -
that's controlled by a separate option.
What "clocal" does, is "disable modem control signals".
Specifically, for a port marked "-clocal" (not local),
an open() call will block until the device on the port
asserts the CD (carrier detect) line, and if the CD
line is deasserted the port will "hang up". This is
useful for serial ports connected to dial-up modems,
but not particularly desirable for serial ports being
used to control local devices such as transceiver.
I can't recall whether a -clocal port automagically
asserts DTR even when it isn't open... I don't think so
but I could be wrong.
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html