樓主,你out了,現(xiàn)在是基于fins的了!本來(lái)想把源碼貼出來(lái),想想還是不要斷了你的財(cái)路,只把通訊協(xié)議貼一些出來(lái)吧
SUDT ACCESSPORT LOG FILE - Monitor mode
監(jiān)控: COM8
創(chuàng)建時(shí)間: 2011-03-19, 14:35:30
計(jì)算機(jī)名: J2
系統(tǒng)版本: 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* 設(shè)置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讀寫