From patchwork Mon Dec 13 06:01:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35199 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7EB5B27BBEA; Mon, 13 Dec 2021 06:10:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 42E1D27BBE9 for ; Mon, 13 Dec 2021 06:10:12 +0000 (GMT) Received: from localhost ([::1]:50840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweXL-0000dK-Eq for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:10:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTM-0005Lu-OA for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTL-00082S-D9 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTL-0002hq-7r for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 41/45] gnu: Add node-serialport-parser-inter-byte-timeout. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937551710278 (code B ref 51838); Mon, 13 Dec 2021 06:06:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:17 +0000 Received: from localhost ([127.0.0.1]:53838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSb-0002fb-6c for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:17 -0500 Received: from mail-ua1-f46.google.com ([209.85.222.46]:40643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSW-0002eE-DU for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:12 -0500 Received: by mail-ua1-f46.google.com with SMTP id y5so27310296ual.7 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oFXS/pGuc7TKdS6r+PpnoFih9hoe079OTUnr3NmtDPg=; b=hDuNClny8J63K0AFQwdsNNrOMLdVxHEIF25uLAgr/ZhikPnUS52Ywc9wk8e8Lj1kBg A8k+LGDO4p/NGDTHxafyASBDLxLs7W42vpGQqbc4lfR15dMDhk7SF/ui4TdIzHmlAv06 qZutECC84NnjfZ7hQkCL2ZNn6EXpXVtKA1Ty7t19DKo9N/7YnmEjPCm6T44aHFSHBNnp i5S78uaYAnZHjOFvpIXc2kp29Le/VJH0ibDeZagKn3zmMW2CKRto8CPdk6yg6HrHrZpS 3dilig3tcfGrcLNwl/MO9P1yS2NRCYOi3FA/i2zSLP1zCaOxg9jB5/m9RCp4+ZSIrNVZ iqaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oFXS/pGuc7TKdS6r+PpnoFih9hoe079OTUnr3NmtDPg=; b=DDYD2XVrWXSlNx0vGrIYd0BHdvLErtn9yjMHCke7mky42CkJiifWpQ2gfwZmLGL6jm vgasSr0eqg6iwKUChs+Ubi5MJjYMkXJSoYPU9n8u+cGawqBxAqzUG3Aqw76qPc13iim3 vF5fLa+hLHp59LSJjO/vRRO/d2zQPsmv7SRwR9CrVJPuZ7f/yEwHDkwtKodUso623C5i HfE8LEFNbJk/agrksOaeqiEazwKUME6u1U9mXRKTYQf85IYAoVJrp5iDEpkqbDwUqeDb PWNRZ1VYPFndBxTDNjWOCUGIHG6ymR1tXbwOo5+GHqCZ8S+dqx2ezZwbkAgnutije2h5 qBnA== X-Gm-Message-State: AOAM530OxI1GvEB3jtsNsr6b361CJZwa1y1058ZtoA6U3F0zqETAKRjS yQ8+I+oE0LfHdQZax33WTlGvKobXnxbpiMRwvjI= X-Google-Smtp-Source: ABdhPJxvZvaHRezfb/vbIPaK0xi/l3hsfKUTmBAkMOHjkA66Kwqb/iFz3wJUecsHuAz28XmtkvNEog== X-Received: by 2002:a67:6f04:: with SMTP id k4mr25780635vsc.27.1639375507004; Sun, 12 Dec 2021 22:05:07 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id 66sm4183916uao.0.2021.12.12.22.05.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:06 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:03 -0500 Message-Id: <20211213060107.129223-42-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-inter-byte-timeout): New variable. --- gnu/packages/node-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 8cc4efeed8..3df6c37584 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1164,3 +1164,25 @@ (define-public node-serialport-parser-ready messages. This package provides @code{Ready}, a parser that waits for a specified sequence of ``ready'' bytes before emitting a ready event and emitting data events."))) + +(define-public node-serialport-parser-inter-byte-timeout + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-inter-byte-timeout") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-inter-byte-timeout")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to detect pauses in data") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{InterByteTimeout}, a parser that emits +data if there is a pause between packets for the specified amount of time.")))