auf der Suche nach einer Erklärung /Dokumentation der Werte für TCommTimeouts
habe ich selbstverständlich den Link auf Microsofts Website gefunden:
https://learn.microsoft.com/de-de/windo ... mmtimeouts
Die Erklärungen dort sind für mich nicht verständlich.
Bei weiterer Suche im Internet habe ich z.B. dies hier gefunden:
Code: Alles auswählen
// instance an object of COMMTIMEOUTS.
COMMTIMEOUTS comTimeOut;
// Specify time-out between charactor for receiving.
comTimeOut.ReadIntervalTimeout =3;
// Specify value that is multiplied
// by the requested number of bytes to be read.
comTimeOut.ReadTotalTimeoutMultiplier =3;
// Specify value is added to the product of the
// ReadTotalTimeoutMultiplier member
comTimeOut.ReadTotalTimeoutConstant =2;
// Specify value that is multiplied
// by the requested number of bytes to be sent.
comTimeOut.WriteTotalTimeoutMultiplier =3;
// Specify value is added to the product of the
// WriteTotalTimeoutMultiplier member
comTimeOut.WriteTotalTimeoutConstant =2;
// set the time-out parameter into device control.
SetCommTimeouts(handlePort_,&comTimeOut);
Code: Alles auswählen
// from here: https://www.swissdelphicenter.ch/en/showcode.php?id=841
ReadIntervalTimeout := 0; // 100; ? https://www.mikrocontroller.net/topic/290997
ReadTotalTimeoutMultiplier := 0;
ReadTotalTimeoutConstant := 1000; // 100; ? https://www.mikrocontroller.net/topic/290997
WriteTotalTimeoutMultiplier := 0;
WriteTotalTimeoutConstant := 1000; // 100; ? https://www.mikrocontroller.net/topic/290997
Kann mir das jemand erklären oder hat jemand von Euch einen guten Web-Link dazu für mich ?