[sane-devel] Two questions: ESC/P control set, and drum scanners

Gernot Hassenpflug aikishugyo at gmail.com
Sun Jun 10 23:40:43 UTC 2012

On Mon, Jun 11, 2012 at 8:28 AM, Olaf Meeuwissen
<olaf.meeuwissen at avasys.jp> wrote:
> Gernot Hassenpflug <aikishugyo at gmail.com> writes:
>> On Mon, Jun 11, 2012 at 5:26 AM, Alessandro Zummo
>> <azummo-lists at towertech.it> wrote:
>>> On Sun, 10 Jun 2012 09:23:45 +0900
>>> Gernot Hassenpflug <aikishugyo at gmail.com> wrote:
>>>> I'm wondering if there is a backend already that uses a protocol based
>>>> on ESC/P command set?

> The epson, epson2 and epkowa backends all support the ESC/I protocol.
> The ESC/P protocol that I'm somewhat familiar with is for *printers*
> (and printers only, AFAIK).
> In your original mail you mentioned ESC S and ESC s commands.  In the
> ESC/I protocol those commands are for get-command-parameters and
> set-auto-area-segmentation, respectively.  This doesn't jive with what
> you described so I doubt those backends will be of any use.
> Do your logs include ESC f, ESC G and/or FS F, FS G (status and start
> scan commands)?  If not, then these backends definitely aren't what
> you're looking for.

Hi Olaf,
No, there are no other commands apart from various ESC S, and then ESC
s for data reading.
It appears very simple compared to, say, the pixma protocol. Once I
have a few more log files I will write out the protocol here, so far I
have only clearly identified the resolution command, and data reading,
and what are presumable ready/OK pairs.
So maybe Canon just created some pre-pixma command format....
I can rip out all the complicated stuff in the pixma backend and try
to make a new backend to support this. I figured though it might be
easier to rip out things or replace commands in a backend that uses
ESC/P style commands already.

Gernot Hassenpflug

More information about the sane-devel mailing list