On Mon, 12 Apr 2004 09:26:30 +0200, "Rein Klazes" said:
- it might be better to call COMM_WhackModem() after tcsetattr() so
previous flow control settings don't interfere with setting the RTS/DTS lines.
- #ifdef guards around TIOCM_DTR and TIOCM_RTS?
Agreed, I will fix this in a moment.
Well, I tried Rein's latest patch out, and it still doesn't let me communicate with the device (using either my test program or TzMax). I am not sure if the patch isn't working (I can see the relevant code being called in winedbg), if there is something else required that wine isn't doing, or if it is a timing issue.
In case it is interesting, here is my test app. This appears to be the minimum set of commands needed to communicate with the device.
Note the tight write/query loop. Adding even a 'Sleep(1)' within that loop prevents the communication from working in Windows.
I'm open to any other suggestions. Thanks, .Geoff