救救我吧!

我使用375编写打印机程序,可初始化完成后,怎么也打不出数据. 现将电脑与打印机初始化和打印一个字符的数据用Bus Hound记录下来,有那位高手帮我写一段程序,能解决此问题,有劳动报酬!

//============================================ 初始化程序

Bus Hound 3.02 capture. Complements of www.perisoft.net

Dev - Device ID Time - Elapsed time since the start of the previous Phase Phase - ADDR= 1394 transfer address LOCK= 1394 lock transaction CDB = Command block NSTS= NT status CTL = USB control packet RSET= bus reset DI = Data In RSTS= I/O Request Status DO = Data Out SNS = SCSI Sense Data IDE = IDE task file command SSTS= SCSI Request Block Status ISOC= Isochronous Transfer USTS= USB status

(19) DOT4 USB Printing Support [85KB/Sec]

Dev Phase Data Info Time Cmd.Phase.Ofs --- ----- ----------- ------------- ----- ------------------ 19 CTL 80 06 00 01 00 00 12 00

19 DI 12 01 10 01 00 00 00 08 f0 03 17 0e 00 01 01 02 03 01 19 CTL 80 06 00 02 00 00 09 01 19 DI 09 02 4e 00 01 01 00 c0 01 09 04 00 00 03 07 01 03 00 07 05 01 02 40 00 00 07 05 81 02 40 00 00 07 05 82 03 08 00 ff 09 04 00 01 02 07 01 02 00 07 05 01 02 40 00 00 07 05 81 02 40 00 00 09 04 00 02 01 07 01 01 00 07 05 01 02 40 00 00

19 CTL 00 09 01 00 00 00 00 00 19 CTL a1 00 00 00 00 00 ff 00

19 DI 00 94 4d 46 47 3a 48 65 //================================我写的程序只能收到这前八个数据,后面的就没了,为什么? 77 6c 65 74 74 2d 50 61 63 6b 61 72 64 3b 43 4d 44 3a 50 4a 4c 2c 4d 4c 43 2c 42 49 44 49 2d 45 43 50 2c 50 43 4c 2c 44 57 2d 50 43 4c 3b 4d 44 4c 3a 68 70 20 4c 61 73 65 72 4a 65 74 20 31 30 31 35 3b 43 4c 53 3a 50 52 49 4e 54 45 52 3b 44 45 53 3a 48 65 77 6c 65 74 74 2d 50 61 63 6b 61 72 64 20 4c 61 73 65 72 4a 65 74 20 31 30 31 35 3b 4d 45 4d 3a 31 33 4d 42 3b 43 4f 4d 4d 45 4e 54 3a 52 45 53 3d 36 30 30 78 32 3b

打印时的数据见附件.

UploadImages/silverman200512692253.rar

你再次启动接收不就有了吗??


接收数据是连续的,在获得设备描述信息(78个字节),连续接收都是正确的,


只有登录才能回复,可以选择微信账号登录