Z
Break ist kein Zeichen. Für die Break-Funktion ist die Sendeleitung der Com Schnittstelle eine gewisse zeit auf aktiv gesetzt. ( normalerweise mindestens um 10% länger als die länge eines normalen zeichens ). Dadurch wird am Empfänger in UART Statusregister das Break-Bit gesetzt. Wie du es unter Windows anstellen musst die Sendeleitung zu aktivieren kann ich dir leider nicht sagen. Es muss aber eine Funktion geben die das macht.
Kurt
edit:
MSDN schrieb:
There are occasions when standard control lines are under the control of the application instead of the serial communications driver. For instance, an application may wish to implement its own flow control. The application would be responsible for changing the status of the RTS and DTR lines. EscapeCommFunction directs a communications driver to perform such extended operations. EscapeCommFunction can make the driver perform some other function, such as setting or clearing a BREAK condition. For more information on this function, consult the Platform SDK documentation, the Microsoft Win32 SDK Knowledge Base, or the Microsoft Developer Network (MSDN) Library.