楼主,你out了,现在是基于fins的了!本来想把源码贴出来,想想还是不要断了你的财路,只把通讯协议贴一些出来吧
SUDT ACCESSPORT LOG FILE - Monitor mode
监控: COM8
创建时间: 2011-03-19, 14:35:30
计算机名: J2
系统版本: Microsoft Windows XP Professional Service Pack 3 (Build 2600)
# Time Function Data ( Hex )
1 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe
2 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
3 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8
4 [00000010] IRP_MJ_CLOSE Port Closed
5 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe
6 [00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
7 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8
8 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
9 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7
10 [00000088] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D
11 [00002270] IRP_MJ_CLOSE Port Closed
12 [00000000] IRP_MJ_CREATE Port Opened - AccessPort.exe
13 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
14 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7
15 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
16 [00000003] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7
17 [00000940] IRP_MJ_CLOSE Port Closed
18 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe
19 [00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
20 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8
21 [00000010] IRP_MJ_CLOSE Port Closed
22 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe
23 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
24 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8
25 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
26 [00000003] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7
27 [00000941] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D
28 [00001933] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 57 44 30 30 30 31 30 30 30 32 35 30 2A 0D
29 [00002507] IRP_MJ_CLOSE Port Closed
30 [00000000] IRP_MJ_CREATE Port Opened - AccessPort.exe
31 [00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
32 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7
33 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
34 [00000003] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7
35 [00000804] IRP_MJ_CLOSE Port Closed
36 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe
37 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
38 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8
39 [00000009] IRP_MJ_CLOSE Port Closed
40 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe
41 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
42 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8
43 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
44 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7
45 [00000093] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D
46 [00000177] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D
47 [00000190] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D
48 [00000293] IRP_MJ_CLOSE Port Closed
@00FA00000000001018200000000017C*//d0读
@00FA00000000001018200010000017D* D1读 @00FA00000000001018200020000017E* D2读
@00FA00000000001018200020000027D* D2D3 读
@00FA00000000001018200020000027D* D2D3 可写
@00FA0000000000101B2000000000106* H0 读
@00FA0000000000101B2000000000106* H0 可写
@00FA0000000000101B2000100000107* H1 读
@00FA0000000000101B2000100000107* H1 可写
@00FA0000000000101B2000200000104* H2 读
@00FA0000000000101B2000200000104* H2 可写
@00FA0000000000101B2000300000105* H3 读
@00FA0000000000101B2000300000105* H3 可写
@00FA0000000000101B2000300000206* H3H4读
@00FA0000000000101B2000300000206* H3H4可写
@00FA00000000001023100010100010176* 设置W1.1位置
@00FA00000000001023000640000010175* 写100.00
@00FA000000000010130006400000177* 100.00 读
@00FA000000000010130006401000176* 100.01 读
@00FA000000000010130006402000175* 100.02 读
@00FA000000000010130006500000176* 101.00 读
@00FA000000000010130006501000177* 101.01 读
@00FA000000000010130006502000174* 101.02 读
@00FA000000000010130000000000175* 0.00 读
@00FA000000000010130000001000174* 0.01 读
@00FA000000000010130000002000177* 0.02 读
@00FA000000000010130000100000174* 01.00读
@00FA000000000010130000200000177* 02.00读
@00FA000000000010131000000000174* W0.00 读
@00FA000000000010131000001000175* W0.01 读
@00FA000000000010131000002000176* W0.02 读
@00FA000000000010131000002000176* W0.02 读
@00FA000000000010131000100000175* W1.00读
@00FA000000000010131000200000176* W2.00读
@00FA000000000010189000000000177* T0读
@00FA000000000010189000000000177* T0读写
@00FA000000000010189000100000176* T1读
@00FA000000000010189000100000176* T1读写
@00FA000000000010189000200000175* T2读
@00FA000000000010189000200000175* T2读写
@00FA000000000010189000000000177* C0读
@00FA000000000010189000000000177* C0读写
@00FA000000000010189000100000176* C1读
@00FA000000000010189000100000176* C1读写
@00FA000000000010189000100000176* C1读写并写了上下限100-10
@00FA000000000010189000200000175* C2读
@00FA000000000010189000200000175* C2读写
@00FA00000000001018900FA00000170* C250读写
@00FA00000000001018909C400000109* C2500读写
@00FA00000000001018909C40000020A* C2500 C2501读写