[sane-devel] hp 2300c

gnawa gnawa at libero.it
Fri Jul 4 10:35:18 BST 2003


hi!
this is a short example of the protocol i have obtained with usb_snoopy
there are a lot of istruction like these befor the "read_scan_data"

00000000	0.00000000	UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, 
IOCTL_INTERNAL_USB_SUBMIT_URB	
00000001	0.00002039	 	
00000002	0.00002654	>>>>>>> URB 2162 going down...	
00000003	0.00003799	-- URB_FUNCTION_VENDOR_DEVICE:	
00000004	0.00005140	  TransferFlags          = 00000000 
(USBD_TRANSFER_DIRECTION_OUT, ~USBD_SHORT_TRANSFER_OK)	
00000005	0.00006118	  TransferBufferLength = 00000001	
00000006	0.00007180	  TransferBuffer       = 8181bf08	
00000007	0.00008018	  TransferBufferMDL    = 00000000	
00000008	0.00008828	 	
00000009	0.00010783	    0000: 41 	
00000010	0.00011622	  UrbLink                 = 00000000	
00000011	0.00012488	  RequestTypeReservedBits = 40	
00000012	0.00013326	  Request                 = 0c	
00000013	0.00014164	  Value                   = 0083	
00000014	0.00015114	  Index                   = 0000	
00000015	0.00411477	 	
00000016	0.00412091	<<<<<<< URB 2162 coming back...	
00000017	0.00413237	-- URB_FUNCTION_CONTROL_TRANSFER:	
00000018	0.00414271	  PipeHandle           = 813c7574	
00000019	0.00415360	  TransferFlags        = 00000002 
(USBD_TRANSFER_DIRECTION_OUT, USBD_SHORT_TRANSFER_OK)	
00000020	0.00416282	  TransferBufferLength = 00000001	
00000021	0.00417204	  TransferBuffer       = 8181bf08	
00000022	0.00418126	  TransferBufferMDL    = 813b0e68	
00000023	0.00419076	  UrbLink              = 00000000	
00000024	0.00425976	  SetupPacket          : 40 0c 83 00 00 00 01 00 	
00000025	0.00431004	UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, 
IOCTL_INTERNAL_USB_SUBMIT_URB	

i need some help for understand what is "urb", the meaning of >>>>>> and 
<<<<<< (i think it's direction of messages in or out...), ..., ..., ..., etc. 
the logs are very long :) (making a preview of scannig the log is about 17Mb 
and then with real scanning the log is about 7Mb) on 10x10(cm) of area...
i hope i'm on the right way, but i'm confused too
thanks 
Gnawa




Alle 08:39, venerdì 4 luglio 2003, Henning Meier-Geinitz ha scritto:
> Hi,
>
> On Fri, Jul 04, 2003 at 01:20:12AM +0200, gnawa wrote:
> > i have logged under windows 2k,using usb_snoopy, the messages between the
> > driver and the scanner (hp scanjet 2300c) with the intention of write a
> > backend for my scanner... but now i don't know the next step...
> > i have made it because there are no information about chipset...
> > there is anyone who can help me?
>
> Analyze it. Find out, how the protocol works. Are commands used or
> registers? At which time which command is used? E.g. if a command is
> used multiple times during the actual scan and returns lots of data it's
> most probably the "read_scan_data" command (or however you want to
> name it). A command that is used only once immediately beforet he scan
> may be the "start_scan" command.
>
> Putting the usb snoopy logs somewhere on a web site might also help.
> Maybe someone recognizes a pattern or has seen that protocol before?
>
> Bye,
>   Henning
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel




More information about the sane-devel mailing list