ReadFile behaviour on COMs
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Oct 26 02:45:35 CDT 2001
somebody showed me an application speaking to a device connected to the
serial port. The application failed after some successfull communication
steps. As the protocoll is available in some other (open source programm) we
could see that the program requested two bytes from the device , but
ReadFile only delivered one byte (with that byte beeing the right one of the
expected two byte sequence).
I suspect ReadFile to be the culprit. While the api description tells to
read all requested bytes ( beside of real errors), our implementation
happilies returns fewer bytes than requested. In the case of COM devices,
all timeouts of the SetCommTimeout structure should be checked two.
Anyone with an implementaion for that?
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-devel