Re: [IPP] RFC: printer-finisher attribute

Ira McDonald <blueroofmusic@gmail.com> Fri, 20 June 2014 19:00 UTC

Return-Path: <ipp-bounces@pwg.org>
X-Original-To: ietfarch-ipp-archive@ietfa.amsl.com
Delivered-To: ietfarch-ipp-archive@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 05FC51B28EC for <ietfarch-ipp-archive@ietfa.amsl.com>; Fri, 20 Jun 2014 12:00:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.011
X-Spam-Level:
X-Spam-Status: No, score=-2.011 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_MOSTLY=0.428, RP_MATCHES_RCVD=-0.651, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LKQ5qbGre5wj for <ietfarch-ipp-archive@ietfa.amsl.com>; Fri, 20 Jun 2014 12:00:12 -0700 (PDT)
Received: from www.pwg.org (www.pwg.org [IPv6:2600:3c01::f03c:91ff:fe70:b03f]) by ietfa.amsl.com (Postfix) with ESMTP id 859801B28EA for <ipp-archive@lists.ietf.org>; Fri, 20 Jun 2014 12:00:12 -0700 (PDT)
Received: from pwg.org (localhost [IPv6:::1]) by www.pwg.org (Postfix) with ESMTP id 87FC28482; Fri, 20 Jun 2014 19:00:30 +0000 (UTC)
X-Original-To: ipp@pwg.org
Delivered-To: ipp@pwg.org
Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) by www.pwg.org (Postfix) with ESMTPS id 601CA833A for <ipp@pwg.org>; Fri, 20 Jun 2014 19:00:29 +0000 (UTC)
Received: by mail-ie0-f177.google.com with SMTP id tp5so3598101ieb.22 for <ipp@pwg.org>; Fri, 20 Jun 2014 12:00:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=czMAr4usRh5QVu6dkmO2f1DVpZ4yqyHoYazMeW5uY4k=; b=VD1Pv3mNDtKmXPjC6NygHCOkmGX2/SX1+N/FTNrxVLEd0+8P5jUvseYJd4WZPa3Ffm lU965nR0gZNr0iNYGCj+Ftv66+VMidHeaKIoiVWTawerxCNbTUpjLBVnMcicuUAe4bdk 539cGNC/SHzitu57YV7tkVGMMLIXO7wnGbnhJOyYpMvtlWd2WgtbJ5ZX8ZBQq1Iz45np q4479a3ujGsDNwbr/Ld2Cyi8GFvEkGpICL9qfM3RD6+RtY5YTdS8Y1dCk7SK2kBT6XdP Z35S3O1enKnVWsn3w4QoiH472nuAgAkfo2Q/w5iONkPfLgqtfCdrS2RIKed/2Rh4r3Lf JAQg==
X-Received: by 10.42.110.79 with SMTP id o15mr5987044icp.42.1403290810236; Fri, 20 Jun 2014 12:00:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.50.168.40 with HTTP; Fri, 20 Jun 2014 11:59:50 -0700 (PDT)
In-Reply-To: <DF5CB569-D1E3-4239-8437-0167CDD30797@apple.com>
References: <DF5CB569-D1E3-4239-8437-0167CDD30797@apple.com>
From: Ira McDonald <blueroofmusic@gmail.com>
Date: Fri, 20 Jun 2014 14:59:50 -0400
Message-ID: <CAN40gSs_vmsYzfa4SrKj0P0DucOMVvuCmZ72vXNkUgVC22RvNg@mail.gmail.com>
To: Michael Sweet <msweet@apple.com>, Ira McDonald <blueroofmusic@gmail.com>
Cc: "<ipp@pwg.org>" <ipp@pwg.org>
Subject: Re: [IPP] RFC: printer-finisher attribute
X-BeenThere: ipp@pwg.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Internet Printing Protocol Workgroup discussion list <ipp.pwg.org>
List-Unsubscribe: <https://www.pwg.org/mailman/options/ipp>, <mailto:ipp-request@pwg.org?subject=unsubscribe>
List-Archive: <http://www.pwg.org/pipermail/ipp/>
List-Post: <mailto:ipp@pwg.org>
List-Help: <mailto:ipp-request@pwg.org?subject=help>
List-Subscribe: <https://www.pwg.org/mailman/listinfo/ipp>, <mailto:ipp-request@pwg.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2108089860=="
Sender: ipp-bounces@pwg.org
Errors-To: ipp-bounces@pwg.org

Hi Mike,

I like this "printer-finisher" proposal for exposing the Finisher MIB info.

A few comments:

(1) TYPO - Section 6.15.3 in title and second example says
"printer-input-tray"

(2) TECHNICAL - Section 16.5 should also reference finDeviceAttributeTable
and later sections should reference a (flattened) "finisher-detail" member
that
is a simple key/value mapping for all defined finisher-specific attributes,
e.g.,

- general: deviceModel, finReferenceEdge, numberOfPositions, etc.
- subunit types: stitching (staple,stitch,saddle,dual), folding, binding,
etc.
- subunit details for stitching and punching

WDYT?

Cheers,
- Ira





Ira McDonald (Musician / Software Architect)
Co-Chair - TCG Trusted Mobility Solutions WG
Chair - Linux Foundation Open Printing WG
Secretary - IEEE-ISTO Printer Working Group
Co-Chair - IEEE-ISTO PWG Internet Printing Protocol WG
IETF Designated Expert - IPP & Printer MIB
Blue Roof Music / High North Inc
http://sites.google.com/site/blueroofmusic
http://sites.google.com/site/highnorthinc
mailto: blueroofmusic@gmail.com
Winter  579 Park Place  Saline, MI  48176  734-944-0094
Summer  PO Box 221  Grand Marais, MI 49839  906-494-2434



On Fri, Jun 20, 2014 at 2:25 PM, Michael Sweet <msweet@apple.com> wrote:

> All,
>
> One of the common issues we've run into are finisher limits - maximum
> capacity in particular.
>
> Currently the only want to get this information is via the Finishing MIB.
>  The following is a proposal for inclusion in the Finishings 2.0
> specification to add a "printer-finisher" Printer Description attribute
> that exposes the Finishing MIB, much as we already do for the various
> Printer MIB properties.
>
> If there are no objections, I will issue one more prototype draft of the
> Finishings 2.0 spec so we can review this and the finishings-col-database
> addition in the next WG concall.
>
> ...
>
> 6.15 printer-finisher (1setOf octetString(MAX))
>
> The REQUIRED "printer-finisher" Printer attribute provides current
> finisher details mapped from the SNMP finDeviceTable defined in IETF
> Finishing MIB [RFC3806].
>
> This attribute MUST be supported if the "printer-finisher-description"
> (section 6.16) Printer attribute is supported. If supported, this attribute
> MUST have the same cardinality (contain the same number of values) as the
> "printer-finisher-description" attribute. The ith value in the
> "printer-finisher" attribute corresponds to the ith value in the
> "printer-finisher-description" attribute.
>
> 6.15.1 Keywords for printer-finisher
>
> Table 2 defines the IPP datatypes and keywords for encoding
> "printer-finisher" from all of the machine-readable (non-localized)
> columnar objects in finDeviceTable [RFC3806].
>
> 6.15.2 Encoding of printer-finisher
>
> Values of "printer-finisher" MUST be encoded using a visible subset of the
> [US-ASCII] charset. Control codes (0x00 to 0x1F and 0x7F) MUST NOT be used.
> The ABNF [STD68] in Figure 2 defines the standard encoding in
> "printer-finisher" for all the machine-readable (non-localized) columnar
> objects in finDeviceTable [RFC3806].
>
> 6.15.3 Examples of printer-input-tray
>
> The following example shows two rows of the machine-readable
> (non-localized) columnar objects from finDeviceTable encoded into
> corresponding values of "printer-finisher".
>
> Note: Line breaks are shown below for readability of this example. Line
> breaks MUST NOT be encoded into actual values of "printer-finisher".
>
> printer-finisher[1] =
>     type=stitcher;unit=sheets;maxcapacity=500;capacity=100;
> printer-input-tray[2] =
>     type=puncher;unit=sheets;maxcapacity=100;capacity=20;
>
> Table 2 - Keywords for "printer-finisher"
>
> Finishing MIB Object    IPP Data-type  IPP Keyword    PWG SM Keyword
>  Conformance
> ----------------------  -------------  -------------  ----------------
>  -----------
> finDevice...
> Index (note 1)          Integer        index          Id
>  OPTIONAL
> Type                    String         type           FinisherType
>  REQUIRED
> CapacityUnit            String         unit           FinisherCapacity
>  REQUIRED
>                                                       Unit
> MaxCapacity             Integer        maxcapacity    FinisherMax
> REQUIRED
>                                                       Capacity
> CurrentCapacity         Integer        capacity       FinisherCurrent
> REQUIRED
>                                                       Capacity
> PresentOnOff            String         presentonoff   FinisherPresent
> OPTIONAL
>                                                       OnOff
> AssociatedMediaPaths    ---            ---            FinisherAssociated
> ---
>                                                       MediaPaths
> AssociatedOutputs       ---            ---            FinisherAssociated
> ---
>                                                       Outputs
> Status                  Integer        status         SubunitStates
> OPTIONAL
>
> Notes:
> 1.    finDeviceIndex is OPTIONAL in "printer-finisher", because
> correlation with the original MIB order is considered unimportant.
>
>
> Figure 2 - ABNF for "printer-finisher" Values
>
> printer-finisher = *finisher-required *[finisher-optional]
>     ; set of finisher elements encoded into one value
>
> finisher-required = finisher-req ";"
> finisher-req = finisher-type / finisher-unit /
>                  finisher-max-capacity /
>                  finisher-capacity
> finisher-optional = finisher-opt ";"
> finisher-opt = finisher-index / finisher-presentonoff /
>                  finisher-status / finisher-ext
>
> finisher-type = "type" "=" 1*ALPHA
>     ; enumerated value as an alpha string (e.g.,
>     ; 'stitcher') of finDeviceType in [RFC3806] mapped
>     ; indirectly from the *label* in FinDeviceTypeTC
>
> finisher-unit = "unit" "=" 1*ALPHA
>     ; enumerated value as an alpha string (e.g., 'other') of
>     ; finDeviceCapacityUnit in [RFC3806] mapped indirectly from
>     ; the *label* in PrtCapacityUnitTC in [RFC3805]
>
> finisher-max-capacity = "maxcapacity" "=" 1*[DIGIT / "-"]
>     ; integer value as a numeric string mapped directly from
>     ; finDeviceMaxCapacity in [RFC3806]
>
> finisher-capacity = "capacity" "=" 1*[DIGIT / "-"]
>     ; integer value as a numeric string mapped directly from
>     ; finDeviceCurrentCapacity in [RFC3806]
>
> finisher-index = "index" "=" 1*DIGIT
>     ; integer value as a numeric string mapped directly from
>     ; finDeviceIndex in [RFC3806]
>
> finisher-presentonoff = "presentonoff" "=" 1*ALPHA
>     ; string value as an alpha string mapped directly from
>     ; PresentOnOff in [RFC3805]
>
> finisher-status = "status" "=" 1*DIGIT
>     ; integer value as a numeric string mapped directly from
>     ; finDeviceStatus in [RFC3806]
>
> finisher-ext   = 1*ALPHA "=" 1*ALPHA
>     ; extension point for other MIB values not mapped
>
> 6.16 printer-finisher-description (1setOf text(MAX))
>
> The REQUIRED "printer-finisher-description" READ-ONLY Printer attribute
> provides current supply descriptions mapped from the SNMP
> finDeviceDescription object in the finDeviceTable defined in IETF Finishing
> MIB [RFC3806].
>
> This attribute MUST be supported if the "printer-finisher" (section 6.15)
> Printer attribute is supported. If supported, this attribute MUST have the
> same cardinality (contain the same number of values) as the
> "printer-finisher" attribute. The ith value in the
> "printer-finisher-description" attribute corresponds to the ith value in
> the "printer-finisher" attribute.
>
> 6.16.1 Encoding of printer-finisher-description
>
> Values of the "printer-finisher-description" attribute MUST be mapped from
> the corresponding human-readable (localized) values of
> finDeviceDescription, exactly as follows:
>
> 1.    Each value of finDeviceDescription MUST be converted from the
> character set [RFC3808] specified by prtGeneralCurrentLocalization and
> prtLocalizationCharacterSet into the charset specified by
> "charset-configured" and then copied into a text value of
> "printer-finisher-description"; and
> 2.    Each value of "printer-finisher-description" MUST be tagged with the
> natural language [RFC5646] specified by prtGeneralCurrentLocalization,
> prtLocalizationLanguage, and prtLocalizationCountry.
>
> 6.16.2 Example of printer-finisher-description
>
> The following example shows two instances of the human-readable
> (localized) columnar object finDeviceDescription in the finDeviceTable
> encoded into corresponding values of "printer-finisher-description":
>
> printer-finisher-description[1] = "Stapler S/N:EXAMPLE-12345"
> printer-finisher-description[2] = "Hole Punch S/N:EXAMPLE-67890"
>
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>
>
> _______________________________________________
> ipp mailing list
> ipp@pwg.org
> https://www.pwg.org/mailman/listinfo/ipp
>
>
_______________________________________________
ipp mailing list
ipp@pwg.org
https://www.pwg.org/mailman/listinfo/ipp