I tried that but for some reason it didn't work ;/ I'm not sure if it works
for raw bits or what?
Basically I am trying to dump a serial data line to the parallel port and
read it almost like a logical analyzer. This way I can make sure some
devices are working right and such... The only thing that seems to work is
parmon but it doesn't log the data ;/
Jon
Below is the portmon output for a program called jbasic.exe with
the Tx and Rx lines connected together on the com1 port. In this
case the jbasic program sent "hello world" (displayed in hex) to
com1 and then read the com1 input buffer picking up the "hello
world". The lines are probably word wrapped. You may need to have
a device connected to the parallel port for it to see the traffic
there. To setup portmon you have to go to "computer" and select
local, then go to "capture" and select the ports to monitor.
Check the help file for other setup and logging options and such.
0 0.00009191 jbasic.exe IRP_MJ_CREATE Serial0
SUCCESS Options: Open
1 0.00002486 jbasic.exe
IOCTL_SERIAL_SET_QUEUE_SIZE Serial0 SUCCESS InSize: 8192
OutSize: 8192
2 0.00000531 jbasic.exe
IOCTL_SERIAL_GET_BAUD_RATE Serial0 SUCCESS
3 0.00000363 jbasic.exe
IOCTL_SERIAL_GET_LINE_CONTROL Serial0 SUCCESS
4 0.00000307 jbasic.exe IOCTL_SERIAL_GET_CHARS
Serial0 SUCCESS
5 0.00000279 jbasic.exe IOCTL_SERIAL_GET_HANDFLOW
Serial0 SUCCESS
6 0.00001509 jbasic.exe
IOCTL_SERIAL_SET_BAUD_RATE Serial0 SUCCESS Rate: 9600
7 0.00000950 jbasic.exe IOCTL_SERIAL_SET_RTS
Serial0 SUCCESS
8 0.00000950 jbasic.exe IOCTL_SERIAL_CLR_DTR
Serial0 SUCCESS
9 0.00000922 jbasic.exe
IOCTL_SERIAL_SET_LINE_CONTROL Serial0 SUCCESS StopBits: 1
Parity: NONE WordLength: 8
10 0.00000698 jbasic.exe IOCTL_SERIAL_SET_CHAR
Serial0 SUCCESS EOF:0 ERR:0 BRK:0 EVT:0 XON:0 XOFF:0
11 0.00000894 jbasic.exe IOCTL_SERIAL_SET_HANDFLOW
Serial0 SUCCESS Shake:0 Replace:40 XonLimit:0 XoffLimit:0
12 0.00004945 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 68
13 0.00102639 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 65
14 0.00090682 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 6C
15 0.00098113 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 6C
16 0.00098309 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 6F
17 0.00098085 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 20
18 0.00098448 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 77
19 0.00099985 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 6F
20 0.00005950 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 72
21 0.00096884 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 6C
22 0.00092470 jbasic.exe IRP_MJ_WRITE Serial0
SUCCESS Length 1: 64
23 0.00002291 jbasic.exe
IOCTL_SERIAL_GET_COMMSTATUS Serial0 SUCCESS
24 0.00000950 jbasic.exe
IOCTL_SERIAL_GET_COMMSTATUS Serial0 SUCCESS
25 0.00000810 jbasic.exe
IOCTL_SERIAL_GET_COMMSTATUS Serial0 SUCCESS
26 0.00001648 jbasic.exe IRP_MJ_READ Serial0
SUCCESS Length 11: 68 65 6C 6C 6F 20 77 6F 72 6C 64
27 0.00000698 jbasic.exe IRP_MJ_CLEANUP Serial0
SUCCESS
28 0.01878982 jbasic.exe IRP_MJ_CLOSE Serial0
SUCCESS