[sane-devel] PF 1800 AFL driver
Marcel Sereboff
msereboff at gmail.com
Sun Nov 1 18:34:37 GMT 2026
Hello,
a
I while ago I bought a Pacific Image PrimeFilm 1800 AFL and got the clanker
working on building a driver for it. Things are going well and I have
something now that works, and handles greyscale at least as well as what
the factory wrote. This is a film scanner and I do not do much color
photography. Please let me know if this is useful to you and if I can do
more work with this machine to advance your project.
>From the clanker...
Over the past weeks I have reverse engineered its protocol from the
vendor's Windows driver DLLs and checked each step on my unit. The result
is a working userspace driver in Python (pyusb/libusb). It scans slides and
whole film strips, feeding the strip frame by frame, at 1800 dpi in 8 or 16
bits (12 of them significant). I would like to make this useful to other
owners and to SANE, and I'd welcome advice on the best way to do that.
The device
USB 2770:0119, product string "AFL Film Scanner", USB 1.1 full speed,
vendor class, bulk IN 0x81, bulk OUT 0x02, interrupt IN 0x83.
The vendor's INF for this model (1800aflscan.inf) also lists 2770:011a,
2770:011b, 05da:00cd and 1606:f000, which may be related units.
It uses the "SQ" ASIC stack from the vendor software (SQ_SCAN.DLL,
IO_PORT.DLL, FVC.DLL): a parallel-port-style (SPP/EPP) register interface
carried over USB vendor control transfers. It does not speak the Genesys
protocol (the register requests stall).
What works (checked on the hardware)
Open handshake, chip init, lamp, carriage moves, status and film sensors.
MCU commands: lens position, firmware version, film feed and eject.
8- and 16-bit scans in colour and in a fast mono mode (one channel, about
twice the line rate), plus a 300 dpi preview mode.
Flat-field correction, front-end gain picked from open light or from the
film, and autofocus.
Strip transport: frames are placed closed-loop from the sprocket holes and
the gap between frames. I checked this along a whole uncut 36-exposure
roll, together with rewind and the end-of-strip detection.
Not done: colour negative handling (orange mask, gains), and testing on any
unit other than mine. Units seem to differ in feed slack, so the strip
feeding has deliberately wide tolerances.
What I can offer
A protocol write-up, also at the link below: the register map as far as
known, the scan setup sequences, the sensor and status bits, the film feed
commands, and a list of gotchas (for example, drive register 0xCF must be
0x0C, or every line comes back as one flat signal). The write-up comes from
my own notes and live runs. It contains no vendor code.
The Python driver, published at the link below (GPL-2.0-or-later).
Possibly, later, a SANE backend in C. The strip feeder seems to fit an
ADF-style source, one image per frame with scanimage --batch.
My questions
Would you prefer a new backend, or to start with a link to the protocol
notes and the external driver (for example, an entry in the unsupported
devices list)?
Is there an existing backend for this SQ / Faraday-bridge chip family that
I have missed, which this work could extend instead?
Is anyone else on the list using a PrimeFilm 1800 AFL or one of the related
IDs above? Testing on a second unit would help a lot.
Code and notes: https://github.com/Pr0fB0ff/primefilm-1800afl
Thanks,
Marcel Sereboff + Clanker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20261101/4d901e97/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane-unsupported-entry.desc
Type: application/octet-stream
Size: 385 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20261101/4d901e97/attachment.obj>
More information about the sane-devel
mailing list