<div dir="ltr">Hello,<br>a<br>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. <br><br>From the clanker...<br><br>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.<br><br>The device<br><br>USB 2770:0119, product string "AFL Film Scanner", USB 1.1 full speed, vendor class, bulk IN 0x81, bulk OUT 0x02, interrupt IN 0x83.<br>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.<br>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).<br>What works (checked on the hardware)<br><br>Open handshake, chip init, lamp, carriage moves, status and film sensors.<br>MCU commands: lens position, firmware version, film feed and eject.<br>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.<br>Flat-field correction, front-end gain picked from open light or from the film, and autofocus.<br>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.<br>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.<br><br>What I can offer<br><br>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.<br>The Python driver, published at the link below (GPL-2.0-or-later).<br>Possibly, later, a SANE backend in C. The strip feeder seems to fit an ADF-style source, one image per frame with scanimage --batch.<br>My questions<br><br>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)?<br>Is there an existing backend for this SQ / Faraday-bridge chip family that I have missed, which this work could extend instead?<br>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.<br>Code and notes: <a href="https://github.com/Pr0fB0ff/primefilm-1800afl">https://github.com/Pr0fB0ff/primefilm-1800afl</a><br><br>Thanks,<div><br></div><div>Marcel Sereboff + Clanker</div></div>