# HP 5300C programming

From: EdHamrick@aol.com
Date: Mon Aug 28 2000 - 03:47:38 PDT

- Next message: thaddock@kr.onet.pl: "Re: HP 5300C programming"
  - Previous message: Harald Finster: "Re: question about scan exposure time (microtek2)"
  - Next in thread: thaddock@kr.onet.pl: "Re: HP 5300C programming"
  - Reply: thaddock@kr.onet.pl: "Re: HP 5300C programming"
  - Reply: EdHamrick@aol.com: "Re: HP 5300C programming"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  I recently figured out how to program the HP 5300C (and I
  suspect the HP 3300C).

  The 5300C is actually built by Avision, and uses the Avision
  scsi command set. The scsi commands are encapsulated in
  USB reads and writes as follows:

  1) Write CDB to bulk data endpoint
  2) Read or write command data to/from a bulk data endpoint (if len > 0)
  3) Read 1 byte of status data from interrupt endpoint (0==success)

  There's one input bulk data endpoint, one output endpoint,
  and one interrupt endpoint.

  Interestingly, the Minolta Scan Dual II film scanner is also
  built by Avision, and uses the same command set as the
  HP 5300C. I haven't tested the 3300C but I'm
  pretty sure it is built by Avision as well.

  The Scan Dual II has VID=0x0638 PID=0x026a
  The HP 5300C has VID=0x03f0 PID=0x0701
  The HP 3300C has VID=0x03f0 PID=0x0205

  I write a film scanner program for Windows, Mac, and
  Linux called VueScan (www.hamrick.com) and I have
  version 6.1 working with the Scan Dual II and 5300C
  (on Windows only at the present time). I want to add
  USB scanner support on Linux.

  It would be useful if someone would modify the microtek.c
  code to implement the Avision scsi->usb encapsulation.
  This way SANE (and VueScan) would easily be
  able to access Avision scanners through the
  normal SCSI driver.

  Alternatively, it would be useful if scanner.c had an ioctl
  that let you read and write a specific endpoint.

  Regards,
  Ed Hamrick

      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: thaddock@kr.onet.pl: "Re: HP 5300C programming"
  - Previous message: Harald Finster: "Re: question about scan exposure time (microtek2)"
  - Next in thread: thaddock@kr.onet.pl: "Re: HP 5300C programming"
  - Reply: thaddock@kr.onet.pl: "Re: HP 5300C programming"
  - Reply: EdHamrick@aol.com: "Re: HP 5300C programming"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Mon Aug 28 2000 - 03:36:53 PDT