2 精币
截取电脑向打印机发送的数据保存下次调用继续打印,USB 的打印机,
能实现吗?
网上搜索了下。看到说Bus Hound可以捕获截取
截取数据倒是截取了,再怎么转换?保存,下次再调用啊,
这方面的技术资料太少啦
易语言 能实现吗,高手给个代码或者思路啊
下面是截取的数据,但不知道是什么意思啊?
Bus Hound 6.01 capture on Windows XP Service Pack 3 (x86). Complements of www.perisoft.net
Device - Device ID (followed by the endpoint for USB devices)
(0) USB Printing Support
(1) EPSON Stylus Photo R270 Series
Phase - Phase Type
CTL USB control transfer
IN Data in transfer
OUT Data out transfer
Data - Hex dump of the data transferred
Descr - Description of the phase
Cmd... - Position in the captured data
Device Phase Data Description Cmd.Phase.Ofs(rep)
------ ----- ------------------------ ---------------- ------------------
0.0 CTL a1 00 00 00 00 00 00 01 GET DEVICE ID 1.1.0(2)
0.0 IN 00 68 4d 46 47 3a 45 50 .hMFG:EP 1.2.0
53 4f 4e 3b 43 4d 44 3a SON;CMD: 1.2.8
45 53 43 50 4c 32 2c 42 ESCPL2,B 1.2.16
44 43 2c 44 34 2c 44 34 DC,D4,D4 1.2.24
0.0 CTL a1 00 00 00 00 00 00 04 GET DEVICE ID 3.1.0
0.0 IN 00 68 4d 46 47 3a 45 50 .hMFG:EP 3.2.0
53 4f 4e 3b 43 4d 44 3a SON;CMD: 3.2.8
45 53 43 50 4c 32 2c 42 ESCPL2,B 3.2.16
44 43 2c 44 34 2c 44 34 DC,D4,D4 3.2.24
0.4 OUT 00 00 00 1b 01 40 45 4a .....@EJ 4.1.0
4c 20 31 32 38 34 2e 34 L 1284.4 4.1.8
0a 40 45 4a 4c 0a 40 45 .@EJL.@E 4.1.16
4a 4c 0a JL. 4.1.24
0 IN 5.1.0
0.5 IN 00 00 00 08 01 00 c5 00 ........ 6.1.0
0.4 OUT 00 00 00 08 01 00 00 10 ........ 7.1.0
0 IN 8.1.0
0.5 IN 00 00 00 09 01 00 80 00 ........ 9.1.0
10 . 9.1.8
0.4 OUT 00 00 00 11 01 00 01 02 ........ 10.1.0
02 01 00 01 00 00 00 00 ........ 10.1.8
00 . 10.1.16
0 IN 11.1.0
0.5 IN 00 00 00 10 01 00 81 00 ........ 12.1.0
02 02 00 40 01 00 00 00 ...@.... 12.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 13.1.0
02 00 01 ... 13.1.8
0 IN 14.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 15.1.0
02 02 .. 15.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 16.1.0
02 ff ff 00 01 ..... 16.1.8
0 IN 17.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 18.1.0
02 02 00 01 .... 18.1.8
0.4 OUT 02 02 00 0b 00 00 73 74 ......st 19.1.0
01 00 01 ... 19.1.8
0.5 IN 02 02 00 cc 00 01 40 42 ......@B 20.1.0
44 43 20 53 54 32 0d 0a DC ST2.. 20.1.8
ba 00 01 01 00 02 01 00 ........ 20.1.16
06 02 01 ff 0f 13 03 05 ........ 20.1.24
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 21.1.0
02 00 01 ... 21.1.8
0 IN 22.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 23.1.0
02 02 .. 23.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 24.1.0
02 ff ff 00 01 ..... 24.1.8
0 IN 25.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 26.1.0
02 02 00 01 .... 26.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 27.1.0
10 00 11 5f 42 bd 21 1c ..._B.!. 27.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 27.1.16
6c 66 lf 27.1.24
0.5 IN 02 02 00 10 00 01 7c 7c ........ 28.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 28.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 29.1.0
02 00 01 ... 29.1.8
0 IN 30.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 31.1.0
02 02 .. 31.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 32.1.0
02 ff ff 00 01 ..... 32.1.8
0 IN 33.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 34.1.0
02 02 00 01 .... 34.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 35.1.0
10 00 11 5f 42 bd 21 1d ..._B.!. 35.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 35.1.16
6c 66 lf 35.1.24
0 IN 36.1.0
0.5 IN 02 02 00 10 00 01 7c 7c ........ 37.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 37.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 38.1.0
02 00 01 ... 38.1.8
0 IN 39.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 40.1.0
02 02 .. 40.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 41.1.0
02 ff ff 00 01 ..... 41.1.8
0 IN 42.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 43.1.0
02 02 00 01 .... 43.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 44.1.0
10 00 11 5f 42 bd 21 20 ..._B.! 44.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 44.1.16
6c 66 lf 44.1.24
0.5 IN 02 02 00 10 00 01 7c 7c ........ 45.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 45.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 46.1.0
02 00 01 ... 46.1.8
0 IN 47.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 48.1.0
02 02 .. 48.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 49.1.0
02 ff ff 00 01 ..... 49.1.8
0 IN 50.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 51.1.0
02 02 00 01 .... 51.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 52.1.0
10 00 11 5f 42 bd 21 21 ..._B.!! 52.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 52.1.16
6c 66 lf 52.1.24
0 IN 53.1.0
0.5 IN 02 02 00 10 00 01 7c 7c ........ 54.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 54.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 55.1.0
02 00 01 ... 55.1.8
0 IN 56.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 57.1.0
02 02 .. 57.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 58.1.0
02 ff ff 00 01 ..... 58.1.8
0 IN 59.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 60.1.0
02 02 00 01 .... 60.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 61.1.0
10 00 11 5f 42 bd 21 32 ..._B.!2 61.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 61.1.16
6c 66 lf 61.1.24
0 IN 62.1.0
0.5 IN 02 02 00 10 00 01 7c 7c ........ 63.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 63.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 64.1.0
02 00 01 ... 64.1.8
0 IN 65.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 66.1.0
02 02 .. 66.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 67.1.0
02 ff ff 00 01 ..... 67.1.8
0 IN 68.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 69.1.0
02 02 00 01 .... 69.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 70.1.0
10 00 11 5f 42 bd 21 33 ..._B.!3 70.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 70.1.16
6c 66 lf 70.1.24
0.5 IN 02 02 00 10 00 01 7c 7c ........ 71.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 71.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 72.1.0
02 00 01 ... 72.1.8
0 IN 73.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 74.1.0
02 02 .. 74.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 75.1.0
02 ff ff 00 01 ..... 75.1.8
0 IN 76.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 77.1.0
02 02 00 01 .... 77.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 78.1.0
10 00 11 5f 42 bd 21 34 ..._B.!4 78.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 78.1.16
6c 66 lf 78.1.24
0 IN 79.1.0
0.5 IN 02 02 00 10 00 01 7c 7c ........ 80.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 80.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 81.1.0
02 00 01 ... 81.1.8
0 IN 82.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 83.1.0
02 02 .. 83.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 84.1.0
02 ff ff 00 01 ..... 84.1.8
0 IN 85.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 86.1.0
02 02 00 01 .... 86.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 87.1.0
10 00 11 5f 42 bd 21 35 ..._B.!5 87.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 87.1.16
6c 66 lf 87.1.24
0 IN 88.1.0
0.5 IN 02 02 00 10 00 01 7c 7c ........ 89.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 89.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 90.1.0
02 00 01 ... 90.1.8
0 IN 91.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 92.1.0
02 02 .. 92.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 93.1.0
02 ff ff 00 01 ..... 93.1.8
0 IN 94.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 95.1.0
02 02 00 01 .... 95.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 96.1.0
10 00 11 5f 42 bd 21 1e ..._B.!. 96.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 96.1.16
6c 66 lf 96.1.24
0 IN 97.1.0
0.5 IN 02 02 00 10 00 01 7c 7c ........ 98.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 98.1.8
0.4 OUT 00 00 00 0b 01 00 03 02 ........ 99.1.0
02 00 01 ... 99.1.8
0 IN 100.1.0
0.5 IN 00 00 00 0a 01 00 83 00 ........ 101.1.0
02 02 .. 101.1.8
0.4 OUT 00 00 00 0d 01 00 04 02 ........ 102.1.0
02 ff ff 00 01 ..... 102.1.8
0 IN 103.1.0
0.5 IN 00 00 00 0c 01 00 84 00 ........ 104.1.0
02 02 00 01 .... 104.1.8
0.4 OUT 02 02 00 1a 00 00 7c 7c ........ 105.1.0
10 00 11 5f 42 bd 21 1f ..._B.!. 105.1.8
00 00 55 74 76 68 62 6a ..Utvhbj 105.1.16
6c 66 lf 105.1.24
0.5 IN 02 02 00 10 00 01 7c 7c ........ 106.1.0
3a 34 32 3a 4f 4b 3b 0c :42:OK;. 106.1.8
我来回答