Serialverbindung ohne Handshake



  • Hi
    Wie kann ich eine Serielle Schnittstelle ohne Handshake öffnen?
    (Welchen Parameter muss ich wo mitgeben)????

    Vielen Dank für die Antworten!



  • Schau mal in die FAQ von WinAPI und in die MSDN zum Thema "DCB" und SetCommState...

    -junix



  • Sehe ich dies richtig, dass so:

    m_dcb.fDtrControl = DTR_CONTROL_ENABLE;
    

    Das Handshaking deaktiviert ist?



  • msdn.microsoft.com schrieb:

    fDtrControl
    DTR (data-terminal-ready) flow control. This member can be one of the following values.

    Value                   Meaning
    DTR_CONTROL_DISABLE     Disables the DTR line when the device is opened and leaves
                            it disabled.
    DTR_CONTROL_ENABLE      Enables the DTR line when the device is opened and leaves 
                            it on.
    DTR_CONTROL_HANDSHAKE   Enables DTR handshaking. If handshaking is enabled, it is 
                            an error for the application to adjust the line by using 
                            the EscapeCommFunction function.
    

    Es gibt da noch mehr Flags die du passend setzen musst...

    -junix



  • Ich habe dies auch in der MSDN gelesen... Habe aber nicht ganz kapiert was dies bedeutet:

    Enables the DTR line when the device is opened and leaves it on.
    

    Welche Flags muss ich denn sonst noch zusätzlich setzen um das Handshaking zu deaktivieren?????


Anmelden zum Antworten