On Tue, 22 Nov 2005, Steve Bangert wrote:

> Maybe the page eject signal is a function of cups, here's a usbmon trace
> with those same two files sent through cups instead of directly to the
> device node:
> 
> ddb97300 1746092587 S Bi:003:02 -115 8192 <
> d8c4e100 1746092870 S Ci:003:00 s a1 01 0000 0000 0001 1 <
> ddb97300 1746093825 C Bi:003:02 0 0
> d8c4e100 1746093831 C Ci:003:00 0 1 = 18
> ddb97800 1747572137 S Bo:003:01 -115 3410 = 1b401b28 52080000 52454d4f
> 54453150 4d020000 00534e03 00000001 1b000000
> ddb97800 1747622575 C Bo:003:01 0 3410 >
> ddb97800 1747622645 S Bo:003:01 -115 2852 = 03fffc00 fffc003f fffffcfa
> 00013ff0 c200c500 0203ffc0 fb000bff c000ffc0
> ddb97800 1747665567 C Bo:003:01 0 2852 >
> ddb97800 1748029374 S Bo:003:01 -115 3455 = fc0003ff c000000f ff003ffc
> ff00f0fa 000103ff fa00013f fcfe0004 3ffc000f
> ddb97800 1748079498 C Bo:003:01 0 3455 >
> ddb97800 1748079632 S Bo:003:01 -115 1519 = c0003ff0 00000300 00ffc081
> 00810081 0081009f 00c30001 3ff0fc00 01ffc0fc
> ddb97800 1748103493 C Bo:003:01 0 1519 >

That's the first file.  Cups does a lot of processing and formatting -- it 
may even convert the text into a bitmap image and send that.  By looking 
at the values on the "S Bo:" lines we can see that 3410+2852+3455+1519 = 
11236 bytes were sent -- up from 9!

> ddb97300 1759874400 S Bi:003:02 -115 8192 <
> df0f2e00 1759874447 S Ci:003:00 s a1 01 0000 0000 0001 1 <
> ddb97300 1759875598 C Bi:003:02 0 0
> df0f2e00 1759875603 C Ci:003:00 0 1 = 18
> ddb97800 1760357775 S Bo:003:01 -115 2453 = 1b401b28 52080000 52454d4f
> 54453150 4d020000 00534e03 00000001 1b000000
> ddb97800 1760394518 C Bo:003:01 0 2453 >
> ddb97800 1760394626 S Bo:003:01 -115 3819 = f000003f f000003f ff003ffe
> ff03f000 00fffe00 000ffcff 0a00003f ff000003
> ddb97800 1760451505 C Bo:003:01 0 3819 >
> ddb97800 1760451591 S Bo:003:01 -115 4347 = fc0003ff c000000f ff003ffc
> ff00f0fa 000103ff fa00013f fcfe0004 3ffc000f
> ddb97800 1760516490 C Bo:003:01 0 4347 >
> ddb97800 1760818127 S Bo:003:01 -115 1987 = c0003ff0 00000300 00ffc081
> 00810081 008100d5 00c30001 3ff0fc00 01ffc0fc
> ddb97800 1760847433 C Bo:003:01 0 1987 >

And that's the second file, with 2453+3819+4347+1987 = 12606 bytes total.

> Would it help if i sent a usbmon trace with a working printer to see the
> contrast?

That's a good idea.  Print the same files the same way, and let's see what 
goes over the USB connection.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to