From patchwork Thu Dec 30 07:39:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35796 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 CDF8C27BBEA; Thu, 30 Dec 2021 07:47:03 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 96F0027BBE9 for ; Thu, 30 Dec 2021 07:47:03 +0000 (GMT) Received: from localhost ([::1]:59620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2q9M-0003hb-Vi for patchwork@mira.cbaines.net; Thu, 30 Dec 2021 02:47:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2q6d-0001UW-H6 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2q6d-000253-77 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2q6d-0006kr-52 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 37/41] gnu: Add node-serialport-parser-inter-byte-timeout. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:44:11 +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.164085020825732 (code B ref 51838); Thu, 30 Dec 2021 07:44:11 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:43:28 +0000 Received: from localhost ([127.0.0.1]:51076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5w-0006gt-6E for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:28 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]:34747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5m-0006dl-4d for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:19 -0500 Received: by mail-qt1-f179.google.com with SMTP id o17so21061473qtk.1 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:43:18 -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=xsE0Zh1nC1lD5wiDzkPPslWtiHYLGa/Eet2uRe2A394=; b=VrvFLIgecurVVB3UcwrmM9/xaOLHsmZf5NeSG7kSwCHFcr3+V8wrXbAuGVNufkEe2A 0+JswTIycE9pI7I3r0eL/SGzWsng3uBXrmv33eexiBlnvSqroNa3MD2rrk6Y9bBx9MWI zKwr75GQS7YvV6sm50QfHUGOdcXWA7NE3R2NDWiAiKp1ASRwjzRRzfI8o6YJllAIpmZP g7nOQvEhxNJl6adiew+6qT88B7niorlIev0cLGpmyna2tYvyXQxjH98TLOLZKY+CvWmO 3yJmeRikFK2yDWMusaUTmJel98YdWomsxZM74rhl5Avp2SoukACK1bg2jNPGtMYjWpQR AmPg== 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=xsE0Zh1nC1lD5wiDzkPPslWtiHYLGa/Eet2uRe2A394=; b=tN1HxQPIAsEgvTcTVTGpJdVMU9PpRG3/919i+aGChgqXOCYOTuoL2Urp1eYWXBZ+a5 lTVTu2PRxPvFaOBajHbJR9VUSIjTR0w82zQYfHo26hE9rLVsI2e4uRSDFN3f1Vmvow1w 62RXNNAcpHOIaQXjFVuYfSsCFIsGwQSu8aODm8/5fCKOkFqW9j0siWjnQt9F6ZvuKbjY AK/O8f/aBRx04A297z/lTdakk1trnJTxYXQcsyojhoSR0hHJaCE6wdf/7ebr/ACERwIy /Ri4+Sk2VoiFfSFQv688ZwH1fkNS3jTbDKg2DWyLK9aG63JSEQmEQv5YIAsckTUiKsC2 GLIw== X-Gm-Message-State: AOAM532oKTlfXNB8gvKwItCf1UauGeCDY1nIzwHBxpvPleyFw/3SNr6I r7yglD83Bg9uQWrDcJuf8ACWuwDaEZY5E5oh X-Google-Smtp-Source: ABdhPJw5nLtyJoiqv+K473hRw3raOdPT1RprpZ3gmMJndYQT0cseKUhB0l3dlsabM/AiB1FRUrgMug== X-Received: by 2002:a05:622a:1ba4:: with SMTP id bp36mr25069675qtb.455.1640850192686; Wed, 29 Dec 2021 23:43:12 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id d1sm18439679qtn.56.2021.12.29.23.43.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:43:12 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:39:15 -0500 Message-Id: <20211230073919.30327-38-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230073919.30327-1-philip@philipmcgrath.com> References: <082a81964a43ae5f735ad2ca433d0dfe00859c35.camel@gmail.com> <20211230073919.30327-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 55b60fa773..6337554830 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1250,3 +1250,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.")))