[sane-devel] PF 1800 AFL driver
Ralph Little
skelband at gmail.com
Sun Nov 1 19:52:55 GMT 2026
Hi,
I do have a Prime Film PF3600 Pro that has been kicking around here for
a while.
I do not know if this is sufficiently similar internally and in terms of
protocol to be part of the same family but it is very similar
externally/visually to your PF1800 AFL and probably in function.
Strange thing is though, that it identifies itself as an 1800U over USB
(USB ids 0x05e3/0x0120). I don't know why that would be. I wondered if
someone had accidentally updated the firmware incorrectly or if some of
these models have the same guts as an 1800U. Dunno. I have been unable
to get it to respond to Windows drivers (for the 3600 Pro or the 1800U)
so its current status is unknown. It certainly does seem like the 3600
Pro and 1800U have very different functionality though so I am not sure.
Over the weekend, I *did* pick up an actual 1800U from someone and I
similarly cannot get it to interact with the Windows drivers. The device
is recognised by the driver install, but the provided image acquisition
software fails to contact the scanner during initialisation. The comms
issues might be related to my running it in a Windows XP Virtualbox VM.
It seems like the driver is trying to directly access hardware because
I'm seeing all sorts of errors related to TVICHW32.dll (which is not
installed in the VM OS) which I understand are direct hardware drivers.
So I will fire up Windows XP or Windows 7 on an actual machine to see if
I get further.
Anyway, to your questions: as far as a new backend as opposed to
appending to an existing one, it is not always clear which backend might
be close to what you have there. Sometimes opening up a device can help
identify common scanner-on-a-chip devices; often you just find a generic
embedded CPU, memory, motor drivers and USB interface drivers so it
doesn't always really help. :( We do have a sane-pieusb backend which is
purported to support some of their devices but I do not know much about
it. You might look there to see if there is any commonality with your
device.
As for documenting the protocol/registers etc, that is something that I
would love to see, even if you don't get around to putting together a
backend. That way, others could follow on your work.
Cheers,
Ralph
On 2026-11-01 11:34, Marcel Sereboff wrote:
> 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
More information about the sane-devel
mailing list