Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Bq3CXnAwLyl3+eyxBfCjJ9vXunnamgZhXqDE0VAEz04=; b=bVRlA++aI3DQHbJmahqT7UoJrafPW20AGghVXqYdAmiGmpeQUDTwRFwc3yqkZLcSHV zGxh2GU2XvxfswIuyW+7ITaHY8eVoPc2GTNtVUl4T1S6j1LrL3SCvg4v/EmRqsufhClo yqF8S1qhkNOB51FG5jQ4QJL/E4JzkYTuIdJkPwlnS5XivyZeYlKHgoR0DN3sOXEZcjEI K0DJfXX/thHuvyILOKuOO10LB7iZNHu7vUXgqbIIU/CHKSzEylN8r72ngt3KfPUIyvqP lRM5vdcT1hgy6Jgm5Uvdrq3w8ZJ72kiHXNSDxFmI7KR1tN4pOw9l6coHiyhpqkUs9Dd0 ZDbA== From: Till Kamppeter Message-ID: Date: Sun, 15 Dec 2019 19:55:45 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: [Printing-architecture] Driverless scanning: eSCL (HTTP/XML-based) has something to do with PWG? List-Id: Printing architecture under linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Open Printing Hi, on the SANE developer mailing list is currently discussion about the eSCL scanning protocol as they are adding an eSCL scanning backend from a contributor. They found out that all multi-function devices which print via Apple AirPrint support the eSCL scanning protocol, as part of AirScan. The protocol works with communication vis HTTP(S) and in XML format. To be driverless (no device-model-specific code or data) one can poll the capabilities of the scanner and then set scan options and scan. Image data is returned in JPEG, PNG, or PDF, depending on the model. Devices advertise themselves via DNS-SD with registration type _uscan._tcp and in the TXT record having a "rs=/eSCL" entry. This all works principally on the network, but it also works on devices connected by USB when they support IPP-over-USB and ippusbxd is running for them. So this way one can for the first time print and scan through ippusbxd. When I see the output of a capabilities poll (see below) one sees a lot of "pwg". Is ESCL an (older) PWG standard or has it generally something to do with the PWG? Till ---------- Full DNS-SD record: ---------- Found service 'Deskjet 2540 series [E7DDC7]' of type '_uscan._tcp' in domain 'local' on 3.1. Service data for service 'Deskjet 2540 series [E7DDC7]' of type '_uscan._tcp' in domain 'local' on 3.0: Host HP5CB901E7DDC7.local (192.168.223.1), port 8080, TXT data: ['duplex=F', 'is=platen', 'cs=binary,color,grayscale', 'rs=/eSCL', 'representation=', 'UUID=1c852a4d-b800-1f08-abcd-5cb901e7ddc7', 'note=', 'adminurl=http://HP5CB901E7DDC7.local.', 'ty=HP Deskjet 2540 series', 'pdl=application/octet-stream,application/pdf,image/jpeg', 'vers=2.0', 'txtvers=1'] ---------- Get capabilities: wget http://192.168.223.1:8080/eSCL/ScannerCapabilities or with ippusbxd running ia USB: wget http://localhost:60000/eSCL/ScannerCapabilities This results in: ---------- 2.0 xxxx 25 8 2550 8 3508 1 Grayscale8 RGB24 Photo Text TextAndPhoto application/octet-stream image/jpeg application/pdf 75 75 100 100 200 200 300 300 600 600 1200 1200 2400 2400 YCC RGB sRGB Document Photo Preview TextAndGraphic 2400 2400 34 33 34 46 0 2000 1 0 2000 1 0 255 179 1 0 255 25 1 0 255 1 0 255 128 1