[sane-devel] ESCL test

Ralph Little skelband at gmail.com
Tue Jan 28 20:35:10 GMT 2020


Hi,
Hopefully, this is a useful dump of the capability response from the
device, as reconstituted in Wireshark.

Cheers,
Ralph

<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerCapabilities xmlns:scan="
http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xmlns:dest="
http://schemas.hp.com/imaging/destination/2011/06/06" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 ../../schemas/eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:MakeAndModel>OfficeJet Pro 6978 All-in-One</pwg:MakeAndModel>
<pwg:SerialNumber>TH7621Q047</pwg:SerialNumber>
<scan:Platen>
<scan:PlatenInputCaps>
<scan:MinWidth>8</scan:MinWidth>
<scan:MaxWidth>2550</scan:MaxWidth>
<scan:MinHeight>8</scan:MinHeight>
<scan:MaxHeight>3550</scan:MaxHeight>
<scan:MinPageWidth>8</scan:MinPageWidth>
<scan:MinPageHeight>8</scan:MinPageHeight>
<scan:MaxScanRegions>1</scan:MaxScanRegions>
<scan:SettingProfiles>
<scan:SettingProfile>
<scan:ColorModes>
<scan:ColorMode>Grayscale8</scan:ColorMode>
<scan:ColorMode>RGB24</scan:ColorMode>
</scan:ColorModes>
<scan:ContentTypes>
<pwg:ContentType>Photo</pwg:ContentType>
<pwg:ContentType>Text</pwg:ContentType>
<pwg:ContentType>TextAndPhoto</pwg:ContentType>
</scan:ContentTypes>
<scan:DocumentFormats>
<pwg:DocumentFormat>application/octet-stream</pwg:DocumentFormat>
<pwg:DocumentFormat>image/jpeg</pwg:DocumentFormat>
<pwg:DocumentFormat>application/pdf</pwg:DocumentFormat>
<scan:DocumentFormatExt>application/octet-stream</scan:DocumentFormatExt>
<scan:DocumentFormatExt>image/jpeg</scan:DocumentFormatExt>
<scan:DocumentFormatExt>application/pdf</scan:DocumentFormatExt>
</scan:DocumentFormats>
<scan:SupportedResolutions>
<scan:DiscreteResolutions>
<scan:DiscreteResolution>
<scan:XResolution>75</scan:XResolution>
<scan:YResolution>75</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>100</scan:XResolution>
<scan:YResolution>100</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>200</scan:XResolution>
<scan:YResolution>200</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>300</scan:XResolution>
<scan:YResolution>300</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>600</scan:XResolution>
<scan:YResolution>600</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>1200</scan:XResolution>
<scan:YResolution>1200</scan:YResolution>
</scan:DiscreteResolution>
</scan:DiscreteResolutions>
</scan:SupportedResolutions>
<scan:ColorSpaces>
<scan:ColorSpace>YCC</scan:ColorSpace>
<scan:ColorSpace>RGB</scan:ColorSpace>
<scan:ColorSpace>sRGB</scan:ColorSpace>
</scan:ColorSpaces>
</scan:SettingProfile>
</scan:SettingProfiles>
<scan:SupportedIntents>
<scan:Intent>Document</scan:Intent>
<scan:Intent>Photo</scan:Intent>
<scan:Intent>Preview</scan:Intent>
<scan:Intent>TextAndGraphic</scan:Intent>
</scan:SupportedIntents>
<scan:MaxOpticalXResolution>1200</scan:MaxOpticalXResolution>
<scan:MaxOpticalYResolution>1200</scan:MaxOpticalYResolution>
<scan:RiskyLeftMargin>50</scan:RiskyLeftMargin>
<scan:RiskyRightMargin>18</scan:RiskyRightMargin>
<scan:RiskyTopMargin>50</scan:RiskyTopMargin>
<scan:RiskyBottomMargin>15</scan:RiskyBottomMargin>
</scan:PlatenInputCaps>
</scan:Platen>
<scan:Adf>
<scan:AdfSimplexInputCaps>
<scan:MinWidth>8</scan:MinWidth>
<scan:MaxWidth>2550</scan:MaxWidth>
<scan:MinHeight>8</scan:MinHeight>
<scan:MaxHeight>4200</scan:MaxHeight>
<
FD1
scan:MinPageWidth>1748</scan:MinPageWidth>
<scan:MinPageHeight>2480</scan:MinPageHeight>
<scan:MaxScanRegions>1</scan:MaxScanRegions>
<scan:SettingProfiles>
<scan:SettingProfile>
<scan:ColorModes>
<scan:ColorMode>Grayscale8</scan:ColorMode>
<scan:ColorMode>RGB24</scan:ColorMode>
</scan:ColorModes>
<scan:ContentTypes>
<pwg:ContentType>Photo</pwg:ContentType>
<pwg:ContentType>Text</pwg:ContentType>
<pwg:ContentType>TextAndPhoto</pwg:ContentType>
</scan:ContentTypes>
<scan:DocumentFormats>
<pwg:DocumentFormat>application/octet-stream</pwg:DocumentFormat>
<pwg:DocumentFormat>image/jpeg</pwg:DocumentFormat>
<pwg:DocumentFormat>application/pdf</pwg:DocumentFormat>
<scan:DocumentFormatExt>application/octet-stream</scan:DocumentFormatExt>
<scan:DocumentFormatExt>image/jpeg</scan:DocumentFormatExt>
<scan:DocumentFormatExt>application/pdf</scan:DocumentFormatExt>
</scan:DocumentFormats>
<scan:SupportedResolutions>
<scan:DiscreteResolutions>
<scan:DiscreteResolution>
<scan:XResolution>75</scan:XResolution>
<scan:YResolution>75</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>100</scan:XResolution>
<scan:YResolution>100</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>200</scan:XResolution>
<scan:YResolution>200</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>300</scan:XResolution>
<scan:YResolution>300</scan:YResolution>
</scan:DiscreteResolution>
</scan:DiscreteResolutions>
</scan:SupportedResolutions>
<scan:ColorSpaces>
<scan:ColorSpace>YCC</scan:ColorSpace>
<scan:ColorSpace>RGB</scan:ColorSpace>
<scan:ColorSpace>sRGB</scan:ColorSpace>
</scan:ColorSpaces>
</scan:SettingProfile>
</scan:SettingProfiles>
<scan:SupportedIntents>
<scan:Intent>Document</scan:Intent>
<scan:Intent>Photo</scan:Intent>
<scan:Intent>Preview</scan:Intent>
<scan:Intent>TextAndGraphic</scan:Intent>
</scan:SupportedIntents>
<scan:EdgeAutoDetection>
<scan:SupportedEdge>BottomEdge</scan:SupportedEdge>
</scan:EdgeAutoDetection>
<scan:MaxOpticalXResolution>300</scan:MaxOpticalXResolution>
<scan:MaxOpticalYResolution>300</scan:MaxOpticalYResolution>
<scan:RiskyLeftMargin>16</scan:RiskyLeftMargin>
<scan:RiskyRightMargin>0</scan:RiskyRightMargin>
<scan:RiskyTopMargin>35</scan:RiskyTopMargin>
<scan:RiskyBottomMargin>35</scan:RiskyBottomMargin>
</scan:AdfSimplexInputCaps>
<scan:AdfDuplexInputCaps>
<scan:MinWidth>1748</scan:MinWidth>
<scan:MaxWidth>2550</scan:MaxWidth>
<scan:MinHeight>2480</scan:MinHeight>
<scan:MaxHeight>3507</scan:MaxHeight>
<scan:MinPageWidth>1748</scan:MinPageWidth>
<scan:MinPageHeight>2480</scan:MinPageHeight>
<scan:MaxScanRegions>1</scan:MaxScanRegions>
<scan:SettingProfiles>
<scan:SettingProfile>
<scan:ColorModes>
<scan:ColorMode>Grayscale8</scan:ColorMode>
<scan:ColorMode>RGB24</scan:ColorMode>
</scan:ColorModes>
<scan:ContentTypes>
<pwg:ContentType>Photo</pwg:ContentType>
<pwg:ContentType>Text</pwg:ContentType>
<pwg:ContentType>TextAndPhoto</pwg:ContentType>
</scan:ContentTypes>
<scan:DocumentFormats>
<pwg:DocumentFormat>application/octet-stream</pwg:DocumentFormat>
<pwg:DocumentFormat>image/jpeg</pwg:DocumentFormat>
<pwg:DocumentFormat>application/pdf</pwg:DocumentFormat>
<scan:DocumentFormatExt>application/octet-stream</scan:DocumentFormatExt>
<scan:DocumentFormatExt>image/jpeg</scan:DocumentFormatExt>
<scan:DocumentFormatExt>application/pdf</scan:DocumentFormatExt>
</scan:DocumentFormats>
<scan:SupportedResolutions>
<
A8F
scan:DiscreteResolutions>
<scan:DiscreteResolution>
<scan:XResolution>75</scan:XResolution>
<scan:YResolution>75</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>100</scan:XResolution>
<scan:YResolution>100</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>200</scan:XResolution>
<scan:YResolution>200</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>300</scan:XResolution>
<scan:YResolution>300</scan:YResolution>
</scan:DiscreteResolution>
</scan:DiscreteResolutions>
</scan:SupportedResolutions>
<scan:ColorSpaces>
<scan:ColorSpace>YCC</scan:ColorSpace>
<scan:ColorSpace>RGB</scan:ColorSpace>
<scan:ColorSpace>sRGB</scan:ColorSpace>
</scan:ColorSpaces>
</scan:SettingProfile>
</scan:SettingProfiles>
<scan:SupportedIntents>
<scan:Intent>Document</scan:Intent>
<scan:Intent>Photo</scan:Intent>
<scan:Intent>Preview</scan:Intent>
<scan:Intent>TextAndGraphic</scan:Intent>
</scan:SupportedIntents>
<scan:EdgeAutoDetection>
<scan:SupportedEdge>BottomEdge</scan:SupportedEdge>
</scan:EdgeAutoDetection>
<scan:MaxOpticalXResolution>300</scan:MaxOpticalXResolution>
<scan:MaxOpticalYResolution>300</scan:MaxOpticalYResolution>
<scan:RiskyLeftMargin>16</scan:RiskyLeftMargin>
<scan:RiskyRightMargin>0</scan:RiskyRightMargin>
<scan:RiskyTopMargin>35</scan:RiskyTopMargin>
<scan:RiskyBottomMargin>35</scan:RiskyBottomMargin>
</scan:AdfDuplexInputCaps>
<scan:FeederCapacity>50</scan:FeederCapacity>
<scan:AdfOptions>
<scan:AdfOption>DetectPaperLoaded</scan:AdfOption>
<scan:AdfOption>Duplex</scan:AdfOption>
</scan:AdfOptions>
</scan:Adf>
<scan:BrightnessSupport>
<scan:Min>0</scan:Min>
<scan:Max>2000</scan:Max>
<scan:Normal>1000</scan:Normal>
<scan:Step>1</scan:Step>
</scan:BrightnessSupport>
<scan:ContrastSupport>
<scan:Min>0</scan:Min>
<scan:Max>2000</scan:Max>
<scan:Normal>1000</scan:Normal>
<scan:Step>1</scan:Step>
</scan:ContrastSupport>
<scan:ThresholdSupport>
<scan:Min>0</scan:Min>
<scan:Max>255</scan:Max>
<scan:Normal>128</scan:Normal>
<scan:Step>1</scan:Step>
</scan:ThresholdSupport>
<scan:eSCLConfigCap>
<scan:StateSupport>
<scan:State>disabled</scan:State>
<scan:State>enabled</scan:State>
</scan:StateSupport>
</scan:eSCLConfigCap>
<scan:JobSourceInfoSupport>true</scan:JobSourceInfoSupport>
</scan:ScannerCapabilities>


On Tue, Jan 28, 2020 at 12:22 PM Ralph Little <skelband at gmail.com> wrote:

> Hi,
> I finally got around to testing the new escl backend with my HP OfficeJet
> 6978.
> It does appear to be supported on two ports, one encrypted:
>
> device `escl:https://10.1.40.2:443' is a ESCL HP-OfficeJet-6978 SSL
> flatbed scanner
> device `escl:http://10.1.40.2:8080' is a ESCL HP-OfficeJet-6978 flatbed
> scanner
>
> Preview and higher resolution scans are OK.
> However, there appears to be something squiffy about the geometry options.
> I cannot get a full sheet scan.
>
> This is what I get from scanimage as regards the available options:
>
> Options specific to device `escl:https://10.1.40.2:443':
>   Scan mode:
>     --mode Gray|Color [Gray]
>         Selects the scan mode (e.g., lineart, monochrome, or color).
>     --resolution 75|100|200|300|600|1200dpi [75]
>         Sets the resolution of the scanned image.
>     --preview[=(yes|no)] [no]
>         Request a preview-quality scan.
>     --preview-in-gray[=(yes|no)] [no]
>         Request that all previews are done in monochrome mode.  On a
>         three-pass scanner this cuts down the number of passes to one and
> on a
>         one-pass scanner, it reduces the memory requirements and scan-time
> of
>         the preview.
>   Geometry:
>     -l 0..0.0122375pel (in steps of 1.52588e-05) [0.000244141]
>         Top-left x position of scan area.
>     -t 0..0.0156708pel (in steps of 1.52588e-05) [0.000534058]
>         Top-left y position of scan area.
>     -x 0..0.0119934pel (in steps of 1.52588e-05) [0.0386658]
>         Width of scan-area.
>     -y 0..0.0151367pel (in steps of 1.52588e-05) [0.0529785]
>         Height of scan-area.
>
> Using the current PPA from Rolf as of today, which is probably gonna be *git
> commit 1942c5fd.*
>
> Cheers,
> Ralph
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20200128/99a0b449/attachment-0001.html>


More information about the sane-devel mailing list