[sane-devel] hp 2300c
gnawa
gnawa@libero.it
Fri, 4 Jul 2003 11:35:18 +0200
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,=20
IOCTL_INTERNAL_USB_SUBMIT_URB=09
00000001 0.00002039 =09
00000002 0.00002654 >>>>>>> URB 2162 going down...=09
00000003 0.00003799 -- URB_FUNCTION_VENDOR_DEVICE:=09
00000004 0.00005140 TransferFlags =3D 00000000=20
(USBD_TRANSFER_DIRECTION_OUT, ~USBD_SHORT_TRANSFER_OK)=09
00000005 0.00006118 TransferBufferLength =3D 00000001=09
00000006 0.00007180 TransferBuffer =3D 8181bf08=09
00000007 0.00008018 TransferBufferMDL =3D 00000000=09
00000008 0.00008828 =09
00000009 0.00010783 0000: 41 =09
00000010 0.00011622 UrbLink =3D 00000000=09
00000011 0.00012488 RequestTypeReservedBits =3D 40=09
00000012 0.00013326 Request =3D 0c=09
00000013 0.00014164 Value =3D 0083=09
00000014 0.00015114 Index =3D 0000=09
00000015 0.00411477 =09
00000016 0.00412091 <<<<<<< URB 2162 coming back...=09
00000017 0.00413237 -- URB_FUNCTION_CONTROL_TRANSFER:=09
00000018 0.00414271 PipeHandle =3D 813c7574=09
00000019 0.00415360 TransferFlags =3D 00000002=20
(USBD_TRANSFER_DIRECTION_OUT, USBD_SHORT_TRANSFER_OK)=09
00000020 0.00416282 TransferBufferLength =3D 00000001=09
00000021 0.00417204 TransferBuffer =3D 8181bf08=09
00000022 0.00418126 TransferBufferMDL =3D 813b0e68=09
00000023 0.00419076 UrbLink =3D 00000000=09
00000024 0.00425976 SetupPacket : 40 0c 83 00 00 00 01 00 =09
00000025 0.00431004 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL,=20
IOCTL_INTERNAL_USB_SUBMIT_URB=09
i need some help for understand what is "urb", the meaning of >>>>>> and=20
<<<<<< (i think it's direction of messages in or out...), ..., ..., ..., et=
c.=20
the logs are very long :) (making a preview of scannig the log is about 17M=
b=20
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=20
Gnawa
Alle 08:39, venerd=EC 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 t=
he
> > 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@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel