Phil.
Using a little test java program. it appears the sense of DSR and CTS are
reversed. There's also a little weirdness with DTR on ComN+1 - it toggles
both DSR and CTS of ComN, you'd only expect it to toggle only DSR.
The sequence of the bits I saw is:
ComN ComN+1
RTS false false
DTR false false
DSR true true
CTS true true
The DSR and CTS values are reversed of what you expect
If I toggle RTS on ComN: CTS on ComN+1 toggles as expected (but still
reverse polarity)
RTS true false
DTR false false
DSR true true
CTS true false
Toggling DTR on ComN DTR on COMN+1 toggles as expected (but still reversed
polarity)
RTS true false
DTR true false
DSR true false
CTS true false
Now extra weirdness happens, if I toggle DTR on Com N+1, both DSR and CTS
on ComN toggle -- seeming to indicate the virtual wiring of the higher
port has DTR of N+1 tied to both DSR and CTS of N
RTS true false
DTR true true
DSR false false
CTS false false
If I toggle DTR of N+1 back to false. DSR and CTS of ComN go back to true
RTS true false
DTR true false
DSR true false
CTS true false
Finally toggling RTS of N+1 only toggles CTS of ComN (but the sense is
reversed)
RTS true true
DTR true false
DSR true false
CTS false false
If you want the Java test driver let me know -- simple little program to
let you toggle the bits and see their state. Requires a JRE and javax.comm
extension.
Regards,
Bill
At 05:52 PM 6/10/2005, Philip Covington wrote:
Mel,
I could very well have the RTS/DTR signal polarity reversed in the
driver. Basically right now when the RTS is set the CTS is set in the
twin com port's logic. When the DTR is set the DSR is set in the twin
com port's logic. I think this part is ok.
I think the problem is in the IOCTL_SERIAL_GET_MODEMSTATUS dev IOCTL .
I am not sure I am emulating the hardware serial port driver
correctly. It will take less than a minute to fix it and recompile
but I first want to be sure it's really a problem.
Could you possibly download the PortMon.exe program from System Internals at:
http://www.sysinternals.com/Files/PortMonNt.zip
If you log the serial port activity while toggling the TX in Digipan
and then email the log file to me I can see what IOCTLs the vCOM
driver is getting. I am particularly interested if Digipan is using
IOCTL_SERIAL_GET_MODEMSTATUS to get the state of the CTS/DSR lines or
if it is using events.
73 de Phil N8VB
On 6/10/05, Mel Whitten <[EMAIL PROTECTED]> wrote:
>
> Anyone using Digipan with Phil's vCOM? When checking the PTT Big
Banger and
> RTS/DTR, Digipan immediately goes into TX. If I put Digipan in TX, the TX
> goes OFF. Same operation with WinDRM. It appears the logic is
reversed for
> the RTSDTR? Has anyone else experienced this? WinDRM and Digipan do not
> have any option to reverse the sensed state of RTS/DTR. Bill TFD,
mentioned
> this is a relatively easy fix in software, but it may be something I have
> set up wrong here if no one is not having this problem.
>
> Thanks,
>
> Mel, K0PFX
>