Colorado USB 19200

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Colorado USB 19200

ulrich.vdh (Bugzilla)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have a Colorado USB 19200 scanner.
I find a driver but for an old kernel in page : http://viceo.orcon.net.nz/

I would like to update him to work with kernel 2.6 and libusb.
But i don't know how begin.

Where can i find documentation to write driver for my scanner ?

Thank you


- --
Ulrich Van Den Hekke
http://ulrich.vdh.free.fr
Empreinte : 2C60 9A57 39DF 48DE 6B95  BEC7 D6F8 7F04 0D0B 72E7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCtDE51vh/BA0LcucRAlcdAKCQZvrYBqCh2Dj2700mxtsbUksrlwCdHr/z
phXHb+3D+4WIMe8ww7+l9iY=
=kkzr
-----END PGP SIGNATURE-----

ulrich.vdh.vcf (275 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Colorado USB 19200

Bertrik Sikken
Ulrich Van Den Hekke wrote:
> Hello,
>
> I have a Colorado USB 19200 scanner.
> I find a driver but for an old kernel in page : http://viceo.orcon.net.nz/
>
> I would like to update him to work with kernel 2.6 and libusb.
> But i don't know how begin.
>
> Where can i find documentation to write driver for my scanner ?

I think the first thing to do is to contact the maintainer of the
viceo backend and ask him if he can update the backend.

In order to convert the backend from using a kernel interface into
using libusb, you need to look at the functions provided by
include/sane/sanei_usb.h. You should be able to replace all
open/read/write/ioctl/close references by a suitable function
from sanei_usb.h

Typical conversions are:
open -> sanei_usb_open
ioctl -> sanei_usb_control_msg (for IOCTL_READ_REGISTERS and
IOCTL_WRITE_REGISTERS ioctls anyway)
read -> sanei_usb_read_bulk
write -> sanei_usb_write_bulk
close -> sanei_usb_close

You can probably get the arguments for the sanei_usb_control_msg
function from the old kernel patch.

Also you may need to update the mechanism for detection of a
scanner. For example, you can use function sanei_usb_find_devices
to receive call-backs for every device supported by your backend.

Good luck,
Bertrik

--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]