I found and fixed a problem in drvAsynSerialPortWin32.c. When pasynUser->timeout was 0 for a read operation, and the number of characters available to read was 0, it was returning asynSuccess. This is incorrect, it should return asynTimeout.
Dirk also found a problem that when pasynUser->timeout was 0 it was not returning immediately.
With these fixes StreamDevice works correctly with local serial ports on WIN32.
These fixes will be in the next release of asyn, R4-23.
Mark
From: Mark Rivers
Sent: Sunday, November 24, 2013 12:25 PM
To: [email protected]
Subject: Anyone using StreamDevice with local serial ports on Windows?
Folks,
I am trying to use StreamDevice with a local serial port on win32-x86. It is not working. I’d like to know if the problem is specific to my setup.
Has anyone else used StreamDevice with local serial ports on win32-x86 or windows-x64?
Thanks,
Mark